From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- mobile/android/docs/geckoview/design/priority-hint.rst | 2 +- mobile/android/docs/geckoview/design/save-to-pdf.rst | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'mobile/android/docs/geckoview') diff --git a/mobile/android/docs/geckoview/design/priority-hint.rst b/mobile/android/docs/geckoview/design/priority-hint.rst index 4a915bb7ed..d7250e60e8 100644 --- a/mobile/android/docs/geckoview/design/priority-hint.rst +++ b/mobile/android/docs/geckoview/design/priority-hint.rst @@ -47,7 +47,7 @@ Specified and active tabs would be ``PRIORITY_HIGH``. The default would be public void setPriorityHint(final @Priority int priorityHint) -Listeners in ``GeckoViewContent.jsm`` will set +Listeners in ``GeckoViewContent.sys.mjs`` will set ``this.browser.frameLoader.remoteTab.priorityHint`` to the boolean passed in. .. code:: java diff --git a/mobile/android/docs/geckoview/design/save-to-pdf.rst b/mobile/android/docs/geckoview/design/save-to-pdf.rst index fc4edc6310..63473f5ed9 100644 --- a/mobile/android/docs/geckoview/design/save-to-pdf.rst +++ b/mobile/android/docs/geckoview/design/save-to-pdf.rst @@ -40,12 +40,12 @@ What ---- This work will add a method to ``GeckoSession`` called ``savePdf`` for -embedders to use, which will communicate with a new ``GeckoViewPdf.jsm`` to +embedders to use, which will communicate with a new ``GeckoViewPdf.sys.mjs`` to create the PDF file. When the document is available, the ``GeckoViewPdfController`` will notify the ``ContentDelegate.onExternalResponse`` with the downloadable document. -- ``GeckoViewPdf.jsm`` - JavaScript implementation that converts the content to +- ``GeckoViewPdf.sys.mjs`` - JavaScript implementation that converts the content to a PDF and saves the file, also responds to messaging from ``GeckoViewPdfController``. - ``GeckoViewPdfController.java`` - The Controller coordinates between the Java @@ -72,8 +72,8 @@ GeckoSession.java } -GeckoViewPdf.jsm -^^^^^^^^^^^^^^^^ +GeckoViewPdf.sys.mjs +^^^^^^^^^^^^^^^^^^^^ .. code:: java this.registerListener([ @@ -92,7 +92,7 @@ GeckoViewPdf.jsm } async saveToPDF() { - // Reference: https://searchfox.org/mozilla-central/source/remote/cdp/domains/parent/Page.jsm#519 + // Reference: https://searchfox.org/mozilla-central/source/remote/cdp/domains/parent/Page.sys.mjs#519 } @@ -183,7 +183,7 @@ geckoview.js { name: "GeckoViewPdf", onInit: { - resource: "resource://gre/modules/GeckoViewPdf.jsm", + resource: "resource://gre/modules/GeckoViewPdf.sys.mjs", } } @@ -191,7 +191,7 @@ geckoview.js Testing ------- -- Tests for the jsm and java code will be covered by mochitests and junit. +- Tests for the sys.mjs and java code will be covered by mochitests and junit. - Make assertions to check that the text and images are in the finished PDF; the PDF is a non-zero file size. -- cgit v1.2.3