Commit Graph

24269 Commits

Author SHA1 Message Date
Anny Gakhokidze
5a620b3dd9 Bug 1721217 - Part 5: Change the error code when we cancel loads due to another one starting, r=nika
This allows us to move away from using IsNavigating field in parent-controlled
paths.  Use a new distinct error code in cases when we cancel loads in
Canonical BC due to another load starting. This way, we know to not reset the
urlbar if we are doing another load.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1721217#c10 for longer
explanation of what is going on here.

Differential Revision: https://phabricator.services.mozilla.com/D126845
2021-11-25 20:40:58 +00:00
Markus Stange
116861e876 WIP: Bug 1742855 - Update profiler-get-symbols wasm to d1500c1e935db352eeb97170459d16a20bcddf08. r=canaltinova
This version aligns the FileHandle API with the new IOUtils SyncReadFile API, which saves a few lines of code.
It also fixes a panic which could occur if symbolication tried to do a large out-of-bounds file read.
This bad read range was computed due to incorrect parsing of the macOS 12 dyld shared cache format.

Depends on D132076

Differential Revision: https://phabricator.services.mozilla.com/D132077
2021-11-25 15:54:55 +00:00
Markus Stange
3a8e5688df Bug 1742855 - Report errors from the symbolication worker even if they don't propagate to the main await call. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D132076
2021-11-25 15:54:55 +00:00
Nicolas Chevobbe
9cf2c0002f Bug 1741804 - [devtools] Fix getPropNamesFromObject + storage performance issues. r=jdescottes.
The function, which is only used from previewers.js to retrieve
the first then interesting properties of an object, has a special
case for (local|session)Storage so we loop through their entries
and not their properties.
We're using storage#key to achieve this, but the problem is that
the function is quite slow, and if the storage object has a lot
of entries, it can end up freezing Firefox.
In order to avoid such freeze, for storage object, we're not returning
an array but an iterable object, which most of the time will only be
called 10 times and prevent any perf issue.

Differential Revision: https://phabricator.services.mozilla.com/D131913
2021-11-25 15:03:19 +00:00
Claudia
fad8547640 Bug 1731770 - [devtools] Persit expanded nodes state in the Response Panel. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D128190
2021-11-25 14:56:48 +00:00
Nicolas Chevobbe
3509ad57ad Bug 1605330 - [devtools] Enable context selector on Nightly. r=ochameau.
We take this opportunity to merge the browser toolbox and content toolbox preferences
into a single one.

Depends on D131600

Differential Revision: https://phabricator.services.mozilla.com/D131770
2021-11-25 13:05:39 +00:00
Nicolas Chevobbe
459fde3136 Bug 1742541 - [devtools] Don't try to show PausedDebuggerOverlay if document isn't ready. r=ochameau.
At the moment, the overlay can't be displayed if the DOM isn't loaded,
and we were waiting for that state before trying to show the overlay.
But we can't move forward in the document loading process until we resume,
which mean we could end up in weird state with the overlay, where the
page wasn't paused anymore, but we'd display it.
In this patch, we simply bail out if the document isn't ready.

Differential Revision: https://phabricator.services.mozilla.com/D131884
2021-11-25 06:24:12 +00:00
Cosmin Sabou
f8f59c4e24 Backed out 2 changesets (bug 1742332, bug 1742541) for causing assertion failures on htmlparser/nsExpatDriver.cpp. CLOSED TREE
Backed out changeset 333fa37b4df2 (bug 1742332)
Backed out changeset 762649eb6709 (bug 1742541)
2021-11-25 11:26:14 +02:00
Christoph Kerschbaumer
4e687e9b41 Bug 1742786: Update test devtools/.../browser_resources_document_events.js to work with https-first enabled r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D132008
2021-11-25 07:23:18 +00:00
Nicolas Chevobbe
50f18c0c83 Bug 1742541 - [devtools] Don't try to show PausedDebuggerOverlay if document isn't ready. r=ochameau.
At the moment, the overlay can't be displayed if the DOM isn't loaded,
and we were waiting for that state before trying to show the overlay.
But we can't move forward in the document loading process until we resume,
which mean we could end up in weird state with the overlay, where the
page wasn't paused anymore, but we'd display it.
In this patch, we simply bail out if the document isn't ready.

Differential Revision: https://phabricator.services.mozilla.com/D131884
2021-11-25 06:24:12 +00:00
Julian Descottes
6cc1d8eb14 Bug 1590317 - [devtools] Fix keyboard navigation for about:profiling range inputs r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D131937
2021-11-24 13:50:52 +00:00
Cristian Tuns
ac7a567f03 Backed out 4 changesets (bug 1741808, bug 1742541, bug 1605330, bug 1742332) for causing damp failures. CLOSED TREE
Backed out changeset fe65ddb40037 (bug 1605330)
Backed out changeset d5c4c10f70d9 (bug 1742332)
Backed out changeset 9f637151059d (bug 1741808)
Backed out changeset bd54eacb2d7c (bug 1742541)
2021-11-24 06:43:20 -05:00
Nicolas Chevobbe
c0564bd019 Bug 1742392 - [devtools] Rename onBreakpointAvailable into onThreadStateAvailable. r=bomsy.
This better conveys what the function really does.

Differential Revision: https://phabricator.services.mozilla.com/D131792
2021-11-24 10:23:54 +00:00
Nicolas Chevobbe
59b28c6aa5 Bug 1605330 - [devtools] Enable context selector on Nightly. r=ochameau.
We take this opportunity to merge the browser toolbox and content toolbox preferences
into a single one.

Depends on D131600

Differential Revision: https://phabricator.services.mozilla.com/D131770
2021-11-23 18:56:55 +00:00
Nicolas Chevobbe
a0e98abae5 Bug 1742541 - [devtools] Don't try to show PausedDebuggerOverlay if document isn't ready. r=ochameau.
At the moment, the overlay can't be displayed if the DOM isn't loaded,
and we were waiting for that state before trying to show the overlay.
But we can't move forward in the document loading process until we resume,
which mean we could end up in weird state with the overlay, where the
page wasn't paused anymore, but we'd display it.
In this patch, we simply bail out if the document isn't ready.

Differential Revision: https://phabricator.services.mozilla.com/D131884
2021-11-23 18:56:54 +00:00
Nicolas Chevobbe
72a01fca06 Bug 1741811 - [devtools] Make watchTargets take a single object param. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D131755
2021-11-23 13:23:35 +00:00
Narcis Beleuzu
81698c54eb Backed out changeset 9dfd5e6601a1 (bug 1505304) as requested by nchevobbe 2021-11-23 14:56:24 +02:00
Nicolas Chevobbe
5d77281fc2 Bug 1505304 - [devtools] Make watchTargets take a single object param. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D131755
2021-11-23 12:39:19 +00:00
Julian Descottes
d86a582b80 Bug 1741797 - [devtools] Fix colorpicker click listener signature r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D131602
2021-11-23 11:50:47 +00:00
Sandor Molnar
e524498137 Backed out 2 changesets (bug 1709267) for causing dt failures in browser_about-devtools-toolbox_reload. CLOSED TREE
Backed out changeset da9d3297348d (bug 1709267)
Backed out changeset ec5eb72262cc (bug 1709267)
2021-11-22 22:17:35 +02:00
Alexandre Poirot
8f7f5f4ad4 Bug 1709267 - [devtools] Add support for target switching in about:debugging. r=jdescottes
The challenges here are:
* xpcshell tests still don't support the watcher actor and server side targets. So we have to ensure still using client side target fetched via Descriptor.getTarget RDP request. (We still also need that for WebExtension)
* some tests weren't spawning the TargetCommand while querying TabDescriptor.getTarget. I tuned them to call TargetCommand.startListening so that we start instantiating server side targets, including the top level one retrieved via TabDescriptor.getTarget.

Otherwise, thanks to this patch a few check can now be moved from `if (isLocalTab)` to `if (isTabDescriptor)`.

Differential Revision: https://phabricator.services.mozilla.com/D130761
2021-11-22 18:57:32 +00:00
Alexandre Poirot
32ab65debf Bug 1709267 - [devtools] Remove unused "target" query parameter from toolbox location. r=jdescottes
This wasn't used except for a test and wasn't working with server side targets.
Making this compatible with SST wasn't trivial, so I went for removing this.

Differential Revision: https://phabricator.services.mozilla.com/D130919
2021-11-22 18:57:32 +00:00
Alexandre Poirot
003720c295 Bug 1741669 - [devtools] Implement a faster TargetCommand.getParentTarget. r=nchevobbe
The original intent was to do a synchronous implementation,
but this is hard to do while keeping backward compat.

Differential Revision: https://phabricator.services.mozilla.com/D131398
2021-11-22 18:55:55 +00:00
Alexandre Poirot
ce06e78015 Bug 1741652 - [devtools] Expose commands to all protocol.js fronts. r=nchevobbe
This help any front to interact with commands, which is frequently useful.
In the long run, all fronts should be slowly converted to become commands.

Differential Revision: https://phabricator.services.mozilla.com/D131397
2021-11-22 18:55:55 +00:00
Nicolas Chevobbe
7333db7444 Bug 1742107 - [devtools] Don't ignore same-origin iframe in EventLoop#getAllDebuggees. r=bomsy.
This was causing some issues with PausedDebuggerOverlay with EFT:
As we weren't returning the window to preEnter, we weren't calling
suppressEventHandling on it, which in the end made the call we
have in the overlay to setSuppressedEventListener inoperant.
This wasn't caught by the browser_dbg-paused-overlay-iframe.js test
we have as the method we use to simulate clicking on the button
(highlighterTestFront.clickPausedDebuggerOverlayButton), ends ups calling
the handleEvent method of the highlighter actor directly, bypassing the
regular flow of events in a paused page.

Differential Revision: https://phabricator.services.mozilla.com/D131654
2021-11-22 13:38:44 +00:00
Nicolas Chevobbe
afe2a8de21 Bug 1742329 - [devtools] Fix server chrome inspector test when EFT is enabled. r=ochameau.
We were always using the top level walker front, but as some tests are using iframes,
we need to use the node fronts dedicated walker front instead.
test_inspector-dead-nodes.html is purely skipped when EFT is enabled as it triggers
failures more frequently and it doesn't make much sense anyway (this test will be
migrated to a command test when we move walkerFront#children to a command).

Differential Revision: https://phabricator.services.mozilla.com/D131599
2021-11-22 13:38:44 +00:00
Nicolas Chevobbe
4ae1a542f9 Bug 1742331 - [devtools] Fix more frequent failures on browser_dbg-event-breakpoints-fission.js when EFT is enabled. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D131598
2021-11-22 13:38:43 +00:00
Nicolas Chevobbe
7239e0e622 Bug 1742330 - [devtools] Make browser_resources_document_events.js handle EFT. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D131476
2021-11-22 13:38:43 +00:00
Andreea Pavel
93376ab546 Bug 1717330 - disable browser_touch_event_iframes.js for frequent failures r?#intermittent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D131574
2021-11-19 02:14:06 +00:00
Nazım Can Altınova
fea7d30107 Bug 1741716 - Change the preset to Firefox when profiler popup is activated through web channel r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D131436
2021-11-19 13:49:35 +00:00
Ting-Yu Lin
5d4998ecf4 Bug 1741774 - Support scrollbar-gutter in the style system. r=emilio
This patch adds `scrollbar-gutter` property in CSS Overflow level 3 [1] to the
style system.

`devtools/shared/css/generated/properties-db.js` is generated by
`./mach devtools-css-db`.

[1] https://drafts.csswg.org/css-overflow-3/#scrollbar-gutter-property

Differential Revision: https://phabricator.services.mozilla.com/D131460
2021-11-19 01:48:07 +00:00
Alexandre Poirot
c920bd8a93 Bug 1737194 - [devtools] Strengthen browser_target_command_various_descriptors.js. r=jdescottes
Fix two possible race conditions:
* short lived processes spawn by the test ends up breaking listAllWorkers where the listWorker request
  made against a content process target is throwing because its DevToolsServerConnection is closed.
* the worker created by the test may actually still be visible to WorkerDebuggerManager,
  so use a better technique to catch the WorkerDebugger's id.

Differential Revision: https://phabricator.services.mozilla.com/D131442
2021-11-18 21:43:20 +00:00
Eemeli Aro
453a3f26f0 Bug 1733496 - Migrate key-shortcuts.properties to Fluent. r=jdescottes,fluent-reviewers
This adds `Localization` to `builtin-modules.js` to make it accessible from
`definitions.js`. It's likely that the abstractions used in `definitions.js`
will need to be revisited when `startup.properties` is also migrated to Fluent.

Differential Revision: https://phabricator.services.mozilla.com/D131219
2021-11-18 16:40:03 +00:00
Nicolas Chevobbe
b3f55dd1b1 Bug 1741808 - [devtools] Fix increased failures on browser_toolbox_backward_forward_navigation.js when EFT is enabled. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D131475
2021-11-18 13:22:35 +00:00
Nicolas Chevobbe
11bef8cace Bug 1741803 - [devtools] Fix browser_inspector_iframe-picker-bfcache-navigation with EFT. r=ochameau.
This required 2 changes:
- fixing WatcherActor notifyTargetAvailable so we get notified about the iframe
  target when doing a bfcache navigation (a test case is added in browser_target_command_bfcache.js as well)
- Checking is the target isn't destroyed in inspector onTargetSelected

Differential Revision: https://phabricator.services.mozilla.com/D131471
2021-11-18 13:22:35 +00:00
Nicolas Chevobbe
149cd3677e Bug 1740453 - [devtools] Handle onTargetSelected in accessibility panel. r=ochameau.
A couple tests are added to check that the panel works fine when using the iframe picker.

Differential Revision: https://phabricator.services.mozilla.com/D130611
2021-11-18 13:22:34 +00:00
Raphael Ferrand
702f0ad086 Bug 1498224 - [devtools] Apply new classnames as you type in the .cls section of the rule-view r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129515
2021-11-18 12:52:22 +00:00
Alexandre Poirot
8ed2c76f1f Bug 1740292 - [devtools] Remove target actor's _detach method. r=nchevobbe
Well, the RDP method "detach" still exists, but is now destroying the target actor.
There is no more intermediate state where the actor is "detached" but not destroyed,
which is confusing and no longer useful now that we can longer attach again.

Differential Revision: https://phabricator.services.mozilla.com/D130916
2021-11-18 10:57:02 +00:00
Alexandre Poirot
71f51e2a2f Bug 1740292 - [devtools] Remove all notion of "attached" in target actors. r=nchevobbe
This might make the leftover "detach" method a bit more special.
But ideally we would get rid of it and convert it to a call to target actor's destroy method.

Differential Revision: https://phabricator.services.mozilla.com/D130915
2021-11-18 10:57:02 +00:00
Alexandre Poirot
841b8e961c Bug 1740292 - [devtools] Remove target actor's attach method entirely. r=nchevobbe,devtools-backward-compat-reviewers
(except for the special edgecase of worker's hybrid descriptor/target)

Differential Revision: https://phabricator.services.mozilla.com/D130914
2021-11-18 10:57:01 +00:00
Alexandre Poirot
487d9677f3 Bug 1740292 - [devtools] Stop calling target front attach method. r=nchevobbe
Previous patches made attach method become a no-op, so all these callsites can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D130913
2021-11-18 10:57:01 +00:00
Alexandre Poirot
5aea7b3306 Bug 1740292 - [devtools] Merge target actor's attach methods into their constructors. r=nchevobbe
By doing that, we no longer have to ensure calling attach here and there.
Some followups will be helpful to get rid of detach and all mentions of attach/detach/attached.
Some code, like descriptors and tests are still calling attach, which is now a no-op.
Gettind rid of detach might be slightly more complicated.

Differential Revision: https://phabricator.services.mozilla.com/D130843
2021-11-18 10:57:01 +00:00
Alexandre Poirot
95bb482288 Bug 1740292 - [devtools] Stop calling Target actor's attach method from the frontend. r=nchevobbe,devtools-backward-compat-reviewers
Calling attach was important to bootstrap the thread actor and retrieve its actorID.
But now with server target this is done early on and we already retrieve the actorID
via form(). Except for workers, but I fixed that.

The next patch will ensure that, on the server side we fully initialize the target actors
as soon as they are created.

Differential Revision: https://phabricator.services.mozilla.com/D130842
2021-11-18 10:57:00 +00:00
Alexandre Poirot
19f5a90b8b Bug 1740292 - [devtools] Avoid exception in DOCUMENT_EVENT listener when running xpcshell tests. r=nchevobbe
Note that these exception doesn't seem to make the test fail (for ex in test_nesting-03.js).

Differential Revision: https://phabricator.services.mozilla.com/D130841
2021-11-18 10:56:59 +00:00
Alexandre Poirot
572abaa684 Bug 1740292 - [devtools] Use a single method to create xpcshell target globals. r=nchevobbe
testGlobal and createTestGlobal were redundant.

Differential Revision: https://phabricator.services.mozilla.com/D130840
2021-11-18 10:56:59 +00:00
Florian Quèze
bc5e79f3ae Bug 1741235 - Merge the 'Firefox Front-End' and 'Firefox Platform' profiler presets, r=julienw,fluent-reviewers,nbaumgardner,kpatenio.
Differential Revision: https://phabricator.services.mozilla.com/D131158
2021-11-17 18:37:43 +00:00
Julian Descottes
b9f00defcc Bug 1736321 - [devtools] Document DevTools Sheriffing process r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D128717
2021-11-17 16:16:43 +00:00
Clinton
3c6ae051d2 [devtools] Bug 1737990 - Remove lodash uniq usage r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129965
2021-11-17 15:33:08 +00:00
Tawah Peggy
1cf3aba54d Bug 1737989 - Remove lodash union usage. r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D131227
2021-11-17 15:31:58 +00:00
Csoregi Natalia
63c1f53d14 Backed out 2 changesets (bug 1709267) for causing devtools failures. CLOSED TREE
Backed out changeset e4dc58404c6c (bug 1709267)
Backed out changeset 88f46043876e (bug 1709267)
2021-11-17 17:50:00 +02:00
Jan Odvarko
90968a4061 Bug 1740964 - [devtools] The link for yarn is outdated r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D131330
2021-11-17 14:21:41 +00:00
Nicolas Chevobbe
70a89dbb2c Bug 1740455 - [devtools] Add a test for TabbingOrder highlighter. r=ochameau.
A new method is added in the HighlighterTestActor to retrieve information about
the highglighter.
The test highlights (pun intended) the issue described in Bug 1740509.

Differential Revision: https://phabricator.services.mozilla.com/D130875
2021-11-17 14:07:38 +00:00
Alexandre Poirot
aff1b7a2ce Bug 1709267 - [devtools] Add support for target switching in about:debugging. r=jdescottes
The challenges here are:
* xpcshell tests still don't support the watcher actor and server side targets. So we have to ensure still using client side target fetched via Descriptor.getTarget RDP request. (We still also need that for WebExtension)
* some tests weren't spawning the TargetCommand while querying TabDescriptor.getTarget. I tuned them to call TargetCommand.startListening so that we start instantiating server side targets, including the top level one retrieved via TabDescriptor.getTarget.

Otherwise, thanks to this patch a few check can now be moved from `if (isLocalTab)` to `if (isTabDescriptor)`.

Differential Revision: https://phabricator.services.mozilla.com/D130761
2021-11-17 14:05:15 +00:00
Alexandre Poirot
0fcb928cf6 Bug 1709267 - [devtools] Remove unused "target" query parameter from toolbox location. r=jdescottes
This wasn't used except for a test and wasn't working with server side targets.
Making this compatible with SST wasn't trivial, so I went for removing this.

Differential Revision: https://phabricator.services.mozilla.com/D130919
2021-11-17 14:05:15 +00:00
Julian Descottes
0e2fb01932 Bug 1741369 - [devtools] Import devtools require in head.js for some xpcshell test suites r=ochameau
Depends on D131218

Differential Revision: https://phabricator.services.mozilla.com/D131329
2021-11-17 12:43:27 +00:00
Julian Descottes
212faeb0c3 Bug 1741369 - [devtools] Update paths to loader files in devtools/ r=ochameau
Depends on D131216

Differential Revision: https://phabricator.services.mozilla.com/D131217
2021-11-17 12:43:26 +00:00
Julian Descottes
2a2ef964fb Bug 1741369 - [devtools] Move all loader-related files to devtools/shared/loader r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D131216
2021-11-17 12:43:26 +00:00
Niklas Goegge
5d592a6adb Bug 1617611: Annotate each failing test individually. r=webdriver-reviewers,necko-reviewers,ckerschb,whimboo,valentin
Annotating each test individually lets us avoid introducing new failing tests
while we go through the backlog of failing tests.

Depends on D129162

Differential Revision: https://phabricator.services.mozilla.com/D129163
2021-11-17 11:04:34 +00:00
Julian Descottes
5b84fb14b0 Bug 1740281 - [devtools] Cancel node picker correctly when using client side shortcuts r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D131174
2021-11-17 10:56:39 +00:00
Markus Stange
7a7d1b26de Bug 1726281 - Allow symbolication WebChannel requests for profiler tabs that weren't opened by a profile capturing action. r=julienw
This makes it easier to symbolicate profiles that were captured to a file
without symbolication.

Differential Revision: https://phabricator.services.mozilla.com/D122928
2021-11-16 20:41:24 +00:00
Markus Stange
a9992f19f4 Bug 1625309 - Use /from-browser. r=julienw
This was implemented in https://github.com/firefox-devtools/profiler/pull/3466.

Differential Revision: https://phabricator.services.mozilla.com/D122923
2021-11-16 20:41:24 +00:00
Markus Stange
c6b6868ce0 Bug 1625309 - Make fake-frontend.html work with the WebChannel. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D131189
2021-11-16 20:41:23 +00:00
Markus Stange
c9d0a2af2a Bug 1625309 - Remove the frame script and instead use the WebChannel to expose the profile and symbolication. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D121933
2021-11-16 20:41:23 +00:00
Julian Descottes
d226afc848 Bug 1740438 - [devtools] Remove backward compatibility code for recordAllocations target configuration option r=devtools-reviewers,bomsy
Depends on D130847

Differential Revision: https://phabricator.services.mozilla.com/D130848
2021-11-16 14:34:27 +00:00
Julian Descottes
474ba47047 Bug 1740438 - [devtools] Remove backward compatibility code for clearPickerSupport trait r=devtools-reviewers,bomsy
Depends on D130846

Differential Revision: https://phabricator.services.mozilla.com/D130847
2021-11-16 14:34:27 +00:00
Julian Descottes
cbd04951b9 Bug 1740438 - [devtools] Remove backward compatibility code for typename browsingContextTarget r=devtools-reviewers,bomsy
Depends on D130845

Differential Revision: https://phabricator.services.mozilla.com/D130846
2021-11-16 14:34:26 +00:00
Julian Descottes
a33af7064f Bug 1740438 - [devtools] Remove backward compatibility code for useChildTargetToFetchChildren r=devtools-reviewers,bomsy
Depends on D130844

Differential Revision: https://phabricator.services.mozilla.com/D130845
2021-11-16 14:34:26 +00:00
Julian Descottes
4e5f134653 Bug 1740438 - [devtools] Remove backward compatibility code for event-breakpoints trait r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130844
2021-11-16 14:34:25 +00:00
criss
507f143b88 Backed out 2 changesets (bug 1617611) for causing mochitest failures on storageAccessWithDynamicFpi.js. CLOSED TREE
Backed out changeset fdb2c6bfc0c6 (bug 1617611)
Backed out changeset c3352f4b3681 (bug 1617611)
2021-11-16 13:02:05 +02:00
Niklas Goegge
5b684c7fc6 Bug 1617611: Annotate each failing test individually. r=webdriver-reviewers,necko-reviewers,ckerschb,whimboo,valentin
Annotating each test individually lets us avoid introducing new failing tests
while we go through the backlog of failing tests.

Depends on D129162

Differential Revision: https://phabricator.services.mozilla.com/D129163
2021-11-16 10:15:45 +00:00
Hubert Boma Manilla
de4e58224c Bug 1736366 - [devtools] Refactor the getBreakpointSources selector to no longer use makeShallowQuery r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D128742
2021-11-16 09:51:18 +00:00
Sylvestre Ledru
39a2e463ea Bug 1714788 - doc: Fix a Pygments warning r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Warning:
lexer name 'bz_comment_text' is not known

Depends on D131047

Differential Revision: https://phabricator.services.mozilla.com/D131095
2021-11-16 07:59:49 +00:00
Sylvestre Ledru
1df999712f Bug 1714788 - doc: do not provide the language if the code isn't valid r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Otherwise, the warning is displayed:
```
WARNING: Could not lex literal_block as "json". Highlighting skipped.
```

Depends on D131092

Differential Revision: https://phabricator.services.mozilla.com/D131093
2021-11-16 07:59:48 +00:00
Sylvestre Ledru
cc801c974a Bug 1714788 - doc: Remove an html artifact r=firefox-source-docs-reviewers,championshuttler,nchevobbe DONTBUILD
Depends on D131091

Differential Revision: https://phabricator.services.mozilla.com/D131092
2021-11-16 07:59:47 +00:00
Sylvestre Ledru
e747d0c0f5 Bug 1714788 - doc: Fix a warning 'Inline interpreted text' r=firefox-source-docs-reviewers,championshuttler DONTBUILD
WARNING: Inline interpreted text or phrase reference start-string without end-string.

Depends on D131090

Differential Revision: https://phabricator.services.mozilla.com/D131091
2021-11-16 07:59:47 +00:00
Markus Stange
39942c6822 Bug 1728602 - Use IOUtils.openFileForSyncReading in symbolication-worker.js. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D124208
2021-11-16 00:17:40 +00:00
Dão Gottwald
84973358a7 Bug 1740954 - Remove the arrowposition attribute. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131059
2021-11-15 23:03:43 +00:00
Norisz Fay
212a384c46 Backed out 5 changesets (bug 1740438) for causing xpcshell failures on test_action-toggle-recording-allocations.js CLOSED TREE
Backed out changeset 28518fbe3077 (bug 1740438)
Backed out changeset f33ea874875c (bug 1740438)
Backed out changeset f20e36b0d1d4 (bug 1740438)
Backed out changeset 2f166a7bc13b (bug 1740438)
Backed out changeset 9d9bcf855ceb (bug 1740438)
2021-11-15 12:40:16 +02:00
Julian Descottes
9a7494f5c7 Bug 1740438 - [devtools] Remove backward compatibility code for recordAllocations target configuration option r=devtools-reviewers,bomsy
Depends on D130847

Differential Revision: https://phabricator.services.mozilla.com/D130848
2021-11-15 08:46:37 +00:00
Julian Descottes
2c9b193c11 Bug 1740438 - [devtools] Remove backward compatibility code for clearPickerSupport trait r=devtools-reviewers,bomsy
Depends on D130846

Differential Revision: https://phabricator.services.mozilla.com/D130847
2021-11-15 08:46:37 +00:00
Julian Descottes
d55289222a Bug 1740438 - [devtools] Remove backward compatibility code for typename browsingContextTarget r=devtools-reviewers,bomsy
Depends on D130845

Differential Revision: https://phabricator.services.mozilla.com/D130846
2021-11-15 08:46:36 +00:00
Julian Descottes
fd96986f11 Bug 1740438 - [devtools] Remove backward compatibility code for useChildTargetToFetchChildren r=devtools-reviewers,bomsy
Depends on D130844

Differential Revision: https://phabricator.services.mozilla.com/D130845
2021-11-15 08:46:36 +00:00
Julian Descottes
793ef6b2aa Bug 1740438 - [devtools] Remove backward compatibility code for event-breakpoints trait r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130844
2021-11-15 08:46:35 +00:00
Julian Descottes
167e19ec64 Bug 1737790 - [devtools] Color picker should fallback on getClosestBackgroundColor for elements without quads r=nchevobbe
The getBackgroundColor already has fallback paths for several situations.
We now use the fallback in case getAdjustedQuads returned an empty array.

A browser mochitest is added to cover this issue as well.

Differential Revision: https://phabricator.services.mozilla.com/D130750
2021-11-15 08:44:46 +00:00
Nicolas Chevobbe
674b6582ba Bug 1740454 - [devtools] Fix a11y panel react warnings. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130855
2021-11-15 07:00:03 +00:00
Mats Palmgren
a36baa4d58 Bug 1706346 part 3 - [css-lists] Remove the internal '-moz-list-reversed' CSS property that is no longer needed. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D129957
2021-11-14 03:49:36 +00:00
Daisuke Akatsuka
d5a15f449b Bug 1740857: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D131035
2021-11-12 08:07:15 +00:00
Hiroyuki Ikezoe
db5de169ad Bug 1692708 - Add cancelScrollAnimation and use it in window_bug1369072.html and browser_scroll.js. r=botond
Both window_bug1369072.html and browser_scroll.js have a pattern something like;

1) Call synthesizeKey to scroll an element
2) Wait a scroll event
3) Test something
4) (Re)set the scroll position to (0, 0) by calling Element.scrollTop and
   Element.scrollLeft or scrollTo.

With the new transmogrification the step 4) will not reset the scroll position
if there's an on-going scroll animation in APZ triggered by the synthesizeKey.

To avoid the situation where there's an on-going animation at the step 4), we
destroy the corresponding scrollable frame and reconstruct it so that it
clobbers the animation.

Differential Revision: https://phabricator.services.mozilla.com/D130852
2021-11-12 07:54:17 +00:00
Marian-Vasile Laza
539896f064 Backed out 3 changesets (bug 1726281, bug 1625309) for causing mochitest failures on browser_popup-profiler-states.js. CLOSED TREE
Backed out changeset 3c997d7eac8d (bug 1726281)
Backed out changeset 9ad8265a7c22 (bug 1625309)
Backed out changeset 801a44944072 (bug 1625309)
2021-11-11 02:14:36 +02:00
Markus Stange
c200137e29 Bug 1726281 - Allow symbolication WebChannel requests for profiler tabs that weren't opened by a profile capturing action. r=julienw
This makes it easier to symbolicate profiles that were captured to a file
without symbolication.

Differential Revision: https://phabricator.services.mozilla.com/D122928
2021-11-10 21:20:35 +00:00
Markus Stange
a78624d8f9 Bug 1625309 - Use /from-browser. r=julienw
This was implemented in https://github.com/firefox-devtools/profiler/pull/3466.

Differential Revision: https://phabricator.services.mozilla.com/D122923
2021-11-10 21:20:35 +00:00
Markus Stange
b72813b697 Bug 1625309 - Remove the frame script and instead use the WebChannel to expose the profile and symbolication. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D121933
2021-11-10 21:20:34 +00:00
Clinton
1882c3b3e7 Bug 1710284 - Copying CSS Rules manually from the Devtools Inspector inserts extra indentation r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D130549
2021-11-10 20:15:45 +00:00
Nicolas Chevobbe
1541e545c6 Bug 1740548 - [devtools] Fix browser_rules_selector-highlighter-iframe-picker.js intermittent. r=ochameau.
Make the test wait until we don't have an active highlighter anymore.

Differential Revision: https://phabricator.services.mozilla.com/D130888
2021-11-10 17:03:22 +00:00
Nicolas Chevobbe
8de52475ac Bug 1740456 - [devtools] Check existence of inspector panel before using it in registerInspectorExtensionSidebar. r=jdescottes.
The method was throwing if the toolbox was opened with a panel different than
the inspector one but for which we do initialize the inspector front (e.g. Accessibility Panel).

Differential Revision: https://phabricator.services.mozilla.com/D130854
2021-11-10 16:59:23 +00:00
Nicolas Chevobbe
24877826e3 Bug 1740296 - [devtools] Fix accessibility test names. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130765
2021-11-10 16:30:08 +00:00
Paul Adenot
6ae686a644 Bug 1739408 - Add new WebRTC threads in the Media profiler preset. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D130473
2021-11-10 15:15:52 +00:00
Nicolas Chevobbe
37a6a78645 Bug 1739115 - [devtools] Add a section for xpcshell debugging in recurring devtools tasks documentation. r=bomsy,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D130267
2021-11-10 14:55:37 +00:00
Nicolas Chevobbe
779b2e96eb Bug 1739061 - [devtools] Remove skip-if annotation on console context selector tests. r=ochameau.
Those tests are passing with Fission enabled, as well as with EFT enabled.
it would be better to not skip them, so we remove the annotation, and use specific
assertions to handle cases where the tests shouldn't pass.

Differential Revision: https://phabricator.services.mozilla.com/D130244
2021-11-10 14:51:06 +00:00
Nicolas Chevobbe
57cd75a819 Bug 1738915 - [devtools] Set webconsole context when selecting frame in iframe picker. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130180
2021-11-10 14:51:05 +00:00
Nicolas Chevobbe
1983c64a23 Bug 1730148 - [devtools] Handle onTargetSelected in DOM panel. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130332
2021-11-10 14:51:05 +00:00
Nicolas Chevobbe
062332598e Bug 1730148 - [devtools] Add a onSelect argument to targetCommand.watchTargets . r=ochameau.
This will allow panels to react to a given target being selected in the iframe picker
when EFT is enabled.
We add support for onTargetSelected in the inspector and add a few test cases
for it (checking that highlighters are hidden when selecting a frame, checking
that selecting an iframe and then removing it does update the markup view).

Differential Revision: https://phabricator.services.mozilla.com/D130177
2021-11-10 14:51:04 +00:00
Nicolas Chevobbe
bdbcfaa7e8 Bug 1730148 - [devtools] Use targetCommand to populate iframe picker when EFT is enabled. r=ochameau.
The iframe picker code is refactored a bit so it's easier to follow.
This patch makes it so we support both EFT and non EFT scenarios.

Differential Revision: https://phabricator.services.mozilla.com/D130241
2021-11-10 14:51:04 +00:00
Cristian Tuns
e72368c08e Backed out 5 changesets (bug 1738915, bug 1739061, bug 1730148) for causing mochitest failures on browser_resources_document_events.js CLOSED TREE DONTBUILD
Backed out changeset 24c1a120bb77 (bug 1739061)
Backed out changeset eb9953fd3252 (bug 1738915)
Backed out changeset 9bd72db885eb (bug 1730148)
Backed out changeset 819078e24fa6 (bug 1730148)
Backed out changeset a0e706688adc (bug 1730148)
2021-11-10 07:07:57 -05:00
Nicolas Chevobbe
f0d4406586 Bug 1739061 - [devtools] Remove skip-if annotation on console context selector tests. r=ochameau.
Those tests are passing with Fission enabled, as well as with EFT enabled.
it would be better to not skip them, so we remove the annotation, and use specific
assertions to handle cases where the tests shouldn't pass.

Differential Revision: https://phabricator.services.mozilla.com/D130244
2021-11-10 10:44:52 +00:00
Nicolas Chevobbe
d18f89ee77 Bug 1738915 - [devtools] Set webconsole context when selecting frame in iframe picker. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130180
2021-11-10 10:44:52 +00:00
Nicolas Chevobbe
c27ad7085f Bug 1730148 - [devtools] Handle onTargetSelected in DOM panel. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130332
2021-11-10 10:44:51 +00:00
Nicolas Chevobbe
4ea74879bb Bug 1730148 - [devtools] Add a onSelect argument to targetCommand.watchTargets . r=ochameau.
This will allow panels to react to a given target being selected in the iframe picker
when EFT is enabled.
We add support for onTargetSelected in the inspector and add a few test cases
for it (checking that highlighters are hidden when selecting a frame, checking
that selecting an iframe and then removing it does update the markup view).

Differential Revision: https://phabricator.services.mozilla.com/D130177
2021-11-10 10:44:51 +00:00
Nicolas Chevobbe
8a4f2c2c22 Bug 1730148 - [devtools] Use targetCommand to populate iframe picker when EFT is enabled. r=ochameau.
The iframe picker code is refactored a bit so it's easier to follow.
This patch makes it so we support both EFT and non EFT scenarios.

Differential Revision: https://phabricator.services.mozilla.com/D130241
2021-11-10 10:44:51 +00:00
Nicolas Chevobbe
a938f83a91 Bug 1737967 - [devtools] Replace usage of lodash debounce with DevTools own debounce method. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D130460
2021-11-10 06:37:54 +00:00
Julian Descottes
1db1989ee5 Bug 1737690 - [devtools] Use a devtools css variable for the auto theme notification text color r=Honza
Using --theme-contrast-color. Sadly --theme-contrast-background looks pretty bad in dark theme, so we can't use the background color.
But the text color itself is fine against --theme-selection-background-hover, so let's use this

Differential Revision: https://phabricator.services.mozilla.com/D130754
2021-11-09 15:52:31 +00:00
Nicolas Chevobbe
3b6ea985b0 Bug 1739990 - Fix perf regression in getInScopeLines. r=jdescottes.
The patch for Bug 1737993 did a very readable but not performant replacement
of lodash `without` usage in `getInScopeLines`.
This patch changes things a bit so we get a similar level of performance as
what we had before, when using `without`.
For this we :
- make `getOutOfScopeLines` returns a `Set` so checking inclusion is faster
- create the final array of "in scope lines" using a for loop and assigning
  line number when needed, and then filtering out empty slots.

Differential Revision: https://phabricator.services.mozilla.com/D130742
2021-11-09 14:37:43 +00:00
Gerald Squelart
2cc9f2df7f Bug 1738627 - Add experimental "... - All Threads" options in about:profiling - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D130012
2021-11-08 23:59:37 +00:00
Julian Descottes
2078bf262e Bug 1731323 - [devtools] Use a shared test helper to wait for all loaded panels in browser_aboutdebugging_addons_debug_reload.js r=Honza
This changeset adds a new shared helper which allows to wait for all the loaded panels of a toolbox.
We might use this by default in our navigation helper, but that should be done in a follow up.

Differential Revision: https://phabricator.services.mozilla.com/D130616
2021-11-08 16:24:05 +00:00
Nicolas Chevobbe
2125a049e6 Bug 1739371 - [devtools] Fix browser_inspector_command_findNodeFrontFromSelectors.js intermittent. r=ochameau.
The 0 timeout wasn't enough on some platform, so we reload the page before calling
the method; since we're targetting an iframe that takes a few seconds to load,
the call should time out every time.

Differential Revision: https://phabricator.services.mozilla.com/D130612
2021-11-08 14:25:49 +00:00
Hubert Boma Manilla
8318c4c60b Bug 1738941 - [devtools] Resume the toolbox state if paused on target destroyed r=ochameau
Enabled an existing test relating to Bug 1722305, that tests the fix in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D130256
2021-11-08 14:04:35 +00:00
Julian Descottes
f93ec5ae05 Bug 1733671 - [devtools] Support dark mode for aboutdebugging profiler popup header r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130408
2021-11-08 12:29:02 +00:00
Narcis Beleuzu
cc1b82440a Backed out changeset 1f2fde2975bb (bug 1731770) for dt failure on browser_net_details_copy.js . CLOSED TREE 2021-11-08 14:27:34 +02:00
Claudia
efa834cd24 Bug 1731770 - [devtools] Persit expanded nodes state in the Response Panel. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D128190
2021-11-08 10:57:39 +00:00
Marian-Vasile Laza
483bf912d9 Backed out changeset 2635e89a1790 (bug 1733671) for causing mochitest failures on browser_parsable_css.js. CLOSED TREE 2021-11-08 13:21:34 +02:00
Nicolas Chevobbe
8713b908e0 Bug 1739215 - [devtools] Revert click to sendMouseEvent in browser_webconsole_location_styleeditor_link.js. r=bomsy.
The test is tagged as `fail-if= a11y_checks`, but as patch for Bug 1738124 switched
to Element.click, we don't get the expected failure anymore (since the a11y_check
task does not perform assertion on element.click).
Let's revert to the original behavior so we can still see that the test need
some a11y work.

Differential Revision: https://phabricator.services.mozilla.com/D130610
2021-11-08 10:21:18 +00:00
Julian Descottes
6af510632f Bug 1733671 - [devtools] Support dark mode for aboutdebugging profiler popup header r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130408
2021-11-08 09:59:50 +00:00
Julian Descottes
b57daab268 Bug 1737865 - [devtools] Do not treat xpcshell targets as parent process targets r=ochameau,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D130212
2021-11-08 08:03:08 +00:00
angelina
97cdc02a03 Bug 1733285 List xhtml in HTML filter r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D128267
2021-11-05 14:01:39 +00:00
Julian Descottes
d78bdfe181 Bug 1731323 - [devtools] Wait for panel reload in browser_aboutdebugging_addons_debug_reload.js r=Honza
Reuse helper from shared-head.js to wait for the currently selected panel to be reloaded in the intermittent test.

Differential Revision: https://phabricator.services.mozilla.com/D130154
2021-11-05 10:20:09 +00:00
Cristian Tuns
1aeac93d23 Backed out 5 changesets (bug 1738627) for causing xpcshell failures on test_ext_geckoProfiler_schema.js CLOSED TREE
Backed out changeset 42d385d7da97 (bug 1738627)
Backed out changeset edeb3a338954 (bug 1738627)
Backed out changeset 98f02e35134d (bug 1738627)
Backed out changeset 711daa6dd24b (bug 1738627)
Backed out changeset 49e12753a40c (bug 1738627)
2021-11-05 05:12:28 -04:00
Gerald Squelart
ddfe54e593 Bug 1738627 - Add experimental "... - All Threads" options in about:profiling - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D130012
2021-11-05 05:52:29 +00:00
Nicolas Chevobbe
7b01e258e1 Bug 1737988 - [devtools] Remove lodash times usage. r=bomsy.
The whole function could be refactored to not use any lodash method.

Differential Revision: https://phabricator.services.mozilla.com/D129608
2021-11-04 12:42:43 +00:00
Nicolas Chevobbe
c884c7e108 Bug 1737800 - [devtools] Remove lodash pullAt usage. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D129602
2021-11-04 12:42:43 +00:00
Nicolas Chevobbe
fb7892c351 Bug 1737960 - [devtools] Remove usage of lodash escapeRegExp. r=Honza.
We're inlining the function directly in the only place where it's used.
We also make some changes to buildQuery to _not_ escape the negative lookbehind
that may be produced by the call to ignoreWhiteSpace.

Differential Revision: https://phabricator.services.mozilla.com/D129601
2021-11-04 12:42:42 +00:00
Nicolas Chevobbe
248315cea3 Bug 1737805 - [devtools] Remove lodash kebabCase usage. r=Honza.
The function usage wasn't providing any benefit, so
we can simply drop it.

Differential Revision: https://phabricator.services.mozilla.com/D129600
2021-11-04 12:42:42 +00:00
Nicolas Chevobbe
7378e0cf79 Bug 1737230 - [devtools] Fix NodeActor#getUniqueSelector fallback value. r=jdescottes.
The function is expected to return a string, but was returning an array
if the associated node was dead.
This patch makes it return an empty string instead.

Differential Revision: https://phabricator.services.mozilla.com/D130175
2021-11-04 08:58:05 +00:00
Nicolas Chevobbe
d0f503f1f1 Bug 1733537 - [devtools] Replace usage of NodeFront#getAllSelectors with a command. r=jdescottes,devtools-backward-compat-reviewers.
`getAllSelectors` was used to retrieve a given nodeFront selector from the top
window (e.g. it would go up through documents).
This doesn't work with nodeFronts in remote frames, as we wouldn't be able to
reach for cross-process parent documents.
This patchs adds a new inspector command that computes the selector, reaching the
different documents.
All usages of `NodeFront#getAllSelectors` are switched to the new command, which
allows us to delete the method and another function that was only used there.
With the new command doing a bit more work, this highlighted some issue in our
codebase. Some consumers were relying on `selectionCssSelectors`, without waiting
for it to be updated when a new node was selected.
As a result a few tests were failing because of this.
So where it's possible and not perf critical, we simply compute the selector again.
We also emit a new event, `selection-css-selectors-updated`, so tests can wait
until it's properly set before doing further actions.

Differential Revision: https://phabricator.services.mozilla.com/D127928
2021-11-04 08:58:05 +00:00
Nicolas Chevobbe
bfdcfd66e1 Bug 1735551 - [devtools] Add a timeout to findNodeFrontFromSelectors. r=ochameau.
Since the method might wait for iframe to load, it could stay unsettled for a
while.
Adding a timeout will make the callsites not wait for ever, at the expense of
correctness.
This should be okay as this function is mainly called to re-set things after
reloading the page, which is a nice to have, but not critical feature.

Differential Revision: https://phabricator.services.mozilla.com/D128854
2021-11-04 08:58:04 +00:00
Nicolas Chevobbe
bffe6d76b9 Bug 1735551 - [devtools] Make findNodeFrontFromSelectors command handle remote iframes. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D128714
2021-11-04 08:58:04 +00:00
Nicolas Chevobbe
2761ac6280 Bug 1735551 - [devtools] Make NodeActor#waitForFrameLoad handle transient about:blank document. r=ochameau.
At the moment we call `waitForFrameLoad`, the iframe `contentDocument` might be
a transient about:blank document, and in such case we weren't waiting properly for
it to be loaded.
To fix this, we wait until the final document is inserted first.
Tests will be added in another commit of this queue.

Differential Revision: https://phabricator.services.mozilla.com/D128713
2021-11-04 08:58:03 +00:00
Nicolas Chevobbe
c64f0fb67c Bug 1735551 - [devtools] Turn WalkerFront#findNodeFront into a command. r=ochameau.
The callsites are migrated to the new command, except from the webconsole test
in which we replace usage with existing inspector test helper.

Differential Revision: https://phabricator.services.mozilla.com/D128712
2021-11-04 08:58:03 +00:00
Nicolas Chevobbe
725dd3531e Bug 1738058 - [devtools] Fix browser_styleeditor_syncIntoRuleView.js intermittent. r=ochameau.
This patch sets the focus on the editor before simulating typing.

Differential Revision: https://phabricator.services.mozilla.com/D130243
2021-11-04 06:14:59 +00:00
Alexandre Poirot
2e4828ee20 Bug 1730154 - [devtools] Create targets for iframes reusing the initial about:blank WindowGlobal. r=nchevobbe
When loading an iframe in the same origin/process, we end up with an edge case.
A first "initial" about:blank document is created to bootstrap the iframe.
A `DOMWindowCreated` event is fired and its `document.isInitialDocument` is true.
If no URL is set on the iframe, it stops there and we won't create any target for this special document.
(As we ignore `DOMWindowCreated` events when `document.isInitialDocument` is true)

Then, if an URL is set on the iframe, we don't create any new WindowGlobal,
instead we will reuse the about:blank's document's one.
It means that there won't be any new DOMWindowCreated event.

Fortunately, there is a `DOMDocElementInserted` fired, which we can listen here.
We can then instantiate a target actor and that, only if no target was previously created
by a previous `DOMWindowCreated`. In all other cases, we would receive a `DOMWindowCreated`
with `document.isInitialDocument` set to false.

Differential Revision: https://phabricator.services.mozilla.com/D128456
2021-11-03 17:40:25 +00:00
Nicolas Chevobbe
b0d25cacc3 Bug 1738124 - [devtools] Fix browser_webconsole_location_styleeditor_link.js intermittent. r=bomsy.
This patch makes it so we don't call `setCursor` when the styleeditor initial
stylesheet is opened.

Differential Revision: https://phabricator.services.mozilla.com/D130194
2021-11-03 16:01:58 +00:00
Hubert Boma Manilla
8fc47e85e4 Bug 1738255 - [devtools] Use async/await and promises for the in the netmonitor test pages r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D129816
2021-11-03 12:45:01 +00:00
Alexandre Poirot
3361a09b16 Bug 1675456 - [devtools] Support reloading the current document debugged for a WebExtension. r=nchevobbe
Without this, the webconsole fails to execute anything after reloading the add-on document.
Can reproduce by running `location.reload()` in the console.

Differential Revision: https://phabricator.services.mozilla.com/D129009
2021-11-03 11:08:54 +00:00
Alexandre Poirot
6e52e70ede Bug 1675456 - [devtools] Enable watcher for webextension toolboxes. r=nchevobbe,devtools-backward-compat-reviewers
There is a few things complex around WebExtension debugging:
* DevTools creates a browser element and connect to it.
  The WebExtensionDescriptor instantiate its very own browser element
  and DevTools codebase communicate to the extension process via this browser element.
  We are still using the frame connector and message manager.
  We do that especially to workaround add-on not having any document running (no background page, nor any popup).
  Without that we wouldn't have any document and couldn't spawn any WindowGlobalTarget actor.
* We have a unique target, debugging many documents.
  `webExtensionTargetPrototype._searchForExtensionWindow` will iterate over all document and try to
  switch the WebExtensionTargetActor to another document.
  This is based on `WindowGlobalTarget._setWindow` and so use the same magic hack
  than the iframe dropdown to change the debugging document of a given WindowGlobal.

What is especially tricky about this is that we connect to the devtools specific browser element
in the parent process having one specific browserId, while in the content, we most likely
move the WebExtensionTargetActor to the background page, having a distinct browserId.
For a given extension, all their browser elements (background page, popups) are independant
and have distinct browserId.

Because of this we can't rely on the existing browser-element watcher context type.
We rather need to do a filtering the `addonId` which is correctly set on each document's principals.

Ideally, we would spawn one target for each of these browser elements.
To do that, we have to begin with supporting the watcher actor for webextension (purpose of this patch).
Then we would need EFT, otherwise the iframe dropdown would no longer work for webextension,
whereas that's a really key feature when debugging them.

All this is brittle, but there is a lot of chicken-egg issues here.
It would be best if we were spawning one Target for each individual extension document.
But to do that, we first need to start supporting the Watcher codepath.
Also, we would need EFT, otherwise the iframe dropdown would no longer work for extension documents.
Which is an important feature for add-ons debugging.
Note that for now, we don't watch for any additional targets when debugging a webextension.
(TargetCommand doesn't call watchTargets(FRAME))

In the meantime, we can at least start supporting the Watcher actor and server watchers,
but we will have to workaround the fact that we have a unique target, instantiated from the client,
by the descriptor. And this target may switch its focus to various documents.

Supporting server side resource watching is actually a serious motivation here.
This would help get rid of the last usage of the old storage actor (which also keeps running setupInParent and ultimately client side target switching).
But to do that we need a hack just for web extension.
As we have a unique target, with a fixed and surprising browserId/browsingContextID (related to the devtools browser element),
we have to ensure that all resources are emitted via these IDs, otherwise the ResourceCommand wouldn't be able to match the target front.

Differential Revision: https://phabricator.services.mozilla.com/D99099
2021-11-03 11:08:54 +00:00
Jan Odvarko
16402859b4 Bug 1737573 - [devtools] Migrate MDN docs into Sphinx (connect docs to toc + css) r=nchevobbe,ahal
Differential Revision: https://phabricator.services.mozilla.com/D129798
2021-11-03 10:45:52 +00:00
Jan Odvarko
befbc86e2b Bug 1737573 - [devtools] Migrate MDN docs into Sphinx (import rst files) r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129607
2021-11-03 10:45:51 +00:00
Jan Odvarko
4a38d3dccd Bug 1737573 - [devtools] Migrate MDN docs into Sphinx (import images III.) r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129795
2021-11-03 10:45:48 +00:00
Jan Odvarko
59a20e1fb1 Bug 1737573 - [devtools] Migrate MDN docs into Sphinx (import images II.) r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129794
2021-11-03 10:45:44 +00:00
Jan Odvarko
5835b23152 Bug 1737573 - [devtools] Migrate MDN docs into Sphinx (import images I.) r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129604
2021-11-03 10:45:40 +00:00
Nicolas Chevobbe
5381a7fe3d Bug 1737775 - [devtools] Add a test for reloading inspector when Shadow DOM node is selected. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D130174
2021-11-03 07:46:00 +00:00
Emilio Cobos Álvarez
b3522226e6 Bug 1738265 - Explicitly close some devtools menus in some tests. r=nchevobbe,devtools-reviewers
With the negative margin, some context menus that remain open start
getting events that would otherwise go to the content underneath
(and which the affected tests need to pass).

Close the context menus explicitly in the affected tests (this is
what would usually happen if a user clicked a context menu item
anyways).

Differential Revision: https://phabricator.services.mozilla.com/D129867
2021-11-02 11:03:51 +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
Alexandre Poirot
4465bb9663 Bug 1735825 - [devtools] Pass Watcher's context down to the content process via DevToolsFrame queries and WatcheRegistry. r=jdescottes
This is the second and last step, to propagate the context down to the content process.
So that now, whenever we introduce a new context or add something into it,
it should be automatically made available to the whole codebase.

Differential Revision: https://phabricator.services.mozilla.com/D128491
2021-11-02 10:57:23 +00:00
Alexandre Poirot
02c1a22e99 Bug 1735825 - [devtools] Introduce a context in Watcher actor to describe what context should be debugged. r=jdescottes
This is only the beginning, focusing first on parent process usages.
WatcherActor still expose browserElement shortcut as it is useful in many places.
Context is kept JSON-serializable in order to later pass it through the SessionData.

Differential Revision: https://phabricator.services.mozilla.com/D128490
2021-11-02 10:57:23 +00:00
Clinton
14b0e9f677 [Devtools] Bug 1737993 - Remove lodash without usage r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129881
2021-11-02 09:55:12 +00:00
Francesco Lodolo (:flod)
7142424b1b Bug 1738836 - Remove unused DTD strings from devtools, r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D130145
2021-11-02 06:22:53 +00:00
alessia_vanni
fc75050c26 Bug 1736036 - Intermittent devtools/client/netmonitor/test/browser_net_url-preview.js r=bomsy,Honza
Differential Revision: https://phabricator.services.mozilla.com/D129138
2021-11-01 11:49:11 +00:00
Emilio Cobos Álvarez
71e6f9ec23 Bug 1738616 - Enable color-scheme for nightly and early beta. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129995
2021-11-01 10:53:36 +00:00
Sebastian Hengst
87ae3310ac Bug 1738449 - Set expected in browser_toolbox_window_reload_target_force.js channel agnostic. r=sefeng
The changes in bug 1468476 dropped the requirement to re-validate subdocuments
but only in Nightly (controlled by the preference
browser.soft_reload.only_force_validate_top_level_document. Outside Nightly the
expected header "max-age=0" has to be kept.

Differential Revision: https://phabricator.services.mozilla.com/D129978
2021-11-01 09:26:17 +00:00
criss
b70d72fb37 Backed out 2 changesets (bug 1738616) for causing failures on system-color-compute.html. CLOSED TREE
Backed out changeset 4a5f291ac21e (bug 1738616)
Backed out changeset 900009f02d58 (bug 1738616)
2021-11-01 10:45:28 +02:00
Emilio Cobos Álvarez
cfa260bae5 Bug 1738616 - Update property database.
MANUAL PUSH: Orange fix CLOSED TREE
2021-11-01 01:57:48 +01:00
Emilio Cobos Álvarez
1421e7f545 Bug 1525107 - Make Canvas/CanvasText and Link colors color-scheme-aware. r=dholbert
For that, add `.dark` version of the browser.display* prefs that control
the light version of these colors.

The default for background/foreground colors are taken from the
GenericDarkColors used in LookAndFeel.

The defaults for links are based on this discussion:

  https://github.com/whatwg/html/issues/5426#issuecomment-904021675

(So they effectively match Chrome).

Whether the dark colors should be exposed in about:preferences (like the
light colors are) is TBD.

With this patch, we pass all the tests in:

  /html/semantics/document-metadata/the-meta-element/color-scheme/

Use the colors to paint the default canvas background and the default
colors.

There are three "regressions", though they are really progressions: we
now render the reference as the test expects (before we rendered a light
canvas background even for the reference).

Apart of these iframe tests (which we should look into, I filed
https://bugzilla.mozilla.org/show_bug.cgi?id=1738380), there are three
remaining test failures.

Two of them are due to `color: initial` not changing based on the
color-scheme. Safari also fails these tests, and the thing they're
really testing is whether system colors are preserved at computed-value
time:

  https://github.com/w3c/csswg-drafts/issues/3847

Regarding that change, I'm not so sure the trade-offs there are worth
it, as that not only complicates interpolation (we wouldn't be able to
use system colors in color-mix among others, see
https://github.com/w3c/csswg-drafts/issues/5780) plus it changes
inheritance behavior in sorta unexpected ways, see:

  https://github.com/w3c/csswg-drafts/issues/6773

Which I just filed because apparently no browser implements this
correctly. So for now will punt on those (keep matching Safari).

There's an svg-as-image test:

  https://searchfox.org/mozilla-central/rev/f8576fec48d866c5f988baaf1fa8d2f8cce2a82f/testing/web-platform/tests/css/css-color-adjust/rendering/dark-color-scheme/svg-as-image.html

Which isn't using the feature at all and I'm not sure why is it supposed
to pass (why prefers-color-scheme: dark is supposed to match that SVG
image). This test fails in all browsers apparently:

  https://wpt.fyi/results/css/css-color-adjust/rendering/dark-color-scheme/svg-as-image.html?label=master&label=experimental&aligned

I sent https://github.com/web-platform-tests/wpt/pull/31407 to remove
it and hopefully get it reviewed by some Chromium folks.

Differential Revision: https://phabricator.services.mozilla.com/D129746
2021-10-29 19:58:25 +00:00
Riya
c45c0f507e Bug 1730126 - Enable ESLint rule no-loss-of-precision. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D129336
2021-10-29 08:29:26 +00:00
Sean Feng
5283aecc5d Bug 1468476 - Make soft reload only force validates top level document r=necko-reviewers,nika,dragana,asuth
Currently, soft reload uses the `VALIDATE_ALWAYS` flag to not only
force revalidate the top level document, but also subresources.
This causes content to be refetched from the web even if there
are caches that are still valid and can be used.

Chrome already has such behaviour to not revalidate all resources.

Differential Revision: https://phabricator.services.mozilla.com/D122270
2021-10-28 16:11:56 +00:00
angelina
7bc5cfbd80 Bug 1733089 Minor css changes to vertically center items r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D129407
2021-10-28 13:08:22 +00:00
Noemi Erli
0ac4387461 Backed out 2 changesets (bug 1734573) per developer's request CLOSED TREE
Backed out changeset 7d7d9674f18f (bug 1734573)
Backed out changeset 0e5afef7d074 (bug 1734573)
2021-10-27 21:43:19 +03:00
Nicolas Chevobbe
662a550b33 Bug 1726776 - [devtools] Fix StyleSheet editor selector highlighter when Fission is enabled. r=bomsy.
The highlighters weren't working in remote frame as the StyleSheetEditor
was always trying to use the top-level walker and highlighter fronts.
To fix that, we retrieve the appropriate fronts given the stylesheet
resource.
The existing test is augmented, which meant making the highlighterTestActor
slightly better.

Differential Revision: https://phabricator.services.mozilla.com/D128354
2021-10-27 12:05:30 +00:00
Emilio Cobos Álvarez
d98863bdfd Bug 1737749 - Use color-scheme to override default native form control appearance when devtools is themed. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D129615
2021-10-27 11:24:44 +00:00
Kershaw Chang
884ae6cd4e Bug 1734573 - Fix failed test, r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D127825
2021-10-26 19:39:28 +00:00
Nicolas Chevobbe
58623e14d6 Bug 1737758 - [devtools] Fix browser_inspector_iframe-navigation.js with EFT. r=bomsy.
The test was reloading an iframe twice very quickly, which could cause Promise
failures as a new target is created each time (when EFT is enabled).
To fix those, we wait for the ROOT_NODE resource associated with the new target.

Depends on D129483

Differential Revision: https://phabricator.services.mozilla.com/D129484
2021-10-26 17:57:33 +00:00
Nicolas Chevobbe
ca100c5d7a Bug 1737756 - [devtools] Fix browser_inspector_highlighter-selector_02.js when EFT is enabled. r=bomsy.
This patch ensures that we are using the target-dedicated highlighterTestFront to
run some assertion on highlighters.

Depends on D129481

Differential Revision: https://phabricator.services.mozilla.com/D129483
2021-10-26 17:57:33 +00:00
Nicolas Chevobbe
c6a6ae5fdf Bug 1737755 - [devtools] Fix browser_inspector_highlighter-iframes_01 when EFT is enabled. r=bomsy.
When EFT is enabled, we have dedicated target highlighter actors; this patch ensures
we're retrieving those (and associated highlighterTestFront) to check that highlighters
do work in iframes.
`getNodeFrontInFrames` is modified so it copies the array we pass to it, as it
performs some mutation on it, and the callsite might use it later.

Depends on D129386

Differential Revision: https://phabricator.services.mozilla.com/D129481
2021-10-26 17:57:32 +00:00
Nicolas Chevobbe
9c2c033f38 Bug 1737571 - [devtools] Fix browser_resources_stylesheets_navigation.js when EFT is enabled. r=bomsy.
The test had comments and disabled assertions to work around Bug 1725547.
When EFT is enabled, the issue is fixed, so the test was failing.
This patch modifies the tests to add some branches when EFT is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D129386
2021-10-26 17:57:32 +00:00
Onyinye Ezike
699e151280 Bug 1714809 - [devtools] fix copy as cURL that returns invalid header. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D128600
2021-10-26 14:36:38 +00:00
Hannah Peuckmann
09b6c3a033 Bug 1567443 - Added flag for indicating secure Chrome UI in nsIAboutModule. r=pbz,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D128188
2021-10-26 13:32:31 +00:00
criss
7c13c79ea0 Backed out 2 changesets (bug 1734573) for causing failures on browser_net_brotli.js. CLOSED TREE
Backed out changeset 1b2194a0e1ec (bug 1734573)
Backed out changeset 51a00e9f45a3 (bug 1734573)
2021-10-26 15:02:41 +03:00
Kershaw Chang
262d2490e3 Bug 1734573 - Fix failed test, r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D127825
2021-10-26 11:21:44 +00:00
Jan Odvarko
eca2f3ae2a Bug 1737572 - [devtools] Move documentation for contributors to a subfolder r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129389
2021-10-26 09:41:51 +00:00
Hubert Boma Manilla
11d12597e4 Bug 1735024 - [devtools] Fix the leaks from firefox data provider r=ochameau
Fixes the leaks of the cached stacktrace info in stackTraceInfoByActorID.
Prior to this fix, the stacktrace info in the cache is only removed when the stacktrace
details panel is opened, meaning if the details panel is never opened the
info is never cleared and leaks.
This fixes the netmonitor and the webconsole as they both use the data provider

### Leak Info

####  Netmonitor
Before: 151 leaked objects (14611 with missing allocation site) in the parent process
After: -111 leaked objects (14150 with missing allocation site) in the parent process

#### Webconsole
Before: 271 leaked objects (13996 with missing allocation site) in the parent process
After: 1 leaked objects (13810 with missing allocation site) in the parent process

Differential Revision: https://phabricator.services.mozilla.com/D128015
2021-10-25 13:57:44 +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
Riya
ac2ad7e7f2 Bug 1737032 - Removed traces of "remote XUL". r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129255
2021-10-25 11:00:47 +00:00
Cristian Tuns
0b4f04d43f Backed out changeset 177e6f28d348 (bug 1567443) for causing mochitest failures on browser_check_identity_state.js. CLOSED TREE 2021-10-25 06:45:43 -04:00
Hannah Peuckmann
06382f1212 Bug 1567443 - Using nsIAboutModule flag instead of regex to indicate secure about page. r=pbz,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D128188
2021-10-25 09:34:06 +00:00
Oriol Brufau
e9578e2365 Bug 1737482 - [devtools] Include properties and prototype when inspecting promise. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129359
2021-10-25 06:54:34 +00:00
Oriol Brufau
d14f4da3e5 Bug 1734940 - Add checks for switching JSON Viewer tab in tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D128029
2021-10-25 06:17:32 +00:00
Hubert Boma Manilla
7ef6129206 Bug 1737253 - [devtools] Remove backward compatibility code for network persist r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129258
2021-10-22 19:41:10 +00:00
Hubert Boma Manilla
67a1eaf625 Bug 1737254 - [devtools] Remove backward compatibility code for setSaveRequestAndResponseBodies r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129257
2021-10-22 19:41:10 +00:00
Hubert Boma Manilla
acb42371b2 Bug 1737255 - [devtools] Remove backward compatibilty code for this.traits r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129256
2021-10-22 19:41:10 +00:00
Tim Chevalier
7048979054 Bug 1729563 - Implement change-array-by-copy methods r=mgaudet,arai
See https://tc39.es/proposal-change-array-by-copy/

    Added jit-test tests in change-array-by-copy.js

Depends on: D127201

Differential Revision: https://phabricator.services.mozilla.com/D126146
2021-10-22 18:38:10 +00:00
Cristian Tuns
4503ab7b22 Bug 1721716 - disable browser_animation_current-time-scrubber-rtl.js on linux debug. r=MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D129266
2021-10-22 14:35:12 +00:00
Julian Descottes
debd38d0e3 Bug 1737059 - [devtools] Reenable 2 cache storage tests with https-first r=bomsy
Depends on D128991

I was wrong about 2 cache storage tests in D128866.
I thought the issue was realted to the proxy bug, but I simply had forgotten to update 2 urls ...

Differential Revision: https://phabricator.services.mozilla.com/D129184
2021-10-22 14:30:55 +00:00
criss
152f71d4d3 Backed out changeset b60f98f26664 (bug 1576768) for causing mochitest failures. CLOSED TREE 2021-10-22 15:55:50 +03: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
Butkovits Atila
501936a356 Backed out changeset 5d37c5a5e07a (bug 1735024) for causing node failure. CLOSED TREE 2021-10-22 14:10:27 +03:00
Hubert Boma Manilla
2f8a28d28d Bug 1735024 - [devtools] Fix the leaks from firefox data provider r=ochameau
Fixes the leaks of the cached stacktrace info in stackTraceInfoByActorID.
Prior to this fix, the stacktrace info in the cache is only removed when the stacktrace
details panel is opened, meaning if the details panel is never opened the
info is never cleared and leaks.
This fixes the netmonitor and the webconsole as they both use the data provider

### Leak Info

####  Netmonitor
Before: 151 leaked objects (14611 with missing allocation site) in the parent process
After: -111 leaked objects (14150 with missing allocation site) in the parent process

#### Webconsole
Before: 271 leaked objects (13996 with missing allocation site) in the parent process
After: 1 leaked objects (13810 with missing allocation site) in the parent process

Differential Revision: https://phabricator.services.mozilla.com/D128015
2021-10-22 10:43:34 +00:00
Butkovits Atila
868d142f3a Backed out 3 changesets (bug 1729563) for causing python failures. CLOSED TREE
Backed out changeset 4376dd492672 (bug 1729563)
Backed out changeset 4ebf6330fb4e (bug 1729563)
Backed out changeset f01c6f2e678d (bug 1729563)
2021-10-22 09:34:43 +03:00
Tim Chevalier
b875da249f Bug 1729563 - Implement change-array-by-copy methods r=mgaudet,arai
See https://tc39.es/proposal-change-array-by-copy/

    Added jit-test tests in change-array-by-copy.js

Depends on: D127201

Differential Revision: https://phabricator.services.mozilla.com/D126146
2021-10-22 06:04:29 +00:00
Geoff Lankow
f7e1754be6 Bug 1698112 - Move whatsnew.svg from browser to toolkit. r=sfoster
This reference was added in bug 1735359 which landed at the same time as bug 1698112

Differential Revision: https://phabricator.services.mozilla.com/D129219
2021-10-21 23:41:24 +00:00
Geoff Lankow
58b170669d Bug 1698112 - Stop referencing browser files from toolkit, and prevent it happening again with a test. r=preferences-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D128974
2021-10-21 21:54:52 +00:00
Julian Descottes
64526df84a Bug 1735359 - [devtools] Enable DevTools auto theme by default r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D128268
2021-10-21 21:08:24 +00:00
Marian-Vasile Laza
ae7cb9ee56 Backed out 3 changesets (bug 1735825) for causing bc failures on browser_ext_devtools_inspectedWindow.js. CLOSED TREE
Backed out changeset 6e1fab3e66c8 (bug 1735825)
Backed out changeset ef25f892cec3 (bug 1735825)
Backed out changeset 4e2ba86016fe (bug 1735825)
2021-10-21 22:44:54 +03:00
Alexandre Poirot
b4938944be Bug 1735825 - [devtools] Pass watcher context down to TargetActorRegistry. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128897
2021-10-21 17:05:49 +00:00
Alexandre Poirot
4abd1aff46 Bug 1735825 - [devtools] Pass Watcher's context down to the content process via DevToolsFrame queries and WatcheRegistry. r=jdescottes
This is the second and last step, to propagate the context down to the content process.
So that now, whenever we introduce a new context or add something into it,
it should be automatically made available to the whole codebase.

Differential Revision: https://phabricator.services.mozilla.com/D128491
2021-10-21 17:05:49 +00:00
Alexandre Poirot
1a13f2abff Bug 1735825 - [devtools] Introduce a context in Watcher actor to describe what context should be debugged. r=jdescottes
This is only the beginning, focusing first on parent process usages.
WatcherActor still expose browserElement shortcut as it is useful in many places.
Context is kept JSON-serializable in order to later pass it through the SessionData.

Differential Revision: https://phabricator.services.mozilla.com/D128490
2021-10-21 17:05:49 +00:00
Julian Descottes
c5893e82af Bug 1725182 - Ensure remaining tests within devtools/client are https-first compliant r=bomsy
Depends on D128931

One inspector test was missed in a previous bug, as well as all the framework browser-toolbox tests.

Differential Revision: https://phabricator.services.mozilla.com/D128991
2021-10-21 13:58:56 +00:00
Julian Descottes
4cfad2e62f Bug 1736678 - Ensure tests within devtools/client/webconsole are https-first compliant r=nchevobbe
Depends on D128866

Differential Revision: https://phabricator.services.mozilla.com/D128931
2021-10-21 13:58:56 +00:00
Julian Descottes
366c175b0d Bug 1736509 - Ensure tests within devtools/client/storage are https-first compliant r=bomsy
Depends on D128865

For the storage inspector , most tests were migrated to https with notable exceptions:
- some cache tests checking a status (blocked on the proxy issue described at Bug 1733420)
- some tests are explicitly using mixed http/https via the test page devtools/client/storage/test/storage-listings.html

Differential Revision: https://phabricator.services.mozilla.com/D128866
2021-10-21 13:58:55 +00:00
Alexandre Poirot
31b127d6d3 Bug 1736824 - [devtools] Really stop listener and emitting events in DocumentEventsListener after being destroyed. r=nchevobbe
We weren't removing listeners on the target actor,
and also some late DOMContentLoaded/load event may be fired.
We were getting exception because of late events when closing the toolbox on a still-loading page.

Differential Revision: https://phabricator.services.mozilla.com/D129056
2021-10-21 10:21:22 +00:00
Alexandre Poirot
79e4b59343 Bug 1736824 - [devtools] Fix "consoleFront is null" exception when reloading the page. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129055
2021-10-21 10:21:22 +00:00
Frederik Braun
733e1b0c8f Bug 1736786 - use option.textContent in devtools css filter widget r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128990
2021-10-21 07:09:51 +00:00
Michael[tm] Smith
95631783b8 Bug 1736026 - Show HTTP status code in CORS messages r=necko-reviewers,emilio,valentin
Differential Revision: https://phabricator.services.mozilla.com/D128596
2021-10-21 02:55:15 +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
Alexandre Poirot
971e021dba Bug 1717724 - [devtools] Remove attachConsole sequence. r=nchevobbe
This is one step forward removing target attach sequence on the client side.
So that we can notify about target front immediately from TargetCommand.

I had to tweak TargetMixin destroy to avoid failures in browser_dbg_listtabs-01.js
a call to targetFront.reconfigure was never resolving, because the target destroy
was stuck on this call to detach().
We were trying to call detach() while the descriptor was destroyed (from a server side notification).
The target being a child of descriptor it ends up destroy itself, but the request is meant to fail.

Depends on D118585

Differential Revision: https://phabricator.services.mozilla.com/D118586
2021-10-19 12:28:00 +00:00
Alexandre Poirot
716014661a Bug 1717724 - [devtools] Remove web console actor traits. r=nchevobbe,devtools-backward-compat-reviewers
This depends on calling startListening, which forces target to be attached asynchronously.
Also, we would like to stop calling startListening as it has been replaced by watchResources APIs.

If we ever need a trait, we should rather use RootActor one,
as it is easy to read by any code. Or we should come up with something
more robut and more generic that this startListening setup.

Depends on D118584

Differential Revision: https://phabricator.services.mozilla.com/D118585
2021-10-19 12:27:59 +00:00
Alexandre Poirot
876f60dacd Bug 1717724 - [devtools] Listen to inspectObject console actor event directly from the toolbox. r=nchevobbe
This code in TargetMixin was only used the Toolbox.
Let's avoid one unecessary onion layer.

Depends on D118583

Differential Revision: https://phabricator.services.mozilla.com/D118584
2021-10-19 12:27:59 +00:00
Alexandre Poirot
77f31c59a5 Bug 1717724 - [devtools] Remove blockedUrls traits. r=nchevobbe,devtools-backward-compat-reviewers
This has been introduced in Fx 80 via bug 1546394
and can now be considered as default backend API.

Differential Revision: https://phabricator.services.mozilla.com/D118583
2021-10-19 12:27:58 +00:00
wartmanm
54751aa56a Bug 1658238 - Autocomplete source-mapped variable names r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87117
2021-10-19 11:40:09 +00:00
Emilio Cobos Álvarez
9f1b361b71 Bug 1736141 - Remove unneeded observer in devtools theme code. r=jdescottes
The toolbar pref change triggers eventually a look-and-feel-changed
notification, so no need to observe that directly.

Depends on D128674

Differential Revision: https://phabricator.services.mozilla.com/D128675
2021-10-19 10:48:53 +00:00
Julian Descottes
8130ddcaa7 Bug 1735660 - [devtools] Ensure tests within devtools/client/netmonitor are https-first compliant r=bomsy
A lot of tests need to disable https-first because of the proxy issue.

Differential Revision: https://phabricator.services.mozilla.com/D128640
2021-10-19 06:20:49 +00:00
Daisuke Akatsuka
3a9f49b17a Bug 1736257: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D128697
2021-10-18 12:04:10 +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
Julian Descottes
0fd5bdd82c Bug 1735358 - [devtools] Switch back default theme from auto to light/dark r=nchevobbe
Depends on D128093

We will attempt to re-enable the auto theme by default in Bug 1735359

Differential Revision: https://phabricator.services.mozilla.com/D128239
2021-10-18 07:54:45 +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
Andreea Pavel
fe44c27442 Bug 1714106 - disable browser_webextension_dropdown.js on linux64 not debug r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D128689
2021-10-17 16:53:28 +00:00
Andreea Pavel
1adce1147f Bug 1732486 - disable browser_dbg-windowless-service-workers.js on linux64 debug r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D128691
2021-10-17 16:52:42 +00: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
criss
f46d6ec78d Backed out changeset c9da45719e55 (bug 1736026) for causing mochitest failures. CLOSED TREE 2021-10-16 14:51:08 +03:00
Michael[tm] Smith
6b6358f7fc Bug 1736026 - Show HTTP status code in CORS messages r=necko-reviewers,emilio,valentin
Differential Revision: https://phabricator.services.mozilla.com/D128596
2021-10-16 11:05:41 +00:00
Iulian Moraru
b3b30b910b Backed out changeset 8d4598bfbe3a (bug 1735358) for causing mochitest failures on browser_toolbox_theme_registration.js. CLOSED TREE 2021-10-16 00:21:51 +03:00
Julian Descottes
d1f57ecd6d Bug 1735358 - [devtools] Switch back default theme from auto to light/dark r=nchevobbe
Depends on D128093

We will attempt to re-enable the auto theme by default in Bug 1735359

Differential Revision: https://phabricator.services.mozilla.com/D128239
2021-10-15 20:27:28 +00:00
Yury Delendik
e2fe3c6702 Bug 1735926 - [devtools] update wasmparser to 5.4.0. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D128539
2021-10-15 19:09:28 +00: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
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
alessia_vanni
362943a25c Bug 1732305 - Last parameter in a GET request not shown - Test added - r=bomsy,Honza
Differential Revision: https://phabricator.services.mozilla.com/D128391
2021-10-15 10:42:39 +00:00
alessia_vanni
d07baf9ce7 Bug 1732305 - Last parameter in a GET request not shown r=bomsy,Honza
Differential Revision: https://phabricator.services.mozilla.com/D128338
2021-10-15 10:42:38 +00:00
Alexandre Poirot
81c32a44e0 Bug 1735632 - [devtools] Avoid running allocation tracker test on code coverage builds. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128408
2021-10-15 06:19:52 +00:00
Markus Stange
ef69ba47fa Bug 1735404 - Update profiler-get-symbols to aa88b56c26a0cbb31d5540b335fe1ea7fc404e2d. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D128292
2021-10-14 20:05:57 +00:00
Alexandre Poirot
2d648e16b7 Bug 1735624 - [devtools] Avoid running allocation test on code coverage builds. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128407
2021-10-14 19:32:18 +00:00
Marian-Vasile Laza
f3ed253216 Backed out 3 changesets (bug 1729563) as req by mgaudet (for causing Bug 1735775). CLOSED TREE
Backed out changeset dc52f8437ba0 (bug 1729563)
Backed out changeset baf92822b1bf (bug 1729563)
Backed out changeset 118e645725d0 (bug 1729563)
2021-10-14 19:33:36 +03:00
Paul Zuehlcke
7f25b13ac6 Bug 1732919 - Update browser_webconsole_requestStorageAccess_errors for updated user activation requirement. r=nchevobbe
The base patch updated the behavior of document.requestStorageAccess to require user activation and moved the user activation check to the top of the method.
To test for the other rsA error messages, which are in the user activation guarded parts of the method, we need to simulate user activation.
Requiring user activation also means we should not run the rsA requests in parallel to avoid side effects.

Differential Revision: https://phabricator.services.mozilla.com/D128106
2021-10-14 12:22:03 +00:00
Julian Descottes
fdb84813c8 Bug 1735658 - [devtools] Reenable https-first for /browser_inspector_fission_frame_navigation.js r=nchevobbe
Reenable https-first for the test now that example.net can be used with HTTPS
Also add URL_ROOT_NET_SSL to the shared-head shortcuts

Differential Revision: https://phabricator.services.mozilla.com/D128414
2021-10-14 12:07:58 +00:00
Alexandre Poirot
a90dd56274 Bug 1728072 - [devtools] Avoid TargetFront.getAllFront to throw when a target is destroyed while it is processing. r=nchevobbe
This patch helps fix browser_grids_grid-list-on-target-added-removed.js when applying previous patches of this queue.
Slightly delay the precise timing when we emit target-destroyed.
This introduce a race condition in getAllFronts, which most likely cache
a list of target fronts before receiving the target-destroyed event,
then process the top level target asynchronously,
then try to process the iframe target which has been destroyed in the meantime.
Trying to call TargetFront.getFront on this destroyed target throws
and ultimately break the grid inspector which will reset its view from GridInspector._updateGridPanel.

Differential Revision: https://phabricator.services.mozilla.com/D128346
2021-10-14 09:15:12 +00:00
Alexandre Poirot
064956920a Bug 1728072 - [devtools] Prevent leaking the first top level target. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D123925
2021-10-14 09:15:11 +00:00
Alexandre Poirot
a96daf16f0 Bug 1728072 - [devtools] Ensure destroying all children iframes targets before destroying their top target. r=bomsy
browser_target_command_frames.js covers explicit destruction order of iframes and started failing
because of the code to delay target-destroyed to be fired *after* will-navigate for top targets.

Differential Revision: https://phabricator.services.mozilla.com/D128091
2021-10-14 09:15:11 +00:00
Alexandre Poirot
8d5620ba12 Bug 1728072 - [devtools] Use innerWindowId to match DOCUMENT_EVENT's will-navigate's target front. r=nchevobbe
By matching via BrowsingContext's ID, we can match the next Target Front,
of the page we navigate to. That, instead of matching the previous Target Front,
of the page we navigate from.
Using innerWindowId allows to match a unique target actor/front.

(It help fix browser_aboutdebugging_devtoolstoolbox_navigate_back_forward.js and browser_webextension_inspected_window.js)

Differential Revision: https://phabricator.services.mozilla.com/D127773
2021-10-14 09:15:11 +00:00
Alexandre Poirot
b9e88908f8 Bug 1728072 - [devtools] WindowGlobalTarget's form's BrowsingContext id and innerWindowId shouldn't be affected by the iframe dropdown. r=nchevobbe
These IDs should be fixed to the top level WindowGlobal that the target is debugging.
We somewhat fake changing to another WindowGlobal to implement the iframe dropdown
(via WindowGlobal.setWindow) but this is only transient and doesn't change
the fact that the current target actor is meant to debug its original top level WindowGlobal.

Not doing this confuses the TargetCommand which is trying to look for a target actor
for the iframe we switched to, which doesn't exists as it doesn't have any specific target actor.

Differential Revision: https://phabricator.services.mozilla.com/D127776
2021-10-14 09:15:10 +00:00
Alexandre Poirot
031b6be654 Bug 1728072 - [devtools] Ensure that WindowGlobal._originalWindow is set immediatly (before attach). r=nchevobbe
Otherwise, it may be null if we query this attribut in between target instantiation and the time we attach it.

(Note that browser_inspector_iframe-picker-bfcache-navigation.js covers this)

Differential Revision: https://phabricator.services.mozilla.com/D127775
2021-10-14 09:15:09 +00:00
Alexandre Poirot
8e6729f234 Bug 1728072 - [devtools] Delay target-destroyed to be emitted *after* will-navigate. r=nchevobbe
Without this many tests start failing when we start using innerWindowId to match targets.
Because will-navigate's target front is destroyed before the frontend
process DOCUMENT_EVENT's will-navigate.

(It helps fix browser_aboutdebugging_devtoolstoolbox_navigate_back_forward.js and browser_webextension_inspected_window.js)

Differential Revision: https://phabricator.services.mozilla.com/D127772
2021-10-14 09:15:09 +00:00
Nicolas Chevobbe
814b282c84 Bug 1735154 - [devtools] Fix screenshot in same-remote frame when EFT is enabled. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D128363
2021-10-14 06:11:21 +00:00
Alexandre Poirot
6a070ab993 Bug 1731967 - [devtools] Renamed all "watcher data" to "session data". r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D128349
2021-10-13 16:35:06 +00:00