Commit Graph

216 Commits

Author SHA1 Message Date
Luca Greco
e775d9654d Bug 1787940 - Add new telemetry for event page running time and idle timeout results. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D156490
2022-09-13 17:21:29 +00:00
Tooru Fujisawa
328d63ce7f Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel
f009ba2983 Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa
bf0a8b781b Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa
b10d0289af Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Tooru Fujisawa
135e054ef8 Bug 1775251 - Do not re-define XPCOMUtils as lazy getter in extension global. r=kmag
Depends on D149973

Differential Revision: https://phabricator.services.mozilla.com/D149974
2022-06-22 19:26:58 +00:00
Mark Banner
0410ff3ddf Bug 1771173 - Clean up unused definitions of console in extension modules. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D149785
2022-06-21 20:42:15 +00:00
Tooru Fujisawa
62aa93946a Bug 1608282 - Part 4: Remove Cu.defineLazyGlobalGetters from JSM. r=webdriver-reviewers,extension-reviewers,jdescottes,kmag
Depends on D149196

Differential Revision: https://phabricator.services.mozilla.com/D149197
2022-06-16 00:19:54 +00:00
Butkovits Atila
0642580e74 Backed out 4 changesets (bug 1608282) for causing hazard failures. CLOSED TREE
Backed out changeset 32aebc8be201 (bug 1608282)
Backed out changeset 37c970364269 (bug 1608282)
Backed out changeset ced8d82cc2d2 (bug 1608282)
Backed out changeset e26e480c7dd6 (bug 1608282)
2022-06-16 03:10:02 +03:00
Tooru Fujisawa
b3d40a272f Bug 1608282 - Part 4: Remove Cu.defineLazyGlobalGetters from JSM. r=webdriver-reviewers,extension-reviewers,jdescottes,kmag
Depends on D149196

Differential Revision: https://phabricator.services.mozilla.com/D149197
2022-06-15 20:34:35 +00:00
Tooru Fujisawa
18c50f5792 Bug 1772101 - Part 17: Use plain object for lazy getter in toolkit/components/extensions/. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D147958
2022-06-07 04:30:57 +00:00
Tooru Fujisawa
f947410342 Bug 1772351 - Part 3: Stop calling XPCOMUtils.defineLazyModuleGetters for AppConstants. r=florian,webdriver-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D148166
2022-06-06 04:42:09 +00:00
Molnar Sandor
4c2b06df41 Backed out 15 changesets (bug 1772313, bug 1772351, bug 1772360) for causing xpc failures in telemetry/tests/unit/test_SocketScalars.js CLOSED TREE
Backed out changeset c8b0a2ed239e (bug 1772360)
Backed out changeset 1922adad6abe (bug 1772351)
Backed out changeset 6d3634cce489 (bug 1772351)
Backed out changeset f03968a9d053 (bug 1772351)
Backed out changeset e7a38ef90fe4 (bug 1772351)
Backed out changeset b389e7654771 (bug 1772313)
Backed out changeset 59a33598ff51 (bug 1772313)
Backed out changeset ab60885a8a93 (bug 1772313)
Backed out changeset aad8efac9d05 (bug 1772313)
Backed out changeset 4378e519a8e7 (bug 1772313)
Backed out changeset 302ac54741f8 (bug 1772313)
Backed out changeset 74c59f9fd51c (bug 1772313)
Backed out changeset 575fb877c56c (bug 1772313)
Backed out changeset 2eaa68f10b19 (bug 1772313)
Backed out changeset 4a8b3ba193dc (bug 1772313)
2022-06-06 07:04:25 +03:00
Tooru Fujisawa
b580e51d8f Bug 1772351 - Part 3: Stop calling XPCOMUtils.defineLazyModuleGetters for AppConstants. r=florian,webdriver-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D148166
2022-06-06 02:49:13 +00:00
Tomislav Jovanovic
10086d025c Bug 1770841 - Remove InnerWindowReference and use WindowGlobalChild instead r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D147111
2022-05-31 12:21:42 +00:00
Rob Wu
6158a0deca Bug 1766822 - Refactor, introduce updateAllowedOrigins r=willdurand
Introduce common updateAllowedOrigins helper to avoid repetition of
policy.allowedOrigins-updating logic in four places.

While there are no user-visible behavioral changes, the patch does fix a
small issue: previously policy.allowedOrigins could have multiple
MatchPattern instances with exactly the same pattern due to the
implementation in ExtensionChild, now the helper ensures that all
patterns are unique.

Differential Revision: https://phabricator.services.mozilla.com/D147330
2022-05-27 17:02:04 +00:00
Luca Greco
1915f507fa Bug 1768522 - ExtensionBaseContextChild instances should not be active after navigating it to a page running in another process under fission. r=robwu
This patch is making sure that `context.active` is going to be `false` when an extension page
has been moved into the bfcache because the `browser` element where it was loading into has been navigated
to a page that needs to run in a different process.

This also match the expected behavior for a same process navigation (e.g. an extension page being navigated
to another extension page) and the changes in this patch do also fix Bug 1499129 which was already happening
for same process navigations (and it does the same also for an extension page moved to the bfcache because
of a cross-process navigation case tracked by this bug).

The test case included in this patch cover both same-process and cross-process navigations under fission
and non fissions jobs.

Differential Revision: https://phabricator.services.mozilla.com/D145919
2022-05-19 18:51:35 +00:00
Luca Greco
2fab75125b Bug 1759300 - Cancel suspend on idle if the extension EventPage has StreamFilter instances still active. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D145257
2022-05-09 20:33:28 +00:00
Mark Banner
919c2481a2 Bug 1766238 - Stop using the target argument for ChromeUtils.import in ExtensionCommon.jsm. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D144557
2022-04-27 08:38:33 +00:00
Shane Caraveo
9e2c9b1e0e Bug 1748558 persistence for menus events r=robwu,rpl
Differential Revision: https://phabricator.services.mozilla.com/D138488
2022-04-04 22:16:54 +00:00
Shane Caraveo
8def3b7c43 Bug 1748563 support persistent events in runtime api r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D137953
2022-03-30 23:48:00 +00:00
Rob Wu
8fa5db9a7c Bug 1748566 - Use PERSISTENT_EVENTS for storage.onChanged r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D142296
2022-03-30 21:02:40 +00:00
Shane Caraveo
e617aad86f Bug 1753850 implement runtime.onSuspend for non-persistent background r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D137950
2022-03-28 21:44:48 +00:00
Butkovits Atila
ca0650e33b Backed out changeset 8ca972dfa3d8 (bug 1753850) for causing Android Xpcshell failures. CLOSED TREE 2022-03-28 21:57:06 +03:00
Shane Caraveo
862d1d1f59 Bug 1753850 implement runtime.onSuspend for non-persistent background r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D137950
2022-03-28 16:46:43 +00:00
Shane Caraveo
cca0fcf211 Bug 1748525 implement idle timeout for extension event pages r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D137942
2022-03-23 22:48:40 +00:00
Butkovits Atila
4337e45873 Backed out changeset e9dcf342fa98 (bug 1748525) for causing xpcshell failures. CLOSED TREE 2022-03-23 23:01:12 +02:00
Shane Caraveo
b958675790 Bug 1748525 implement idle timeout for extension event pages r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D137942
2022-03-23 19:05:24 +00:00
Luca Greco
9164353dea Bug 1748561 - Changes to ExtensionAPIPersistent / EventManager classes to pass along addListener params. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D140730
2022-03-13 16:03:51 +00:00
Shane Caraveo
a5b36ca82f Bug 1757855 fix background startup and persistent listeners during addon upgrades r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D140154
2022-03-10 01:08:56 +00:00
Butkovits Atila
be3b21fbf2 Backed out changeset c295e6801d39 (bug 1757855) for causing failures at RemoteProcessMonitor. CLOSED TREE 2022-03-09 04:02:34 +02:00
Shane Caraveo
86bde10827 Bug 1757855 fix background startup and persistent listeners during addon upgrades r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D140154
2022-03-09 01:02:50 +00:00
Andreea Pavel
3b5dd4b5b1 Backed out changeset d705f8e9b4ee (bug 1757855) for multiple failures on a CLOSED TREE 2022-03-08 22:36:39 +02:00
Shane Caraveo
7ebf794a14 Bug 1757855 fix background startup and persistent listeners during addon upgrades r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D140154
2022-03-08 18:57:29 +00:00
Shane Caraveo
d38ab0c280 Bug 1748550 Event Persistence subclass to simplify use r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D139087
2022-03-02 03:59:48 +00:00
Shane Caraveo
45e1d04d9a Bug 1755589 make prime listener and cleanup more resilient r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D138973
2022-02-26 20:42:59 +00:00
Shane Caraveo
e38cc78870 Bug 1753308 fix extension startup in tests, remove delayed startup pref r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D137699
2022-02-19 15:52:26 +00:00
Shane Caraveo
0c10936d04 Bug 1748541 make all events persistable for event pages r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D135813
2022-01-28 03:55:41 +00:00
Shane Caraveo
afbca3636b Bug 1748524 sleep/waken functionality for background, restartable via persistent events r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D135812
2022-01-25 20:49:15 +00:00
Marian-Vasile Laza
9447e468f8 Backed out changeset 2f4c63b2e472 (bug 1748524) for causing xpcshell failures on test_ext_alarms.js. CLOSED TREE 2022-01-25 01:26:30 +02:00
Shane Caraveo
64d3fc1694 Bug 1748524 sleep/waken functionality for background, restartable via persistent events r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D135812
2022-01-24 21:18:28 +00:00
Shane Caraveo
a659dea469 Bug 1749871 make webRequest block startup only for blocking events r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D135810
2022-01-21 18:08:44 +00:00
Luca Greco
7d33f42e21 Bug 1728326 - Rename internal WebExtensions events related to the background script (from background-page into background-script). r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D124783
2021-11-05 21:27:05 +00:00
Marian-Vasile Laza
f89640f067 Backed out 10 changesets (bug 1728326) for causing build bustages. CLOSED TREE
Backed out changeset 39267f23ee63 (bug 1728326)
Backed out changeset 070f187c2005 (bug 1728326)
Backed out changeset f06e0af1bf81 (bug 1728326)
Backed out changeset d21475767077 (bug 1728326)
Backed out changeset 4ca5e36e3c71 (bug 1728326)
Backed out changeset fd700124d69b (bug 1728326)
Backed out changeset 5c8d87c04ac6 (bug 1728326)
Backed out changeset 247504b7ea84 (bug 1728326)
Backed out changeset de8879fc8126 (bug 1728326)
Backed out changeset ebf25d0924d6 (bug 1728326)
2021-11-05 22:48:14 +02:00
Luca Greco
4e5059499c Bug 1728326 - Rename internal WebExtensions events related to the background script (from background-page into background-script). r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D124783
2021-11-05 20:27:03 +00:00
Luca Greco
89c592bfd9 Bug 1688040 - part1.1: Prototype forwarding API request for local implemented API to ext-*.js modules. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D86198
2021-10-06 12:28:15 +00:00
Iulian Moraru
7e43871db1 Backed out 27 changesets (bug 1688040) for causing multiple failures. CLOSED TREE
Backed out changeset 85ba163b6423 (bug 1688040)
Backed out changeset 36cdc1600e66 (bug 1688040)
Backed out changeset 88395ab5a5b5 (bug 1688040)
Backed out changeset 8d33bdd8d0b8 (bug 1688040)
Backed out changeset fdbced7a94f3 (bug 1688040)
Backed out changeset 922ca2f20fa1 (bug 1688040)
Backed out changeset 7fc233bf144c (bug 1688040)
Backed out changeset 64221db54d98 (bug 1688040)
Backed out changeset 4d9b2a9dd247 (bug 1688040)
Backed out changeset c8d890f1a8e2 (bug 1688040)
Backed out changeset 81e957717eb1 (bug 1688040)
Backed out changeset b7dcade29dab (bug 1688040)
Backed out changeset 20e38838aa89 (bug 1688040)
Backed out changeset 08737e7ea047 (bug 1688040)
Backed out changeset b82645d5b7c7 (bug 1688040)
Backed out changeset db374d34839a (bug 1688040)
Backed out changeset 6a2ebb56325d (bug 1688040)
Backed out changeset 7d0ce555263f (bug 1688040)
Backed out changeset 15e0689a57f0 (bug 1688040)
Backed out changeset d7d6b1bec92a (bug 1688040)
Backed out changeset 615b683acb00 (bug 1688040)
Backed out changeset 49d3e1baf577 (bug 1688040)
Backed out changeset 30cc613912ce (bug 1688040)
Backed out changeset d413ec19bded (bug 1688040)
Backed out changeset cfdf6e87d820 (bug 1688040)
Backed out changeset f719b9d0bc25 (bug 1688040)
Backed out changeset 925f23a58da6 (bug 1688040)
2021-10-05 22:49:40 +03:00
Luca Greco
ae0b3dec24 Bug 1688040 - part1.1: Prototype forwarding API request for local implemented API to ext-*.js modules. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D86198
2021-10-05 17:05:35 +00:00
Tomislav Jovanovic
e9f6c7f260 Bug 1708243 - Part 3: Use actor messaging for tabs.detectLanguage, stop loading MessageChannel.jsm, r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D126623
2021-09-29 16:52:59 +00:00
Jasleen
95e398ca26 Bug 1716642 - Replaced calls to GlobalManager.extensionMap.get() with WebExtensionPolicy.getByID(). r=Standard8,kmag,robwu
Differential Revision: https://phabricator.services.mozilla.com/D118407
2021-06-24 15:06:17 +00:00