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

21346 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Chevobbe 317a7ff2c2 Bug 1660466 - Fix attaching target/thread test intermittents. r=jdescottes.
Move the function taking care of closing the Browser Console to shared-head so
we can close it before closing the tabs opened during the test.

While attaching the worker, check that the Worker Debugger isn't closed, and
if it is, reject the promise. On the target list, catch rejection while attaching
and simply bail out so we don't call the rest of the code in onTargetAvailable.

Those guards are not enough to prevent any failure while attaching, so we're
wrapping calls to `attachAndInitThread`/`_onThreadInitialized` in try/catch
blocks to avoid test failures.

Differential Revision: https://phabricator.services.mozilla.com/D88766
2020-09-02 14:43:23 +00:00
Nicolas Chevobbe d5a9641120 Bug 1662054 - Add a destroy function to targetList. r=jdescottes.
At the moment, we don't have any guards in the targetList to _not_ execute the
creation/destruction listeners once the toolbox gets destroyed.
We only have a stopListening function on the targetList that is called when we
close the toolbox, but we can't rely only on that since it's also called when
doing a target switch (and working around that is very racy).

One solution would be to follow the common pattern we have everywhere by having
a destroy method that we would check before trying to call the listeners callback.

This might help with intermittent test failures.

Differential Revision: https://phabricator.services.mozilla.com/D88765
2020-09-02 14:39:42 +00:00
Hubert Boma Manilla 87bd8a1f81 Bug 1644191 - Server side network events listening r=nchevobbe,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D78867
2020-09-02 13:31:59 +00:00
Alexandre Poirot 2452f172af Bug 1661627 - Stop ignoring PDF print preview documents. r=nchevobbe
PDF print preview are using about:blank documents, which are ignored
by DevTools in order to save resources.
We avoid creating targets for these, very often, transcient documents.
I tried to find ways to distinguish typical temporary about:blank documents
from this print preview one.

Differential Revision: https://phabricator.services.mozilla.com/D88956
2020-09-02 07:38:59 +00:00
Daisuke Akatsuka 9027b60d6b Bug 1662324: Add tests for updating resource of STYLESHEET type. r=ochameau
Depends on D88531

Differential Revision: https://phabricator.services.mozilla.com/D88950
2020-09-02 03:57:21 +00:00
Andreea Pavel 32a988db57 Bug 1629729 - temporarily disable browser_container_tab.js on linux r=gbrown DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D84930
2020-09-01 16:28:50 +00:00
Emilio Cobos Álvarez 03baee9d8a Bug 1662478 - Rename ::file-chooser-button to ::file-selector-button, and enable it in all channels. r=jwatt
See https://github.com/w3c/csswg-drafts/issues/5049

Differential Revision: https://phabricator.services.mozilla.com/D88995
2020-09-01 22:58:10 +00:00
Alexandre Poirot 6578784678 Bug 1662066 - Print more information when waitFor() test helper fails. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88835
2020-09-01 09:11:29 +00:00
Alexandre Poirot 5d89a18f3b Bug 1662066 - Use a single waitFor test helper implementation. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88834
2020-09-01 09:11:34 +00:00
Alexandre Poirot 27c9bcc6c5 Bug 1662066 - Remove netmonitor waitFor test helper. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88833
2020-08-31 17:22:08 +00:00
Nicolas Chevobbe 50b96d5e2e Bug 1660416 - Use an hr element as a menu separator instead of a MenuItem. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D87840
2020-09-01 07:46:54 +00:00
Daisuke Akatsuka a16d25d9f6 Bug 1659589: Remove error event listener that set to stylesheet actor. r=ochameau
Depends on D87047

Differential Revision: https://phabricator.services.mozilla.com/D88531
2020-09-01 01:44:28 +00:00
Daisuke Akatsuka b9e65b07d6 Bug 1659589: Implement update method in stylesheets actor. r=ochameau,devtools-backward-compat-reviewers
Depends on D87046

Differential Revision: https://phabricator.services.mozilla.com/D87047
2020-08-28 06:27:53 +00:00
Daisuke Akatsuka e9b12ccb1d Bug 1659589: Implement getText in stylesheets actor. r=ochameau,devtools-backward-compat-reviewers
Depends on D87044

Differential Revision: https://phabricator.services.mozilla.com/D87045
2020-08-28 06:07:33 +00:00
Daisuke Akatsuka f8c36ace27 Bug 1659589: Implement toggleDisabled in stylesheets actor. r=ochameau,devtools-backward-compat-reviewers
Depends on D87043

Differential Revision: https://phabricator.services.mozilla.com/D87044
2020-08-20 08:27:47 +00:00
manas 7268313809 Bug 1660818 - Add telemetry to track the number of times the scrollable badge is clicked. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D88049
2020-08-31 21:21:29 +00:00
Julian Descottes 4d4be17fbc Bug 1662058 - Add fallback to get pref devtools.overflow.debugging.enabled from server r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88767
2020-08-31 08:37:13 +00:00
Anny Gakhokidze 652e7457ff Bug 1589102 - Part 16: Fix devtools/sharedbrowser_saveHeapSnapshot_e10s_01.js to wait for the browser to load, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D88232
2020-08-28 17:21:31 +00:00
Anny Gakhokidze aa5ab9056f Bug 1589102 - Part 5: Fix tests that relied on about:blank loads happening instantenously, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D85083
2020-08-28 17:20:45 +00:00
Yury Delendik 0e0f07423b Bug 1661331 - Update wasmparser to version 3.1.1 r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D88325
2020-08-28 16:47:51 +00:00
Alexandre Poirot 45a188bf6b Bug 1661569 - Avoid mixing target actor of the many toolboxes. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88486
2020-08-28 05:48:53 +00:00
Cosmin Sabou 2a9db10f24 Backed out 7 changesets (bug 1518999) for causing browsertime failures. CLOSED TREE
Backed out changeset d93cb254eef5 (bug 1518999)
Backed out changeset a9715e73e862 (bug 1518999)
Backed out changeset e28081d16e3c (bug 1518999)
Backed out changeset c9d88f3f1f5b (bug 1518999)
Backed out changeset 9836adcc4e83 (bug 1518999)
Backed out changeset 9f01755d327f (bug 1518999)
Backed out changeset ef494065b8e2 (bug 1518999)
2020-08-28 06:27:11 +03:00
manas e251f1d7ee Bug 1660847 - Add test for scrollable badge click functionality. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D88099
2020-08-27 21:38:00 +00:00
Daisuke Akatsuka cb8195519b Bug 1659589: Get media-rules-changed event via resource watcher. r=ochameau
Depends on D87042

Differential Revision: https://phabricator.services.mozilla.com/D87043
2020-08-27 06:42:09 +00:00
Daisuke Akatsuka a936229ca0 Bug 1659589: Get property-change event via resource watcher. r=ochameau
Depends on D87041

Differential Revision: https://phabricator.services.mozilla.com/D87042
2020-08-26 08:37:18 +00:00
Daisuke Akatsuka b74df1cade Bug 1659589: Get style-applied event via resource watcher. r=ochameau,bomsy
Depends on D87040

Differential Revision: https://phabricator.services.mozilla.com/D87041
2020-08-27 22:31:52 +00:00
Daisuke Akatsuka 0adc3db50a Bug 1659589: Handle importing stylesheet from file using resource watcher mechanism to keep consistency. r=ochameau,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D87040
2020-08-27 22:31:52 +00:00
Sean Feng 4e5be39962 Bug 1518999 - Refactor some performance.getEntries related tests r=mstange
Some tests made some assumptions about the number of returned entries
by performance.getEntries, and these assumptions are not valid
anymore once we added new entries.

Depends on D66463

Differential Revision: https://phabricator.services.mozilla.com/D68645
2020-08-24 22:11:58 +00:00
Alexandre Poirot 2effa77867 Bug 1660895 - Eagerly ignore loading or destroying documents. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88075
2020-08-26 20:31:57 +00:00
Alexandre Poirot 07e7e6e9b1 Bug 1660892 - Ignore window objects related to remote iframes in thread actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88074
2020-08-26 14:25:31 +00:00
Hubert Boma Manilla ad94cbe2d8 Bug 1661186 - Show the extension name for the blocked request r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D88253
2020-08-26 14:26:48 +00:00
Mihai Alexandru Michis 01a6dfae9d Backed out changeset 9d95edbd8386 (bug 1660892) for causing devtool timeouts.
CLOSED TREE
2020-08-26 15:39:48 +03:00
Alexandre Poirot 6238cd4670 Bug 1660892 - Ignore window objects related to remote iframes in thread actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88074
2020-08-26 08:48:23 +00:00
Alexandre Poirot 26f8349cef Bug 1660897 - Avoid updating the JS context selector too many times. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88073
2020-08-25 05:31:37 +00:00
Nicolas Chevobbe aaa2b8be93 Bug 1659376 - Fix Browser Toolbox inspector when print preview is displayed.r=rcaliman.
The issue was that the getHighlighter request for the about:printpreview
target never settled. It appears that the document always stays in an
unitialized readyState, which was causing trouble.
Instead of relying only on readyState, we now call isDocumentReady, which
also checks if the document is loading.

Differential Revision: https://phabricator.services.mozilla.com/D87756
2020-08-25 07:08:12 +00:00
Nicolas Chevobbe a00c418cc2 Bug 1659376 - Extract isDocumentReady from WalkerActor to inspector utils file. r=rcaliman.
Differential Revision: https://phabricator.services.mozilla.com/D87755
2020-08-25 07:07:48 +00:00
Cody Welsh afc2d249b6 Bug 1654218 - Consolidate style assignments into objects. r=nchevobbe,jdescottes
Reduces explicit "elem.style.x = 'y' assignments by consolidating them
into associated Objects, and using `Object.assign` to make the style
modifications to the respective elements."

Depends on D86866

Differential Revision: https://phabricator.services.mozilla.com/D86867
2020-08-25 06:49:11 +00:00
Cosmin Sabou 7b214fd81a Backed out 6 changesets (bug 1518999) for geckoview failures on scrollToVerticalOnZoomedContentAuto.
Backed out changeset 10bf1552e301 (bug 1518999)
Backed out changeset e62cd63e3595 (bug 1518999)
Backed out changeset 1bf0b02bb0e0 (bug 1518999)
Backed out changeset 2203a9c52afa (bug 1518999)
Backed out changeset 10f07ca7a246 (bug 1518999)
Backed out changeset b90cf6b54c09 (bug 1518999)
2020-08-25 01:02:36 +03:00
Alexandre Poirot 1c24b4ceb7 Bug 1660032 - Make the JS Context selector scrollable. r=jdescottes,nchevobbe
I had to put it in toolbox.css as it wasn't working from EvaluationContextSelector.css.
I imagine that's because the context DOM element are actually in toolbox document rather than the console one.

Also, React must be re-creating all DOM elements anytime there is an update
as you can see the list scroll up, everytime there is an update.
We should probably have a look at that as well.

Differential Revision: https://phabricator.services.mozilla.com/D87620
2020-08-21 09:59:34 +00:00
Sean Feng ef7d515ffb Bug 1518999 - Refactor some performance.getEntries related tests r=mstange
Some tests made some assumptions about the number of returned entries
by performance.getEntries, and these assumptions are not valid
anymore once we added new entries.

Depends on D66463

Differential Revision: https://phabricator.services.mozilla.com/D68645
2020-08-18 21:15:18 +00:00
manas 68019d8bda Bug 1660266 - Encapsulate the code for finding overflow causing elements inside the Overflow Debugging pref. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D87926
2020-08-23 23:05:13 +00:00
Daisuke Akatsuka 5341051fc9 Bug 1634045: Add a README for the compatibility panel. r=rcaliman,Honza
Differential Revision: https://phabricator.services.mozilla.com/D87981
2020-08-24 11:19:47 +00:00
Razvan Maries 5dd733dcb0 Backed out changeset 11f769ec943d (bug 1660266) for perma failures on browser_markup_overflow_badge.js. CLOSED TREE 2020-08-22 21:58:24 +03:00
manas 4ef56c529d Bug 1660266 - Encapsulate the code for finding overflow causing elements inside the Overflow Debugging pref. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D87926
2020-08-22 16:57:04 +00:00
manas 071d9177e5 Bug 1657680 - Make the scrollable badge clickable and add click handler. r=gl,jdescottes,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D86245
2020-08-22 09:12:12 +00:00
Narcis Beleuzu 4751b29785 Backed out changeset ed74d4e4b273 (bug 1657680) for dt failure on browser_markup_overflow_badge.js 2020-08-22 04:42:50 +03:00
manas 88e461c163 Bug 1657680 - Make the scrollable badge clickable and add click handler. r=gl,jdescottes,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D86245
2020-08-21 22:27:18 +00:00
Narcis Beleuzu cb798e0f9e Backed out 2 changesets (bug 1659376) for dt failures on browser_dbg-content-script-sources.js. CLOSED TREE
Backed out changeset 61e3dea03a62 (bug 1659376)
Backed out changeset 86e77b35c75d (bug 1659376)
2020-08-21 20:47:02 +03:00
Nicolas Chevobbe 0cd6331277 Bug 1659376 - Fix Browser Toolbox inspector when print preview is displayed.r=rcaliman.
The issue was that the getHighlighter request for the about:printpreview
target never settled. It appears that the document always stays in an
unitialized readyState, which was causing trouble.
Instead of relying only on readyState, we now call isDocumentReady, which
also checks if the document is loading.

Differential Revision: https://phabricator.services.mozilla.com/D87756
2020-08-21 11:56:51 +00:00
Nicolas Chevobbe f9dc6cb44b Bug 1659376 - Extract isDocumentReady from WalkerActor to inspector utils file. r=rcaliman.
Differential Revision: https://phabricator.services.mozilla.com/D87755
2020-08-21 11:56:48 +00:00