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

26074 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Chevobbe df6bba40e4 Bug 1810409 - [devtools] Simplify pretty-fast.js .r=ochameau.
- Replace custom repeat function with String#repeat
- Switch dictionnaries from Objects to Sets

Differential Revision: https://phabricator.services.mozilla.com/D166892
2023-01-20 06:46:57 +00:00
Nicolas Chevobbe a0a0b794a1 Bug 1804886 - [devtools] Update pretty-print-worker bundle . r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D166674
2023-01-20 06:46:57 +00:00
Nicolas Chevobbe b83f83a835 Bug 1804886 - [devtools] Fix complexity errors in pretty-fast.js . r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D166673
2023-01-20 06:46:56 +00:00
Nicolas Chevobbe 976814e1a9 Bug 1804886 - [devtools] Fix prefer-template errors in pretty-fast.js . r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D166672
2023-01-20 06:46:56 +00:00
Nicolas Chevobbe 8bf069b7d8 Bug 1804886 - [devtools] Fix no-shadow errors in pretty-fast.js . r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D166671
2023-01-20 06:46:55 +00:00
Nicolas Chevobbe 927931d392 Bug 1804886 - [devtools] Fix mozilla/var-only-at-top-level errors in pretty-fast.js . r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D166670
2023-01-20 06:46:55 +00:00
Nicolas Chevobbe 01163ec316 Bug 1804886 - [devtools] Run prettyFast test on CI. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D166555
2023-01-20 06:46:55 +00:00
Nicolas Chevobbe 04f0405f13 Bug 1804886 - [devtools] Move pretty-fast into debugger/src/workers/pretty-print. r=ochameau.
I disabled indivual eslint rules for the file and I'll
fix them in individual commits in this stack

Differential Revision: https://phabricator.services.mozilla.com/D166554
2023-01-20 06:46:54 +00:00
Gijs Kruitbosch 38016dd0ff Bug 1810995 - update BrowserTestUtils.loadURI consumers to use loadURIString (automated) - toolkit/ - r=Standard8,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D167151
2023-01-19 20:16:41 +00:00
Alexandre Poirot be95b99bab Bug 1811254 - [devtools] Avoid listening for any resource type not supported by worker targets. r=devtools-reviewers,jdescottes
Because we are currently using an ignore list, we may miss any type not correctly ignored.
Let's instead use an accept list and be exaustive in which type the worker targets support.

Differential Revision: https://phabricator.services.mozilla.com/D167261
2023-01-19 17:18:32 +00:00
Alexandre Poirot d42dc60869 Bug 1811230 - [devtools] Consider extension storage inspection always enabled. r=devtools-reviewers,nchevobbe
This pref has been true for a while and isn't meant to be disabled by the user.

Differential Revision: https://phabricator.services.mozilla.com/D166660
2023-01-19 17:16:34 +00:00
Alexandre Poirot ec1c1ce4c1 Bug 1811229 - [devtools] Fix reporting toolbox as a valid browsing context r=devtools-reviewers,jdescottes
remote=true wasn't quite the right check here.
This workaround here is rather around chrome <=> content boundaries.
When we load a URL that loads in the parent process (like about:devtools-toolbox),
this ignores remote=true and loads in parent, but type="content"
is still enforced and still prevent it from being listed in BrowsingContext.children.

Because of this the about:devtools-toolbox wasn't visible in the storage panel.

Differential Revision: https://phabricator.services.mozilla.com/D166659
2023-01-19 17:16:33 +00:00
Nicolas Chevobbe 212403c985 Bug 1811207 - [devtools] Remove debugger-tests task and run debugger jest test via devtools-tests. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D167241
2023-01-19 14:55:40 +00:00
Nicolas Chevobbe 2d75836968 Bug 1543012 - [devtools] Migrate console node test to jest. r=jdescottes.
This makes the console behave like the other React panels.
We can also get rid of the specific bits for mocha in devtools-node-test-runner.js

Differential Revision: https://phabricator.services.mozilla.com/D167233
2023-01-19 14:55:39 +00:00
Julian Descottes 36f326762e Bug 1811137 - [devtools] Use shared-head's addTab in devtools/server browser mochitests r=ochameau
Quick follow up to Bug 1810579. We can completely get rid of the helper and use our existing shared helper.

Differential Revision: https://phabricator.services.mozilla.com/D167208
2023-01-19 12:39:21 +00:00
Julian Descottes 8dabc0c3df Bug 1810579 - [devtools] Update comment about noop watcher for stylesheets r=devtools-reviewers,ochameau
Depends on D167164

I was hoping to remove this noop watcher thanks to the previous patch, but we have to keep it.
Updated the comment to highlight the main reason why the watchResources call is needed here.

Alternatively, instead of a no-op here, we could either
- cache the stylesheet resources in the inspector front and remove getResourceById on resourceCommand
- or automatically watch stylesheets

Differential Revision: https://phabricator.services.mozilla.com/D167165
2023-01-18 22:18:45 +00:00
Julian Descottes b36a579757 Bug 1810579 - [devtools] Notify about already registered stylesheets in stylesheets-manager r=devtools-reviewers,ochameau
Depends on D167098

This is normally not triggered by any scenario with the current DevTools but there is no reason actors should not be allowed to use the stylesheet-manager
unless a client has started it.

Differential Revision: https://phabricator.services.mozilla.com/D167164
2023-01-18 22:18:45 +00:00
Julian Descottes f5b51109d4 Bug 1810572 - [devtools] Rewrite consumers of getStyleSheetText to use async/await instead of then() r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D167098
2023-01-18 22:18:44 +00:00
Julian Descottes cade94c0ec Bug 1810622 - [devtools] Add test navigating a tab while BrowserToolbox is open r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D166796
2023-01-18 17:57:23 +00:00
Noemi Erli 2a016fbd8d Backed out 5 changesets (bug 1351231) for causing multiple wpt failures CLOSED TREE
Backed out changeset 257553919696 (bug 1351231)
Backed out changeset 4fd92351d64b (bug 1351231)
Backed out changeset 7a4e3f5f674a (bug 1351231)
Backed out changeset 9da00c1364a5 (bug 1351231)
Backed out changeset 19b78046ffef (bug 1351231)
2023-01-18 18:16:01 +02:00
Alexandre Poirot 61ae9405d9 Bug 1809848 - [devtools] Remove TargetMixin.chrome attribute. r=devtools-reviewers,nchevobbe
This is a very old and legacy attribute which always had a fuzzy definition.
As of today it was a somewhat alias of "not debugging a local/remote tab".

Differential Revision: https://phabricator.services.mozilla.com/D166904
2023-01-18 12:32:04 +00:00
Alexandre Poirot e3887c0a39 Bug 1809848 - [devtools] Remove TargetMixin.isAddon. r=devtools-reviewers,nchevobbe
Ideally, the debugging context should rather be defined by the descriptor
rather than the top target.
On top of that isAddon is only an alias for isWebExtension.
So drop most usages of isAddon and otherwise use isWebExtension.

Differential Revision: https://phabricator.services.mozilla.com/D166903
2023-01-18 12:32:04 +00:00
Alexandre Poirot 1922ea6beb Bug 1809848 - [devtools] Remove a few unused attributes of TargetMixin. r=devtools-reviewers,nchevobbe
Legacy addon should no longer exist. We only support WebExtensions (at least in DevTools).

Differential Revision: https://phabricator.services.mozilla.com/D166648
2023-01-18 12:32:04 +00:00
Alexandre Poirot c984f94118 Bug 1809848 - [devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
They should rather be queried on the descriptor front.

Differential Revision: https://phabricator.services.mozilla.com/D166647
2023-01-18 12:32:03 +00:00
kernp25 2f7e657a30 Bug 1757161 - Add a check to make sure channel.loadInfo.loadingPrincipal is not null. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D165523
2023-01-18 11:49:45 +00:00
Julien Wajsberg 9c6c509a4f Bug 1651255 - Support Unicode paths when importing devtools memory snapshots r=jimb
The old code was using non-Unicode C strings. This patch updates this to
use Unicode strings to handle paths.

Differential Revision: https://phabricator.services.mozilla.com/D85013
2023-01-18 09:41:15 +00:00
Alexandre Poirot e844ad87e1 Bug 1807896 - [devtools] Remove "toolbox-created" event. r=devtools-reviewers,perftest-reviewers,sparky,jdescottes
This event was only used in this test.

Unfortunately, I wasn't able to keep the same logic in the test while keeping it reliable.
I prefer to remove this test-only event and simplify the test to only ensure
we safely ignore subsequent calls to toggle.

What is hard to know from the test, when calling toggle in some following event loops
is if this will be ignored -or- close/open a toolbox...

Differential Revision: https://phabricator.services.mozilla.com/D165715
2023-01-18 09:27:30 +00:00
Alexandre Poirot ba869045d5 Bug 1807896 - [devtools] Move manager destruction from toolbox-unload to destroyed. r=devtools-reviewers,bomsy
This toolbox-unload was only fired for ToolboxHostManager own usage.
On top of that, ToolBoxHostManager was delaying its destruction by an additional
event loop. It indicates that this toolbox-unload event was too early.
So it rather makes sense to use the latest event in the destruction codepath.
i.e. toolbox's "destroyed" event.

I kept the event loop tick as toolbox-destroyed is still slightly too early.
The debugger is still going through pending async work in browser_dbg-breakpoints-in-evaled-sources.js.
This relates to the promise middleware which delay each promise action
by an event loop tick using setTimeout. setTimeout throws once we remove the host iframe.

I first tried to remove this event loop tick.
It highlighted two possible intermittents in two tests involving viewSourceInDebugger.
These tests weren't waiting for the full processing of opened sources by the Debugger frontend.
Using debugger shared-head helpers ensure waiting for full source selection.

Differential Revision: https://phabricator.services.mozilla.com/D165714
2023-01-18 09:27:30 +00:00
Eden Chuang 473cb0ffa2 Bug 1351231 - Integrate FetchChild into Fetch.cpp r=dom-worker-reviewers,jesup
Depends on D142437

Differential Revision: https://phabricator.services.mozilla.com/D142704
2023-01-18 00:50:20 +00:00
Luca Greco 402d669a02 Bug 1802929 - Fix missing DevTools storage panel updates on extension with no browser.storage onChanged listeners. r=jdescottes,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D166361
2023-01-17 18:16:48 +00:00
Butkovits Atila 4b6832ec0c Backed out 4 changesets (bug 1809848) for causing failures at browser_toolbox_options_disable_js. CLOSED TREE
Backed out changeset 7dfd8676b3c7 (bug 1809848)
Backed out changeset 78375e26bffe (bug 1809848)
Backed out changeset 17b823d1492e (bug 1809848)
Backed out changeset 05e57c08310f (bug 1809848)
2023-01-17 20:23:43 +02:00
Marian-Vasile Laza 1037940f5b Backed out 5 changesets (bug 1351231) for causing multiple wpt failures. CLOSED TREE
Backed out changeset a41252141399 (bug 1351231)
Backed out changeset 6cbb442f4772 (bug 1351231)
Backed out changeset dbdca4661a35 (bug 1351231)
Backed out changeset ea27cd66fefd (bug 1351231)
Backed out changeset 8c21c9468949 (bug 1351231)
2023-01-17 19:53:09 +02:00
Alexandre Poirot 803c45c5bd Bug 1809848 - [devtools] Remove TargetMixin.chrome attribute. r=devtools-reviewers,nchevobbe
This is a very old and legacy attribute which always had a fuzzy definition.
As of today it was a somewhat alias of "not debugging a local/remote tab".

Differential Revision: https://phabricator.services.mozilla.com/D166904
2023-01-17 16:34:02 +00:00
Alexandre Poirot 1126a08021 Bug 1809848 - [devtools] Remove TargetMixin.isAddon. r=devtools-reviewers,nchevobbe
Ideally, the debugging context should rather be defined by the descriptor
rather than the top target.
On top of that isAddon is only an alias for isWebExtension.
So drop most usages of isAddon and otherwise use isWebExtension.

Differential Revision: https://phabricator.services.mozilla.com/D166903
2023-01-17 16:34:02 +00:00
Alexandre Poirot 9417b00df5 Bug 1809848 - [devtools] Remove a few unused attributes of TargetMixin. r=devtools-reviewers,nchevobbe
Legacy addon should no longer exist. We only support WebExtensions (at least in DevTools).

Differential Revision: https://phabricator.services.mozilla.com/D166648
2023-01-17 16:34:01 +00:00
Alexandre Poirot f105170dd5 Bug 1809848 - [devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
They should rather be queried on the descriptor front.

Differential Revision: https://phabricator.services.mozilla.com/D166647
2023-01-17 16:34:01 +00:00
Alexandre Poirot ca5f63ae6e Bug 1810009 - [devtools] Avoid firing DOCUMENT_EVENT will-navigate for non-top-level targets. r=devtools-reviewers,jdescottes
The legacy listener was explicitely avoiding emitting this event for non top-level targets.
It seems like all frontend code listening to will-navigate ignore the event is targetFront.isTopLevel is false,
so it looks like no code would expect these event.
So let's try to avoid emitting them if they aren't used by anyone.
(and can be confusing/buggy in the context of the browser toolbox)

Differential Revision: https://phabricator.services.mozilla.com/D166769
2023-01-17 16:33:15 +00:00
Eden Chuang 81c1e9c406 Bug 1351231 - Integrate FetchChild into Fetch.cpp r=dom-worker-reviewers,jesup
Depends on D142437

Differential Revision: https://phabricator.services.mozilla.com/D142704
2023-01-17 15:13:46 +00:00
Julian Descottes 86e85baedd Bug 1808870 - [devtools] Fix bug number in comments about constructed stylesheets r=nchevobbe
Depends on D166312

Differential Revision: https://phabricator.services.mozilla.com/D166315
2023-01-17 08:06:17 +00:00
Julian Descottes 8c925316a6 Bug 1808870 - [devtools] Rename all occurrences of styleSheetManager to styleSheetsManager r=nchevobbe
Depends on D166311

Differential Revision: https://phabricator.services.mozilla.com/D166312
2023-01-17 08:06:16 +00:00
Julian Descottes d71c146658 Bug 1808870 - [devtools] Move getSheetOwnerNode to stylesheets-manager and delete actors/style-sheet.js r=nchevobbe
Depends on D166310

Differential Revision: https://phabricator.services.mozilla.com/D166311
2023-01-17 08:06:16 +00:00
Julian Descottes 7ddd2f77ff Bug 1808870 - [devtools] Move UPDATE_PRESERVING_RULES and UPDATE_GENERAL constants to stylesheets-manager r=nchevobbe
Depends on D166146

Differential Revision: https://phabricator.services.mozilla.com/D166310
2023-01-17 08:06:15 +00:00
Julian Descottes e6751f2636 Bug 1808870 - [devtools] Remove the stylesheet actor r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Depends on D166144

Differential Revision: https://phabricator.services.mozilla.com/D166146
2023-01-17 08:06:15 +00:00
Julian Descottes 89547f4f70 Bug 1808870 - [devtools] Remove frontend codepath only relevant when stylesheet watcher was disabled r=devtools-reviewers,nchevobbe
Depends on D166143

Differential Revision: https://phabricator.services.mozilla.com/D166144
2023-01-17 08:06:15 +00:00
Julian Descottes 45015576d9 Bug 1808870 - [devtools] Remove unused code branches behind hasStyleSheetWatcherSupport r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Depends on D166142

Differential Revision: https://phabricator.services.mozilla.com/D166143
2023-01-17 08:06:14 +00:00
Julian Descottes 32445baa46 Bug 1808870 - [devtools] Remove mediarule actor r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Depends on D166141
Quick followup, we can fully remove the actor.

Differential Revision: https://phabricator.services.mozilla.com/D166142
2023-01-17 08:06:14 +00:00
Julian Descottes 528a29e9eb Bug 1808870 - [devtools] Remove unused media-rules-changed event and getMediaRules r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Depends on D166139

This is one of the easiest actors to unplug, and it has very little connections to the rest, so doing it early in the stack

Differential Revision: https://phabricator.services.mozilla.com/D166141
2023-01-17 08:06:13 +00:00
Julian Descottes 5f0353facc Bug 1808870 - [devtools] Remove stylesheet legacy listener r=devtools-reviewers,nchevobbe
The legacy listener for stylesheets should no longer be needed on any configuration

Differential Revision: https://phabricator.services.mozilla.com/D166139
2023-01-17 08:06:13 +00:00
Marian-Vasile Laza c4e8bd42d6 Backed out 4 changesets (bug 1809848) for causing damp failures on browser-toolbox.js. CLOSED TREE
Backed out changeset 14b861cccbeb (bug 1809848)
Backed out changeset 92d5cc5ee69e (bug 1809848)
Backed out changeset 9bb5167ebc4b (bug 1809848)
Backed out changeset cdd531783324 (bug 1809848)
2023-01-17 11:16:20 +02:00
Stanca Serban 1e41f13961 Backed out changeset 6126dcd64f4f (bug 1810009) for causing dt failures in browser_resources_document_events.js. CLOSED TREE 2023-01-17 10:00:06 +02:00
Alexandre Poirot 5e721345b9 Bug 1810009 - [devtools] Avoid firing DOCUMENT_EVENT will-navigate for non-top-level targets. r=devtools-reviewers,jdescottes
The legacy listener was explicitely avoiding emitting this event for non top-level targets.
It seems like all frontend code listening to will-navigate ignore the event is targetFront.isTopLevel is false,
so it looks like no code would expect these event.
So let's try to avoid emitting them if they aren't used by anyone.
(and can be confusing/buggy in the context of the browser toolbox)

Differential Revision: https://phabricator.services.mozilla.com/D166769
2023-01-17 01:01:14 +00:00
Alexandre Poirot 016b0934ad Bug 1809848 - [devtools] Remove TargetMixin.chrome attribute. r=devtools-reviewers,nchevobbe
This is a very old and legacy attribute which always had a fuzzy definition.
As of today it was a somewhat alias of "not debugging a local/remote tab".

Differential Revision: https://phabricator.services.mozilla.com/D166904
2023-01-16 22:25:09 +00:00
Alexandre Poirot 4a6ec1e674 Bug 1809848 - [devtools] Remove TargetMixin.isAddon. r=devtools-reviewers,nchevobbe
Ideally, the debugging context should rather be defined by the descriptor
rather than the top target.
On top of that isAddon is only an alias for isWebExtension.
So drop most usages of isAddon and otherwise use isWebExtension.

Differential Revision: https://phabricator.services.mozilla.com/D166903
2023-01-16 22:25:08 +00:00
Alexandre Poirot 280a2e3e0a Bug 1809848 - [devtools] Remove a few unused attributes of TargetMixin. r=devtools-reviewers,nchevobbe
Legacy addon should no longer exist. We only support WebExtensions (at least in DevTools).

Differential Revision: https://phabricator.services.mozilla.com/D166648
2023-01-16 22:25:08 +00:00
Alexandre Poirot 993faf67d5 Bug 1809848 - [devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
They should rather be queried on the descriptor front.

Differential Revision: https://phabricator.services.mozilla.com/D166647
2023-01-16 22:25:07 +00:00
Sandor Molnar 74969776d3 Backed out 2 changesets (bug 1810009) for causing dt failures in devtools/client/framework/browser-toolbox/test/browser_browser_toolbox_navigate_tab.js
Backed out changeset ee636c21fe18 (bug 1810009)
Backed out changeset d9bcb8862497 (bug 1810009)
2023-01-16 23:52:08 +02:00
Julian Descottes 54c3ff76ae Bug 1810009 - [devtools] Add test navigating a tab while BrowserToolbox is open r=devtools-reviewers,nchevobbe
Depends on D166769

Differential Revision: https://phabricator.services.mozilla.com/D166796
2023-01-16 19:52:51 +00:00
Alexandre Poirot 1145df91e1 Bug 1810009 - [devtools] Avoid firing DOCUMENT_EVENT will-navigate for non-top-level targets. r=devtools-reviewers,jdescottes
The legacy listener was explicitely avoiding emitting this event for non top-level targets.
It seems like all frontend code listening to will-navigate ignore the event is targetFront.isTopLevel is false,
so it looks like no code would expect these event.
So let's try to avoid emitting them if they aren't used by anyone.
(and can be confusing/buggy in the context of the browser toolbox)

Differential Revision: https://phabricator.services.mozilla.com/D166769
2023-01-16 19:52:51 +00:00
Jonathan Watt 43752f0573 Bug 1798323 - Style changes to support the 'page-orientation' property. r=AlaskanEmily
Differential Revision: https://phabricator.services.mozilla.com/D161800
2023-01-16 15:03:44 +00:00
Iulian Moraru cacbe76a34 Backed out changeset 184e7ccf3c01 (bug 1808797) for causing multiple failures. CLOSED TREE 2023-01-16 17:44:14 +02:00
Csoregi Natalia 07f06ffdac Backed out 2 changesets (bug 1810009) for causing multiple devtools failures. CLOSED TREE
Backed out changeset 8f4d3ce7f581 (bug 1810009)
Backed out changeset 57ac7060ddf0 (bug 1810009)
2023-01-16 17:34:59 +02:00
Alexandre Poirot 34b213ed04 Bug 1808797 - [devtools] Add assertion to verify gDevTools is loaded only once. r=jdescottes
The modification made to Loader isn't necessary as the sandboxName
isn't relevant/used. The global will be the one crafted by C++
and be named "Devtools global".
But in case something change, this may catch yet another unexpected behavior.

Differential Revision: https://phabricator.services.mozilla.com/D166122
2023-01-16 14:04:54 +00:00
Julian Descottes be748048c6 Bug 1810009 - [devtools] Add test navigating a tab while BrowserToolbox is open r=devtools-reviewers,nchevobbe
Depends on D166769

Differential Revision: https://phabricator.services.mozilla.com/D166796
2023-01-16 12:54:45 +00:00
Alexandre Poirot 070b0c01c9 Bug 1810009 - [devtools] Avoid firing DOCUMENT_EVENT will-navigate for non-top-level targets. r=devtools-reviewers,jdescottes
The legacy listener was explicitely avoiding emitting this event for non top-level targets.
It seems like all frontend code listening to will-navigate ignore the event is targetFront.isTopLevel is false,
so it looks like no code would expect these event.
So let's try to avoid emitting them if they aren't used by anyone.
(and can be confusing/buggy in the context of the browser toolbox)

Differential Revision: https://phabricator.services.mozilla.com/D166769
2023-01-16 12:54:44 +00:00
Nicolas Chevobbe 2bac716501 Bug 1801462 - [devtools] Guard getWarningGroupType on message. r=jdescottes.
This should prevent to crash the browser until we find out
why this function is called with undefined.

Differential Revision: https://phabricator.services.mozilla.com/D166791
2023-01-13 16:29:27 +00:00
Ryan VanderMeulen 3bfc7ebe13 Backed out changeset 34c1c9be027d (bug 1769534) for causing bug 1801186. 2023-01-12 08:50:27 -05:00
Butkovits Atila 7855df7caf Backed out 5 changesets (bug 1351231) for causing fetch related failures. CLOSED TREE
Backed out changeset da5c4a821428 (bug 1351231)
Backed out changeset 66b279e5a513 (bug 1351231)
Backed out changeset 3eb8fdd0ba6d (bug 1351231)
Backed out changeset a1fcf22a2a0e (bug 1351231)
Backed out changeset fd2a843599d1 (bug 1351231)
2023-01-12 20:20:14 +02:00
Eden Chuang 181d5d396e Bug 1351231 - Integrate FetchChild into Fetch.cpp r=dom-worker-reviewers,jesup
Depends on D142437

Differential Revision: https://phabricator.services.mozilla.com/D142704
2023-01-12 17:24:29 +00:00
Stanca Serban 0d5b1d231b Backed out 5 changesets (bug 1351231) for Fetch related failures. CLOSED TREE
Backed out changeset cc26eeeaf3dd (bug 1351231)
Backed out changeset c0cb3c17f246 (bug 1351231)
Backed out changeset 84162d09eef8 (bug 1351231)
Backed out changeset 5c3b5a384f2f (bug 1351231)
Backed out changeset d8fa8a006948 (bug 1351231)
2023-01-12 18:56:25 +02:00
Eden Chuang 4993cf02ca Bug 1351231 - Integrate FetchChild into Fetch.cpp r=dom-worker-reviewers,jesup
Depends on D142437

Differential Revision: https://phabricator.services.mozilla.com/D142704
2023-01-12 15:09:45 +00:00
Francesco Lodolo (:flod) a4b038c522 Bug 1809601 - Use "Content-Security-Policy" for group CSP option, r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D166636
2023-01-12 14:27:33 +00:00
Markus Stange 5ad25cd2bd Bug 1808982 - Add the macOS 13 dyld shared cache path. r=canaltinova
This makes symbolication work on macOS 13+ for system libraries for which the Mozilla symbol server has no symbols,
for example for system libraries from macOS Beta versions.

It also makes the /asm/v1 endpoint work for system libraries on macOS 13+.

The dyld shared cache moved to a new location in that version.

This fix matches the fix for samply in da71321c59 .

Depends on D166227

Differential Revision: https://phabricator.services.mozilla.com/D166228
2023-01-11 22:00:51 +00:00
Markus Stange 833a2b3b5e Bug 1808982 - Update profiler-get-symbols wasm blob to commit 0373708893e45e8299e58ca692764be448e3457d. r=canaltinova
As usual, the changes to profiler_get_symbols.js were auto-generated by wasm-bindgen
and do not need to be reviewed carefully.

This update comes with the following fixes and improvements:

 - For ELF files without a build ID, the fallback debug ID is now computed correctly. (fixes bug 1805915)
 - If no symbol information is available, and we fall back to a stripped binary,
   the fallback symbols are less misleading. We now show fun_1b3d4f symbols for
   functions with missing symbols, instead of taking the name of the closest
   "exported" symbol. This fixes another long-standing annoyance.
 - Symbols now have a "function_size" attribute, which is needed for the
   upcoming assembly view in order to know how many bytes to disassemble.
 - A new API path has been added: /asm/v1. This is a first implementation
   of an assembly endpoint, to be used in the upcoming assembly view in the
   profiler.

We need to implement one new method in the helper: getCandidatePathsForBinary.
This method is used to find the file which we can get the assembly code bytes from.
However, we end up listing almost the same paths in it as in getCandidatePathsForDebugFile;
the only difference is that we don't list the path to the Windows PDB file,
by not adding an entry for the lib's debugPath.

Differential Revision: https://phabricator.services.mozilla.com/D166227
2023-01-11 22:00:50 +00:00
Julian Descottes 7753160d66 Bug 1781504 - [devtools] Check if simple.css is already selected in browser_toolbox_styleeditor.js r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D166480
2023-01-11 17:01:54 +00:00
Gijs Kruitbosch e085afe07b Bug 1808990 - remove background-image CSS for .CodeMirror .error which is a no-op, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D166229
2023-01-11 15:30:18 +00:00
Hubert Boma Manilla 4a1bb650a0 Bug 1809163 - [devtools] Show cookies with '__proto__' in the cookies panel r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D166386
2023-01-10 18:20:36 +00:00
Alexandre Poirot 58c4f072e3 Bug 1809153 - [devtools] Migrate browser_target_server_component.js to SOURCE resources. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D166313
2023-01-10 15:52:23 +00:00
Nicolas Chevobbe f162d7bacb Bug 1809385 - [devtools] Clear autocomplete cache data on evaluation context change. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D166418
2023-01-10 12:37:19 +00:00
Alexandre Poirot 86df4589b3 Bug 1808603 - [devtools] Fix thread selection on navigation. r=devtools-reviewers,nchevobbe
This is surprising that no test started failing.
This may have broke various feature after reload.

Differential Revision: https://phabricator.services.mozilla.com/D165989
2023-01-10 11:43:59 +00:00
Tom Schuster e5559d744a Bug 1525624 - Group CSP warning messages in the console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D163828
2023-01-10 09:23:47 +00:00
Nicolas Chevobbe 5afd249ea2 Bug 1809119 - [devtools] Use selected target in context selector for Browser Console autocomplete. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D166279
2023-01-10 07:52:54 +00:00
Emilio Cobos Álvarez 3ad7017163 Bug 1807963 - Remove non-standard values of caption-side for good. r=TYLin,layout-reviewers
They have been disabled since bug 1688695. There's a variety of
table-caption bugs that would be easier to fix if we didn't have to
account for side-captions.

Differential Revision: https://phabricator.services.mozilla.com/D165690
2023-01-09 18:02:23 +00:00
Alexandre Poirot 13a416b484 Bug 1809124 - [devtools] Simplify the implementation of custom formatter actor. r=nchevobbe
* Use FormatterError exception to factorize the code to log formatter errors and ignore them
* Use one seperate function to process a single formatter to simplify the loop comprehension
* Use early return in both function to reduce the nesting of functions,
  and also process error first. This helps processFormatterForHeader process all errors first.

Differential Revision: https://phabricator.services.mozilla.com/D166285
2023-01-09 16:56:42 +00:00
Alexandre Poirot 4f56efdcbb Bug 1809124 - [devtools] Move server side custom formatter logic to a dedicated module. r=nchevobbe
This help lazy load this significant code only if this feature is used.

Differential Revision: https://phabricator.services.mozilla.com/D166284
2023-01-09 16:56:41 +00:00
Alexandre Poirot 2478f5e02e Bug 1781504 - [devtools] Fix browser_toolbox_styleeditor.js intermittent. r=jdescottes
I suspect we are using getAllTargetsInSelectedTargetTree which could theoritically
return destroyed targets as it is async.
If we are using getAllTargets, this is less clear. It shouldn't return destroyed target.

Differential Revision: https://phabricator.services.mozilla.com/D166308
2023-01-09 16:52:13 +00:00
Alexandre Poirot f2650d542f Bug 1693495 - [devtools] Move setBlockedUrls, getBlockedUrls, blockRequest, unblockRequest to NetworkCommand. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D166056
2023-01-09 13:09:43 +00:00
Alexandre Poirot b642d61aff Bug 1693495 - [devtools] Implement a beginning of "Network" commands, starting with sendHTTPRequest. r=devtools-reviewers,nchevobbe
Use new "commands" thunk argument.
We were passing connector as argument whereas we could have fetched it from thunk arguments.

This will help slowly convert Connector/NetMonitorAPI to a command.

Differential Revision: https://phabricator.services.mozilla.com/D166055
2023-01-09 13:09:43 +00:00
Alexandre Poirot 00c3224b88 Bug 1693495 - [devtools] Expose "commands" as thunk argument to netmonitor codebase. r=devtools-reviewers,nchevobbe
This will help use commands directly and restrict Connector to non-RDP work.
There is a few minor methods related to toolbox integration.

Differential Revision: https://phabricator.services.mozilla.com/D166054
2023-01-09 13:09:42 +00:00
Alexandre Poirot 05b11fe363 Bug 1693495 - [devtools] Remove getTabTarget in favor of Connector.currentTarget. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D166053
2023-01-09 13:09:42 +00:00
Alexandre Poirot 98fbab6206 Bug 1693495 - [devtools] Use commands via commands instead of toolbox in netmonitor connector. r=devtools-reviewers,nchevobbe
This help reduce the usages of toolbox, which is very limited in the connector
and help see that it could become mostly a command itself.

Differential Revision: https://phabricator.services.mozilla.com/D166052
2023-01-09 13:09:40 +00:00
Hubert Boma Manilla 49d07f4caf Bug 1801542 - Fix prototype pollution when rendering the UrlPreview r=jdescottes
As the since the object that is used to consolidate the query for the url
has its prototype chain, adding a parameter with name `__proto__` tries to lookup the
prototype chain and blows up.

Lets amke it a simple dictionary by removing the prototype chain.

Differential Revision: https://phabricator.services.mozilla.com/D164420
2023-01-09 12:58:26 +00:00
Oriol Brufau 1805a95ac2 Bug 1809046 - Simplify check for inline overflow. r=jdescottes
And fix comment that should have been updated in bug 1671457.

Differential Revision: https://phabricator.services.mozilla.com/D166251
2023-01-09 12:19:40 +00:00
Cosmin Sabou 4ab6fc29e0 Backed out changeset c34c31220275 (bug 1807963) for causing reftest unexpected passes on 446100-1c.html. 2023-01-09 15:01:55 +02:00
Emilio Cobos Álvarez 7b821c0133 Bug 1807963 - Remove non-standard values of caption-side for good. r=TYLin,layout-reviewers
They have been disabled since bug 1688695. There's a variety of
table-caption bugs that would be easier to fix if we didn't have to
account for side-captions.

Differential Revision: https://phabricator.services.mozilla.com/D165690
2023-01-09 10:39:44 +00:00
Nicolas Chevobbe 15abef647f Bug 1808912 - [devtools] Filter out nsIConsoleListener message emitted before last retrieved cached message. r=jdescottes.
Even if the code was trying to not get duplicated messages (from the cache and from the listener),
there were still cases where this could happen (e.g. CSP warnings on navigation).
To prevent this, we store the latest message microSecondTimeStamp so we can filter
out any message older than this in the listener.
An existing CSP warning test is modified to ensure we get single messages in the
console output.

Differential Revision: https://phabricator.services.mozilla.com/D166183
2023-01-09 08:49:03 +00:00
Stanca Serban 81bfc93257 Backed out changeset e018ba23c07d (bug 1807963) for causing wpt failures in caption.html. CLOSED TREE 2023-01-09 10:42:21 +02:00
Emilio Cobos Álvarez 5b925c72c8 Bug 1807963 - Remove non-standard values of caption-side for good. r=TYLin,layout-reviewers
They have been disabled since bug 1688695. There's a variety of
table-caption bugs that would be easier to fix if we didn't have to
account for side-captions.

Differential Revision: https://phabricator.services.mozilla.com/D165690
2023-01-09 07:05:14 +00:00
Gijs Kruitbosch 090510953c Bug 1808993 - import ES modules as ES modules for devtools/client, r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D166230
2023-01-07 14:15:59 +00:00
Julian Descottes 707344df29 Bug 1790370 - [bidi] Add basic support for network.responseStarted event r=webdriver-reviewers,Sasha,whimboo
Depends on D165431

Differential Revision: https://phabricator.services.mozilla.com/D165432
2023-01-07 00:38:47 +00:00
Julian Descottes b3d6d9d969 Bug 1790370 - [devtools] Expose transferredSize from devtools NetworkObserver r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D165431
2023-01-07 00:38:47 +00:00