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

21186 Коммитов

Автор SHA1 Сообщение Дата
Mihai Alexandru Michis 6dc1109534 Bug 1651135 - Fix lint errors in browser_jsonview_chunked_json.js a=fix
CLOSED TREE
2020-07-10 15:36:35 +03:00
Neil Deakin b8cba0987b Bug 1651141, remove framescript and message manager usage from browser_toolbox_window_reload_target.js, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82575
2020-07-10 00:51:55 +00:00
Neil Deakin 5d5d1e8b69 Bug 1651140, remove framescript and message manager usage from devtools netmonitor tests, r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D82574
2020-07-10 10:02:06 +00:00
Neil Deakin 48e6f1cd8a Bug 1651138, remove framescript from browser_toolbox_options_enable_serviceworkers_testing.js, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82573
2020-07-10 00:51:38 +00:00
Neil Deakin d566f06f12 Bug 1651135, remove framescript and message manager usage from devtools json tests, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82571
2020-07-10 00:51:20 +00:00
Nicolas Chevobbe 712ac31e0c Bug 1651667 - Replace stringToCodes Array.map call by a simple loop. r=rcaliman.
When profiling, I can see the function being 10 times faster now.

Differential Revision: https://phabricator.services.mozilla.com/D82892
2020-07-10 10:14:07 +00:00
Nicolas Chevobbe de82cf7714 Bug 1605162 - Test that context selector is updated when pausing in a remote frame. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D71527
2020-07-10 09:19:48 +00:00
Farooq AR 4fabbe2929 Bug 1646027 - Request mimeType should be sent on response start. r=Honza,bomsy,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82206
2020-07-10 07:48:54 +00:00
Daisuke Akatsuka f384956392 Bug 1650658: Revert PerformanceController to have toolbox. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D82829
2020-07-09 23:16:09 +00:00
Tom Prince 2c52622b85 Bug 1651731: [lint] Add a bunch more types of files that should never be executable; r=linter-reviewers,perftest-reviewers,geckoview-reviewers,preferences-reviewers,agi,sylvestre,sparky
Differential Revision: https://phabricator.services.mozilla.com/D82953
2020-07-09 21:28:49 +00:00
Csoregi Natalia 55e9fe527f Backed out 3 changesets (bug 1645234) for causing leaks. CLOSED TREE
Backed out changeset 6097753dbefa (bug 1645234)
Backed out changeset f74844ba692a (bug 1645234)
Backed out changeset a90a3c1efdc5 (bug 1645234)
2020-07-10 01:54:09 +03:00
Andrea Marchesini 3c1b71a6e4 Bug 1651618 - Use cookie 'SameSite' attribute with capital 'S' everywhere, r=flod,fluent-reviewers,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,whimboo,sparky
Differential Revision: https://phabricator.services.mozilla.com/D82872
2020-07-09 20:40:15 +00:00
Johann Hofmann a2b45ec970 Bug 1645234 - Add a test for document.requestStorageAccess error messages. r=nchevobbe
Depends on D79788

Differential Revision: https://phabricator.services.mozilla.com/D80972
2020-07-09 20:13:04 +00:00
Johann Hofmann d2abd7c95a Bug 1645234 - Add learn more link to storage access API warnings. r=nchevobbe
Depends on D79597

Differential Revision: https://phabricator.services.mozilla.com/D79788
2020-07-09 20:12:57 +00:00
Micah Tigley af6e13372c Bug 1648616 - Remove code path separation for old-RDM test helpers. r=gl
Depends on D82428

Differential Revision: https://phabricator.services.mozilla.com/D82429
2020-07-09 20:20:25 +00:00
Micah Tigley 47a80c7dfa Bug 1648616 - Remove all references to "usingBrowsingUI" option in RDM tests. r=gl
Depends on D82427

Differential Revision: https://phabricator.services.mozilla.com/D82428
2020-07-09 20:20:17 +00:00
Micah Tigley bc9e0dd52e Bug 1648616 - Remove tests for old RDM. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D82427
2020-07-09 20:19:57 +00:00
Julian Descottes 7b9705ac23 Bug 1650336 - Add the session id to the WebconsoleAddMessages marker label r=nchevobbe
An issue with the current approach is that labels are a bit too big for the marker chart sidebar in the profiler UI.
An issue was filed to address this at https://github.com/firefox-devtools/profiler/issues/2638

Differential Revision: https://phabricator.services.mozilla.com/D82772
2020-07-09 16:36:18 +00:00
Yura Zenevich ff699eadb0 Bug 1649307 - ensure that we do not prevent defaults or stop propagation for events that are for the remote frame target. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D82630
2020-07-09 16:00:32 +00:00
Razvan Maries b0c852f91a Backed out 2 changesets (bug 1647735) for GetViewportInfo perma failures. CLOSED TREE
Backed out changeset deb2f679f4fb (bug 1647735)
Backed out changeset bb88c365b828 (bug 1647735)
2020-07-09 18:45:22 +03:00
Micah Tigley a785e38a2a Bug 1647735 - Add a test for checking that ICB fallback width uses the larger viewport width. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D82540
2020-07-09 00:40:15 +00:00
Nicolas Chevobbe d7fdb5bb73 Bug 1644186 - Add server support for Error messages resources. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D81356
2020-07-09 12:39:22 +00:00
Itiel bd28d23ce6 Bug 1651443 - Always align the codemirror lines to the left r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D82774
2020-07-09 12:04:32 +00:00
Razvan Maries 3ed03d134b Backed out changeset 162bc74a2c75 (bug 1644186) for perma failures on browser_webconsole_stubs_page_error.js. CLOSED TREE 2020-07-09 15:20:24 +03:00
Andreea Pavel 4d223b739e Backed out 3 changesets (bug 1645234) for failing browser_webconsole_requestStorageAccess_errors.js on a CLOSED TREE
Backed out changeset ad1f8a4d64cf (bug 1645234)
Backed out changeset 6de9007aa306 (bug 1645234)
Backed out changeset 87d5d468c7f2 (bug 1645234)
2020-07-09 13:05:14 +03:00
Nicolas Chevobbe cf209b6c53 Bug 1644186 - Add server support for Error messages resources. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D81356
2020-07-09 08:55:49 +00:00
Johann Hofmann 4d4f4b4de2 Bug 1645234 - Add a test for document.requestStorageAccess error messages. r=nchevobbe
Depends on D79788

Differential Revision: https://phabricator.services.mozilla.com/D80972
2020-07-09 08:55:05 +00:00
Johann Hofmann cb1b24c051 Bug 1645234 - Add learn more link to storage access API warnings. r=nchevobbe
Depends on D79597

Differential Revision: https://phabricator.services.mozilla.com/D79788
2020-07-09 08:54:58 +00:00
Daisuke Akatsuka 6959f8e469 Bug 1625930: Add a test for count function of EventEmitter instance r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D82802
2020-07-08 23:20:09 +00:00
Daisuke Akatsuka 4e9744b43d Bug 1625930: Add test getAllResources of ResourceWatcher API. r=ochameau
Depends on D78242

Differential Revision: https://phabricator.services.mozilla.com/D82150
2020-07-08 22:58:41 +00:00
Daisuke Akatsuka 09ed9781f1 Bug 1625930: Add test ResourceWatcher for STYLESHEET type. r=ochameau
Depends on D78241

Differential Revision: https://phabricator.services.mozilla.com/D78242
2020-07-08 15:13:05 +00:00
Daisuke Akatsuka 80b6400e07 Bug 1625930: Apply ResourceWatcher to source map. r=ochameau
Depends on D78240

Differential Revision: https://phabricator.services.mozilla.com/D78241
2020-07-08 23:07:33 +00:00
Daisuke Akatsuka d1f58c00a9 Bug 1625930: Apply ResourceWatcher to StyleEditor. r=ochameau
Depends on D78239

Differential Revision: https://phabricator.services.mozilla.com/D78240
2020-07-09 04:37:54 +00:00
Daisuke Akatsuka 1498e73db8 Bug 1625930: Implement ResourceWatcher for stylesheet. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D78239
2020-07-08 15:13:12 +00:00
Matthew Gaudet 763196a86c Bug 1651420 - Adding private fields to an object is side-effectful and should be marked as such r=loganfsmyth
Note: Until private fields are enabled by default, this test case will take the
early return. However, I have tested locally that it fails without the fix, and
passes with the fix.

Differential Revision: https://phabricator.services.mozilla.com/D82786
2020-07-09 02:14:02 +00:00
Dorel Luca 3e4da6b273 Backed out changeset 00e12ae2d596 (bug 1649910) for Browser-chrome failures in browser/browser_ext_devtools_inspectedWindow_targetSwitch.js. CLOSED TREE 2020-07-09 03:58:43 +03:00
Nika Layzell 22c8ce6573 Bug 1650837 - Part 8: Avoid unnecessary sendQuery for DevToolsFrameParent:packet, r=jdescottes
The reply was never used, and due to other changes in this bug, was causing
ignored exceptions to be thrown occasionally when a query was sent immediately
before unregistering the actor.

Differential Revision: https://phabricator.services.mozilla.com/D82615
2020-07-08 09:41:56 +00:00
Itiel 37e074cdb6 Bug 1651450 - Fix the navigation buttons direction and url input in about:debugging for RTL r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82780
2020-07-08 19:21:24 +00:00
Alexandre Poirot 6c430374e4 Bug 1649910 - Emit "switched-target" only after we fully attached to the new target. r=jdescottes
The previous code, emitting the event from Toolbox.onTargetAvailable,
wasn't waiting for the call to TargetList.startListening which is done
from TargetList.onTargetAvailable.

Differential Revision: https://phabricator.services.mozilla.com/D82664
2020-07-08 22:57:36 +00:00
Kris Maglione 2faa43dd5c Bug 1647438: Remove nsIDOMWindowUtils.containerElement. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D81771
2020-07-02 15:03:44 +00:00
Sebastian Hengst aa6404a088 Bug 1559315 - Temporarily disable browser_rules_authored_color.js on Windows opt. r=gbrown DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D82775
2020-07-08 20:21:04 +00:00
Hubert Boma Manilla b271ba8b01 Bug 1649632 - Update the slow icon tooltip r=Honza,victoria
Differential Revision: https://phabricator.services.mozilla.com/D81817
2020-07-08 18:16:18 +00:00
Julian Descottes 0e4d7862d4 Bug 1651319 - Cleanup devtools calls to JSWindowActor sendAsyncMessage r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D82677
2020-07-08 18:52:17 +00:00
Alexandre Poirot 2bffbc8732 Bug 1625027 - Use Browser Element's ID instead of Browsing Context ID. r=jdescottes,nchevobbe
This allows to better support navigating to a new BrowsingContext within the same Tab.
Overall, framework codebase is tracking a Browser Element and should use browserId.
Targets may end up being specific to one BrowsingContext/WindowGlobal,
so they may rather use browsingContextID.

Differential Revision: https://phabricator.services.mozilla.com/D81862
2020-07-08 14:23:16 +00:00
Julian Descottes b225cf5e85 Bug 1647366 - Add a test for Inspect Element with nested remote frames r=rcaliman,ochameau
Depends on D80910

Differential Revision: https://phabricator.services.mozilla.com/D80911
2020-07-08 14:24:06 +00:00
Julian Descottes c32dffdf40 Bug 1647366 - Re-enable context menu tests that were skipped for fission r=ochameau,perftest-reviewers,Bebe
Depends on D80909

Differential Revision: https://phabricator.services.mozilla.com/D80910
2020-07-08 14:12:33 +00:00
Julian Descottes 58fcf13c2e Bug 1647366 - Check parent browsing context ids to find a valid BrowsingContextTarget r=ochameau,rcaliman
WatcherFront's `getBrowsingContextTarget` can be called for a browsing context id which doesn't match an existing DevTools target.

For the following frame hierarchy:
```
root (example.com)
  frame1 (example.org)
    frame2 (example.org)
```

Both frame1 and frame2 have the same origin and will run in the same process. This means that devtools will only create a single BrowsingContextTarget for both.
But each frame has its own browsing context id, and the BrowsingContextTargetActor by default will only know about the browsing context id of the topmost frame (frame 1).

If we try to directly get the browsing context target for frame2's bc ID, the current implementation will not find anything.
This can easily happen with the "Inspect Element" feature which will extract the browsing context id from a contentDomReference.
See the following method will on the inspector front: https://searchfox.org/mozilla-central/rev/a87a1c3b543475276e6d57a7a80cb02f3e42b6ed/devtools/client/fronts/inspector.js#178

Differential Revision: https://phabricator.services.mozilla.com/D80909
2020-07-08 14:49:31 +00:00
Bogdan Tara 75881e8400 Backed out 6 changesets (bug 1625930) for test_eventemitter_basic.js failures CLOSED TREE
Backed out changeset 30a3da9f613c (bug 1625930)
Backed out changeset d4e4c3ddcc43 (bug 1625930)
Backed out changeset 0133d9c58323 (bug 1625930)
Backed out changeset 1c9cf53f2a89 (bug 1625930)
Backed out changeset f63839eff636 (bug 1625930)
Backed out changeset a6bef105a2c2 (bug 1625930)
2020-07-08 18:08:27 +03:00
Kyle Knaggs 967178f81b Bug 1645887 - Fix text copied by 'Copy to clipboard' and 'Copy source text' context menu items r=davidwalsh
This patch addresses the issue reported by [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1645887 | Bug 1645887 ]] where the context menu items in the `Editor` were not copying the expected text to the clipboard.

Regarding the context menu in the `Editor` this patch modifies the menu items so that:

1. 'Copy to clipboard' => Copies the text that has been selected by a user to the clipboard.
2. 'Copy source text' => Copies all of the text from a source to the clipboard.

In addition to the above fix, this patch also modifies a related item in the `Tab` context menu so that:

1. The text for the ‘Copy to clipboard’ menu item is now replaced with ‘Copy source text’.

As with the context menu in the `Editor`, the pre-existing ‘Copy to clipboard’ menu item in the `Tab` copied all of the text from a source to the clipboard. However, instead of modifying the functionality of this menu item, the decision was made to replace the ‘Copy to clipboard’ text with ‘Copy source text’. This was done as the `Tab` and its context menu typically provides the user with general information about the file being displayed instead of being concerned with details such as the state of the editor.

{F2332380}

Differential Revision: https://phabricator.services.mozilla.com/D81887
2020-07-08 14:40:29 +00:00
Daisuke Akatsuka 8e979c2529 Bug 1625930: Add test getAllResources of ResourceWatcher API. r=ochameau
Depends on D78242

Differential Revision: https://phabricator.services.mozilla.com/D82150
2020-07-03 11:35:53 +00:00
Daisuke Akatsuka 77d64ed1e3 Bug 1625930: Add test ResourceWatcher for STYLESHEET type. r=ochameau
Depends on D78241

Differential Revision: https://phabricator.services.mozilla.com/D78242
2020-07-03 08:12:53 +00:00
Daisuke Akatsuka 38a7ac44c7 Bug 1625930: Apply ResourceWatcher to source map. r=ochameau
Depends on D78240

Differential Revision: https://phabricator.services.mozilla.com/D78241
2020-07-08 14:05:13 +00:00
Daisuke Akatsuka 899ed9d38e Bug 1625930: Apply ResourceWatcher to StyleEditor. r=ochameau
Depends on D78239

Differential Revision: https://phabricator.services.mozilla.com/D78240
2020-07-08 14:05:42 +00:00
Daisuke Akatsuka 124d4687f9 Bug 1625930: Implement ResourceWatcher for stylesheet. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D78239
2020-07-08 14:05:29 +00:00
Bogdan Tara a33ac518b9 Backed out changeset 4d7e94b15360 (bug 1646027) for browser_webconsole_stubs_network_event.js failures CLOSED TREE 2020-07-08 14:16:02 +03:00
Farooq AR ec6505b9a1 Bug 1646027 - Request mimeType should be sent on response start. r=Honza,bomsy,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82206
2020-07-08 09:42:44 +00:00
Razvan Caliman 1ad6fbabbc Bug 1607756 - Extract node picker from HighlighterActor. r=ochameau,devtools-backward-compat-reviewers
Moved the node picker functionality from `HighlighterActor` to a standalone `NodePicker` class used by `WalkerActor`.
`WalkerActor`/`WalkerFront` was already used to [emit node picker events](https://searchfox.org/mozilla-central/rev/027893497316897b8f292bde48dbb6da2391a331/devtools/shared/specs/walker.js#65-79) listened to by the client. This was kept intact.

The alternative to introduce a new `NodePickerActor` had issues when emitting events because the `NodeFront` payload ended up being managed by the `NodePickerFront` and not the `WalkerFront` (see: https://searchfox.org/mozilla-central/source/devtools/shared/protocol/types.js#337,346). There isn't a strong reason to introduce a new `NodePickerActor` considering that the functionality is already dependent on `WalkerActor` to [attach the hovered / picked nodes](https://searchfox.org/mozilla-central/rev/027893497316897b8f292bde48dbb6da2391a331/devtools/server/actors/highlighters.js#435-441).

As we progress with changes in D81526 and [Bug 1623667](https://bugzilla.mozilla.org/show_bug.cgi?id=1623667), the standalone [HighlighterActor](https://searchfox.org/mozilla-central/source/devtools/server/actors/highlighters.js#111-517) will go away completely. It is just a wrapper around `BoxModelHighlighter` and `SimpleOutlineHighlighter`, both of which are already supported by [CustomHighlighterActor](https://searchfox.org/mozilla-central/source/devtools/server/actors/highlighters.js#523-652) that provides all the other highlighters.

NOTE: D81476 is removing `SimpleOutlineHighlighter` , thus adding to the reasons for dropping `HighlighterActor` once tests and call sites are updated to get highlighters via the highlighter manager logic changes introduced by D81526

Differential Revision: https://phabricator.services.mozilla.com/D81525
2020-07-08 09:32:46 +00:00
Daisuke Akatsuka 924741ad11 Bug 1651240: Update MDN compat data. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D82626
2020-07-08 09:20:20 +00:00
Itiel 254111665f Bug 1650895 - Force LTR the font origin url in the Fonts panel r=rcaliman
Also improve the CSS code a bit for fonts.css

Differential Revision: https://phabricator.services.mozilla.com/D82436
2020-07-08 08:35:52 +00:00
Julian Descottes c137a1324d Bug 1650453 - Regenerate devtools/client/debugger/dist/parser-worker.js r=nchevobbe
Depends on D82212

Differential Revision: https://phabricator.services.mozilla.com/D82366
2020-07-07 17:14:45 +00:00
Julian Descottes a99306e1b0 Bug 1650453 - Remove rejected words violations in devtools source code files r=nchevobbe
Depends on D82568

Differential Revision: https://phabricator.services.mozilla.com/D82212
2020-07-07 17:10:13 +00:00
Julian Descottes 30590c42ac Bug 1651127 - Remove extra blank line debugger in CSS files r=nchevobbe
Depends on D82567

stylelint seems to check for extra blank lines after performing a `yarn upgrade`

Differential Revision: https://phabricator.services.mozilla.com/D82568
2020-07-08 06:44:11 +00:00
Julian Descottes 9962c74e1e Bug 1651127 - Update debugger jest ast spec test after yarn upgrade r=nchevobbe
Depends on D82566

Differential Revision: https://phabricator.services.mozilla.com/D82567
2020-07-08 06:36:05 +00:00
Julian Descottes 155a3c5e88 Bug 1651127 - Update debugger jest tests snapshots r=nchevobbe
Depends on D82564

Output of running `yarn run test-ci -u`

Differential Revision: https://phabricator.services.mozilla.com/D82566
2020-07-08 06:21:52 +00:00
Julian Descottes a9656ded14 Bug 1651127 - Regenerate debugger bundles after a yarn upgrade r=nchevobbe
Simple output of running `yarn upgrade && node bin/bundle.js`

Differential Revision: https://phabricator.services.mozilla.com/D82564
2020-07-08 06:27:18 +00:00
Alexandre Poirot de043a8da3 Bug 1646854 - Introduce code to be able to listen for resources from the parent process. r=jdescottes,nchevobbe,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D80285
2020-07-07 13:40:01 +00:00
Alexandre Poirot e1c1588e32 Bug 1646854 - Rename onResourceAvailable to notifyResourceAvailable. r=nchevobbe
This is to align with notifyTargetAvailable and notifyTargetDestroyed.

Differential Revision: https://phabricator.services.mozilla.com/D80900
2020-07-07 13:39:58 +00:00
Julian Descottes 7014578c42 Bug 1619221 - Remove non-parent-intercept codepath in devtools client r=daisuke
Depends on D81346

Differential Revision: https://phabricator.services.mozilla.com/D82193
2020-07-07 15:22:32 +00:00
Julian Descottes e897d9edf5 Bug 1619221 - Remove service-workers-debug-helper and check isParentIntercept in device actor r=ladybenko,daisuke
Depends on D81344

If we only care about isParentInterceptEnabled, a dedicated module should no longer be relevant.

Differential Revision: https://phabricator.services.mozilla.com/D81346
2020-07-07 15:21:54 +00:00
Julian Descottes 17460eb5c7 Bug 1619221 - Remove can-debug-sw-updated event r=ladybenko,daisuke,devtools-backward-compat-reviewers
Depends on D81343

All the client side consumers for the event have been removed.
Since we don't support forward compatibility, we can simply remove the event.

Differential Revision: https://phabricator.services.mozilla.com/D81344
2020-07-07 15:20:10 +00:00
Julian Descottes 84f6f1cbe2 Bug 1619221 - Stop updating the application panel when multi-e10s changes r=ladybenko
Depends on D81342

See previous revision, same logic applies to the application panel.

Differential Revision: https://phabricator.services.mozilla.com/D81343
2020-07-07 15:19:02 +00:00
Julian Descottes ce35f944d6 Bug 1619221 - Stop updating the aboutdebugging UI when multi-e10s changes r=daisuke,ladybenko
Depends on D81341

Moving forward, we do not plan to support the old service worker implementation anymore.
The only reason why we needed to update ServiceWorker UI dynamically was for the old implementation.
With the new implementation, there cannot be any change after the application starts so we don't need to react to events.

Differential Revision: https://phabricator.services.mozilla.com/D81342
2020-07-07 15:16:15 +00:00
Julian Descottes 7ed45304a8 Bug 1619221 - Remove backward compat code for the multi-e10s-updated event r=ladybenko
This backward compat code can be safely removed since FF69 is out of the backward compatibility window.

Differential Revision: https://phabricator.services.mozilla.com/D81341
2020-07-07 15:15:55 +00:00
Neil Deakin 5cf56b802f Bug 1650690, remove frame scripts from devtools animation tests, and use SpecialPowers.spawn instead, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82307
2020-07-07 11:35:15 +00:00
Neil Deakin 36c00b6af2 Bug 1650690, remove frame scripts from inspector tests, and use SpecialPowers.spawn instead, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82306
2020-07-07 11:35:03 +00:00
goncharov 9a1ef55f96 Bug 1649548 - Autocomplete list events are not propagated to input. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D82239
2020-07-07 12:08:38 +00:00
Nicolas Chevobbe 3991838f8d Bug 1646669 - Fix CodeMirror secondary cursor color. r=Itiel.
Differential Revision: https://phabricator.services.mozilla.com/D82346
2020-07-07 11:37:58 +00:00
Julian Descottes 4b8b29c396 Bug 1650510 - Wait for requests to settle in all browser_aboutdebugging_addons_debug_* tests r=daisuke
Depends on D82362

Differential Revision: https://phabricator.services.mozilla.com/D82363
2020-07-07 08:09:33 +00:00
Julian Descottes 3b4194393d Bug 1650510 - Rewrite browser_aboutdebugging_addons_debug_* using regular test APIs r=daisuke
When switching from a dedicated addon toolbox to an about:devtools-toolbox tab, we did a minimal migration for the browser_aboutdebugging_addons_debug_* tests.
They used to inject a "toolbox test script" in the process of the addon toolbox. But we could have updated them with regular test APIs, async/await patterns etc.

Doing the migration now in preparation for adding calls to waitForRequestsToSettle in the next changeset.

Differential Revision: https://phabricator.services.mozilla.com/D82362
2020-07-07 08:09:24 +00:00
Sebastian Hengst 7847e18297 Backed out 3 changesets (bug 1145314) on request from ckerschb for regressions (e.g. bug 1650951)
Backed out changeset 664cc562ddf3 (bug 1145314)
Backed out changeset 9640a9d093c7 (bug 1145314)
Backed out changeset 5492ac0e42f7 (bug 1145314)
2020-07-07 09:32:27 +02:00
Tiger Oakes 601089853c Bug 1605688 - Strip alpha when opaque, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82266
2020-07-06 16:34:54 +00:00
Dorel Luca 8f18f8e4c5 Backed out changeset 5cbcce6ef3e5 (bug 1649548) for Mochitest failures in components/test/chrome/test_searchbox-with-autocomplete.html. CLOSED TREE 2020-07-06 18:22:39 +03:00
goncharov 6067030bfd Bug 1649548 - Autocomplete list events are not propagated to input. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D82239
2020-07-06 13:51:27 +00:00
Kriyszig ca79ded3e3 Bug 1644428 - Cleanup: Arrange actions, reducers, imports and function in alphabetical order r=daisuke,mtigley
This patch does the following cleanup:
* Arrange actions in alphabetical order
* Arrange reducers in alphabetical order
* Arrange imports in alphabetical order
* Arrange functions in alphabetical order

This keeps it consistent with the code style in the compatiblity directory

Depends on D81443

Differential Revision: https://phabricator.services.mozilla.com/D82057
2020-07-03 17:23:57 +00:00
Kriyszig 30282112dd Bug 1644428 - Added tests to verify Compatiblity Panel reacting to DOM mutations r=daisuke,mtigley
The tests cover the following test cases:
* Dynamic addition of inline style
* Dynamic change of classlist - addition and removal of class
* Inline style change via the rule-view
* Dynamic addition of nodes with issues
* Dynamic addition of nodes whose children have issues
* Dynamic removal of node with issue
* Dynamic removal of node whose children have issue

Differential Revision: https://phabricator.services.mozilla.com/D81443
2020-07-03 17:22:59 +00:00
Kriyszig 6a6c70267a Bug 1644428 - Enable Compatibility Panel to react to dynamic DOM node insertion and deletion r=daisuke,mtigley
Currently the Compatibility Panel doesn't react to dynamic DOM
node addition and removal which poses a problem for websites that
depend on client side rendering using the modern framework and
render contents based on dynamic API calls. The updation fails
when switching between routes on a single page application.
In this patch, we use inspector's `markupmutation` event to listen
to `childList` and `customElementDefined` events which cover these
DOM mutations.
Whenever we find a node being added or removed, we compute compatibility
issues for the newly added nodes and remove references to the removed
nodes in the compatibility panel.

Differential Revision: https://phabricator.services.mozilla.com/D80170
2020-07-03 17:22:41 +00:00
Kriyszig bb4caa35ae Bug 1644428 - Enable Compatibility Panel to react to attribute Mutations r=daisuke,mtigley
Compatibility panel doesn't react to programmatic attribute changes
caused as a result of JavaScript execution.
This patch uses inspector's `markupmutation` event to listen to
markup mutations and react to attribute changes dynamically.
Whenever a node undergoes a programmatic inline attribute change
that is not monitored by Resource Watcher currently, the issues
linked to the node is revaluated and updated.

Differential Revision: https://phabricator.services.mozilla.com/D79333
2020-07-03 17:22:14 +00:00
Julian Descottes 0649d657d4 Bug 1650221 - Wait until storage is ready after extension upgrade in test_extension_storage_actor_upgrade.js r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D82166
2020-07-06 09:56:55 +00:00
Razvan Maries 8e16712a62 Backed out 3 changesets (bug 1645234) for build bustages and Lint failure. CLOSED TREE
Backed out changeset 75276e64701b (bug 1645234)
Backed out changeset 16212aa46253 (bug 1645234)
Backed out changeset e66593529bc3 (bug 1645234)
2020-07-04 18:44:49 +03:00
Johann Hofmann 73101fe616 Bug 1645234 - Add a test for document.requestStorageAccess error messages. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D80972
2020-07-04 15:17:01 +00:00
Johann Hofmann 6c5dfb4ff6 Bug 1645234 - Add learn more link to storage access API warnings. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D79788
2020-07-04 15:17:01 +00:00
Yura Zenevich 20d5203a82 Bug 1640778 - remove auto-init experiment code. r=mtigley,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D77057
2020-07-03 23:52:16 +00:00
Yura Zenevich 68203518be Bug 1640338 - do not cache current target on proxy accessible, instead always retrieve toolbox's target list's targetFront. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D81143
2020-07-03 23:52:14 +00:00
Yura Zenevich cea0dcd04d Bug 1640338 - simplify accessibility proxy startup since we no longer need to initialize it until the panel is opened. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D77056
2020-07-03 23:52:12 +00:00
Yura Zenevich 433f8eecfc Bug 1640338 - remove accessibliity startup and startup functionality from tool definitions. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D77055
2020-07-03 23:52:10 +00:00
Julian Descottes 3ec6af87ab Bug 1650155 - Remove remaining mentions of whitelist in files using allowMatchingRejectionsGlobally r=Gijs
Depends on D82059

Differential Revision: https://phabricator.services.mozilla.com/D82061
2020-07-03 16:57:25 +00:00
Julian Descottes 3e1e4c22b6 Bug 1650155 - Rename PromiseTestUtils.whitelistRejectionsGlobally to allowMatchingRejectionsGlobally r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D82059
2020-07-03 17:01:29 +00:00
Florian Quèze 668686ae05 Bug 1621015 - Profiler popup button should be split into a start/stop button, and a down arrow, r=julienw.
Differential Revision: https://phabricator.services.mozilla.com/D77680
2020-07-03 14:28:17 +00:00
Nicolas Chevobbe d225d7ad21 Bug 1644186 - Add ResourceTransformers. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D81831
2020-07-03 12:21:31 +00:00
Nicolas Chevobbe 52507b5218 Bug 1644186 - Move helper functions to helper files. r=ochameau.
Functions to create object actors are put in helper files so they
can be used by other consumers than the console messages watcher.

Differential Revision: https://phabricator.services.mozilla.com/D81490
2020-07-03 12:11:36 +00:00
Samarjeet a6b5a3e545 Bug 1546394: Netmonitor load blockedurls r=nchevobbe,bomsy,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D72669
2020-07-03 13:50:35 +00:00
Samarjeet 622594643a Bug 1546394 Adds :block <url> command similar to netmonitor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D69803
2020-06-27 09:22:23 +00:00
Hubert Boma Manilla 5c7609974f Bug 1648240 - Persist Headers url preview accross requests r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D81897
2020-07-03 13:18:50 +00:00
Julian Descottes 54f3b99b28 Bug 1645563 - Wrap application panel updateWorkers method in safeAsyncMethod r=ladybenko
Depends on D81677

We recently introduced a modification to updateWorkers in order to swallow errors after destroy.
Since I am suggesting to add a helper to take care of a similar issue in Toolbox::highlight I think we could also apply it here.

Differential Revision: https://phabricator.services.mozilla.com/D81679
2020-07-02 16:15:03 +00:00
Julian Descottes fe59cbb542 Bug 1645563 - Enable browser_dbg-scopes-duplicated.js on windows platform r=nchevobbe
Depends on D81676

Differential Revision: https://phabricator.services.mozilla.com/D81677
2020-07-02 16:12:54 +00:00
Julian Descottes 284d5a7625 Bug 1645563 - Wrap Toolbox::highlight & unhighlight methods in safeAsyncMethod r=nchevobbe
Depends on D81675

This should fix the intermittents related to pending highlight requests when toolbox is destroyed.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1645563#c21 for additional context

Differential Revision: https://phabricator.services.mozilla.com/D81676
2020-07-02 16:14:15 +00:00
Julian Descottes 2417b69d3f Bug 1645563 - Introduce devtools helper to swallow rejections under a condition r=nchevobbe
We very often have to introduce a pattern in our async methods in order to "swallow"
async errors if a panel was destroyed, if the toolbox was destroyed etc...

This is not an issue in a regular usage of the toolbox, but it can lead to many intermittent failures.
One solution could be to always wait for all requests to be completed before shutting down tests.
Another approach is to have an easy way of swallowing errors when a certain condition is true.

The helper added here will run the provided method in a try catch, and will only bubble up errors if the provided check fails.

Differential Revision: https://phabricator.services.mozilla.com/D81675
2020-07-02 16:19:46 +00:00
Julian Descottes a26e2b6eca Bug 1650347 - Update gecko-profile argument names in DAMP documentation r=Honza
Spotted while looking at Bug 1649771, the DAMP documentation is outdated.

Differential Revision: https://phabricator.services.mozilla.com/D82170
2020-07-03 11:42:39 +00:00
Nicolas Chevobbe b7e4bda832 Bug 1649753 - Remove unused EnvironmentFront. r=jdescottes,devtools-backward-compat-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D82143
2020-07-03 11:27:25 +00:00
Coroiu Cristina 697891333d Backed out 2 changesets (bug 1646854) for devtools failures at devtools/shared/resources/tests/browser_resources_target_destroy.js on a CLOSED TREE
Backed out changeset f3f1407d5eae (bug 1646854)
Backed out changeset 1a71c8facf72 (bug 1646854)
2020-07-03 14:29:10 +03:00
Razvan Caliman 7db1990e8c Bug 1649736 - Remove backwards compatibility checks for responsiveActor.setElementPickerState(). r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D81846
2020-07-02 22:44:36 +00:00
Alexandre Poirot 7877b9650e Bug 1646854 - Introduce code to be able to listen for resources from the parent process. r=jdescottes,nchevobbe,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D80285
2020-07-03 08:53:37 +00:00
Alexandre Poirot bfa7b78f6a Bug 1646854 - Rename onResourceAvailable to notifyResourceAvailable. r=nchevobbe
This is to align with notifyTargetAvailable and notifyTargetDestroyed.

Differential Revision: https://phabricator.services.mozilla.com/D80900
2020-07-02 22:09:51 +00:00
Matthew Noorenberghe 72c4e83fb7 Bug 1648858 - Move d3.js from devtools/ to third_party/js/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D81437
2020-07-03 08:25:51 +00:00
Christoph Kerschbaumer 5c8e547bd8 Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-03 08:12:22 +00:00
Emma Malysz 596d4bd960 Bug 1648638, remove profiler panel from main view and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81413
2020-07-02 16:42:46 +00:00
Narcis Beleuzu 9d8472510e Backed out 2 changesets (bug 1145314) for mochitest failures on test_bug995943.xhtml . CLOSED TREE
Backed out changeset 0500cb344e6f (bug 1145314)
Backed out changeset f524ffe669ca (bug 1145314)
2020-07-02 20:50:46 +03:00
Julian Descottes 8f530a3e07 Bug 1618059 - Extract the storage extension live reload test r=ochameau,davidwalsh
The failure only occurs locally when I use an attached target for the test_panel_live_reload mochitest.
And it only happens if we perform the `extension.upgrade` call during the test.
Most of the time it seems linked to a "frameUpdated" event fired when the webextension is being updated.
But even after commenting out the event, the test remains intermittent (albeit with a much lower frequency)

A first option would be to expose a new API on the webextension descriptor front in order to create
detached targets.

But it seems that isolating the live_reload test in a dedicated file also fixes the intermittent.
It makes the fix a bit obscure, and it probably means we won't look into the issue much furhter but
I would prefer to avoid test-only APIs in the codebase.

Differential Revision: https://phabricator.services.mozilla.com/D81322
2020-07-02 15:56:00 +00:00
Christoph Kerschbaumer bfc3fb787d Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-02 15:03:52 +00:00
Nicolas Chevobbe d5ffb31381 Bug 1623283 - Rename Pool#actor into getActorByID. r=jdescottes.
We take this opportunity to remove Pool.get as well,
which was doing exactly the same thing as Pool.actor

This highlighted a couple issues in Reps:
- LongString were relying on the isGrip function, which was only checking that
  the actor property was truthy. So it was matching LongStringFront which had
  the actor method. This is modified by using the isLongString helper instead.
- The Object rep was building all the reps for the object properties, even in
  TINY mode, where the result was only used to check the length. In the Accessibility
  panel, it can happen that an plain object containing front properties is passed
  to Rep. It was fine before because this was short-circuited by the Accessor rep
  which was only checking the truthiness of a `get` property. With `get` being
  removed, the default Rep was used, which is Object, and we were hitting a
  recursion loop, as some of the properties of fronts are cycle references.
  There should be a fix in the Accessibility panel to _not_ pass fronts, but we
  also "fix" it from here by simply not building sub-properties for the object
  when we're in TINY mode.

Differential Revision: https://phabricator.services.mozilla.com/D81971
2020-07-02 15:07:12 +00:00
Anwesha c8deaf1fb8 Bug 1622734 - Replaced nodeFront.parent() with nodeFront.walkerFront r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D81877
2020-07-02 13:01:19 +00:00
Julian Descottes ad853d54fe Bug 1634466 - Add a simple performance marker to capture the number of messages added r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D81973
2020-07-02 09:39:55 +00:00
Csoregi Natalia 355f38ec2f Backed out 2 changesets (bug 1145314) for node debugger failure. CLOSED TREE
Backed out changeset 550f9596f16b (bug 1145314)
Backed out changeset 93dbc3fe146a (bug 1145314)
2020-07-02 12:37:06 +03:00
Razvan Caliman 5b6373fb8b Bug 1649738 - Log an error when calling targetFront.actorHasMethod() for an unknown or uninitialized actor. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D81850
2020-07-02 08:52:20 +00:00
Christoph Kerschbaumer 5e32e6565e Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-02 08:17:17 +00:00
Noemi Erli 38031f5d4b Backed out 4 changesets (bug 1648858) for causing toolchains bustages
Backed out changeset 8ead55149095 (bug 1648858)
Backed out changeset 94f58715cbde (bug 1648858)
Backed out changeset 36fe4ce13340 (bug 1648858)
Backed out changeset 0ccf9b057fe1 (bug 1648858)
2020-07-02 11:00:02 +03:00
Sebastian Zartner 9dec37a853 Bug 1597245 - Disable 'Delete Node' option for document nodes. r=jdescottes
Added nodes of type DOCUMENT_NODE to the excluded types for deletion.

In order to test the context menu options for document nodes a new helper function getFrameDocument() got introduced that returns the document node of an iFrame.

Differential Revision: https://phabricator.services.mozilla.com/D81241
2020-07-02 00:53:51 +00:00
Matthew Noorenberghe 501e1cf686 Bug 1648858 - Move d3.js from devtools/ to third_party/js/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D81437
2020-07-02 03:36:39 +00:00
Razvan Maries 3dc54daa55 Backed out 4 changesets (bug 1648858) for SM bustages. CLOSED TREE
Backed out changeset 5a612e42b77d (bug 1648858)
Backed out changeset 3a1b5e883a4e (bug 1648858)
Backed out changeset 816eaac72512 (bug 1648858)
Backed out changeset 8ae692d68b1b (bug 1648858)
2020-07-02 05:54:53 +03:00
Matthew Noorenberghe 8e5f8dd33a Bug 1648858 - Move d3.js from devtools/ to third_party/js/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D81437
2020-07-02 02:34:44 +00:00
Gerald Squelart 56736f31c3 Bug 1648507 - Distinguish pausing sampling only from pausing the whole profiler - r=canaltinova,perftest-reviewers,geckoview-reviewers,agi
The profiler can be "paused", which stops sampling, and since bug 1578329 stops markers as well.

Some test suites use pausing between tests (to better differentiate the tests, to keep the profiler ready to run, and to lower the amount of recorded data). But this causes problems with some tracing markers, as their matching ends have not been recorded (e.g., an end marker is missing), which show up as very loooong markers.
To solve this, we need to be able to pause sampling only, but keep recording markers.
But we still need to be able to pause the whole profiler, in particular before capturing, to avoid recording anything around that time.

This big patch is mostly mechanical changes: Wherever there are "Pause" and "Unpause/Resume" profiler functions, we add matching "PauseSampling" and "UnpauseSampling/ResumeSampling" functions that only impact the periodic sampling loop; And existing "Pause/Unpause/Resume" imply pausing sampling as well.
Exceptions and extra work:
- nsIProfiler (the JS API) already had `Pause/ResumeSampling()`, which misleadingly paused everything! Now they do the right thing, and we have `Pause/Resume()` as well.
- All tests using `Pause/ResumeSampling()` now use `Pause/Resume()`, except for Talos tests that only pause sampling between tests; Added some extra `Pause()` calls to pause everything before capturing profiles.
- GeckoJavaSampler doesn't handle pausing/resuming everything, this should be done in a follow-up bug.
- Sampling-only pauses are not streamed into JSON. If needed, we should follow-up, with potential work on the front-end to deal with these.

Differential Revision: https://phabricator.services.mozilla.com/D81492
2020-07-02 01:36:27 +00:00
Sarah Bird d1626da38c Bug 1647501 - Rename "test slave" -> "test machine", r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81908
2020-07-02 01:06:01 +00:00
Nathan Froyd e8a7ef44ae Bug 1649263 - stop cargo-culting headers in AutoMemMap.h; r=glandium
We use `MOZ_RAII` and `MOZ_ASSERT` in this file, so we need their
corresponding headers.

Differential Revision: https://phabricator.services.mozilla.com/D81601
2020-07-01 13:39:04 +00:00
Nicolas Chevobbe e19e7c943a Bug 1649710 - Fix EnvironmentFront constructor. r=jdescottes.
The constructor signature was wrong, as protocol.js calls it with a targetFront
instead of the expected "form".
The self-management isn't making much sense, and there's no need for this front
to be different than others.
test_framebindings-07.js, which was directly instantiating EnvironmentFronts is
modified to not do this anymore.
This allow us remove the getBindings method from the front, as it was only used
from this test.

Differential Revision: https://phabricator.services.mozilla.com/D81838
2020-07-01 13:31:31 +00:00
Alexandre Poirot b36c0b6859 Bug 1646459 - Support target-switching without a toolbox. r=jdescottes
We might be able to move even more code from LocalTabTarget to TargetList,
but here is the minimal modification, which allows to update the target,
without requiring a Toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D80161
2020-07-01 10:41:27 +00:00
Alexandre Poirot cac2b4e08d Bug 1646459 - Only stop and start listening to legacy listeners in case of top level target switching. r=jdescottes
We don't have to and shouldn't unregister and re-register the Watcher actor listeners
in case of top level target switching. As, Watcher actor is independant from the top level target
and we might loose some events by doing so. One main goal of Watcher actor was about that.
Being independant from the lifecycle of the top level target.

Differential Revision: https://phabricator.services.mozilla.com/D80160
2020-07-01 08:57:43 +00:00
Alexandre Poirot eb6ee3d07d Bug 1646459 - Merge most of TargetList.switchToTarget into TargetList._onTargetAvailable. r=jdescottes
In a near future, target switching should be notified by the watcher actor,
via a target-available-form event.
So that all the logic around target switching should rather be into this RDP event listener.

Differential Revision: https://phabricator.services.mozilla.com/D80159
2020-07-01 09:38:25 +00:00
Alexandre Poirot b89c002409 Bug 1646459 - Merge Toolbox.switchToTarget into Toolbox._onTargetAvailable. r=jdescottes
Target switching should be implemented differently.
I think switchToTarget may have been introduce before TargetList?
But top level target switching should be handled via onTargetAvailable.
It happens when onTargetAvailable is called with a targetFront with isTopLevel=true,
and isTargetSwitching argument is true.

Differential Revision: https://phabricator.services.mozilla.com/D80158
2020-07-01 08:57:33 +00:00
Dorel Luca 675da38265 Backed out 4 changesets (bug 1648858) for Browser-chrome failures on content/test/static/browser_all_files_referenced.js. CLOSED TREE
Backed out changeset 2a107eabe00c (bug 1648858)
Backed out changeset 1622eb497b04 (bug 1648858)
Backed out changeset f5770886187d (bug 1648858)
Backed out changeset 3a9ae16f63c9 (bug 1648858)
2020-07-01 12:27:26 +03:00
Matthew Noorenberghe b550937547 Bug 1648858 - Move d3.js from devtools/ to toolkit/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D81437
2020-07-01 06:33:05 +00:00
Emma Malysz aa836962ab Bug 1648639, remove containers, help view, and developer panels from main view and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81257
2020-06-30 22:40:15 +00:00
Yura Zenevich 9af969dee0 Bug 1602054 - add cold open DAMP test for the accessibility panel. r=perftest-reviewers,jdescottes,Bebe
This is a brand new (and first) DAMP talos test for accessibility panel. "accessibility.cold-open" is similar to other cold open tests such as inspector one. It opens accessibility panel, waits for its UI to render and then closes the toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D80512
2020-06-30 10:26:19 +00:00
Butkovits Atila b707f6e54b Backed out changeset fa56a4ad6f4a (bug 1605688) for devtools failures on browser_devtools_api_destroy.js. CLOSED TREE 2020-07-01 02:17:31 +03:00
Tiger Oakes abbe84b2d7 Bug 1605688 - Strip alpha when opaque, r=jdescottes,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D76062
2020-06-30 14:49:42 +00:00
Greg Tatum d8dddd8673 Bug 1625044 - Do not run the profiler private browsing test on linux; r=julienw
I spent some time looking into this, and the Linux runs when opening up the
popup and the private browser are not working consistently. The popupshown
and popuphidden events are not firing consistently. It's probably good enough
to just disable this test on Linux, as it's mainly a UI test, and it works
on the other platforms.

Differential Revision: https://phabricator.services.mozilla.com/D81602
2020-06-30 19:46:21 +00:00
Greg Tatum 41bd757afa Bug 1625044 - Handle profile popup showing more correctly in tests; r=julienw
Some intermittents were caused by the failure to ensure the popup was closed.
This patch creates a new API that explicitly ensures that the popup is actually
closed in the patch.

It also adds a listener to the popupshown and popuphidden events dispatched by
the XUL elements to ensure that we're not just relying on a single requestAnimationFrame
tick.

Differential Revision: https://phabricator.services.mozilla.com/D79332
2020-06-30 19:45:08 +00:00
David Walsh d28db00623 Bug 1648145 - Show 'Main Thread' label for top level main thread in sources tree r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D80916
2020-06-30 16:18:39 +00:00
Stepan Stava 87e5663562 Bug 1647693 - Add sourceActorId to 'message' object for log points r=loganfsmyth
Makes `sourceId` available in  the `resource.message` object for log points from 'resourceWatcher' to better address sources than only by `fileName`.

Differential Revision: https://phabricator.services.mozilla.com/D80642
2020-06-30 18:31:32 +00:00
Hubert Boma Manilla c6f4a0a285 Bug 1648373 - Add slow requests indicator r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D81629
2020-06-30 16:54:55 +00:00
Butkovits Atila 277ed87531 Backed out changeset 3c400bb0cd01 (bug 1648639) for bc failures on browser_panel_keyboard_navigation.js. 2020-06-30 21:35:06 +03:00
Emma Malysz 7726722698 Bug 1648639, remove containers, help view, and developer panels from main view and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81257
2020-06-30 15:11:00 +00:00
Julian Descottes 41dc7a25a4 Bug 1649418 - Enable async stacks during DevTools mochitests r=loganfsmyth
Async stacks can provide valuable information when chasing intermittents.
But by default they are only enabled in debuggees, to avoid performance overhead.
Forcing javascript.options.asyncstack_capture_debuggee_only to false before running any
DevTools mochitest will ensure async stacks are available for all locations.

Differential Revision: https://phabricator.services.mozilla.com/D81694
2020-06-30 15:45:59 +00:00
Cosmin Sabou 4a382d7801 Backed out 4 changesets (bug 1640338, bug 1640778) for devtools failures on browser_dbg-toolbox-unselected-pause.js.
Backed out changeset 92cb02f03119 (bug 1640778)
Backed out changeset 6401dd804f28 (bug 1640338)
Backed out changeset cb4edb2627bb (bug 1640338)
Backed out changeset b2394d79f48f (bug 1640338)
2020-06-30 19:59:10 +03:00
Logan Smyth bbe144a63b Bug 1642397 - Part 3: Show query string in SourcesTree when files conflict. r=jlast,davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D81268
2020-06-29 18:51:57 +00:00
Logan Smyth 545d9c16ae Bug 1642397 - Part 2: Only pass sources-tree a query param if it should use it. r=jlast,davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D81267
2020-06-26 20:04:36 +00:00
Logan Smyth baf16e0a5f Bug 1642397 - Part 1: Handle unparseable URLs more consistently and handle query params. r=jlast,davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D81266
2020-06-26 19:27:54 +00:00
Logan Smyth bc1239373b Bug 1637883 - Bail on eager eval for same-compartment windows. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D81382
2020-06-29 05:17:59 +00:00
Brindusan Cristian cb08871bb0 Backed out changeset 4237adea1a08 (bug 1648373) for dt failures at browser_webconsole_stubs_network_event.js. CLOSED TREE 2020-06-30 18:29:15 +03:00
Yura Zenevich 17dc33c60a Bug 1640778 - remove auto-init experiment code. r=mtigley,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D77057
2020-06-30 14:53:07 +00:00
Yura Zenevich cae38c8a67 Bug 1640338 - do not cache current target on proxy accessible, instead always retrieve toolbox's target list's targetFront. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D81143
2020-06-26 18:29:53 +00:00
Yura Zenevich 8c1725004b Bug 1640338 - simplify accessibility proxy startup since we no longer need to initialize it until the panel is opened. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D77056
2020-06-30 14:53:07 +00:00
Yura Zenevich 770d1a4acd Bug 1640338 - remove accessibliity startup and startup functionality from tool definitions. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D77055
2020-06-26 18:29:39 +00:00
Hubert Boma Manilla 7cf3a162e6 Bug 1648373 - Add slow requests indicator r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D81629
2020-06-30 13:49:36 +00:00
Julian Descottes 772f4d693d Bug 1646636 - Skip tests with inspect element in same process frames if fission is enabled r=ochameau,perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D80815
2020-06-30 10:22:10 +00:00
Sonia Singla 350a03e726 Bug 1642852 - Adding section in getting started page. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D81137
2020-06-30 06:09:47 +00:00
Matt Woodrow 751fe6358b Bug 1647557 - Implement RemoteWebProgress using CanonicalBrowsingContext instead of MessageManager. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D70626
2020-06-30 01:18:47 +00:00
Nicolas Chevobbe 269c35eaac Bug 1648875 - Fix stacktrace parsing when frame has multiple "@". r=loganfsmyth.
When parsing frames, we only need to retrieve the first "@" index to split
the frame string and get the function name on one side, and the location on the
other side.
This patch removes the regex-based search we were doing for a simpler character
search. A test is added to ensure this works as expected, and snapshots that were
highlighting the issue are updated.

Differential Revision: https://phabricator.services.mozilla.com/D81519
2020-06-29 15:05:31 +00:00
Nicolas Chevobbe b4e71553af Bug 1648017 - Disable console text-selection only evaluation in in-line mode. r=Honza.
This feature is great in editor mode, but can be confusing in in-line mode.
In inline mode, the input is cleared when you evaluate, so if you wrongfully
evaluated only a text selection, you may lose the whole input, and have to
type it again.
This patch disable the feature in inline mode, and modifies the existing test
so we make sure that this work as expected in both editor and inline mode.

Differential Revision: https://phabricator.services.mozilla.com/D81333
2020-06-29 11:49:29 +00:00
Daisuke Akatsuka de90f65570 Bug 1646974: Add a test for the stylesheet which is loaded as internal. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D80807
2020-06-26 09:21:58 +00:00
Daisuke Akatsuka 14e2eb6c29 Bug 1646974: Introduce and use isInDevToolsContext flag. r=Honza,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D80623
2020-06-29 09:34:54 +00:00
Razvan Maries 4b75bbe39d Bug 1618059 - Disabled test_extension_storage_actor.js on Windows. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D81406
2020-06-29 08:17:39 +00:00
Nicolas Chevobbe 0398ff5ec9 Bug 1648795 - Fix devtools/shared/resources/tests/browser_resources_several_resources.js. r=jdescottes.
We were only checking a number of received resources, and as we're listening to
the parent process, any error messages emitted by the platform would hinder the
test. This patch changes the test to expect specific resources instead.

Differential Revision: https://phabricator.services.mozilla.com/D81354
2020-06-29 05:18:17 +00:00
Razvan Maries 69fe4f3c2f Bug 1645563 - Disabled browser_dbg-scopes-duplicated.js on Windows. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D81399
2020-06-26 20:38:30 +00:00
Logan Smyth 48aeb2fe30 Bug 1644075 - Make sure that injected scripts have no URL. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D81376
2020-06-27 05:19:51 +00:00
Julian Descottes 6169f8ceee Bug 1637793 - Catch updateWorkers errors occurring after app panel destroy r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D78633
2020-06-26 12:39:47 +00:00
Marco Zehe 5dfb4493c4 Bug 1648011 - Give the All Tabs overflow button a tooltip, r=nchevobbe,flod,Honza
This pertains to both the inspector side bar as well as the net monitor tabs.

Differential Revision: https://phabricator.services.mozilla.com/D80829
2020-06-26 07:50:29 +00:00
Nicolas Chevobbe 90123a987c Bug 1648458 - Add a test to assert resource watcher destruction when associated target actor is destroyed. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D81034
2020-06-26 06:58:55 +00:00
Marco Zehe 0e1ed3a46b Bug 1648069 - Make the Changes view a document for screen readers, r=yzen
Also make it focusable so screen readers will pick up even the "no changes yet" scenario and won't skip over it.

Differential Revision: https://phabricator.services.mozilla.com/D80865
2020-06-26 00:15:21 +00:00
Zibi Braniecki 8ce6deaff2 Bug 1641719 - Don`t set 0 state in TreeView on first click. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D79322
2020-06-26 00:14:23 +00:00
Sebastian Zartner 63db1cbfbc Bug 1635970 - Extended support for XPath expressions in Inspector search. r=jdescottes
The limitation to expressions starting with a slash was lifted in order to allow searching via other possible XPath expressions like `id("foo")` or `(//div)[2]`.

Differential Revision: https://phabricator.services.mozilla.com/D80963
2020-06-25 18:32:40 +00:00
Razvan Caliman 1c03261951 Bug 1644789 - Wait for Rule view to update before interacting with Flexbox toggle r=gl
By the looks of the [screenshot of the failing test](https://firefoxci.taskcluster-artifacts.net/QIl2Xbs1T5CfvCoUtWkK5w/0/public/test_info//mozilla-test-fail-screenshot_g8P5sS.png), the Rules view isn't updated to reflect the styles for the flex container. Looks like a race condition.

This patch ensures that the test waits for the [Rules view to update](https://searchfox.org/mozilla-central/rev/a87a1c3b543475276e6d57a7a80cb02f3e42b6ed/devtools/client/inspector/rules/rules.js#980) before attempting to click on the swatch to toggle the Flexbox highlighter.

Differential Revision: https://phabricator.services.mozilla.com/D81035
2020-06-25 16:36:44 +00:00
Belén Albeza f08228b977 Bug 1642947 - Enable application panel in all channels r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D81112
2020-06-25 15:02:52 +00:00
Razvan Caliman 59990429a0 Bug 1647989 - Add default reducer to avoid error when creating a Redux store with no reducers. r=gl
We can't create a Redux store without reducers. Redux throws an error.
It's benign and doesn't impact anything (panels load reducers on-demand before accessing them), but it's annoying to see the error in the console and in tests.

Differential Revision: https://phabricator.services.mozilla.com/D81047
2020-06-25 14:20:41 +00:00
Nicolas Chevobbe 7089e9987d Bug 1646678 - Allow resource watcher tests to force server side support. r=ochameau.
This is done by getting the value of the `devtools.testing.enableServerWatcherSupport`
preference on the WatcherActor, and using its result to enable the traits or not.
On the browser_resources_* test that have both legacy and server listener, we
run the tests twice, without and with the pref to have some decent coverage.

Differential Revision: https://phabricator.services.mozilla.com/D79983
2020-06-25 08:59:58 +00:00
Nicolas Chevobbe 05d83bc5f9 Bug 1648022 - Unwatch resources on target destruction. r=ochameau.
This removes the unpopulated _resourceWatchers attributes from
the browsing context, and instead uses a new function on the
Resource module (`unwatchAllTargetResources`)

Differential Revision: https://phabricator.services.mozilla.com/D80834
2020-06-25 08:59:04 +00:00
Jan Odvarko 6799964058 Bug 1646960 - imported patch ignore-blocked-preloads.diff r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D80856
2020-06-25 10:54:15 +00:00
Nihanth Subramanya 0b44a1b2ab Bug 1645896 - Add a console log origins that have their cookies partitioned by dFPI. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D80675
2020-06-25 05:51:29 +00:00
Matt Woodrow b351d48f0c Bug 1646582 - Pull the inner window id from the WindowGlobalParent, rather than passing it across PBrowser for updateForLocationChange. r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80131
2020-06-24 19:59:32 +00:00
Matt Woodrow ea21b3dd8e Bug 1646582 - Remove RemoteWebProgressManager. r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80129
2020-06-24 19:59:04 +00:00
Hubert Boma Manilla 21ef456a07 Bug 1647625 - Undo check for id or reason for block requests r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D80679
2020-06-24 12:01:27 +00:00
Hubert Boma Manilla bc56a33f92 Bug 1645748 - Add the MDN link for status code r=Honza
- Added the MDN link for status codes
- Fixed tooltip for the enhanced protection tracking MDN link

Differential Revision: https://phabricator.services.mozilla.com/D80831
2020-06-24 15:51:51 +00:00
Daisuke Akatsuka 94dc1583db Bug 1647603: Update MDN compat data. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D80770
2020-06-24 13:35:14 +00:00
Yura Zenevich 064b6f0847 Bug 1598016 - make sure that remote frame highlighting works in browser toolbox. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D79404
2020-06-24 13:21:30 +00:00
Yura Zenevich c5c241588f Bug 1598016 - ensure that only one accessible object is highlighted at all times. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D79403
2020-06-24 13:29:28 +00:00
Razvan Maries 592b80d333 Backed out changeset 7ff5210dae5e (bug 1645896) for build bustages. CLOSED TREE 2020-06-24 13:39:43 +03:00
Nihanth Subramanya 6be693b933 Bug 1645896 - Add a console log origins that have their cookies partitioned by dFPI. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D80675
2020-06-24 10:11:45 +00:00
Nicolas Chevobbe efe9743fe7 Bug 1495728 - Remove unused ActorPool class. r=ochameau.
This class isn't used anymore, and it's safe to remove it.
We take this as an opportunity to remove Pool#cleanup and
Pool#isEmpty, which each only had one callsite.
Some comments are updated to not mention ActorPool.

Differential Revision: https://phabricator.services.mozilla.com/D80602
2020-06-24 07:39:06 +00:00
Nicolas Chevobbe a67f596fa2 Bug 1621713 - Don't create extra ActorPools in devtools/server. r=jdescottes.
Remove pools and make target actors manage themselves.
devtools/server/tests/browser/browser_navigateEvents.js was modified
since the targetActor can't be retrieved with `searchAllConnectionsForActor`
anymore.

Differential Revision: https://phabricator.services.mozilla.com/D67510
2020-06-24 07:38:09 +00:00
Dorel Luca 90a64f0da1 Backed out 4 changesets (bug 1646582) for Browser-chrome failures on nsIWebProgress.addProgressListener. CLOSED TREE
Backed out changeset 2111dd0d6dc0 (bug 1646582)
Backed out changeset e6c496c5a4b1 (bug 1646582)
Backed out changeset 49b4ae8c8be0 (bug 1646582)
Backed out changeset 9d42ec89240c (bug 1646582)
2020-06-24 07:50:07 +03:00
Matt Woodrow f430dac707 Bug 1646582 - Pull the inner window id from the WindowGlobalParent, rather than passing it across PBrowser for updateForLocationChange. r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80131
2020-06-24 03:25:35 +00:00
Matt Woodrow acd97f7b2c Bug 1646582 - Remove RemoteWebProgressManager. r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80129
2020-06-24 03:25:09 +00:00
Daisuke Akatsuka 762d6b5b85 Bug 1591307: Localize Settings component. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D79809
2020-06-19 10:56:59 +00:00
Daisuke Akatsuka f913d2c879 Bug 1591307: Localize Footer component. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D79808
2020-06-18 07:28:50 +00:00
Daisuke Akatsuka 629864cbae Bug 1591307: Localize NodePane component. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D79807
2020-06-19 10:58:08 +00:00
Daisuke Akatsuka cb287a6307 Bug 1591307: Localize IssueItem component. r=jdescottes,flod
Differential Revision: https://phabricator.services.mozilla.com/D79806
2020-06-19 11:00:22 +00:00
Daisuke Akatsuka 4268b89051 Bug 1591307: Localize IssuePane component. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D79805
2020-06-18 07:28:03 +00:00
Daisuke Akatsuka 1c09f71859 Bug 1591307: Localize CompatibilityApp component. r=jdescottes,flod
Differential Revision: https://phabricator.services.mozilla.com/D79804
2020-06-18 07:27:50 +00:00
Daisuke Akatsuka 1e1c4fc175 Bug 1591307: Introduce basic localization mechanism. r=jdescottes,stas
Differential Revision: https://phabricator.services.mozilla.com/D79803
2020-06-23 23:26:42 +00:00
Brad Werth 5c0d68416b Bug 1498336: Modify test browser_toolbox_rule_view_reload.js to await reflow of the Rule View, not just that its "refreshed". r=mtigley
This change forces a reflow + repaint of the Rule View before checking its
contents. Ideally, this will remove the intermittent behavior of this test.

Differential Revision: https://phabricator.services.mozilla.com/D66671
2020-06-23 15:36:58 +00:00
Julien Wajsberg dcc454abe5 Bug 1647650 - Reference the new profiler server instead of the old one r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D80613
2020-06-23 12:12:09 +00:00
Julian Descottes 426d07f236 Bug 1646636 - Disable devtools.contenttoolbox.fission in inspector tests for frames + context menu r=ochameau,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D80503
2020-06-23 13:26:06 +00:00
Julian Descottes 87467dc091 Bug 1644357 - Remove unused WebExtensionDescriptor properties isAPIExtension & type r=daisuke
Depends on D78009

Differential Revision: https://phabricator.services.mozilla.com/D78868
2020-06-09 10:09:09 +00:00
Julian Descottes d412953eea Bug 1646456 - Only call destroy on top level pools from connection onClosed r=ochameau,nchevobbe
Depends on D80060

Differential Revision: https://phabricator.services.mozilla.com/D80064
2020-06-23 11:08:30 +00:00
Julian Descottes 4006b42e26 Bug 1646456 - Remove unused noCleanup argument from removeActorPool r=nchevobbe
Depends on D80059

removeActorPool is only called from one spot, which always passes the second optional argument as true.

Differential Revision: https://phabricator.services.mozilla.com/D80060
2020-06-22 12:54:26 +00:00
Julian Descottes b1578fe35a Bug 1646456 - Add xpcshell test to check pool destruction when connection closes r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D80059
2020-06-23 10:13:59 +00:00
Coroiu Cristina 8126633a9c Bug 1644044 - disable browser_dbg-old-breakpoint.js on linux and mac for frequesnt failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D80388
2020-06-23 10:23:15 +00:00
Butkovits Atila afbfabf2f0 Backed out changeset b09c7ddea2a4 (bug 1646678) for causing leaks. CLOSED TREE 2020-06-23 11:06:54 +03:00
Nicolas Chevobbe b5493ef467 Bug 1646678 - Allow resource watcher tests to force server side support. r=ochameau.
This is done by getting the value of the `devtools.testing.enableServerWatcherSupport`
preference on the WatcherActor, and using its result to enable the traits or not.
On the browser_resources_* test that have both legacy and server listener, we
run the tests twice, without and with the pref to have some decent coverage.

Differential Revision: https://phabricator.services.mozilla.com/D79983
2020-06-22 12:15:11 +00:00
Narcis Beleuzu b894acb874 Backed out 4 changesets (bug 1646582) for mochitest failures on test_ext_tabs_create.html . CLOSED TREE
Backed out changeset ce5cdfc5d7cf (bug 1646582)
Backed out changeset 2ac69a2b6708 (bug 1646582)
Backed out changeset 74d89cb24414 (bug 1646582)
Backed out changeset 7de0ff1af560 (bug 1646582)
2020-06-23 06:30:03 +03:00
James Teh 316e5c9eca Bug 1646267: In Dev Tools autocompletes, Only rebuild the list a11y clone when the main list changes. r=nchevobbe
Previously, the list clone was completely replaced every time aria-activedescendant was set.
This caused screen readers to extraneously report this as a new list every time the user cursored to a different item, even if the items hadn't changed.

Differential Revision: https://phabricator.services.mozilla.com/D79941
2020-06-23 01:57:52 +00:00
Matt Woodrow 2ee0adfb0e Bug 1646582 - Pull the inner window id from the WindowGlobalParent, rather than passing it across PBrowser for updateForLocationChange. r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80131
2020-06-23 01:24:17 +00:00
Matt Woodrow f851c6be5b Bug 1646582 - Remove RemoteWebProgressManager. r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80129
2020-06-23 01:23:59 +00:00
Sebastian Zartner e6b39abe08 Bug 1646945 - Fixed MDN URLs linked to from the storage types. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D80369
2020-06-22 18:03:57 +00:00
Julian Descottes f1c04a710c Bug 1645017 - Provide URL_ROOT variants for example.net, example.org r=ochameau
When testing fission scenarios in mochitests it can be useful to load test
documents with different TLDs.

Differential Revision: https://phabricator.services.mozilla.com/D80149
2020-06-22 17:19:05 +00:00
Nicolas Chevobbe 1e9044a708 Bug 1646633 - Fix intermittent on browser_storage_cache_error.js. r=jdescottes,ochameau.
This patch removes the browsingContextID getter in favor of creating a property
on the instance in the constructor.
The getter was an attempt to handle the fact that we can have multiple browsing
context over time, but it wasn't working that well, so we'll tackle that as
part of Bug 1625027.

Differential Revision: https://phabricator.services.mozilla.com/D80151
2020-06-22 11:36:32 +00:00
Csoregi Natalia d934cffb58 Bug 1640234 - Disabled browser_application_panel_target-switching.js on Linux and Windows. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D80431
2020-06-22 11:24:35 +00:00
Farooq AR 0884c9f3ce Bug 1636421 - Refactor response panel styles into separate file. r=Honza,bomsy
Depends on D80336

Differential Revision: https://phabricator.services.mozilla.com/D80337
2020-06-21 15:14:29 +00:00
Farooq AR 2aa84458db Bug 1636421 - Merge Message panel with the Response panel. r=Honza,bomsy
MessagesPanel is now MessagesView and it is now rendered in Response panel instead of TabboxPanel.

Depends on D80335

Differential Revision: https://phabricator.services.mozilla.com/D80336
2020-06-21 15:16:08 +00:00
Farooq AR 65668ef1a7 Bug 1636421 - Rename MessagesPanel to MessagesView. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D80335
2020-06-19 16:07:41 +00:00
Tooru Fujisawa 74dfbb2d11 Bug 1647026 - Disallow Array.prototype.fill in eager evaluation. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D80373
2020-06-20 18:59:52 +00:00
Hubert Boma Manilla 43efe182ba Bug 1646940 - block request only when there is a reason or an extension id r=Honza
Temp fix  should land in 79,  uplift to 78, and then remove from 79

Differential Revision: https://phabricator.services.mozilla.com/D80305
2020-06-19 09:36:50 +00:00
Harald Kirschner df0102e3be Bug 1642034 - Update DevTools Whats New for 78 r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D80280
2020-06-18 22:49:48 +00:00
Dorel Luca 83762a1f31 Backed out changeset 40dae06d5e4d (bug 1646678) for Devtools failures in tests/browser_resources_several_resources.js. CLOSED TREE 2020-06-18 23:21:43 +03:00
Nicolas Chevobbe 06852fdbb6 Bug 1646678 - Allow resource watcher tests to force server side support. r=ochameau.
This is done by getting the value of the `devtools.testing.enableServerWatcherSupport`
preference on the WatcherActor, and using its result to enable the traits or not.
On the browser_resources_* test that have both legacy and server listener, we
run the tests twice, without and with the pref to have some decent coverage.

Differential Revision: https://phabricator.services.mozilla.com/D79983
2020-06-18 15:20:14 +00:00
Hubert Boma Manilla 12ac6882be Bug 1644275 - Add a new Channel map r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D79137
2020-06-18 14:44:12 +00:00
Hubert Boma Manilla 1718c07f68 Bug 1622925 - Wait for navigate to make sure the page title is available r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D79836
2020-06-18 14:44:36 +00:00
Alexandre Poirot e5f625b56e Bug 1646143 - Use instantiable classes for resource watchers. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D79882
2020-06-18 10:34:37 +00:00
Alexandre Poirot 31a7c42e44 Bug 1644772 - Avoid an exception when we fail detaching a SW on destroy. r=jdescottes
No idea if that is the real reason why the Browser Toolbox failed opening.
It isn't clear how WorkerTarget detach is implied in toolbox opening?

Differential Revision: https://phabricator.services.mozilla.com/D79159
2020-06-18 10:12:04 +00:00
Alexandre Poirot 1a2600afe4 Bug 1646409 - Remove unecessary `gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);` in devtools tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D80152
2020-06-18 09:48:11 +00:00
Nicolas Chevobbe e7f3831299 Bug 1641554 - Fix scroll to bottom issue when expanding object in console. r=bomsy.
The issue was that we were having a ResizeObserver only on the console output
node. When the output only has a few node, its height is impacted when an
element is expanded.
We fix this by observing the output parent node, which contains both the input
and the output, which prevents the issue.
In editor mode though, we still need to observe only the output element, as
the editor is on the right side.
So when the console changes from editor mode to inline, or the other way around,
we change the observed element.

A test case is added to make sure the issue is fixed. Sadly, this also means
we have to remove a test case (typing a multiline expression in input mode
won't keep the output scroll to the bottom), but it's a tradeoff I'm willing
to make as the issue isn't as annoying as the one we're fixing here.

Differential Revision: https://phabricator.services.mozilla.com/D79961
2020-06-18 07:49:47 +00:00
Emilio Cobos Álvarez 011d524740 Bug 1646336 - Don't unnecessarily lose precision in nsComputedDOMStyle. r=hiro
We're converting to nscoord in some places unnecessarily, reducing the
precision of the computed value we return.

This makes some tests unnecessarily fail if we change the base of
nscoord.

Differential Revision: https://phabricator.services.mozilla.com/D79996
2020-06-18 00:42:47 +00:00
Gijs Kruitbosch 19220a3149 Bug 1644863 - fix trailing whitespace and windows line endings in locale files, r=fluent-reviewers,flod,Pike
Differential Revision: https://phabricator.services.mozilla.com/D79203
2020-06-17 22:46:22 +00:00
Gijs Kruitbosch d523471eac Bug 1644863 - fix trailing whitespace in browser/toolkit/devtools/mobile frontend code files, r=mossop,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D79201
2020-06-17 22:40:53 +00:00
Julian Descottes e52e2c32ec Bug 1644870 - Remove removeEventsTopTarget method from debugger codebase r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D79184
2020-06-17 20:01:31 +00:00
Julian Descottes eddca6ec0a Bug 1639934 - Enable devtools.contenttoolbox.fission by default but gate it behind fission.autostart r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D79849
2020-06-17 19:46:51 +00:00
Kris Maglione 3bda67deab Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-17 17:17:16 +00:00
surya_b ffd4f25375 Bug 1637842 - Respect prefers-reduced-motion for animation preview in timing function editor. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D79616
2020-06-17 13:03:05 +00:00
Richard Sherman 2f209f56c9 Bug 1631545 - Add better tooltip to Reps. r=nchevobbe
This patch adds title attributes on the different Reps, alongside with a new `shouldRenderTooltip` prop.
The props is only used from the ExpressionPanel in the debugger so far.
Tests are added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D72900
2020-06-17 09:33:03 +00:00
Marco Zehe 1c1f12c84d Bug 1242856 - Add accessibility semantics to the computed styles view, r=gl
This patch does the following:

1. Adds a semantic document role to the computed styles pane. This causes screen readers to treat it as something they can use their reading commands on for better navigation and efficiency.
2. Gives the expansion twisties a button role and a label. I am reusing the labels introduced in an earlier patch.
3. Turns the name portion of each property into a heading so screen reader users can quickly skip between them, regardless of their expanded status or not.
4. Explicitly displays the status for each rule match with visually hidden text because screen readers do not pick up text from titles on simple span elements.
5. Adjusts the visually-hidden class to be more modern and less intrusive.

Differential Revision: https://phabricator.services.mozilla.com/D79673
2020-06-16 16:07:13 +00:00
Nicolas Chevobbe 76fccc6721 Bug 1625910 - Use ResourceAPI for CSS Warning messages.r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D79069
2020-06-16 18:21:22 +00:00