[epiphany/pgriffis/web-extension-beastify: 12/12] WebExtension: Stub out extension.getBackgroundPage()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/pgriffis/web-extension-beastify: 12/12] WebExtension: Stub out extension.getBackgroundPage()
- Date: Tue, 24 May 2022 01:06:30 +0000 (UTC)
commit f00d9614b1f33e3b415792b2b7b3522f104a82a5
Author: Patrick Griffis <pgriffis igalia com>
Date: Mon May 23 13:20:17 2022 -0500
WebExtension: Stub out extension.getBackgroundPage()
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1116>
embed/web-process-extension/resources/js/webextensions.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/embed/web-process-extension/resources/js/webextensions.js
b/embed/web-process-extension/resources/js/webextensions.js
index f0edce2ce..7fafff903 100644
--- a/embed/web-process-extension/resources/js/webextensions.js
+++ b/embed/web-process-extension/resources/js/webextensions.js
@@ -86,3 +86,6 @@ window.browser.browserAction = {
window.browser.windows = {
WINDOW_ID_CURRENT: -2, /* Matches Firefox, used in tabs.c. */
};
+
+/* Firefox returns null in private mode. So extensions sometimes handle this. */
+window.browser.extension.getBackgroundPage = function () { return null; };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]