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

24582 Коммитов

Автор SHA1 Сообщение Дата
Chris Peterson 809cd2a13e Bug 1598759 - Remove support for Large-Allocation HTTP header. r=nika,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D140459
2022-03-09 03:18:04 +00:00
Mark Banner 8824cac727 Bug 1758106 - Stop using ChromeUtils.import(..., null) for importing modules in devtools/. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D140320
2022-03-08 16:59:18 +00:00
Sai Hemanth B 0e1c12c055 Bug 1419412 - Hide box model guide when point is NaN. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139784
2022-03-07 08:03:10 +00:00
nchevobbe e43696e781 Bug 1756941 - Rename getOwnPropertiesLength into getOwnPropertyNamesLength. r=jandem
Depends on D139709

Differential Revision: https://phabricator.services.mozilla.com/D140309
2022-03-04 15:45:18 +00:00
Alexandre Poirot ec21853e04 Bug 1757401 - [devtools] Simplify source selectors thanks to thread attribute on sources. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D140079
2022-03-04 09:14:21 +00:00
Nicolas Chevobbe a002fca482 Bug 1756822 - [devtools] Don't include unnecessary properties in console message resource. r=jdescottes.
Don't clone the whole message we receive as a result of a console API call, but select
properties that are being used on the client.
As a result, we're not sending some properties anymore (`functionName`, `addonId`, `workerType`),
and we also don't include some properties when they are falsy and wouldn't bring
any benefit (`counter`,`timer`, `private`, `prefix`, `stacktrace`)

Hopefully this helps save some cycle since we're not cloning an object, but also in the
JSActor communication since the packet we need to send is smaller.

We do similar changes to the webconsoleActor method, which is still used in non
fission scenarios, and remove WebConsoleUtils.cloneObject which is no longer used.

Differential Revision: https://phabricator.services.mozilla.com/D139686
2022-03-04 07:05:06 +00:00
nchevobbe 7189e9cf74 Bug 1756941 - Add DebuggerObject#getOwnPropertiesLength. r=mgaudet.
This new method is being used in DevTools code to replace the usage
that was made of `getOwnPropertyNames` only to retrieve the length
property of the returned array.

Differential Revision: https://phabricator.services.mozilla.com/D139709
2022-03-04 05:58:42 +00:00
Sean Feng 2b99a38b76 Bug 1741671 - Remove browser_navigateEvents.js test r=ochameau
This test does a bunch of assertions for a series of events which
is complex and not reliable. It also becomes overly complicated when
Fission is enabled. Looks like this test isn't really needed, so
we are removing it.

Differential Revision: https://phabricator.services.mozilla.com/D139604
2022-03-03 19:13:48 +00:00
Nicolas Chevobbe e954c570c9 Bug 1757552 - [devtools] Generate actor-less reps stubs.r=bomsy.
This patch is introducing the machinery to automatically generate/check some
stubs used by Reps.
We're focusing on stubs that shouldn't be represented by a front as it's easier
to deal with; we should then have follow up and incremental patches for each
stubs.

Some data can't be retrieved after being serialized/deserialized (`-0`, unsafe int, …),
and in such case the associated test was modified to directly pass the object.

Differential Revision: https://phabricator.services.mozilla.com/D139933
2022-03-03 16:16:50 +00:00
Narcis Beleuzu 4d7efa7f94 Backed out 1 changesets (bug 1757552) for lint failure on browser_dummy.js . CLOSED TREE
Backed out changeset 652aee2a723c (bug 1757552)
2022-03-03 17:19:56 +02:00
Nicolas Chevobbe 283e703931 Bug 1757552 - [devtools] Generate actor-less reps stubs.r=bomsy.
This patch is introducing the machinery to automatically generate/check some
stubs used by Reps.
We're focusing on stubs that shouldn't be represented by a front as it's easier
to deal with; we should then have follow up and incremental patches for each
stubs.

Some data can't be retrieved after being serialized/deserialized (`-0`, unsafe int, …),
and in such case the associated test was modified to directly pass the object.

Differential Revision: https://phabricator.services.mozilla.com/D139933
2022-03-03 14:47:41 +00:00
Alexandre Poirot c7ed2ebfbc Bug 1756490 - [devtools] Use browserId to identify remote tabs in about:debugging. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139312
2022-03-03 12:36:09 +00:00
smolnar a387ae3a47 Bug 1686344 - Fix es lint failure. a=lint-fix CLOSED TREE 2022-03-03 06:29:47 +02:00
Nick Alexander aa53849520 Bug 1686344 - Add test for `--backgroundtask --jsdebugger --wait-for-jsdebugger`. r=devtools-reviewers,jdescottes
This version is as simple as I can make it.  It simply expects the JS
debugger to stop on the breakpoint added automatically by the
backgroundtask debugger command line processing (using
`setBreakpointOnLoad`) and disconnects, expecting the task to continue
execution and exit with exit code 0.

In the future, we'd like to interact with the task environment, for example to:

1. stop on the automatic breakpoint
2. continue
3. stop on a `debugger;`
4. set the task's exit code from a failure code to exit code 0
5. continue
6. verifies the tasks's exit code is 0.

Sadly my attempts to do this fail intermittently in automation.

Differential Revision: https://phabricator.services.mozilla.com/D139156
2022-03-03 03:38:40 +00:00
Nick Alexander d917365044 Bug 1686344 - Support `--backgroundtask --jsdebugger` (and `--wait-for-jsdebugger`). r=mossop,jdescottes
Background task mode is roughly equivalent to `xpcshell`, but inside
the regular browser startup flow.  There is no browser window (no
`Window` at all) and there should be no content processes.  It's
sufficient to treat it like `xpcshell`, with its own stripped-down
actor and a few tweaks to the integration points.

The structural changes in this commit keep `--backgroundtask` mode
slim in the regular case when the Devtools are *not* requested.  This
is reflected in the small changes needed to the
`browser_xpcom_graph_wait.js` test: loading the Devtools
unconditionally causes a huge amount of code to be loaded.  In order
to load the Devtools framework conditionally, we check for
Devtools-specific command line flags and delegate to Devtools when
appropriate.  In order to check the command line flags, we turn the
`BackgroundTasksManager` into an XPCOM service, which allows it to be
instantiated by XPCOM in order to handle the command line.

One final note: this leaves two XPCOM components, "backgroundtasks"
and "backgroundtasksmanager".  Why not combine them?  This is
technically possible but not attractive: we really do want a natural
place for native/C++ code ("backgroundtasks") and JavaScript code
("backgroundtasksmanager").

Differential Revision: https://phabricator.services.mozilla.com/D129771
2022-03-03 03:38:39 +00:00
Nick Alexander 353a6ca92a Bug 1686344 - Pre: Prefix child process output lines with PID>. r=devtools-reviewers,jdescottes
We may get multiple lines or incomplete lines from the pipe, so we
need to split the data and keep the leftover.  This simply makes
debugging a little more pleasant.

Differential Revision: https://phabricator.services.mozilla.com/D139155
2022-03-03 03:38:39 +00:00
Nick Alexander b415214de0 Bug 1741978 - Clean up at shutdown after `--start-debugger-server`. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D139152
2022-03-03 03:38:39 +00:00
Julian Descottes a9045a9bb2 Bug 1757744 - [devtools] Show custom toolbox title for XPCShell debugging r=nchevobbe
Note that XPCShell debugging is usually done via an about:devtools-toolbox tab, so most of the time there will be no title like this.
But we could enable BrowserToolbox xpcshell debugging via https://bugzilla.mozilla.org/show_bug.cgi?id=1620942 and in the meantime this will make it easier to spot configuration issues.

Differential Revision: https://phabricator.services.mozilla.com/D140063
2022-03-02 16:50:13 +00:00
Julian Descottes 8dd0df41aa Bug 1757659 - [devtools] Remove unused methods for parent process codepath in root actor r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D139994
2022-03-02 16:28:46 +00:00
Nicolas Chevobbe cec6a9a43d Bug 1755266 - [devtools] Fix isFrameWithChildTarget for frame element. r=jdescottes.
We do create dedicated targets for frame documents, but
in isFrameWithChildTarget, we were only checking if the
passed element was an iframe, making some area of the code
not behaving correctly (e.g. using the node picker, or
the Inspect Element context menu entry).
This patch fixes this and add a test case to make sure we
don't regress.

Differential Revision: https://phabricator.services.mozilla.com/D140041
2022-03-02 15:39:54 +00:00
Claudia 3339cabe9d Bug 1757382 - [devtools] Change the title to "Resend" on the Headers panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D139820
2022-03-02 11:53:48 +00:00
Daisuke Akatsuka f9369c4811 Bug 1757603: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D140037
2022-03-02 10:45:52 +00:00
Julian Descottes 3a20d1909c Bug 1755434 - [devtools] Regenerate debugger and source-map bundles r=bomsy
Depends on D138763

Differential Revision: https://phabricator.services.mozilla.com/D139737
2022-03-01 19:55:40 +00:00
Julian Descottes 758798d070 Bug 1755434 - [devtools] Replace netmonitor duplicated worker-utils with shared worker-utils r=bomsy
Depends on D138759

Differential Revision: https://phabricator.services.mozilla.com/D138763
2022-03-01 19:55:39 +00:00
Julian Descottes 527157b59c Bug 1755434 - [devtools] Remove debugger devtools-utils package r=bomsy
No significant gain to expect as we are mostly moving things around, but this could reduce the confusion around the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D138759
2022-03-01 19:55:39 +00:00
Cristian Tuns 1a0b214ad9 Backed out 2 changesets (bug 1741671) for causing wpt failures on back-forward-cache/events.html CLOSED TREE
Backed out changeset 7fffe4e20ea8 (bug 1741671)
Backed out changeset fc9c97d475c2 (bug 1741671)
2022-03-01 14:44:53 -05:00
Sean Feng eafc8c6311 Bug 1741671 - Remove browser_navigateEvents.js test r=ochameau
This test does a bunch of assertions for a series of events which
is complex and not reliable. It also becomes overly complicated when
Fission is enabled. Looks like this test isn't really needed, so
we are removing it.

Differential Revision: https://phabricator.services.mozilla.com/D139604
2022-03-01 18:50:46 +00:00
Nicolas Chevobbe 0bcb746065 Bug 1756533 - [devtools] Only store what's needed in devtools.inspector.compatibility.target-browsers. r=jdescottes.
We only need to store the id and status of the selected browsers
for the inspector.
Functions from compatibility-user-settings are renamed to better
convey what they are actually doing, and JSDoc is added to make
everything more explicit.

Differential Revision: https://phabricator.services.mozilla.com/D139394
2022-03-01 15:20:23 +00:00
Nicolas Chevobbe 2894b6c434 Bug 1756620 - [devtools] Remove devtools/shared/compatibility/dataset/browsers.json. r=jdescottes.
The file is not used anymore since we switched to RemoteSettings
to store this dataset.

Differential Revision: https://phabricator.services.mozilla.com/D139392
2022-03-01 15:20:23 +00:00
Nicolas Chevobbe baf0a36e00 Bug 1639020 - [devtools] Re-enable filter-editor-04 and filter-editor-06. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D139839
2022-03-01 11:59:36 +00:00
Cameron McCormack 844fb17be9 Bug 1607913 - Use Consolas instead of Courier New in Windows monospace font prefs. r=jfkthame
A number of tests (and expectations) are updated here to either avoid
accidentally relying on the size of Courier New on Windows, or to
explicitly use Courier New instead of monospace, where it's harder to
work out how to rewrite the test correctly.

Differential Revision: https://phabricator.services.mozilla.com/D87222
2022-03-01 11:03:42 +00:00
Claudia 961a73bfd0 Bug 1756200 - [devtools] Changes multi-line text area feature to use mostly CSS r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D139140
2022-03-01 08:27:54 +00:00
Mattias de los Rios Rogers d400f88399 Bug 1708356 - [devtools] Notify users when a XSSI string has been removed. r=bomsy
This changeset adds a NotificationBox to the ResponsePanel that notifies
users that a XSSI string was removed. This NotificationBox is only
displayed when the user is viewing parsed JSON using properties view.
Furthermore, when XSSI stripped characters are detected the ResponsePanel
will default to raw view.

Depends on D115442

Differential Revision: https://phabricator.services.mozilla.com/D115573
2022-02-28 18:25:22 +00:00
Mattias de los Rios Rogers 79e2fe263b Bug 1708356 - [devtools] Only strip true XSSI prevention sequences while formatting JSON. r=bomsy
This fix makes sure that only valid XSSI prevention sequences are removed
from JSON payloads. Before, any string prepending the JSON payload was
removed which meant malformed JSON could still be displayed in properties
view as if it was valid which confused users.

Differential Revision: https://phabricator.services.mozilla.com/D115442
2022-02-28 18:25:21 +00:00
Alexandre Poirot abdf9aa97b Bug 1757397 - [devtools] Enable consistant return eslint rule in the debugger. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139844
2022-02-28 17:59:32 +00:00
Alexandre Poirot 26c5ba2c1a Bug 1757397 - [devtools] Enable strict eslint rule in the debugger. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139843
2022-02-28 17:59:32 +00:00
criss 8bd0bafa53 Backed out changeset d1e6410ead1d (bug 1514495) for causing failures on browser_jsonview_filter_clear.js. CLOSED TREE 2022-02-28 16:50:10 +02:00
criss 9bebbe01a2 Backed out 2 changesets (bug 1756620, bug 1756533) for causing failures on browser_rules_css-compatibility-check-add-fix.js
Backed out changeset 4984bcaf64cf (bug 1756533)
Backed out changeset 86305783882c (bug 1756620)
2022-02-28 16:49:03 +02:00
colin_czb 039c4abdd1 Bug 1514495 - [devtools] Add a button to clear filter input in JSON inspector r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D135428
2022-02-28 14:01:47 +00:00
Hubert Boma Manilla 4dd5809afa Bug 1757379 - [devtools] Add a function to unifying the shape of the breakpoint r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D139811
2022-02-28 12:59:34 +00:00
Hubert Boma Manilla 308b9eb863 Bug 1757375 - [devtools] Add thread information to some debugger resources r=ochameau
This adds thread information to sources (generated, original and pretty-printed-original), tabs and breakpoints
as its already done with source actors. This will make it easy to apply retrieve and cleanup these resources
based on their thread info without having to do a lot of work.  Might help improve perfomance is some of
the complex selectors.

Differential Revision: https://phabricator.services.mozilla.com/D139810
2022-02-28 12:59:34 +00:00
Nicolas Chevobbe 4fe958191e Bug 1756533 - [devtools] Only store what's needed in devtools.inspector.compatibility.target-browsers. r=jdescottes.
We only need to store the id and status of the selected browsers
for the inspector.
Functions from compatibility-user-settings are renamed to better
convey what they are actually doing, and JSDoc is added to make
everything more explicit.

Differential Revision: https://phabricator.services.mozilla.com/D139394
2022-02-28 10:51:56 +00:00
Nicolas Chevobbe 17e5050429 Bug 1756620 - [devtools] Remove devtools/shared/compatibility/dataset/browsers.json. r=jdescottes.
The file is not used anymore since we switched to RemoteSettings
to store this dataset.

Differential Revision: https://phabricator.services.mozilla.com/D139392
2022-02-28 10:51:56 +00:00
Csoregi Natalia d4c94b197f Backed out 2 changesets (bug 1756533, bug 1756620) for failures on browser_rules_css-compatibility-check-add-fix.js. CLOSED TREE
Backed out changeset 47550f255778 (bug 1756533)
Backed out changeset 40e9d05f7fa1 (bug 1756620)
2022-02-25 18:19:50 +02:00
Nicolas Chevobbe 11c571c6bd Bug 1756533 - [devtools] Only store what's needed in devtools.inspector.compatibility.target-browsers. r=jdescottes.
We only need to store the id and status of the selected browsers
for the inspector.
Functions from compatibility-user-settings are renamed to better
convey what they are actually doing, and JSDoc is added to make
everything more explicit.

Differential Revision: https://phabricator.services.mozilla.com/D139394
2022-02-25 15:05:50 +00:00
Nicolas Chevobbe d10863169f Bug 1756620 - [devtools] Remove devtools/shared/compatibility/dataset/browsers.json. r=jdescottes.
The file is not used anymore since we switched to RemoteSettings
to store this dataset.

Differential Revision: https://phabricator.services.mozilla.com/D139392
2022-02-25 15:05:49 +00:00
Julian Descottes 7051c8315a Bug 1757143 - [devtools] Show the settings to toggle the new performance panel on all channels r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D139688
2022-02-25 12:48:56 +00:00
Alexandre Poirot 0b1f923f0b Bug 1756757 - [devtools] Use waitFor instead of waitUntilPredicate. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139483
2022-02-25 12:10:53 +00:00
Alexandre Poirot 560fbd9491 Bug 1756757 - [devtools] Use wait instead of waitForTime. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139482
2022-02-25 12:10:53 +00:00
Alexandre Poirot d1792a86b7 Bug 1756757 - [devtools] Remove assertEmptyLines being redundant with browser_dbg-breakable-lines.js test. r=bomsy
There was this unique check against non-breakable lines.
browser_dbg-breakable-lines.js now test this much more in depth.
This old unique assertion is not worth keeping.

Differential Revision: https://phabricator.services.mozilla.com/D139481
2022-02-25 12:10:52 +00:00