Commit graph

3123 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
b2f263d17f Bug 1741931 - Use text color rather than background color to determine theme color scheme. r=harry,dao
It's easy for themes that have image backgrounds to have bogus
background colors.

Text color should give a better indication of the color-scheme since
it's always used, even with image backgrounds.

Differential Revision: https://phabricator.services.mozilla.com/D131522
2021-11-19 14:03:06 +00:00
Emilio Cobos Álvarez
8872932080 Bug 1740089 - Fall back to frame (accentcolor) to determine toolbar theme. r=desktop-theme-reviewers,harry
Depends on D130669

Differential Revision: https://phabricator.services.mozilla.com/D130670
2021-11-17 18:05:19 +00:00
William Durand
a59f144a34 Bug 1740601 - Initial implementation of scripting.executeScript(). r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D128339
2021-11-17 15:11:00 +00:00
Julian Descottes
2e9e1cc305 Bug 1741369 - [devtools] Update paths to loader files outside devtools/ r=perftest-reviewers,preferences-reviewers,sparky,Gijs
Depends on D131217

Differential Revision: https://phabricator.services.mozilla.com/D131218
2021-11-17 12:43:27 +00:00
Norisz Fay
82977b8506 Backed out changeset 69dee748c290 (bug 1740601) for causing mochitest plain leaks CLOSED TREE 2021-11-16 20:58:39 +02:00
William Durand
098fd7a86f Bug 1740601 - Initial implementation of scripting.executeScript(). r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D128339
2021-11-16 17:29:16 +00:00
Emilio Cobos Álvarez
706cca12e0 Bug 1737131 - Make sure to show the overflow menu in browser_ext_browserAction_theme_icons.js. r=extension-reviewers,zombie
I dug into the test failures above and this is because we return wrong
styles, because the overflow panel was never opened and thus the styles
we were querying are disconnected from the document.

Bug 1483798 covers not returning a style for these elements (patch there
incoming).

Differential Revision: https://phabricator.services.mozilla.com/D131075
2021-11-14 12:40:43 +00:00
Emilio Cobos Álvarez
4456ebd295 Bug 1737131 - Enable more async stacks in webextension tests. r=extension-reviewers,zombie
This made debugging this a bit more tractable.

Differential Revision: https://phabricator.services.mozilla.com/D131076
2021-11-14 12:34:35 +00:00
Marian-Vasile Laza
133cd29435 Backed out 2 changesets (bug 1712837) for causing mochitest and marionette test failures. CLOSED TREE
Backed out changeset ecfd23a7ef69 (bug 1712837)
Backed out changeset 51529cb4682e (bug 1712837)
2021-11-11 01:52:57 +02:00
Dana Keeler
15ebcb5e82 Bug 1712837 - introduce ipcclientcerts to allow client certificates to work with the socket process r=rmf,kershaw,necko-reviewers,ipc-reviewers,nika
This patch introduces ipcclientcerts, a PKCS#11 module that the socket process
can load to get access to client certificates and keys managed by the parent
process. This enables client certificate authentication to work with the socket
process (particularly for keys stored outside of NSS, as with osclientcerts or
third-party PKCS#11 modules).

Differential Revision: https://phabricator.services.mozilla.com/D122392
2021-11-10 21:48:47 +00:00
Andreea Pavel
bbe6706de8 Bug 1730374 - disable browser_ext_tabs_move_window.js on win10 fission debug r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D130546
2021-11-09 15:53:46 +00:00
Iulian Moraru
a48c1f156d Backed out 3 changesets (bug 1740089) for causing bc failures on browser_ext_browserAction_theme_icons.js. CLOSED TREE
Backed out changeset a4546a4b8991 (bug 1740089)
Backed out changeset ac810bf14fd5 (bug 1740089)
Backed out changeset 9c9f35164a4f (bug 1740089)
2021-11-09 07:18:44 +02:00
Emilio Cobos Álvarez
21f29d0762 Bug 1740089 - Fall back to frame (accentcolor) to determine toolbar theme. r=desktop-theme-reviewers,harry
Depends on D130669

Differential Revision: https://phabricator.services.mozilla.com/D130670
2021-11-09 03:58:02 +00:00
raquelvargas
82fcbdc4b5 Bug 1738245 - Remove OS.File usage from various browser/ tests. r=Standard8,robwu
Differential Revision: https://phabricator.services.mozilla.com/D129972
2021-11-05 16:49:48 +00:00
Marian-Vasile Laza
99b32fcd58 Backed out changeset a045ce98e572 (bug 1738245) for causing xpcshell failures on test_MigrationUtils_timedRetry.js. CLOSED TREE 2021-11-03 17:17:12 +02:00
raquelvargas
befd3cc567 Bug 1738245 - Remove OS.File usage from various browser/ tests. r=Standard8,robwu
Differential Revision: https://phabricator.services.mozilla.com/D129972
2021-11-03 08:05:31 +00:00
Alexandre Poirot
3f2c1a3ad6 Bug 1735825 - [devtools] Pass watcher context down to TargetActorRegistry. r=jdescottes,rpl
Differential Revision: https://phabricator.services.mozilla.com/D128897
2021-11-02 10:57:24 +00:00
Sebastian Hengst
050541241a Bug 1737131 - skip browser_tabclose.js and browser_ext_browserAction_theme_icons.js on Linux DevEdition. r=emilio DONTBUILD
Failures started after bug 1736141 (prefers-color-scheme should not default to
dark for Elemental Balanced).

Differential Revision: https://phabricator.services.mozilla.com/D129844
2021-10-31 09:09:58 +00:00
Emilio Cobos Álvarez
4cfc1d8874 Bug 1738265 - Teach some popup tests to deal with popups having margins by default. r=NeilDeakin
For tests that actually test margin handling I've just removed the default
margin by adding:

  <?xml-stylesheet href="data:text/css,menupopup{margin: 0}" type="text/css"?>

The other tests I've just fixed by accounting for the margins.

Differential Revision: https://phabricator.services.mozilla.com/D129866
2021-10-29 19:26:37 +00:00
Mathew Hodson
adfcd3644a Bug 1531368 - Use ChromeUtils.import with one parameter in extensions code. r=robwu
Simplify some instances where modules were lazy loaded.

Differential Revision: https://phabricator.services.mozilla.com/D118569
2021-10-25 14:42:59 +00:00
Evgenia Kotovich
228e38a58c Bug 1576768 [eslint] Turn on JavaScript linting and formatting rules for .sjs files. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D128483
2021-10-25 11:12:41 +00:00
OnuohaOluebube
87b96afd76 Bug 1733422 - SessionStore.getClosedWindowData always returns an object r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D129147
2021-10-25 08:18:27 +00:00
criss
152f71d4d3 Backed out changeset b60f98f26664 (bug 1576768) for causing mochitest failures. CLOSED TREE 2021-10-22 15:55:50 +03:00
Mathew Hodson
a28c02848c Bug 1733871 - Allow tests to use computeHash from ProductAddonChecker.jsm. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D127387
2021-10-22 12:28:09 +00:00
Mathew Hodson
7c9176e7d2 Bug 1733886 - Don't import DocumentManager in extensions tests. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D127389
2021-10-22 12:28:08 +00:00
Evgenia Kotovich
e29e29aa5a Bug 1576768 [eslint] Turn on JavaScript linting and formatting rules for .sjs files. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D128483
2021-10-22 11:39:46 +00:00
Emilio Cobos Álvarez
736cd85309 Bug 1736141 - Derive a content theme from newtab page background, and use it for non-chrome docshells. r=mstange,dao
We use "is-in-chrome-docshell" rather than "is a chrome doc" so that about:
pages that are loaded in the content area (like about:addons etc) follow the
general content theme as well.

Cache the relevant color schemes since having that many branches on the default
system theme made me a bit uncomfortable, and this code can be called quite a
lot... Though it probably isn't such a huge deal. This makes us initialize the
theme right away, so make sure subclasses do the right thing. This in practice
was only an issue for GTK, which does cache the "system theme is dark" bit.

Differential Revision: https://phabricator.services.mozilla.com/D128674
2021-10-20 08:25:57 +00:00
Joel Maher
fed2831742 Bug 1727943 - turn on mochitest* tests that were skipped on win10-ccov and now pass. r=MasterWayZ
Differential Revision: https://phabricator.services.mozilla.com/D128817
2021-10-19 20:01:29 +00:00
Luca Greco
5fa7bb5b34 Bug 1681049 - Fix browser_ext_persistent_storage_permission_indication.js intermittent failures. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D128889
2021-10-19 18:49:52 +00:00
Tomislav Jovanovic
6b18de5511 Bug 1734984 - Use WindowGlobalParent.documentURI for sender.url r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D128536
2021-10-19 18:35:27 +00:00
Narcis Beleuzu
aae9a15191 Backed out changeset 6961dc913ccb (bug 1734984) for bc failures on browser_ext_contentscript_sender_url.js . CLOSED TREE 2021-10-19 19:19:07 +03:00
Andrei Oprea
3892ce56eb Bug 1731796 - Add ability to support extraParams via search Nimbus Feature r=k88hudson,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D127580
2021-10-19 15:40:54 +00:00
Tomislav Jovanovic
59f2e6d29e Bug 1734984 - Use WindowGlobalParent.documentURI for sender.url r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D128536
2021-10-19 14:50:04 +00:00
criss
b7053f318e Backed out changeset 6353bdbe1604 (bug 1731796) for causing failures on browser_search_nimbus_reload.js. CLOSED TREE 2021-10-19 16:49:45 +03:00
Andrei Oprea
ed2a063156 Bug 1731796 - Add ability to support extraParams via search Nimbus Feature r=k88hudson,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D127580
2021-10-19 12:57:32 +00:00
Luca Greco
467d1b9cd4 Bug 1705244 - Fix browser_ext_incognito_popup.js intermittent failures. r=mixedpuppy
Depends on D128729

Differential Revision: https://phabricator.services.mozilla.com/D128730
2021-10-18 18:26:33 +00:00
Luca Greco
563bb33528 Bug 1580875 - Fix browser_ext_sidebarAction_contextMenu.js intermittent failures. r=mixedpuppy
Depends on D128728

Differential Revision: https://phabricator.services.mozilla.com/D128729
2021-10-18 18:26:33 +00:00
Luca Greco
e6666748c9 Bug 1706194 - Fix browser_ext_sidebarAction_click.js intermittent failures. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D128728
2021-10-18 18:26:33 +00:00
Evgenia Kotovich
0d0980ee0d Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-18 09:26:33 +00:00
Noemi Erli
2bba3cec69 Backed out changeset 2ab6bb03dcc1 (bug 1576768) for causing failures in test_double_submit.html CLOSED TREE 2021-10-18 02:05:57 +03:00
Evgenia Kotovich
3e3dff109c Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-17 14:59:14 +00:00
Emilio Cobos Álvarez
6df8cf6be5 Bug 1736038 - Fix browser_toolbar_prefers_color_scheme.js.
prefers-color-scheme doesn't follow the OS anymore in chrome docs.

MANUAL PUSH: Trivial orange fix CLOSED TREE
2021-10-15 20:06:29 +02:00
Emilio Cobos Álvarez
c4b7109fac Bug 1736038 - Remove -moz-toolbar-prefers-color-scheme. r=dao
By making prefers-color-scheme return the ColorSchemeForChrome(), which
accounts for the Firefox theme.

Differential Revision: https://phabricator.services.mozilla.com/D128611
2021-10-15 16:53:08 +00:00
Alexandru Michis
760154834d Backed out changeset ded3930cc57d (bug 1734984) for causing bc failures in browser_ext_contentscript_sender_url.js
CLOSED TREE
2021-10-15 19:02:45 +03:00
Tomislav Jovanovic
05f6e30e90 Bug 1734984 - Use WindowGlobalParent.documentURI for sender.url r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D128536
2021-10-15 15:14:07 +00:00
Alexandru Michis
dac6815201 Backed out changeset 7c08aa027893 (bug 1576768) for causing multiple failures.
CLOSED TREE
2021-10-15 16:52:43 +03:00
Evgenia Kotovich
a8b32926fa Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-15 12:58:11 +00:00
Claudia
7c927f8faa Bug 1733425 - Change SessionStore.getClosedTabData to always return an object insteaf of a string. r=Standard8,extension-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D128272
2021-10-14 07:01:30 +00:00
Emilio Cobos Álvarez
7bc118e08e Bug 1732829 - Propagate popup position / size change after widget moves, not before. r=hiro
Bug 1696718 landed a fix to propagate the position change from layout.
However that's not correct, because the widget isn't resized until
nsView::ProcessPendingUpdatesForView is resized (and even that in some
platforms it might be async).

So the right place to propagate the position change is in
nsXULPopupManager (which we call into from the view system which listens
itself to the widget).

Let's try to enable the test for that bug everywhere with this fixed.

Differential Revision: https://phabricator.services.mozilla.com/D127801
2021-10-10 18:53:07 +00:00
Rob Wu
a653b67cdd Bug 1659155 - Use pre-redirect URL as srcUrl in contextMenus API r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D127786
2021-10-07 10:34:24 +00:00