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

26074 Коммитов

Автор SHA1 Сообщение Дата
Gijs Kruitbosch dae4594790 Bug 1795255 - autofix duplicate imports in tests under devtools, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D167716
2023-01-31 11:48:42 +00:00
Gijs Kruitbosch c906d6f529 Bug 1795255 - manual fixes for tests that break after applying this lint rule, r=Standard8,necko-reviewers,extension-reviewers,credential-management-reviewers,sgalich,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D167802
2023-01-31 11:48:41 +00:00
Mark Banner 106725dcfc Bug 1813377 - Clean up XPCNativeWrapper globals handling for ESLint. r=mccr8
XPCNativeWrapper may be going away (bug 1481337). Stop defining it in the main environments and only define it
where necessary to discourage more uses.
This also helps to clarify the ESLint test environment globals.

Differential Revision: https://phabricator.services.mozilla.com/D168211
2023-01-30 21:55:25 +00:00
Alexandre Poirot f614f71957 Bug 1813475 - [devtools] Convert a first Actor to ES Class, the web console actor. r=devtools-reviewers,nchevobbe
* Note that "conn" attribute is now managed by Actor.

* We might want to finally remove "requestTypes".
This isn't used by the frontend... may be third party use it?
This allows to list all available RDP methods of all actors.

* All actors now have to be instantiated via "new ".

Differential Revision: https://phabricator.services.mozilla.com/D168254
2023-01-30 19:36:06 +00:00
Mark Banner 4fcd8b1d2b Bug 1812977 - Remove now unnecessary import-globals-from statements in devtools. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D168071
2023-01-30 19:33:38 +00:00
Alexandre Poirot 8e9b448440 Bug 1766485 - [devtools] Consider server side target switching always enabled for tab toolboxes. r=devtools-reviewers,nchevobbe
This removes the devtools.target-switching.server.enabled preference,
which was only having an impact on tab debugging.
Toolboxes other than tabs aren't yet using "server side target switching",
which will probably happen once we enable EFT in these and
we would probably not use a preference for enabling this.

This remove all assertions in tests covering client side target switching.
And it removed a couple of tests that became irrelevant.

Differential Revision: https://phabricator.services.mozilla.com/D166921
2023-01-30 12:49:54 +00:00
Alexandre Poirot 28fb286b43 Bug 1810095 - [devtools] Fix extension storage updates when the add-on is reloaded. r=devtools-reviewers,rpl,jdescottes
I actually regressed this from D166661 within this current patch queue.
It isn't clear why the old code was somehow keeping the parent/ext-storage.js class
alive -or- somehow magically recalling apiManager.asyncGetAPI after addon reload.
But now we handle the case of addon reload explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D167364
2023-01-29 20:50:49 +00:00
Alexandre Poirot eed1fa9259 Bug 1810095 - [devtools] Split storage actor file into one file per storage type. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D167127
2023-01-29 20:50:48 +00:00
Alexandre Poirot 1efc237714 Bug 1810095 - [devtools] Remove now-unused Storage target scoped actor. r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes
This actor was only used by the legacy listener.
Its main method was listStores which exposed all the storage type actors.
Now they are exposed via storage Resource watchers.

This requires to tweak the decision making to show the storage panel
as the actor no longer exists... Unfortunately we can't check for
resource traits on the watcher actor as the browser toolbox
on older runtime won't expose it.

Note that this.front wasn't used for a little while in ui.js.

I had to keep a few things in the frontend in order to still be able
to connect to old servers. But I put lots of comments to do proper cleanup later.

Differential Revision: https://phabricator.services.mozilla.com/D166770
2023-01-29 20:50:48 +00:00
Alexandre Poirot ff6deaa55d Bug 1578975 - [devtools] Remove now-unused setupInParent code. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D166695
2023-01-29 20:50:48 +00:00
Alexandre Poirot 6139fed419 Bug 1578975 - [devtools] Remove now-useless pre-resource-watchers cross process messaging code from storage actor. r=devtools-reviewers,jdescottes
This glue, necessary to communicated between content and parent processes
was only necessary when manually spawning the storage actors.
Now that this code is only used via ResourceWatcher, running in the right process
right away, we no longer need any cross process communication.

Differential Revision: https://phabricator.services.mozilla.com/D166694
2023-01-29 20:50:47 +00:00
Alexandre Poirot 94e02496ef Bug 1666534 - [devtools] Listen to extension storages via a server side watcher. r=devtools-reviewers,nchevobbe,jdescottes
This was the last resource type requiring to keep the old storage actor as-is.
This will help drastically simplify it and move storage type code into each Resource Watcher class.

Differential Revision: https://phabricator.services.mozilla.com/D166661
2023-01-29 20:50:47 +00:00
Jonathan Kew b927eaab86 Bug 1724892 - Implement the font-synthesis-{weight,style,small-caps} longhand properties, and make font-synthesis into a shorthand. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D167480
2023-01-29 13:25:31 +00:00
ogiorgis 5fa906d358 Bug 1749473 - fix all pygments warnings r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D167915
2023-01-27 13:41:10 +00:00
Dana Keeler 4d2b1f7538 Bug 1811633 - use updated, vendored version of PKI.js, remove old version r=Gijs
This also converts certDecoder.jsm to an ES module (as certDecoder.mjs) and
updates all uses of it.

Differential Revision: https://phabricator.services.mozilla.com/D167466
2023-01-27 04:07:10 +00:00
Nicolas Chevobbe a4a54f76a3 Bug 1764443 - [devtools] Handle "object" jsonMl tags. r=ochameau.
In JsonML, "object" tag can be used to be replaced by an actual object, that
may or may not be formatted.
e.g. `["object", { object: 42 }]`, should be replaced with `42` in the returned
JsonMl array.

In order to do that, we need to parse the result of `header` and `body` recursively
to produce the final JsonMl that will be consumed by the client.

On the client, this means that we need to create object fronts for any object
actor that might have been created, so we can use them later (e.g. when the user
expand them, call the `customFormatterBody` method.

We also need to handle plain object grips (i.e. not formatted), and display them
using our regular `ObjectInspector`.

Some tests are added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D164220
2023-01-26 15:43:21 +00:00
Iulian Moraru 19d691b89f Backed out changeset 9f139efe4d4c (bug 1764443) for causing xpcshell failures on test_threadlifetime-02.js and test_objectgrips-21.js. CLOSED TREE 2023-01-26 12:32:48 +02:00
Julian Descottes eeee5b32dc Bug 1811002 - [devtools] Ignore mouseup events from menupopup elements in HTMLTooltip r=nchevobbe
menupopup elements created for select widgets will not be children of the select itself.
Therefore the check in HTMLTooltip to ignore events if they are triggered from within the tooltip container is not working.
There is no straightforward way to link the select to its popup, and we also can't do a coordinate check (because the menupopup might expand outside
of the initial tooltip), so for now we just ignore all events coming from a menupopup element.

A browser mochitest for the filter widget has been modified to verify this scenario.

Differential Revision: https://phabricator.services.mozilla.com/D167805
2023-01-26 09:07:22 +00:00
Nicolas Chevobbe 87c5835755 Bug 1764443 - [devtools] Handle "object" jsonMl tags. r=ochameau.
In JsonML, "object" tag can be used to be replaced by an actual object, that
may or may not be formatted.
e.g. `["object", { object: 42 }]`, should be replaced with `42` in the returned
JsonMl array.

In order to do that, we need to parse the result of `header` and `body` recursively
to produce the final JsonMl that will be consumed by the client.

On the client, this means that we need to create object fronts for any object
actor that might have been created, so we can use them later (e.g. when the user
expand them, call the `customFormatterBody` method.

We also need to handle plain object grips (i.e. not formatted), and display them
using our regular `ObjectInspector`.

Some tests are added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D164220
2023-01-26 08:55:27 +00:00
Alexandre Poirot 439bcf4875 Bug 1772822 - [devtools] Enable server resource watcher for parent-process storage types. r=jdescottes,nchevobbe,devtools-reviewers
It looks like this is all filtered by getAllBrowsingContextsForContext and isWindowGlobalPartOfContext
so it should only process the expected window globals.

Differential Revision: https://phabricator.services.mozilla.com/D166658
2023-01-26 08:36:19 +00:00
Alexandre Poirot 5d1d7a682b Bug 1772822 - [devtools] Enable server resource watcher for content-process storage types. r=devtools-reviewers,jdescottes
They should work out of the box as they filter by WindowGlobalTargetActor.windows
and this should be correct for the ParentProcesTargetActor.

Differential Revision: https://phabricator.services.mozilla.com/D166657
2023-01-26 08:36:19 +00:00
Alexandre Poirot 5b1538b899 Bug 1811806 - [devtools] Fix Browser Console issues when closing it during its initialization. r=devtools-reviewers,jdescottes
Closing during its initialization (easy to reproduce with the multiprocess mode)
ends up disallowing any further reopening of the browser console.
You would have to restart firefox to make it work again.

This was related to _browserConsoleInitializing never been cleared.

There was another one highlighted by the test related to waitAsyncDispatches.
As the wrapper module is loaded via the browser loader,
it uses the document's setTimeout method which is disabled when the console closes
and its document is destroyed. This ended up creating a never resolving promise...

Do not try to run the test on verify as it is quite intensive already.

Differential Revision: https://phabricator.services.mozilla.com/D167527
2023-01-26 08:34:31 +00:00
Noemi Erli e287ab9d9a Backed out 2 changesets (bug 1811633) for causing lint bustage CLOSED TREE
Backed out changeset 3ef0fe45b191 (bug 1811633)
Backed out changeset 92a7ec78a4ce (bug 1811633)
2023-01-26 02:26:54 +02:00
Dana Keeler 78cdb5eb07 Bug 1811633 - use updated, vendored version of PKI.js, remove old version r=Gijs
This also converts certDecoder.jsm to an ES module (as certDecoder.mjs) and
updates all uses of it.

Differential Revision: https://phabricator.services.mozilla.com/D167466
2023-01-26 00:07:49 +00:00
Francesco Lodolo (:flod) a22fe5fe46 Bug 1812011 - Fix missing variable comments and consistency, r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167788
2023-01-25 21:18:32 +00:00
Alexandre Poirot d906cdb5af Bug 1811257 - [devtools] Fix browser toolbox debugger source tree when using the iframe dropdown. r=devtools-reviewers,jdescottes
The debugger and the thread actor don't support window-global target actor's iframe switching.
So disable this entirely in the frontend.

This feature only applies to webextension and browser toolbox
which are the only one supporting more than one target and still
not EFT-compliant.
Once they become compliant we might be able to work on the frontend
to support client side target selection and filtering the SourceTree
for the currently selected target.

Differential Revision: https://phabricator.services.mozilla.com/D167268
2023-01-25 20:30:57 +00:00
Julian Descottes 7d4467db1a Bug 1810340 - [devtools] Do not load DOMContentReference in the dedicated devtools global r=devtools-reviewers,ochameau
Parent process pages use a DevTools server loaded in the devtools global but should still load shared singletons in the regular global.

Differential Revision: https://phabricator.services.mozilla.com/D167731
2023-01-25 19:52:47 +00:00
zacnomore 975d79d874 Bug 1639052 - Align pseudoclass toggles to columns r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D167761
2023-01-25 13:34:33 +00:00
Nicolas Chevobbe b899deb406 Bug 1811429 - [devtools] Enable assertion in browser_dbg-pretty-print-paused-anonymous.js. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D167775
2023-01-25 11:32:11 +00:00
Emilio Cobos Álvarez cd1ae66bc1 Bug 1811760 - Don't allow event-listener checkboxes to shrink. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D167613
2023-01-25 08:15:55 +00:00
Nicolas Chevobbe 2495b179a0 Bug 1811262 - [devtools] Add jest fixture for devtools/shared/indexed-db.js. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D167350
2023-01-25 08:11:26 +00:00
Mark Banner 1a90b9c57b Bug 1811820 - Change prettier config file from json to common js format. r=cmkm,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167530
2023-01-24 22:53:55 +00:00
Boris Chiou fc5ae50bd6 Bug 1808409 - Part 3: Support view-timeline shorthand. r=emilio
view-timeline shorthand includes view-timeline-name and
view-timeline-axis, but excludes view-timeline-inset.

Note: We will fix the test of "view-timeline-name: auto" in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D166404
2023-01-24 22:21:20 +00:00
Boris Chiou b3bfaef9d7 Bug 1808409 - Part 2: Support view-timeline-inset in style system. r=emilio
Support view-timeline-inset: `[ [ auto | <length-percentage> ]{1,2} ]#`.
And its initial value is 0.

Differential Revision: https://phabricator.services.mozilla.com/D166243
2023-01-24 22:21:19 +00:00
Boris Chiou 291aa8c242 Bug 1808409 - Part 1: Support view-timeline-name and view-timeline-axis in style system. r=emilio
view-timeline-name: `none | <custom-ident>#`
view-timeline-axis: `[ block | inline | vertical | horizontal ]#`

Note:
Both view-timeline-name and scroll-timeline-name should accept `auto`.
We will fix it in this patch series.

Differential Revision: https://phabricator.services.mozilla.com/D166242
2023-01-24 22:21:19 +00:00
Iulian Moraru 2d819bdcae Backed out 4 changesets (bug 1808409) for causing wpt failures on scroll-timeline-shorthand.tentative.html. CLOSED TREE
Backed out changeset aea8be500e7a (bug 1808409)
Backed out changeset b50dbfe47f74 (bug 1808409)
Backed out changeset 65a7fc0d9447 (bug 1808409)
Backed out changeset 412406551464 (bug 1808409)
2023-01-24 03:41:08 +02:00
Boris Chiou 320fb92c62 Bug 1808409 - Part 3: Support view-timeline shorthand. r=emilio
view-timeline shorthand includes view-timeline-name and
view-timeline-axis, but excludes view-timeline-inset.

Note: We will fix the test of "view-timeline-name: auto" in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D166404
2023-01-23 21:39:25 +00:00
Boris Chiou 464f0cdf7e Bug 1808409 - Part 2: Support view-timeline-inset in style system. r=emilio
Support view-timeline-inset: `[ [ auto | <length-percentage> ]{1,2} ]#`.
And its initial value is 0.

Differential Revision: https://phabricator.services.mozilla.com/D166243
2023-01-23 21:39:24 +00:00
Boris Chiou 722d422cfb Bug 1808409 - Part 1: Support view-timeline-name and view-timeline-axis in style system. r=emilio
view-timeline-name: `none | <custom-ident>#`
view-timeline-axis: `[ block | inline | vertical | horizontal ]#`

Note:
Both view-timeline-name and scroll-timeline-name should accept `auto`.
We will fix it in this patch series.

Differential Revision: https://phabricator.services.mozilla.com/D166242
2023-01-23 21:39:24 +00:00
Gregory Pappas 5d44f7a543 Bug 1811347 - Remove useless parameter from TextEncoder constructor r=emk,webdriver-reviewers,extension-reviewers,credential-management-reviewers,dimi,jdescottes,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D167488
2023-01-23 15:41:49 +00:00
Neil Deakin 1d2e8169a6 Bug 1808918, use Untitled as the default filename when saving a file rather than index, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D167028
2023-01-23 14:53:21 +00:00
Milos Milovanovic 9e48e2e8a2 Bug 1798748 - Fix for command line help output to include arguments --jsdebugger, --wait-for-jsdebugger and --start-debugger-server only once r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D165461
2023-01-20 23:01:47 +00:00
Julian Descottes 1b4c90c4ed Bug 1734195 - [devtools] use stroke instead of fill for main highlighters when prefers-reduced-motion is on r=nchevobbe
When prefers-reduced-motion is enabled, the most impacting highlighters can use stroke instead of fill.
This requires to join the paths on the JS side, otherwise the change is purely handled in CSS.

Differential Revision: https://phabricator.services.mozilla.com/D167141
2023-01-20 17:57:54 +00:00
Nicolas Chevobbe 776b818846 Bug 1811233 - [devtools] Add test for pretty-printing eval source. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D167273
2023-01-20 16:58:58 +00:00
Nicolas Chevobbe ce80cf7f53 Bug 1811250 - [devtools] Don't use mask-image for source tree file icons. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D167258
2023-01-20 16:26:34 +00:00
Butkovits Atila e41fb08751 Backed out changeset f07a22692ff0 (bug 1811233) for causing failures at browser_dbg-pretty-print-paused-anonymous.js. CLOSED TREE 2023-01-20 18:00:06 +02:00
Nicolas Chevobbe 37dcdbb820 Bug 1811233 - [devtools] Add test for pretty-printing eval source. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D167273
2023-01-20 14:59:11 +00:00
Alexandre Poirot fdaf5e0250 Bug 1687166 - [devtools] Fetch whole source text for "new Function()" sources. r=arai,bomsy
But keep unwrapping sources for DOM event handlers like:
  <div onclick="foo()" />
Whose source should be:
  foo()
and not:
  function onclick() { foo() }

Differential Revision: https://phabricator.services.mozilla.com/D165721
2023-01-20 09:45:02 +00:00
Alexandre Poirot f470c90cb5 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-20 09:41:03 +00:00
Eden Chuang 14ff5b1650 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-20 09:09:18 +00:00