Commit Graph

129 Commits

Author SHA1 Message Date
Shane Caraveo
65bdc2eab9 Bug 1693403 support manifest versioning in schema r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D105821
2021-04-30 20:31:39 +00:00
Neil Deakin
efd22cee32 Bug 1649843, remove now unused legacy actor code, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D95206
2020-11-06 15:46:11 +00:00
Kris Maglione
9b9f8495d2 Bug 1660057: Add preferences for Fission rollout Normandy experiment. r=nika,marionette-reviewers,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91066
2020-09-25 02:01:15 +00:00
Razvan Maries
96e347488a Backed out changeset 737f0e3e2f94 (bug 1660057) for xpcshell perma failures. CLOSED TREE 2020-09-24 23:25:54 +03:00
Kris Maglione
ab4a388891 Bug 1660057: Add preferences for Fission rollout Normandy experiment. r=nika,marionette-reviewers,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91066
2020-09-24 18:35:58 +00:00
Nika Layzell
e9a2f4801a Bug 1589517 - Part 4: Remove sameProcessAsFrameLoader, r=zombie,mconley,farre,smacleod
The functionality has been fully subsumed by the new
initialBrowsingContextGroupId attribute, so it is no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D85653
2020-08-06 17:01:13 +00:00
Nika Layzell
eb7c846c0d Bug 1589517 - Part 3: Add initialBrowsingContextGroupId to extension browsers, r=zombie
This attribute can be used to force non-tab extension browsers to be loaded in
the correct BrowsingContextGroup, and also subsumes the existing
sameProcessAsFrameLoader uses in extension code.

Differential Revision: https://phabricator.services.mozilla.com/D85652
2020-08-06 17:01:10 +00:00
Luca Greco
4b67a5df1d Bug 1652500 - ContentPage browser should have CHROME_REMOTE_WINDOW chromeFlag if extension.remote is true. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D83350
2020-07-13 18:26:39 +00:00
Kris Maglione
9bddbcfdd1 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Kashav Madan
605779712e Bug 1580811 - Make the ContentPage browser work with out-of-process frames, r=nika,zombie
Differential Revision: https://phabricator.services.mozilla.com/D80084
2020-07-10 13:40:51 +00:00
Butkovits Atila
ab2eeddd49 Backed out 3 changesets (bug 1580811) for failures at test_ext_contentscript_xorigin_frame.js. CLOSED TREE
Backed out changeset 7733de7d4f5a (bug 1580811)
Backed out changeset d18f8e821cc7 (bug 1580811)
Backed out changeset f9c8318e3c01 (bug 1580811)
2020-07-10 03:07:12 +03:00
Kashav Madan
06e0d48641 Bug 1580811 - Make the ContentPage browser work with out-of-process frames, r=nika,zombie
Differential Revision: https://phabricator.services.mozilla.com/D80084
2020-07-09 21:34:38 +00:00
Emilio Cobos Álvarez
a95d02b280 Bug 1637475 - Flush layout when creating background pages so the browser element gets its frames created. r=mixedpuppy
Before bug 1584935, the frame for the browser element was created
directly after the .appendChild call, but after that we need to wait
for layout to happen in order to guarantee it.

The code was duplicated in ExtensionXPCShellUtils.jsm so I also put the
wait there.

Differential Revision: https://phabricator.services.mozilla.com/D76601
2020-06-22 17:05:07 +00:00
Rob Wu
c747ef0eba Bug 1623176 - Normalize URI in loadContentPage r=mixedpuppy
A test used `encodeURIComponent` on a query string and expected the
resulting URL to be comparable with URLs in a progress listener.
But `encodeURIComponent` doesn't escape an apostrophe (`'`), whereas
`'` is percent-encoded as `%27` via nsIURI.

To ensure that it works as expected, use `nsIURI::equals` to compare
URLs instead of doing string comparisons.

Differential Revision: https://phabricator.services.mozilla.com/D79304
2020-06-11 21:32:12 +00:00
Agi Sferro
55e9be5de8 Bug 1637680 - Register incognito permission early in tests. r=mixedpuppy
This is needed so that extensions can access incognito tabs during early
background script startup in tests.

Differential Revision: https://phabricator.services.mozilla.com/D78574
2020-06-08 15:43:52 +00:00
Butkovits Atila
43c0bc1263 Backed out changeset 671c6fcdb861 (bug 1637475) for perma failures on browser_report_site_issue.js. CLOSED TREE 2020-05-26 12:39:22 +03:00
Emilio Cobos Álvarez
dd07eec3dc Bug 1637475 - Wait until the browser element gets its frames created when creating background pages. r=mixedpuppy
Before bug 1584935, the frame for the browser element was created
directly after the .appendChild call, but after that we need to wait
for layout to happen in order to guarantee it.

We could manually flush layout, or do a double-RAF for that. I've gone
for the later.

The code was duplicated in ExtensionXPCShellUtils.jsm so I also put the
wait there.

Differential Revision: https://phabricator.services.mozilla.com/D76601
2020-05-26 03:07:01 +00:00
Dan Glastonbury
566fe3e750 Bug 1624550 - P4: Cleanup APIs for setting BrowsingContext::UseGlobalHistory. r=farre
This value is determined in Parent process and passed down to nsDocShell. Delete
the messages to pass the setting down and set it on the BrowsingContext in the
Parent process.

Refactor the code that determines to opt-out of using global history. Code
inspection determines that windowless browsing contexts want to opt-out as well
as any frame with `disableglobalhistory` attribute set on it.

Differential Revision: https://phabricator.services.mozilla.com/D72279
2020-05-08 03:28:44 +00:00
Agi Sferro
000f41ae57 Bug 1616625 - Move TabDelegate to be per-WebExtension and per-GeckoSession. r=mixedpuppy,snorp,esawin
Before this patch, the TabDelegate was "special" as in it had just one global
delegate that receives events for all extensions and sessions. This was done to
allow mochitests to call tabs.create and tabs.remove.

This hack is no longer needed as now we can notify the embedding layer that a
new extension has been installed and we have a way to list currently installed
extensions.

This patch makes TabDelegate behave the same as the other delegates
(ActionDelegate and MessageDelegate) and will allow further simplications of
the WebExtension Delegate code.

Differential Revision: https://phabricator.services.mozilla.com/D64799
2020-03-04 02:13:36 +00:00
shindli
dabf1eaf41 Backed out 3 changesets (bug 1616625) for causing xpcshell failures in xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_csp_custom_policies.js CLOSED TREE
Backed out changeset b43ca6507c9a (bug 1616625)
Backed out changeset c0e05f4f2db2 (bug 1616625)
Backed out changeset a1eb1e65a239 (bug 1616625)
2020-03-04 02:26:51 +02:00
Agi Sferro
e4729ac390 Bug 1616625 - Move TabDelegate to be per-WebExtension and per-GeckoSession. r=mixedpuppy,snorp,esawin
Before this patch, the TabDelegate was "special" as in it had just one global
delegate that receives events for all extensions and sessions. This was done to
allow mochitests to call tabs.create and tabs.remove.

This hack is no longer needed as now we can notify the embedding layer that a
new extension has been installed and we have a way to list currently installed
extensions.

This patch makes TabDelegate behave the same as the other delegates
(ActionDelegate and MessageDelegate) and will allow further simplications of
the WebExtension Delegate code.

Differential Revision: https://phabricator.services.mozilla.com/D64799
2020-03-03 23:19:03 +00:00
Shane Caraveo
91ef4e9f75 Bug 1614966 disable remote settings in webext xpcom r=Ehsan
Move a prior fix from bug 1582053 into the test ini files.  This allows other tests that use the test utils to also rely on remote settings working properly.

Differential Revision: https://phabricator.services.mozilla.com/D62810
2020-02-14 17:07:30 +00:00
Kris Maglione
ac36cf0bd5 Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748
2019-12-13 20:36:48 +00:00
Kris Maglione
7b2657b231 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-13 20:36:24 +00:00
Kris Maglione
8c0d38f33d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-13 20:36:16 +00:00
Emma Malysz
ba6b2f0a9b Bug 1601093, Rename the remaining .xul files to .xhtml in toolkit/ r=marionette-reviewers,mossop,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D55857
2019-12-11 17:44:54 +00:00
Gurzau Raul
c2d189a7a6 Backed out changeset dd809e835f2a (bug 1601093) for eslint failures at alert.xhtml and commonDialog.xhtml on a CLOSED TREE. 2019-12-11 19:27:28 +02:00
Emma Malysz
abfeb3aaa3 Bug 1601093, Rename the remaining .xul files to .xhtml in toolkit/ r=marionette-reviewers,mossop,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D55857
2019-12-11 17:02:20 +00:00
Kris Maglione
c87948a206 Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748
2019-12-10 23:07:41 +00:00
Kris Maglione
eb68f8b548 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-10 23:07:21 +00:00
Kris Maglione
ad3537fc50 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-10 23:07:13 +00:00
Kris Maglione
038e9efbd4 Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748
2019-12-07 18:44:35 +00:00
Kris Maglione
6fb2c35351 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-07 18:44:34 +00:00
Kris Maglione
88fbf261f8 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-07 19:11:58 +00:00
Kris Maglione
d446581341 Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53748
2019-12-06 22:14:43 +00:00
Kris Maglione
487c4fe9c7 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-06 22:14:22 +00:00
Kris Maglione
e59706f08a Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-06 22:14:14 +00:00
Ehsan Akhgari
e1cf0e9206 Bug 1582053 - Disable the remote settings database creation instead of the server in web extension xpcshell tests; r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46664
2019-09-23 19:28:12 +00:00
Bogdan Tara
a7bff0fe9f Backed out changeset b281b340b9f7 (bug 1582053) for test_ext_proxy_socks.js failures CLOSED TREE 2019-09-23 10:36:55 +03:00
Ehsan Akhgari
e91bc2feb0 Bug 1582053 - Disable the remote settings database creation instead of the server in web extension xpcshell tests; r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46664
2019-09-21 18:08:10 +00:00
Ehsan Akhgari
d1ea1ff814 Bug 1582053 - Disable the remote settings server in web extension xpcshell tests; CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D46498
2019-09-19 23:48:50 +03:00
Rob Wu
ba5caba6b4 Bug 1570715 - Treat (deprecation) warnings as errors r=rpl
Add new preference `extensions.webextensions.warnings-as-errors` that
defaults to `true` in tests. Tests that expect warnings are modified
to briefly flip the pref for the specific part of the test that needs
an exception.

As part of the refactor, log entries for schema entries that contain
`"onError": "warn"` will now be prefixed by "Warning" instead of
"Error", to be consistent with the change from bug 1495908.

Differential Revision: https://phabricator.services.mozilla.com/D40548
2019-09-16 16:35:59 +00:00
Narcis Beleuzu
03798647d0 Backed out 2 changesets (bug 1570715) for causing tp6m raptor failures
Backed out changeset e7364a10a663 (bug 1570715)
Backed out changeset 51824b1dda97 (bug 1570715)
2019-09-14 16:00:00 +03:00
Rob Wu
5b549126d7 Bug 1570715 - Treat (deprecation) warnings as errors r=rpl
Add new preference `extensions.webextensions.warnings-as-errors` that
defaults to `true` in tests. Tests that expect warnings are modified
to briefly flip the pref for the specific part of the test that needs
an exception.

As part of the refactor, log entries forschema entries that contain
`"onError": "warn"` will now be prefixed by "Warning" instead of
"Error", to be consistent with the change from bug 1495908.

Differential Revision: https://phabricator.services.mozilla.com/D40548
2019-09-12 21:39:51 +00:00
Rob Wu
0160662b45 Bug 1575190 - Properly unload test add-on after manager restart r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D42670
2019-08-22 11:34:30 +00:00
Shane Caraveo
197b0f88ef Bug 1568013 set initial value of REMOTE_CONTENT_SCRIPTS to the autostart pref r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D38933
2019-07-24 18:44:31 +00:00
Victor Porof
5d695e0b7f Bug 1561435 - Format toolkit/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36052
2019-07-05 11:14:05 +02:00
Ehsan Akhgari
24fd5a68b2 Bug 1557887 - Part 6: Pass a storage principal to the rest of the call sites for createAboutBlankContentViewer(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D34460
2019-06-12 09:07:33 +00:00
Brendan Dahl
a0aed74712 Bug 1551320 - Replace all CreateElement calls in XUL documents with CreateXULElement. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D31295
2019-05-20 16:50:28 +00:00
Shane Caraveo
3c7abe9ff5 Bug 1391992 add cookiestoreid to proxy and webrequest details r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D28929
2019-04-29 18:36:17 +00:00