Commit Graph

2947 Commits

Author SHA1 Message Date
Richa Sharma
8d273ad8f9 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
49c72ce0fd 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
a713fefe3c 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
1152c3dfe9 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
b431633a7f 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
3ef843193a 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
5a5bc0c176 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
1034bc2ebf 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
bb773bed9c 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
9590831a70 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
e6f660a9d0 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
dec5980775 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
Richa Sharma
9eed107905 Bug 1683058 - Change tabs API internals to support container access. r=robwu,rpl
Differential Revision: https://phabricator.services.mozilla.com/D100232
2021-04-20 12:59:26 +00:00
Florian Quèze
5f252c4411 Bug 1703583 - fix tests that keep waitForEvent or topicObserved promises pending, r=Gijs,zombie.
Differential Revision: https://phabricator.services.mozilla.com/D111116
2021-04-19 21:56:05 +00:00
Mark Striemer
f7abc5c252 Bug 1701691 - -moz-toolbar-prefers-color-scheme for dark theme detection r=desktop-theme-reviewers,emilio,harry
This adds a new @media query -moz-toolbar-prefers-color-scheme which works like
prefers-color-scheme but is set based on the browser theme rather than the OS
theme. The background colour of the toolbar is used to determine the theme
dark/light preference. This will be used for in-content common.css pages and
other UI elements that include that stylesheet in the browser-chrome through
shadow DOM.

The end result is that about: pages, infobars, and modals will now "match" the
browser theme (just light/dark mode, not LWT theming support).

Differential Revision: https://phabricator.services.mozilla.com/D111486
2021-04-18 22:22:49 +00:00
Emilio Cobos Álvarez
0e55bca38f Bug 1705757 - Move FrameLoader.print to BrowsingContext.print. r=nika,remote-protocol-reviewers,marionette-reviewers,extension-reviewers,zombie
This makes it trivial to choose the right BrowserParent to print a
browsing context, by removing the OuterWindowID / FrameLoader
indirections.

Differential Revision: https://phabricator.services.mozilla.com/D112412
2021-04-17 18:41:11 +00:00
Tomislav Jovanovic
9feb88f6ce Bug 1704772 - Fix extension context menu checkbox items and vertical alignment r=Gijs
1) Stop setting the image attribute for extension menu checkbox items.  They
don't work with the new custom chekbox appearance CSS, and not shown anyway.

2) When gutter is visible, stop padding menu items with an icon outside of it,
and use the gutter as a place for said icons.

3) Adjust margin for menu items with icons to align the text with the rest of
the menu items when the gutter is visible.

Differential Revision: https://phabricator.services.mozilla.com/D112267
2021-04-16 21:05:53 +00:00
Noemi Erli
069b9f637c Backed out changeset 1c9943dacbdb (bug 1701691) for causing failures in browser_toolbar_prefers_color_scheme.js CLOSED TREE 2021-04-16 05:29:10 +03:00
Mark Striemer
b41b10a8db Bug 1701691 - -moz-toolbar-prefers-color-scheme for dark theme detection r=desktop-theme-reviewers,emilio,harry
This adds a new @media query -moz-toolbar-prefers-color-scheme which works like
prefers-color-scheme but is set based on the browser theme rather than the OS
theme. The background colour of the toolbar is used to determine the theme
dark/light preference. This will be used for in-content common.css pages and
other UI elements that include that stylesheet in the browser-chrome through
shadow DOM.

The end result is that about: pages, infobars, and modals will now "match" the
browser theme (just light/dark mode, not LWT theming support).

Differential Revision: https://phabricator.services.mozilla.com/D111486
2021-04-16 00:43:46 +00:00
Csoregi Natalia
e7c2f99111 Backed out changeset 79c1392f7c43 (bug 1701691) for failures on browser_toolbar_prefers_color_scheme.js. CLOSED TREE 2021-04-15 22:18:09 +03:00
Mark Striemer
3c9f5fb249 Bug 1701691 - -moz-toolbar-prefers-color-scheme for dark theme detection r=desktop-theme-reviewers,emilio,harry
This adds a new @media query -moz-toolbar-prefers-color-scheme which works like
prefers-color-scheme but is set based on the browser theme rather than the OS
theme. The background colour of the toolbar is used to determine the theme
dark/light preference. This will be used for in-content common.css pages and
other UI elements that include that stylesheet in the browser-chrome through
shadow DOM.

The end result is that about: pages, infobars, and modals will now "match" the
browser theme (just light/dark mode, not LWT theming support).

Differential Revision: https://phabricator.services.mozilla.com/D111486
2021-04-15 18:17:07 +00:00
Mark Banner
c9be59b5ad Bug 1702454 - Re-enabling an add-on that overrides search engine parameters shouldn't cause a prompt. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D110562
2021-04-15 15:57:41 +00:00
Narcis Beleuzu
2fd43d5a0b Backed out 7 changesets (bug 1704948, bug 1704879) for bc failures on browser_ext_menus_capture_secondary_click.js
Backed out changeset 02705918c4bf (bug 1704879)
Backed out changeset 79945b876a1d (bug 1704879)
Backed out changeset eb725de20b11 (bug 1704948)
Backed out changeset 454597ac2ba3 (bug 1704948)
Backed out changeset a43a8ef206ea (bug 1704948)
Backed out changeset 2369e321069e (bug 1704948)
Backed out changeset bdf396edd692 (bug 1704948)
2021-04-15 03:30:52 +03:00
Markus Stange
28db8aa186 Bug 1705216 - Use activateItem in browser/components/extensions/test/browser/browser_ext_tabs_executeScript_good.js. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D112097
2021-04-14 22:36:07 +00:00
Markus Stange
1ad1d61abd 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-14 22:24:31 +00:00
Markus Stange
07f0db0247 Bug 1704948 - Forward mouse button to menuitem command event. r=smaug,robwu
Differential Revision: https://phabricator.services.mozilla.com/D111956
2021-04-14 21:23:28 +00:00
Markus Stange
3ff223f072 Bug 1704875 - For now, keep synthesizing events on menus if a mouse button is set. r=robwu
This capability is used by browser_ext_menus_capture_secondary_click.js, which
checks that the mouse button is correctly propagated when clicking menu items.
Once bug 1704879 is fixed and activateItem supports specifying a mouse button,
we can revert this patch again.

Differential Revision: https://phabricator.services.mozilla.com/D111901
2021-04-13 20:22:39 +00:00
Markus Stange
8f4930ace0 Bug 1704875 - Don't synthesize events on menus in browser/components/extensions/test/browser/head.js. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D111673
2021-04-13 20:22:38 +00:00
Markus Stange
17abcf7c75 Bug 1704870 - Don't synthesize events on menus in browser/components/extensions/test/browser/browser_ext_user_events.js. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D111889
2021-04-13 17:54:07 +00:00
Mike Conley
9d603a717d Bug 1686315 - Fix up some tests to pass with content prompt subdialogs enabled or disabled. r=Gijs
Batch 1 of 2.

Differential Revision: https://phabricator.services.mozilla.com/D110342
2021-04-13 15:51:48 +00:00
Harry Twyford
d397578af3 Bug 1704474 - Remove pin/unpin page action context menu items. r=adw,fluent-reviewers,extension-reviewers,flod,zombie
The bug calls for these items to be hidden with JS, but they were going to be removed anyways post-Proton. The removal of some subtests in browser/base/content/test/pageActions tests is consistent with [this comment](https://searchfox.org/mozilla-central/rev/d9f6cded535d202a9ade4a530e653e659bcb5bbd/browser/base/content/test/pageActions/browser.ini#7), which says that were are removing that test coverage post-Proton anyways.

Differential Revision: https://phabricator.services.mozilla.com/D111713
2021-04-13 13:24:59 +00:00
Shane Caraveo
f259d96a14 Bug 1698619 fix updating homepage setting on updates and for localization r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D110717
2021-04-12 18:58:27 +00:00
Luca Greco
e61fdb8e1b Bug 1703889 - Ensure hidden extension pageAction are not visible in the urlbar overflow menu on Proton. r=mixedpuppy,mak
Differential Revision: https://phabricator.services.mozilla.com/D111423
2021-04-12 12:06:59 +00:00
Alexandre Poirot
347b511b9e Bug 1696374 - [devtools] Migrate from targetList to targetCommand in WebExt codebase. r=rpl,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110389
2021-04-12 07:59:53 +00:00
Mark Striemer
52f4ff9a99 Bug 1702330 - Fix browser_ext_slow_script.js proton infobars r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D111357
2021-04-10 19:56:12 +00:00
Dorel Luca
275bea067f Backed out 9 changesets (bug 1702330) for Mochitest failures in toolkit/components/url-classifier/tests/mochitest/test_reporturl.html. CLOSED TREE
Backed out changeset f84605e6fc8b (bug 1702330)
Backed out changeset 79c63bf11b29 (bug 1702330)
Backed out changeset 5425a2312f6e (bug 1702330)
Backed out changeset d76516e0d07d (bug 1702330)
Backed out changeset 3b75ffae171a (bug 1702330)
Backed out changeset 4bb6ceb6adb3 (bug 1702330)
Backed out changeset 607be325b4e8 (bug 1702330)
Backed out changeset 4b345ea924cc (bug 1702330)
Backed out changeset c7f0de372b21 (bug 1702330)
2021-04-10 07:48:08 +03:00
Mark Striemer
a0e19e1c22 Bug 1702330 - Fix browser_ext_slow_script.js proton infobars r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D111357
2021-04-10 00:30:41 +00:00
Marco Bonardo
3977844bfa Bug 1703274 - Enable Proton Urlbar. r=jaws,extension-reviewers,zombie,rpl
Differential Revision: https://phabricator.services.mozilla.com/D110998
2021-04-09 18:20:21 +00:00
Dorel Luca
b2afaf19c1 Backed out 8 changesets (bug 1702330)for Browser-chrome failures in est/popups/browser_popup_blocker.js. CLOSED TREE
Backed out changeset b81511f8e157 (bug 1702330)
Backed out changeset 15f60f1d3f14 (bug 1702330)
Backed out changeset 809af1f94b4b (bug 1702330)
Backed out changeset 63cec3eadb4f (bug 1702330)
Backed out changeset b9964fb4dd70 (bug 1702330)
Backed out changeset 1e5ccb47056e (bug 1702330)
Backed out changeset 65faaeeb2339 (bug 1702330)
Backed out changeset e72fb8b52609 (bug 1702330)
2021-04-09 20:21:35 +03:00
Mark Striemer
d21a16de83 Bug 1702330 - Fix browser_ext_slow_script.js proton infobars r=mconley
Depends on D111356

Differential Revision: https://phabricator.services.mozilla.com/D111357
2021-04-09 15:26:27 +00:00
Cosmin Sabou
3063be1402 Backed out changeset bd396182f84a (bug 1703274) for causing wpt failures on shape-outside-shape-arguments-000.html. CLOSED TREE 2021-04-09 17:51:48 +03:00
Marco Bonardo
d5fff0d93b Bug 1703274 - Enable Proton Urlbar. r=jaws,extension-reviewers,zombie,rpl
Differential Revision: https://phabricator.services.mozilla.com/D110998
2021-04-09 11:05:17 +00:00
Luz De La Rosa
554e151b36 Bug 1703626 - Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_ext_openPanel.js. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D111284
2021-04-08 19:55:15 +00:00
Marco Bonardo
42e690070d Bug 1703378 - Fix browser_ext_menus.js for proton urlbar. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D111271
2021-04-08 18:57:28 +00:00
Emma Malysz
3342351c34 Bug 1703379, fix failures in browser_ext_pageAction_click_types.js for proton urlbar pref r=mak,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D111172
2021-04-08 18:24:22 +00:00
Edgar Chen
6c7d23a661 Bug 1677334 - Part 3: Remove Mac-specific check for click event; r=Gijs
Now we won't dispatch click event at all when ctrl key is pressed on Mac, so we
don't need those Mac-specific checks.

This patch reverts part of https://hg.mozilla.org/mozilla-central/rev/69785d2dfbf2
and revise the tests accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D110609
2021-04-07 11:23:46 +00:00
Edgar Chen
261679ba79 Bug 1677334 - Part 2: Remove Mac-specific check for click event on xul frame; r=NeilDeakin
Now we won't dispatch click event at all when ctrl key is pressed on Mac, so we
don't need those Mac-specific checks.

This patch reverts part of https://hg.mozilla.org/mozilla-central/rev/d8726d18021e
and revise the tests accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D110608
2021-04-07 11:23:45 +00:00
Emilio Cobos Álvarez
82bda9ae67 Bug 1698132 - Convert proton pref checks from @supports rules to media features. r=Gijs
This means that dynamic changes will be handled correctly, we can use
StaticPrefs, etc.

Differential Revision: https://phabricator.services.mozilla.com/D110816
2021-04-05 20:48:05 +00:00
Luca Greco
79ea5f90e7 Bug 1702059 - Use PromptParent.openContentPrompt for about:addons options page modals. r=mconley,mixedpuppy
This is likely the low risky option:

- in this patch: identify the modal prompts triggered by extensions options page embedded in about:addons and use the openContenPrompt
  for them

- in a separate follow up issue (to be files), once we are ready to rip off the content prompt code
  (and the related about:config pref):
  - stop using openContentPrompt
  - remove the stack XUL element currently used in about:addons to host the content prompts
  - adapt the test case to the new prompts (e.g. using PromptTestUtils to wait for the modal prompt),

Differential Revision: https://phabricator.services.mozilla.com/D110530
2021-04-01 18:31:16 +00:00
Alexandru Michis
e7aca0ae80 Backed out changeset dfa41bd4757e (bug 1702059) for causing bc failures in browser_library_warnOnOpen.js
CLOSED TREE
2021-04-01 19:09:46 +03:00