Commit graph

2985 commits

Author SHA1 Message Date
Richa Sharma
fd0ae3c342 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
c7da51d612 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
209f987106 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
9afefdd884 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
c25360b83d 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
f90389736b 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
53099a968e 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
5cfbff72cd 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
67dde35bda 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
6ea0ba649c 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
daa77699e2 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
fd56366e5e 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
689f82bc81 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
ac179ed1ba 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
6278623835 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
06db1fec76 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
c4ff07bea0 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
599de83389 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
4c430fb4a6 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
eaa5799976 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
1bdc1299b6 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
61d06dc2ee 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
f6afdbd0d1 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
26ac39c8d5 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
03bb0296f9 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
2c982d3c01 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
7c6d9844e5 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
5b5345054b 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
13826a4c50 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
af19ef5dc4 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
9deb85ab75 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
fc747114b5 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
d3a8f06fa5 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
9dc32348bb 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
142488d3c4 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
5ddee7313f 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
7c9741ae5d 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
1a6d343622 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
Luca Greco
549ae972d2 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 15:07:01 +00:00
Alexandre Poirot
c8f91a99da Bug 1699493 - [devtools] Migrate WebExtInspectedWindow front to a command. r=nchevobbe,rpl
- implement the new "inspected-window" command
- move WebExtensionInspectedWindowFront implement to the command, making the front empty
- migrate tests to use the commands instead of front
- stop maintaining the current top level target in ExtensionParent.jsm, no longer have to use watchTargets
- stop creating a new descriptor on each new target
- instead only pull one new dedicated "commands" for WebExt (still in ExtensionParent.jsm)
- remove TabDescriptor isDevToolsExtensionContext as we no longer need anything special in the descriptor
- remove now unused methods on DevToolsShims (createWebExtensionInspectedWindowFront, createDescriptorForTabForWebExtension)
- remove the now unused TabDescriptorFactory.createDescriptorForTab's "forceCreationForWebextension" option, as CommandsFactory.forTab always instantiate a brand new commands
- migrate webext to use the command instead of front

Differential Revision: https://phabricator.services.mozilla.com/D108994
2021-04-01 10:31:43 +00:00
Shane Caraveo
9cade0a613 Bug 1646338 ask to set as default again when enabling a search addon r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D107132
2021-03-29 15:42:23 +00:00
Rob Wu
f4e9de17e6 Bug 1695346 - Skip tabs amidst restoration in tabs.onUpdated r=Gijs,rpl
`swapBrowsersAndCloseOther` calls `SessionStore.setTabState`, but the
latter may trigger several tab events before the tab has fully been
restored. This results in duplicate tabs.onUpdated events and in
unexpected access to properties of the tab/browser (which in turn
triggers the reported bug).

Fix this specific case by ignoring events that happen while the tab is
amidst a restoration.

Differential Revision: https://phabricator.services.mozilla.com/D108259
2021-03-26 19:51:14 +00:00
Gijs Kruitbosch
a813dc10f4 Bug 1701257 - fix panel radius on webextension browser and body with proton enabled, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D109909
2021-03-26 18:54:10 +00:00
Drew Willcoxon
bc2e6501df Bug 1699227 - Support negative suggestedIndex values to allow indexes to be specified from the end of the list of urlbar results. r=mak
Given the result span problem described in bug 1699211 and bug 1699607,
currently there's no way for quick suggest to accurately specify the last index
as its suggested index.

Differential Revision: https://phabricator.services.mozilla.com/D109571
2021-03-25 20:32:52 +00:00
Kris Maglione
28f9b0d638 Bug 1581859: Part 4f - Migrate to the native WebNavigation implementation. r=zombie
This migrates WebNavigation.jsm to use messages from PExtensionsParent
generated by the native WebNavigationContent class, and removes the now-unused
WebNavigationContent.js frame script.

Differential Revision: https://phabricator.services.mozilla.com/D103217
2021-03-25 19:47:04 +00:00
Csoregi Natalia
024e0b2323 Backed out 10 changesets (bug 1581859) for causing hazard failures. CLOSED TREE
Backed out changeset 93fe6801a5e2 (bug 1581859)
Backed out changeset 0a33cb185fb3 (bug 1581859)
Backed out changeset 9ceaad6dab5b (bug 1581859)
Backed out changeset ee611f0839ca (bug 1581859)
Backed out changeset 4199963fe477 (bug 1581859)
Backed out changeset b4c5ace21b9e (bug 1581859)
Backed out changeset 6003469dc449 (bug 1581859)
Backed out changeset 826c62b783c0 (bug 1581859)
Backed out changeset e1d7851295fd (bug 1581859)
Backed out changeset 9796577af27a (bug 1581859)
2021-03-24 08:48:00 +02:00
Kris Maglione
ff1b1ae970 Bug 1581859: Part 4f - Migrate to the native WebNavigation implementation. r=zombie
This migrates WebNavigation.jsm to use messages from PExtensionsParent
generated by the native WebNavigationContent class, and removes the now-unused
WebNavigationContent.js frame script.

Differential Revision: https://phabricator.services.mozilla.com/D103217
2021-03-23 23:57:13 +00:00
Gijs Kruitbosch
26156d0573 Bug 1699828 - put extension items at the top of the content menu on macOS, r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D109367
2021-03-23 11:40:24 +00:00
Cosmin Sabou
7eba371387 Backed out 10 changesets (bug 1581859) for causing hazard failures on ExtensionsParent.cpp.
Backed out changeset 6020ec7d7f32 (bug 1581859)
Backed out changeset 07901e457839 (bug 1581859)
Backed out changeset e23389fc98b5 (bug 1581859)
Backed out changeset 4287eebc2c77 (bug 1581859)
Backed out changeset eeff6f501cfc (bug 1581859)
Backed out changeset 22db36f7d16d (bug 1581859)
Backed out changeset 16831d45d0ed (bug 1581859)
Backed out changeset 816643de7694 (bug 1581859)
Backed out changeset 6fd5aa7895e3 (bug 1581859)
Backed out changeset 2b68d2eee18e (bug 1581859)
2021-03-23 05:48:27 +02:00
Bogdan Tara
393125c6c4 Backed out changeset c0c671865b2e (bug 1699828) for browser_ext_menus_replace_menu_context.js mochitest failures CLOSED TREE 2021-03-23 02:11:07 +02:00
Hiroyuki Ikezoe
16cc3d1669 Bug 1699367 - Skip browser_ext_popup_select_in_oopif.js without Fission. r=kmag
The test basically was written for Fission, but unfortunately it fails
intermittently without Fission becasue, I assume, there was a pre-existing race
condition causing the failure without Fission, so we are going to skip the
test without Fission for now.

Differential Revision: https://phabricator.services.mozilla.com/D109250
2021-03-22 22:59:08 +00:00
Gijs Kruitbosch
cd3973b64b Bug 1699828 - put extension items at the top of the content menu on macOS, r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D109367
2021-03-22 22:42:26 +00:00
Kris Maglione
c2ee3d4cb3 Bug 1581859: Part 4f - Migrate to the native WebNavigation implementation. r=zombie
This migrates WebNavigation.jsm to use messages from PExtensionsParent
generated by the native WebNavigationContent class, and removes the now-unused
WebNavigationContent.js frame script.

Differential Revision: https://phabricator.services.mozilla.com/D103217
2021-03-22 20:12:18 +00:00
Jared Wein
7ba3580f2e Bug 1692669 - Replace icon group navigation on macOS page context menu with 'normal' menuitems. r=flod,mconley
Differential Revision: https://phabricator.services.mozilla.com/D108475
2021-03-22 14:43:32 +00:00
Mark Banner
5e786e8b26 Bug 1687932 - Remove use of nsISearchEngine.addEngineWithDetails from other xpcshell-tests. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D108462
2021-03-19 14:06:06 +00:00
Narcis Beleuzu
ffb77b2d9a Backed out 9 changesets (bug 1581859) for bustages jsapi.h . CLOSED TREE
Backed out changeset 2a3a77ae1eae (bug 1581859)
Backed out changeset 181c3f29f222 (bug 1581859)
Backed out changeset f7c39feb502e (bug 1581859)
Backed out changeset 9c7d0015c616 (bug 1581859)
Backed out changeset d2b8ee78745d (bug 1581859)
Backed out changeset 92359266d420 (bug 1581859)
Backed out changeset 98ba6b96c900 (bug 1581859)
Backed out changeset 0eb043b5c904 (bug 1581859)
Backed out changeset 55a4c2fc561d (bug 1581859)
2021-03-18 08:26:57 +02:00
Kris Maglione
b2455f7432 Bug 1581859: Part 4f - Migrate to the native WebNavigation implementation. r=zombie
This migrates WebNavigation.jsm to use messages from PExtensionsParent
generated by the native WebNavigationContent class, and removes the now-unused
WebNavigationContent.js frame script.

Differential Revision: https://phabricator.services.mozilla.com/D103217
2021-03-18 05:51:09 +00:00
Hiroyuki Ikezoe
9a4563134c Bug 1696718 - Propagate popup window position update to descendants documents. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D108559
2021-03-18 03:11:23 +00:00
Tom Schuster
3da7d94f22 Bug 1698296 - Make 2nd parameter of test.assertRejects non-optional and fix tests. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D108328
2021-03-17 21:04:39 +00:00
Florian Quèze
ea952e9605 Bug 1680289 - disable bookmarks toolbar animation for browser/components/extensions tests, r=mixedpuppy.
Depends on D108014

Differential Revision: https://phabricator.services.mozilla.com/D108015
2021-03-17 17:39:32 +00:00
Brindusan Cristian
54442351e5 Backed out changeset 01d98e7b02c8 (bug 1696718) for casusing failures in browser_ext_popup_select_in_oopif.js. CLOSED TREE 2021-03-17 14:32:54 +02:00
Hiroyuki Ikezoe
7f0f25eb52 Bug 1696718 - Propagate popup window position update to descendants documents. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D108559
2021-03-17 08:05:32 +00:00
Luca Greco
5e265ad659 Bug 1698158 - part 2 - Remove unnecessary jsm imports in existing WebExtensions API modules. r=mixedpuppy
Depends on D108226

Differential Revision: https://phabricator.services.mozilla.com/D108227
2021-03-16 18:15:40 +00:00
Tomislav Jovanovic
985553b2c4 Bug 1698398 - Support OOP iframes in webNavigation.getAllFrames r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D108359
2021-03-16 13:50:02 +00:00
Tim Nguyen
ad5b1fde34 Bug 1698237 - Backed out changeset 18909220355a (bug 1697806).
Differential Revision: https://phabricator.services.mozilla.com/D108316
2021-03-13 16:06:33 +00:00
Tomislav Jovanovic
fdbb88c4cf Bug 1646817 - Support DocumentChannel process switching in sidebars and popups r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D100396
2021-03-12 22:58:29 +00:00
Mark Striemer
8b9967d92d Bug 1694817 - Fix tests that fail with browser.proton.toolbar.enabled r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D107294
2021-03-12 20:01:04 +00:00
Tim Nguyen
64c00bef7b Bug 1697806 - De-duplicate colored extension SVG icons. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D108008
2021-03-12 10:06:18 +00:00
Erik Nordin
af61d50e5e Bug 1693050 - Update extension removal warning content. r=Gijs,fluent-reviewers,mixedpuppy
- Add a question mark to the prompt title.
- Remove redundant promp message.
- Pass window to prompt to use new tab-modal format.

Differential Revision: https://phabricator.services.mozilla.com/D107539
2021-03-11 23:07:20 +00:00
Noemi Erli
62639374c4 Backed out changeset 8dd76087ff2b (bug 1694817) for causing failures in browser_UITour.js 2021-03-11 21:56:07 +02:00
Mark Striemer
570cccef25 Bug 1694817 - Fix tests that fail with browser.proton.toolbar.enabled r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D107294
2021-03-11 15:09:21 +00:00
Alexandre Poirot
4a9e835d61 Bug 1693491 - [devtools] Migrate TargetList to be a command r=nchevobbe,rpl
This changeset is incomplete and focus on places where we instantiate TargetList constructor

Differential Revision: https://phabricator.services.mozilla.com/D105611
2021-03-11 12:53:18 +00:00
Julian Descottes
9def83a8fd Bug 1695046 - [devtools] Use the same signature for showToolbox and showToolboxForTab r=ochameau,nchevobbe,rpl
Depends on D107100

Differential Revision: https://phabricator.services.mozilla.com/D106539
2021-03-11 06:32:15 +00:00
Julian Descottes
82f5189067 Bug 1694906 - [devtools] Fix race conditions in various devtools webextensions tests r=rpl
Depends on D107099

With the previous patch, we are waiting for toolbox open before creating contexts.
This makes some tests a bit racy if they are only waiting for toolbox open. They should also wait for the context to be ready.
Firing an event from the devtools_page seems to work fine for this but don't hesitate to suggest a better approach.

Differential Revision: https://phabricator.services.mozilla.com/D107100
2021-03-10 18:22:04 +00:00
Julian Descottes
17537a14fb Bug 1694906 - [devtools] Wait for toolbox-ready instead of toolbox-created in ext-devtools.js r=rpl
Depends on D107052

toolbox-ready guarantees that the toolbox will have a valid target attached.

Differential Revision: https://phabricator.services.mozilla.com/D107099
2021-03-10 18:22:03 +00:00
Julian Descottes
01718819b8 Bug 1694906 - [devtools] Use descriptors instead of targets in all toolbox APIs r=ochameau,nchevobbe,rpl,perftest-reviewers,sparky
Depends on D107051

Differential Revision: https://phabricator.services.mozilla.com/D106426
2021-03-10 18:22:02 +00:00
Julian Descottes
72754c526d Bug 1694906 - [devtools] Remove remaining call sites for showToolbox in extension tests r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D107051
2021-03-10 18:22:02 +00:00
Narcis Beleuzu
e783ef6d6e Backed out 5 changesets (bug 1694906) for dt failures on browser_target_list_frames.js . CLOSED TREE
Backed out changeset bd5cb6f8b41f (bug 1694906)
Backed out changeset c23343373584 (bug 1694906)
Backed out changeset 02428006de51 (bug 1694906)
Backed out changeset 284e000deded (bug 1694906)
Backed out changeset 3b5269fe0113 (bug 1694906)
2021-03-10 04:52:56 +02:00
Julian Descottes
6fed1559e0 Bug 1694906 - [devtools] Fix race conditions in various devtools webextensions tests r=rpl
Depends on D107099

With the previous patch, we are waiting for toolbox open before creating contexts.
This makes some tests a bit racy if they are only waiting for toolbox open. They should also wait for the context to be ready.
Firing an event from the devtools_page seems to work fine for this but don't hesitate to suggest a better approach.

Differential Revision: https://phabricator.services.mozilla.com/D107100
2021-03-09 20:50:43 +00:00
Julian Descottes
64bebf7d61 Bug 1694906 - [devtools] Wait for toolbox-ready instead of toolbox-created in ext-devtools.js r=rpl
Depends on D107052

toolbox-ready guarantees that the toolbox will have a valid target attached.

Differential Revision: https://phabricator.services.mozilla.com/D107099
2021-03-09 20:50:43 +00:00
Julian Descottes
0f66091841 Bug 1694906 - [devtools] Use descriptors instead of targets in all toolbox APIs r=ochameau,nchevobbe,rpl
Depends on D107051

Differential Revision: https://phabricator.services.mozilla.com/D106426
2021-03-09 20:50:42 +00:00
Julian Descottes
4b70107605 Bug 1694906 - [devtools] Remove remaining call sites for showToolbox in extension tests r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D107051
2021-03-09 20:50:41 +00:00
Doug Thayer
d9e6ea9ffe Bug 1696978 - Require user input for slow extension warning r=smaug,extension-reviewers,kmag
Per conversations with Bas, we want the behavior for slow extensions to match
that of slow content scripts WRT requiring user input. The test change is less
than great, but I don't think we have the ability to simulate input in
mochitests without running JS in the content process? But correct me if I'm
wrong.

Differential Revision: https://phabricator.services.mozilla.com/D107521
2021-03-09 01:35:03 +00:00
Alex Henrie
0686831376 Bug 1649187 - Use a fallback table to strip diacritics from non-decomposable characters. r=jfkthame
Implement the design suggested at
https://bugzilla.mozilla.org/show_bug.cgi?id=1652910#c5

Differential Revision: https://phabricator.services.mozilla.com/D106674
2021-03-07 16:17:41 +00:00
Rob Wu
f7a790dd78 Bug 1498432 - Correctly delete _cachedCurrentURI r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106734
2021-03-07 16:16:36 +00:00
Rob Wu
ca5b342494 Bug 1680279 - Support "url" properties in filter r=rpl
The patch for bug 1498432 will include a unit test that uses
tabs.onUpdated with the "url" filter for "properties".

The updated test here verifies that the tabs.onUpdated event does not
include other properties in changeInfo when filtering by "status".

Differential Revision: https://phabricator.services.mozilla.com/D106733
2021-03-07 16:16:36 +00:00
Alexandru Michis
7b98a02461 Backed out 2 changesets (bug 1498432, bug 1680279) for causing bc failures in browser_ext_tabs_discard_reversed.js
CLOSED TREE

Backed out changeset 9ce142e600af (bug 1498432)
Backed out changeset 4c8c60ac262a (bug 1680279)
2021-03-05 02:50:58 +02:00
Rob Wu
2112c7380a Bug 1498432 - Correctly delete _cachedCurrentURI r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106734
2021-03-04 20:50:35 +00:00
Rob Wu
a328d739f1 Bug 1680279 - Support "url" properties in filter r=rpl
The patch for bug 1498432 will include a unit test that uses
tabs.onUpdated with the "url" filter for "properties".

The updated test here verifies that the tabs.onUpdated event does not
include other properties in changeInfo when filtering by "status".

Differential Revision: https://phabricator.services.mozilla.com/D106733
2021-03-04 20:50:35 +00:00
Neil Deakin
0a6f2c6e96 Bug 1691860, move code that hides separators in the content area context menu into a single place that just hides duplicates, r=Gijs,robwu
Differential Revision: https://phabricator.services.mozilla.com/D104615
2021-03-04 00:16:16 +00:00
Harry Twyford
1633d63446 Bug 1694734 - Reapply background-color rule to :root on Windows 7/8. r=desktop-theme-reviewers,ntim,mixedpuppy
While using -moz-os-version selectors in a shared CSS file isn't ideal, I think it's the best approach here. These selectors will hopefully be temporary, and will be removed when bug 1695280 is fixed. I considered a creating a ruleset like
```
@media (-moz-os-version: windows-win7),
       (-moz-os-version: windows-win8) {
  #navigator-toolbox:-moz-lwtheme {
    background-color: unset;
  }
  :root:-moz-lwtheme {
    background-color: var(--lwt-accent-color);
  }
}
```
in browser/themes/windows/browser.css, but I think unsetting the background-color could become a headache if we need to make any other changes to the #navigator-toolbox background. We could also move these background rules to platform-specific stylesheets, but that way they're defined much later in the CSS despite being fairly foundational rules. It would also create more code to remove in bug 1695280.

Differential Revision: https://phabricator.services.mozilla.com/D106670
2021-03-02 14:12:49 +00:00
Emilio Cobos Álvarez
915f02d25c Bug 1694951 - Remove printing.trigger telemetry. r=jwatt,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106465
2021-03-01 11:36:43 +00:00
Cosmin Sabou
3532e78cdc Backed out changeset 6a75d5ea4301 (bug 1646817) for causing macOS nightly crashes. a=backout 2021-02-28 12:36:09 +02:00
Doug Thayer
db50f52ea7 Bug 1694229 - Update slow script warning visuals r=florian
This patch removes the wait button on the slow script warning, on the suspicion
that it is confusing to the user since it's redundant with the close button. It
also changes the text of the notification to blame the hanging tab.

Differential Revision: https://phabricator.services.mozilla.com/D106015
2021-02-27 18:22:32 +00:00
Tomislav Jovanovic
8c3b8b951b Bug 1646817 - Part 1: Support DocumentChannel process switching in sidebars r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D100396
2021-02-26 22:56:17 +00:00
Rob Wu
252ef583b9 Bug 1694699 - Minimize access to tab.hasTabPermission r=rpl,geckoview-reviewers,agi
tab.hasTabPermission indirectly triggers an access to
browser.currentURI, which for lazy tab browsers causes an incorrect
value to be cached. To avoid this, skip the call to hasTabPermission.

Differential Revision: https://phabricator.services.mozilla.com/D106622
2021-02-26 21:34:54 +00:00
Rob Wu
43ff27ed9a Bug 1694699 - Avoid unnecessary string->URI conversions r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D106317
2021-02-26 21:34:54 +00:00
Paul Zuehlcke
d69fac75b0 Bug 1680066 - Fall back to window prompts for webextension sidebar. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106513
2021-02-26 10:31:25 +00:00
Julian Descottes
6e37958c88 Bug 1694140 - [devtools] Stop using TargetFactory.forTab outside of devtools r=rpl,ochameau
Depends on D106000

Differential Revision: https://phabricator.services.mozilla.com/D106001
2021-02-25 18:02:52 +00:00
Brindusan Cristian
39abcde940 Backed out 10 changesets (bug 1694140, bug 1694886, bug 1688688) for devtools failures on browser_CORS-console-warnings.js. CLOSED TREE
Backed out changeset 1b7367a27d9a (bug 1694886)
Backed out changeset d5a70a3143ad (bug 1694140)
Backed out changeset 74adaced5c0a (bug 1694140)
Backed out changeset 0b8f857e3f90 (bug 1694140)
Backed out changeset 45a8dc952aba (bug 1694140)
Backed out changeset 299f17e9cb6f (bug 1694140)
Backed out changeset 6beb9dd48ef3 (bug 1694140)
Backed out changeset 5f6688e8fe4c (bug 1694140)
Backed out changeset ae1fa0484c91 (bug 1688688)
Backed out changeset 8a0f5c24ed9a (bug 1688688)
2021-02-25 16:07:39 +02:00