Commit graph

2985 commits

Author SHA1 Message Date
Andrew Halberstadt
335c6e91a5 Bug 1713895 - Remove fission skip-if annotations from browser/components/extensions/test/browser/browser.ini, r=intermittent-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D117076
2021-06-08 18:25:17 +00:00
Luca Greco
7ccbc9270c Bug 1707644 - Allow in browser_ext_devtools_inspectedWindow_reload rejections triggered by devtools requests sent on a closing RDP connection. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D116999
2021-06-07 16:43:55 +00:00
Harry Twyford
8c2a61dafd Bug 1677126 - Part 4 - Port remote tab tests and update them to expect result flex. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D114895
2021-06-02 22:43:29 +00:00
Sonia Singla
c2ffd0413b Bug 1661517 - Removed extensions.allowPrivateBrowsingByDefault preference. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D97094
2021-06-02 21:48:05 +00:00
Andrew Halberstadt
f84d5f3016 Bug 1694824 - [ci] Annotate browser-chrome manifests for new fission failures, r=jmaher,extension-reviewers,preferences-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D116276
2021-06-02 19:22:25 +00:00
Nicolas Chevobbe
4faad2f0f5 Bug 1712739 - [devtools] Fold custom WebConsoleFront#evaluateJSAsync method into scriptCommand#execute. r=ochameau.
Tests that were using `evaluateJSAsync` are updated, either by using the new command,
or by awaiting for the `evaluationResult` event.
A couple chrome tests were moved to devtools/shared/commands/js/tests/ and turned
into browser tests, and some of them were completely removed as we tested the
features in mochitests as well.

Differential Revision: https://phabricator.services.mozilla.com/D116248
2021-06-02 13:15:06 +00:00
Mark Banner
22086c6185 Bug 1641913 - Change browser_ext_settings_overrides_default_search.js to use a custom search engine list. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D115826
2021-06-01 20:17:44 +00:00
Luca Greco
f7d963b533 Bug 1438663 - Fix browserAction focus test intermittency in browser_ext_popup_focus.js and renable it. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D116019
2021-06-01 16:54:14 +00:00
Rob Wu
75c0cde5b5 Bug 1694533 - Fix erroneous bookmarkGuid access in ext-menus.js in library window r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D116421
2021-06-01 10:20:34 +00:00
Rob Wu
d9b335e6b2 Bug 1713674 - Remove unsupported bookmarks.import/export definition r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D116422
2021-05-31 21:21:19 +00:00
Emilio Cobos Alvarez
f80600c6d2 Bug 1708735 - Make the arrowpanel code more generic. r=dao,zombie
Share the concept of a panel content with all other menupopups / panels.

This avoids importing global.css in the shadow tree, and renames the
arrowcontent part to just "content", since we want to introduce a
"content" part for other panels.

This shouldn't change behavior but makes bug 1708136 a matter of
tweaking a couple CSS rules and fixing up test failures.

Differential Revision: https://phabricator.services.mozilla.com/D113990
2021-05-30 12:31:49 +00:00
Butkovits Atila
510d54c4f7 Backed out changeset 229e905d571e (bug 1708735) for multiple regressions. CLOSED TREE 2021-05-30 14:27:20 +03:00
Emilio Cobos Alvarez
24058f2dca Bug 1708735 - Make the arrowpanel code more generic. r=dao,zombie
Share the concept of a panel content with all other menupopups / panels.

This avoids importing global.css in the shadow tree, and renames the
arrowcontent part to just "content", since we want to introduce a
"content" part for other panels.

This shouldn't change behavior but makes bug 1708136 a matter of
tweaking a couple CSS rules and fixing up test failures.

Differential Revision: https://phabricator.services.mozilla.com/D113990
2021-05-28 11:56:07 +00:00
Rob Wu
4aa25c2995 Bug 1713120 - Fix TypeError: n.getAttribute is not a function in ext-pageAction.js r=rpl
The reported error happens because `.parentNode` can be a document,
which doesn't implement the Element interface. Using `.parentElement`
solves this issue.

And while I'm fixing this: move the logic behind the menu ID check, so
that the logic is not unnecessarily run for non-pageAction contextmenus.

Differential Revision: https://phabricator.services.mozilla.com/D116138
2021-05-27 17:30:03 +00:00
Gijs Kruitbosch
a8f519dda5 Bug 1712141 - fix intermittent browser_ext_menus.js test failures caused by bookmarks toolbar race, r=rpl
This is a bit peculiar. When we show the bookmarks toolbar, we create its children. When it then
gets hidden, they do not get removed. When we then re-enable the bookmarks toolbar, we call
`rebuild` on the next tick (because of the `await` in `init` in PlacesToolbarHelper), which
synchronously removes all the children of the toolbar, and then rebuilds the places node. It
does that async because it avoids doing synchronous layout flushes.

This breaks in the test - and the closer you put the "show the bookmarks toolbar" code to
the code that tries to open the context menu, the more reliably it breaks, because we try
to show the context menu right after we synchronously remove everything, and before we've
(asynchronously) put content back.

To avoid the raciness here, we wait for the custom event in the places toolbar to indicate
we're done building it.

Differential Revision: https://phabricator.services.mozilla.com/D116118
2021-05-27 15:48:31 +00:00
Christoph Kerschbaumer
77a16b1cc6 Bug 1711422: Update PBM tests within browser/base to work with https-first-mode enabled r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D116014
2021-05-27 14:16:15 +00:00
Michelle Goossens
f5a803b567 Bug 1711500 - Remove checks for gProton and gProtonDoorhangers smart pref getters from tests r=Gijs,robwu
Differential Revision: https://phabricator.services.mozilla.com/D115748
2021-05-24 13:46:39 +00:00
Michelle Goossens
6af282754f Bug 1711498 - Remove checks for protonAppMenuEnabled or protonToolbarEnabled smart pref getters from tests r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D115651
2021-05-21 15:51:13 +00:00
Michelle Goossens
16dd2093e1 Bug 1711497 - Remove browser.proton.enabled checks/setters from tests r=Gijs,marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D115539
2021-05-20 13:03:51 +00:00
Harry Twyford
a06f041cc3 Bug 1706479 - Wrap page action icons in an hbox. r=morgan,adw
To resolve this bug, we need page action icons and semantic page action nodes to be separate. That way, we can apply filters to the icons without also filtering the nodes' outlines. This means the semantic meaning of the page action button must move up a level, to the enclosing hbox. This means reverting bug 1482025, so I'd like a11y review on this patch.

Differential Revision: https://phabricator.services.mozilla.com/D114131
2021-05-19 20:37:19 +00:00
Nicolas Chevobbe
c17e990ce7 Bug 1711895 - Remove unnecessary call to _updateLastExpressionResult in ParentDevToolsInspectorSidebar#close. r=rpl.
Differential Revision: https://phabricator.services.mozilla.com/D115488
2021-05-19 16:58:05 +00:00
lyavor
23b2ae0a74 Bug 1711697 Update PBM tests within browser/components/extensions/test/browser/browser_ext_incognito_popup.js to work with https-first-mode enabled r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D115373
2021-05-19 12:16:57 +00:00
lyavor
3bc44cb166 Bug 1711714 Update PBM tests within browser/components/extensions/test/browser/browser_ext_tabs_zoom to work with https-first-mode enabled. r=kmag,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D115378
2021-05-19 12:13:36 +00:00
Csoregi Natalia
d7ca7f4485 Backed out changeset e90263d64998 (bug 1706479) for failures on browser_parsable_css.js. CLOSED TREE 2021-05-18 18:21:47 +03:00
Harry Twyford
8cb8e99863 Bug 1706479 - Wrap page action icons in an hbox. r=morgan,adw
To resolve this bug, we need page action icons and semantic page action nodes to be separate. That way, we can apply filters to the icons without also filtering the nodes' outlines. This means the semantic meaning of the page action button must move up a level, to the enclosing hbox. This means reverting bug 1482025, so I'd like a11y review on this patch.

Differential Revision: https://phabricator.services.mozilla.com/D114131
2021-05-18 13:33:06 +00:00
lyavor
963fd37a46 Bug 1711455 Update URL in test cases of browser/components/extensions/test/browser/browser_ext_incognito_views.js. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D115210
2021-05-17 17:32:44 +00:00
Silke Hofmann
3b01fc4248 Bug 1710273 - Stop using ChromeUtils.import(..., null) for importing EnterprisePolicies.jsm. r=nhnt11,extension-reviewers,preferences-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D115024
2021-05-12 23:16:33 +00:00
Daisuke Akatsuka
dd6cff69ec Bug 1511062: Remove onItemMoved from nsINavBookmarkObserver. r=mak
Depends on D102574

Differential Revision: https://phabricator.services.mozilla.com/D102575
2021-05-06 04:24:35 +00:00
Daisuke Akatsuka
689f832ca8 Bug 1511062: Apply bookmark-moved event. r=mak
Depends on D102573

Differential Revision: https://phabricator.services.mozilla.com/D102574
2021-05-06 04:24:35 +00:00
Daisuke Akatsuka
2fbaab105d Bug 1511062: Remove old/new parent id from onItemMoved in nsINavBookmarkObserver. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D102572
2021-05-06 04:24:34 +00:00
Csoregi Natalia
ead13148c2 Backed out 4 changesets (bug 1511062) for causing bustage on nsNavHistoryResult.cpp. CLOSED TREE
Backed out changeset ed9ac8c3097b (bug 1511062)
Backed out changeset dc8c9488cf1a (bug 1511062)
Backed out changeset 2cf6fca33bf3 (bug 1511062)
Backed out changeset 87b0bbbcb0e6 (bug 1511062)
2021-05-06 05:53:12 +03:00
Daisuke Akatsuka
3ddb5240c2 Bug 1511062: Remove onItemMoved from nsINavBookmarkObserver. r=mak
Depends on D102574

Differential Revision: https://phabricator.services.mozilla.com/D102575
2021-05-06 02:29:44 +00:00
Daisuke Akatsuka
459dae23fa Bug 1511062: Apply bookmark-moved event. r=mak
Depends on D102573

Differential Revision: https://phabricator.services.mozilla.com/D102574
2021-05-06 02:29:44 +00:00
Daisuke Akatsuka
b45071c413 Bug 1511062: Remove old/new parent id from onItemMoved in nsINavBookmarkObserver. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D102572
2021-05-06 02:29:43 +00:00
Harry Twyford
ee592d0f15 Bug 1708788 - Update remaining extension icons. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D114008
2021-05-01 13:03:47 +00:00
Shane Caraveo
8b91be585f Bug 1697059 require favicon to be in the extension xpi r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D108270
2021-04-30 20:31:41 +00:00
Shane Caraveo
7d11b0aa66 Bug 1687762 fix deprecated extension api use r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D111966
2021-04-30 20:31:40 +00:00
Luca Greco
166d68dc58 Bug 1707214 - Ensure we don't cache dataTransfer.files when accessed by expanded principals. r=mixedpuppy,nika
This doesn't seem a recent regression, the underlying issue is that we don't account for
the Extensions content scripts (and user scripts) as other principals that may be able
to intercept a drop event and then try to access the dataTransfer.files property before
the webpage does.

As the big inline comment inside DataTransferItemList::Files does explain, keeping a copy
of the FileList when accessed from a webpage principal is necessary for spec compliance,
while we don't cache it when it is being accessed by system principal code.
(see https://searchfox.org/mozilla-central/rev/6cbe34b441f7c7c29cd1e5f0e19c7000142f1423/dom/events/DataTransferItemList.cpp#200-242)

The changes in this patch are preventing us from caching the file list also when accessed
by expanded principals (which are never going to be used for any web page, but they are used
by both Extensions content scripts and Extensions user scripts), along with adding a new.
regression test to prevent it from regressing without being noticed.

Without this patch, when an extension content script or user script does intercept the
drop event and access the dataTransfer.files property, we cache the FileList created
for the ExpandedPrincipal associated to the Extension script and after that if the page
try to access it we do return null because the webpage principal doesn't subsume the
expanded principal (which is also why the issue isn't triggered if the webpage does
access it first). In debug build we crash because we hit the assertion in
DataTransferItemList::Files right before the earlier nullptr return we hit on release.

Differential Revision: https://phabricator.services.mozilla.com/D113555
2021-04-30 19:48:41 +00:00
Richa Sharma
59b03a5522 Bug 1706617 - Enabled "privacy.userContext.enabled" pref to fix containerIsolation test failures on beta. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D113305
2021-04-28 23:10:24 +00:00
Gijs Kruitbosch
4d901c398b Bug 1705084 - remove icons from builtin items in the sidebar selector dropdown, and stop using checkbox items in it altogether, r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D113652
2021-04-28 21:45:06 +00:00
Nicolas Chevobbe
e18a8759d7 Bug 1706098 - [devtools] Cleanup browser_ext_devtools_inspectedWindow_reload.js. r=extension-reviewers,rpl.
Remove unused assignment in test.

Depends on D112980

Differential Revision: https://phabricator.services.mozilla.com/D113339
2021-04-26 13:35:14 +00:00
Nicolas Chevobbe
7f353c071d Bug 1706098 - [devtools] Make inspectedWindow.reload with userAgent implementation match Chrome's one and add support for Fission. r=ochameau,rpl,devtools-backward-compat-reviewers.
Our implementation was setting a custom user agent on the document
before reloading it, and then resetting it as soon as the document
was loaded.
In Chrome, once the webextension sets the user agent, it persists
across reload and navigations, and is reset only when the toolbox
is closed.
This patch is adding similar behaviour to our implementation.

We also set the currentUserAgent flag on the browsing context from
the parent process instead of content. This is re-using the
targetConfigurationCommand, which also handle for us resetting the
user agent when the toolbox closes.

The existing test is expanded so it includes a remote iframe to ensure
the feature is supported on Fission. It also check the value of the user
agent through navigator.userAgent, and not only through the request header.

Differential Revision: https://phabricator.services.mozilla.com/D112980
2021-04-26 12:22:45 +00:00
Alexandru Michis
c490c3e112 Backed out changeset 20d89921f646 (bug 1706098) for causing bc failures in browser_ext_devtools_inspectedWindow_reload.js
CLOSED TREE
2021-04-26 12:39:07 +03:00
Nicolas Chevobbe
f91fe8a159 Bug 1706098 - [devtools] Make inspectedWindow.reload with userAgent implementation match Chrome's one and add support for Fission. r=ochameau,rpl,devtools-backward-compat-reviewers.
Our implementation was setting a custom user agent on the document
before reloading it, and then resetting it as soon as the document
was loaded.
In Chrome, once the webextension sets the user agent, it persists
across reload and navigations, and is reset only when the toolbox
is closed.
This patch is adding similar behaviour to our implementation.

We also set the currentUserAgent flag on the browsing context from
the parent process instead of content. This is re-using the
targetConfigurationCommand, which also handle for us resetting the
user agent when the toolbox closes.

The existing test is expanded so it includes a remote iframe to ensure
the feature is supported on Fission. It also check the value of the user
agent through navigator.userAgent, and not only through the request header.

Differential Revision: https://phabricator.services.mozilla.com/D112980
2021-04-26 08:19:40 +00:00
Joel Maher
8a9f37b534 Bug 1706716 green up mda, xpcshell, browser-chrome, reftest for apple silicon. r=necko-reviewers,extension-reviewers,preferences-reviewers,application-update-reviewers,zombie,ahal,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D113001
2021-04-22 18:39:40 +00:00
Shane Caraveo
20c17fee02 Bug 1705835 remove unused engineAdded extension setting r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D112432
2021-04-22 15:33:51 +00:00
Markus Stange
36b023eab6 Bug 1704879 - Use activateItem in browser/components/extensions/test/browser/head.js even if a button is used. r=robwu
Depends on D111979

Differential Revision: https://phabricator.services.mozilla.com/D111980
2021-04-20 22:13:25 +00:00
Markus Stange
1ec4d9e9cb Bug 1704948 - Forward mouse button to menuitem command event. r=smaug,robwu
Differential Revision: https://phabricator.services.mozilla.com/D111956
2021-04-20 17:44:16 +00:00
Richa Sharma
6db19c975e Bug 1690736 - Change webnavigation API internal to support container access. r=rpl,robwu
Differential Revision: https://phabricator.services.mozilla.com/D104355
2021-04-20 12:59:26 +00:00
Richa Sharma
ef3cb771f8 Bug 1683058 - Remove unused isPrivate from ext-browser.js. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D104055
2021-04-20 12:59:26 +00:00