Граф коммитов

22859 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes ebf4bbbc8d Bug 1708252 - [devtools] Remove test-actor eval r=nchevobbe
Depends on D113714

Differential Revision: https://phabricator.services.mozilla.com/D113715
2021-04-29 07:31:11 +00:00
Julian Descottes 402cf47aab Bug 1708252 - [devtools] Stop using test-actor eval r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113714
2021-04-29 07:31:11 +00:00
Nicolas Chevobbe 71515d047c Bug 1707946 - [devtools] Replace Promise.jsm with regular Promises in devtools/client/inspector/markup/markup.js. r=ochameau.
This was making 2 tests failing:
- browser_toolbox_selectionchanged_event.js had a pending promise that would make
  the test fail (whereas pending Promise.jsm don't). It was setting an `undefined`
  selected node with a reason, which is something we don't do in the codebase (we set
  it to null, with no reason). So here we change it by setting the selection to a
  null node, which is consistent with real world scenario.
- browser_markup_shadowdom_clickreveal.js was failing because the container of
  a node was slotted while it shouldn't be. It looks like the switch to DOM Promises
  changed the timing slightly, so we're now waiting in the test to make sure we
  have another container than the slotted one we were handling before.

Differential Revision: https://phabricator.services.mozilla.com/D113539
2021-04-29 05:59:04 +00:00
Nicolas Chevobbe e4c5ffe0ce Bug 1707823 - [devtools] Guard access to browsingContextID on result of getTarget. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D113482
2021-04-29 05:10:14 +00:00
Nicolas Chevobbe a12a47da9f Bug 1707823 - [devtools] Set will-navigate event listener before initializing inspector front. r=ochameau.
As the inspector front initialization is asynchronous and can take some time,
we might miss will-navigate events being emitted very early (e.g. when a new
navigation happen just after a previous one).

Differential Revision: https://phabricator.services.mozilla.com/D113481
2021-04-29 05:10:13 +00:00
Nicolas Chevobbe 1743e61c78 Bug 1707823 - [devtools] Replace usage of navigateTo in browser_toolbox_backward_forward_navigation.js. r=ochameau.
the test document has a script that adds dom nodes, js sources and stylesheet
to the document every 200ms. It might that the navigateTo call we were using to navigate
to the document would never resolve, as the load event won't fire because of the constant
addition of stylesheets and scripts.
This is fixed by not using navigateTo, as we don't really need the document to be ready,
but only register the navigation so later in the test we can do backward and forward navigations.

Differential Revision: https://phabricator.services.mozilla.com/D113480
2021-04-29 05:10:13 +00:00
Nicolas Chevobbe 55e0af181b Bug 1707823 - [devtools] Make navigateTo more secure. r=ochameau.
In the `BrowserTestUtils.browserLoaded` call we use in `navigateTo`, we weren't
checking for a specific uri to be loaded, which means the Promise could resolve
on *any* page being loaded.
This patch makes it more secure by waiting the load event for the uri we navigated to.

Differential Revision: https://phabricator.services.mozilla.com/D113479
2021-04-29 05:10:13 +00:00
Falguni Islam 728a6f9073 Bug 1705751: fix Remove Buildsettings Code from Screenshots r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D112415
2021-04-28 21:44:00 +00:00
Csoregi Natalia a76b78d543 Backed out changeset e01ec8694924 (bug 1700957) as requested. CLOSED TREE 2021-04-28 18:09:01 +03:00
imoraru 29587fe8d1 Backed out changeset d3056dc50fe3 (bug 1707614) for causing devtools failures at browser_rules_colorpicker-release-outside-frame.js . CLOSED TREE 2021-04-28 16:08:31 +03:00
Emilio Cobos Álvarez 175fe1b124 Bug 1707614 - Don't use -moz-devtools-highlighted for background contrast checks in the accessibility inspector. r=nchevobbe
It's the wrong pseudo-class name! Plus, it's not really needed, just
override the page styles temporarily.

Remove the pseudo-class, since it's its only remaining usage.

Differential Revision: https://phabricator.services.mozilla.com/D113374
2021-04-28 10:01:23 +00:00
imoraru e436fff3f6 Backed out 4 changesets (bug 1707823) for causing devtools failures at browser_inspector_delete_node_in_frame.js . CLOSED TREE
Backed out changeset b3731ddc1246 (bug 1707823)
Backed out changeset 80bf555ff6dd (bug 1707823)
Backed out changeset 453d1131106b (bug 1707823)
Backed out changeset 015d6eaef2cf (bug 1707823)
2021-04-28 12:05:38 +03:00
Nicolas Chevobbe f10ee67c92 Bug 1705697 - [devtools] Warning group messages shouldn't be repeatable. r=bomsy.
It could happen that 2 warning group messages could be added successively, before
the navigation message was emitted.
In the reducer, the second message would be seen the same as the first one, and
we'd try to increment the repeat count for the first one.
Unfortunately, the code was expecting a warning group to be created, and there
was an exception thrown as we couldn't retrieve it.
This is fixed by not allowing warning groups to be repeated.
A mocha test is added instead of a mochitest, as the issue would have been tricky
to trigger properly.

Differential Revision: https://phabricator.services.mozilla.com/D113276
2021-04-28 08:10:13 +00:00
Nicolas Chevobbe 4a69165f75 Bug 1707823 - [devtools] Guard access to browsingContextID on result of getTarget. r=ochameau.
Depends on D113481

Differential Revision: https://phabricator.services.mozilla.com/D113482
2021-04-28 07:52:22 +00:00
Nicolas Chevobbe e05016a5a5 Bug 1707823 - [devtools] Set will-navigate event listener before initializing inspector front. r=ochameau.
As the inspector front initialization is asynchronous and can take some time,
we might miss will-navigate events being emitted very early (e.g. when a new
navigation happen just after a previous one).

Depends on D113480

Differential Revision: https://phabricator.services.mozilla.com/D113481
2021-04-28 07:52:22 +00:00
Nicolas Chevobbe 763039ce66 Bug 1707823 - [devtools] Replace usage of navigateTo in browser_toolbox_backward_forward_navigation.js. r=ochameau.
the test document has a script that adds dom nodes, js sources and stylesheet
to the document every 200ms. It might that the navigateTo call we were using to navigate
to the document would never resolve, as the load event won't fire because of the constant
addition of stylesheets and scripts.
This is fixed by not using navigateTo, as we don't really need the document to be ready,
but only register the navigation so later in the test we can do backward and forward navigations.

Depends on D113479

Differential Revision: https://phabricator.services.mozilla.com/D113480
2021-04-28 07:52:21 +00:00
Nicolas Chevobbe 13980e9a4f Bug 1707823 - [devtools] Make navigateTo more secure. r=ochameau.
In the `BrowserTestUtils.browserLoaded` call we use in `navigateTo`, we weren't
checking for a specific uri to be loaded, which means the Promise could resolve
on *any* page being loaded.
This patch makes it more secure by waiting the load event for the uri we navigated to.

Differential Revision: https://phabricator.services.mozilla.com/D113479
2021-04-28 07:52:21 +00:00
Vaidehi 58837e6f66 Bug 1703154 - Reduce the height of rectangular white background of mobile-device-image. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D113424
2021-04-28 05:53:29 +00:00
Emma Malysz ce84c86379 Bug 1700957, graduate browser.proton.doorhangers.enabled pref to main proton pref r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D110135
2021-04-28 03:17:56 +00:00
Butkovits Atila 9597a30fbb Backed out changeset 1c362512f27b (bug 1700957) for causing failures at test_chrome_only_media_queries.html. CLOSED TREE 2021-04-28 05:55:14 +03:00
Emma Malysz a344c0fa4c Bug 1700957, graduate browser.proton.doorhangers.enabled pref to main proton pref r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D110135
2021-04-28 00:29:45 +00:00
Belén Albeza 60c8a028ed Bug 1700904 - [devtools] remove guards for new cookies and indexeddb resources r=ochameau
This removes the testing enableServerWatcherSupport flag for indexedDB and cookies resources. As a consequence of this, some tests that were previously marked as failing on fission now pass, so they have been re-enabled as well.

Differential Revision: https://phabricator.services.mozilla.com/D113143
2021-04-27 14:38:01 +00:00
Emilio Cobos Álvarez a7f69d6257 Bug 1707614 - Remove one unused usage of :-moz-devtools-highlighted. r=nchevobbe
This internal pseudo-class used to be to highlight nodes in the
inspector, but the inspector no longer sets it. Now the only thing that
sets it is devtools/server/actors/accessibility/audit/contrast.js to
remove the text color / shadow from the test.

We should probably find another way to implement that that doesn't
misuse this pseudo-class (and then presumably remove this pseudo-class),
but for now this code is dead.

Differential Revision: https://phabricator.services.mozilla.com/D113371
2021-04-27 12:18:36 +00:00
Emilio Cobos Álvarez 34a9a0f457 Bug 1705605 - Implement accent-color in nsNativeBasicTheme. r=mstange
This is a new addition for CSS UI Level 4:

  https://drafts.csswg.org/css-ui-4/#widget-accent

I want to provide feedback on some spec issues, and thought it was a
kinda neat thing to prototype (it also makes testing contrast and such
with random GTK themes easier).

For now enable for Nightly only.

Differential Revision: https://phabricator.services.mozilla.com/D112312
2021-04-27 10:41:00 +00:00
Butkovits Atila 554a06e07d Bug 1699008 - disable browser_toolbox_backward_forward_navigation.js on Linux_64 for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D113261
2021-04-27 03:39:23 +00:00
Markus Stange 5187a2ca76 Bug 1707631 - Use activateIitem in browser_styleeditor_copyurl.js, so that the menu is closed at the end of the test. r=mac-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D113377
2021-04-26 17:29:46 +00:00
Emilio Cobos Álvarez 5c9bd32723 Bug 1707597 - Garbage-collect event state bits. r=smaug
We had about 9 gaps / unused bits. I moved the devtools ones at the end
because I think we should be able to remove them (but separate bug).

Differential Revision: https://phabricator.services.mozilla.com/D113365
2021-04-26 15:46:52 +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
Julian Descottes 4ee49bb5b5 Bug 1707509 - [devtools] Allow to parametrize waitFor helper easily for a single test r=nchevobbe
Depends on D113156

Differential Revision: https://phabricator.services.mozilla.com/D113284
2021-04-26 09:30:03 +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
Julian Descottes d5b6dd5b70 Bug 1689101 - [devtools] Increase waitFor interval in browser_webconsole_network_messages_expand_before_updates r=nchevobbe
Was not able to get any confirmation about the impact of this change with try pushes.
However all the failures seem related to random waitFor calls in this test, without any regular pattern.
I suspect that our waitFor delay might be too short in some cases, increasing the interval will allow to verify this assumption.

Differential Revision: https://phabricator.services.mozilla.com/D113156
2021-04-26 07:30:53 +00:00
Butkovits Atila 2e34e363b9 Backed out 2 changesets (bug 1696251) for causing js-bench-sm failures. CLOSED TREE
Backed out changeset 1c84c9a34575 (bug 1696251)
Backed out changeset e169193b7423 (bug 1696251)
2021-04-23 02:53:36 +03:00
Sebastian Zartner ea22e54d20 Bug 1613356 - Added test case for storage key names. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D110774
2021-04-22 23:01:08 +00:00
Sebastian Zartner 9d14b2b11c Bug 1613356 - Fixed storage data inspection for empty strings. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D110773
2021-04-22 23:01:07 +00:00
Alex Lopez d1a82b8092 Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-04-22 18:56:15 +00:00
Sebastian Zartner e6a5091a81 Bug 872078 - Added test case for font preview in Response view of Netmonitor. r=bomsy,jdescottes
Depends on D110169

Differential Revision: https://phabricator.services.mozilla.com/D110170
2021-04-22 18:53:39 +00:00
Sebastian Zartner 12080be6d9 Bug 872078 - Added preview and info for fonts in Response view of Netmonitor. r=bomsy
A preview for fonts is added to the Response view of the Netmonitor. This view displays the name and MIME type of the font and generates a preview for it.

If no preview can be created, a hint is shown to the user. This is the case when the font isn't used within the page when generating the preview. For example, this is the case when loading the font via the Font Loading API.

Depends on D110167

Differential Revision: https://phabricator.services.mozilla.com/D110169
2021-04-22 18:53:39 +00:00
Nicolas Chevobbe 9caea685ff Bug 1706903 - [devtools] Don't handle new browsing contexts in target configuration actor for the Browser Toolbox. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D113111
2021-04-22 15:06:05 +00:00
Markus Stange fbf50285af Bug 1706806 - Disable browser_markup_load_01.js due to timeouts. DONTBUILD
Before bug 1706806, this test was passing because it wasn't testing what it
intended to test - it passes even if "Inspect" isn't clicked.
After the patch in bug 1706806, it's now doing what it wanted to do all along,
but sometimes it times out waiting for the context menu to open.
Bug 1706833 has been filed to figure out why.

Differential Revision: https://phabricator.services.mozilla.com/D113057
2021-04-22 03:31:31 +00:00
Markus Stange ad346d1111 Bug 1706788 - Wait for the menu to open before calling activateItem. r=mac-reviewers,haik
Differential Revision: https://phabricator.services.mozilla.com/D113035
2021-04-22 01:31:04 +00:00
Markus Stange 46ddaffa50 Bug 1706806 - Use clickOnInspectMenuItem in browser_markup_load_01.js. r=mac-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D113043
2021-04-22 01:27:08 +00:00
Markus Stange c5ba831984 Bug 1706789 - Use activateItem in browser_webconsole_select_all.js. r=mac-reviewers,haik
Depends on D113036

Differential Revision: https://phabricator.services.mozilla.com/D113037
2021-04-21 23:38:17 +00:00
Markus Stange e5966837cc Bug 1706789 - Use activateItem in openMessageInNetmonitor. r=mac-reviewers,haik
Depends on D113035

Differential Revision: https://phabricator.services.mozilla.com/D113036
2021-04-21 23:38:17 +00:00
Markus Stange 688b64d3d2 Bug 1706735 - Use activateItem in browser_webconsole_context_menu_copy_object.js. r=mac-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D113005
2021-04-21 20:55:23 +00:00
Harry Twyford c80cb56940 Bug 1706490 - Make browser_webconsole_network_messages_status_code.js work with native context menus. r=mac-reviewers,mstange
The openContextMenu() helper does the same thing this test does now: dispatches a MouseEvent to a specified node. Using it allows us to clean up the test considerably.

Differential Revision: https://phabricator.services.mozilla.com/D112835
2021-04-21 19:14:03 +00:00
Markus Stange 1f7e61c1b8 Bug 1706725 - Add necessary waitForContextMenu(dbg) calls to these debugger tests to make them work with native context menus. r=mac-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D113004
2021-04-21 19:05:49 +00:00
Markus Stange 48d28c646b Bug 1706483 - In browser_dbg-watchpoints.js and browser_dbg-blackbox-all.js, make sure the menu is open before calling openContextMenuSubmenu or selectContextMenuItem on it. r=mac-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D112841
2021-04-21 17:55:43 +00:00
Markus Stange 166cb4a334 Bug 1706483 - Use openContextMenuSubmenu and activateItem in browser_dbg-watchpoints.js. r=mac-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D112840
2021-04-21 17:55:42 +00:00
Markus Stange 162d015ec9 Bug 1706483 - Make openContextMenuSubmenu wait for the submenu to open. r=harry
Without this, devtools/client/debugger/test/mochitest/browser_dbg-watchpoints.js
was timing out for me locally with non-native menus.

Differential Revision: https://phabricator.services.mozilla.com/D112839
2021-04-21 17:55:42 +00:00