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

4400 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes 138356ac36 Bug 1671676 - [devtools] Remove setupInChild from DevTools codebase r=ochameau
Depends on D93820

This is no longer used, except in one test which will be cleaned up in the next changeset.

Differential Revision: https://phabricator.services.mozilla.com/D93821
2020-10-20 20:48:35 +00:00
Julian Descottes 134032de33 Bug 1671609 - [devtools] Simplify message manager handling in storage actor r=ochameau,ladybenko
Depends on D93817

There should no longer be new message managers during the lifecycle of the actor.
We can simplify the storage actor thanks to this.

Differential Revision: https://phabricator.services.mozilla.com/D93819
2020-10-20 17:02:36 +00:00
Julian Descottes 23b2aef1c7 Bug 1671609 - [devtools] Remove browserSwap support from devtools r=ochameau
This method was only useful for the old RDM implementation and can now be removed.

Differential Revision: https://phabricator.services.mozilla.com/D93817
2020-10-20 17:02:34 +00:00
Razvan Maries 3954e7eb5a Backed out 5 changesets (bug 1671676, bug 1671609) for Lint failure on frame.js. CLOSED TREE
Backed out changeset aba7c7caae10 (bug 1671676)
Backed out changeset 68449199cb9a (bug 1671676)
Backed out changeset 107e0c2f141a (bug 1671609)
Backed out changeset 02bc34c28501 (bug 1671609)
Backed out changeset 5efd9f6968ed (bug 1671609)
2020-10-20 19:59:11 +03:00
Julian Descottes 305bfc6182 Bug 1671676 - [devtools] Update browser_setupInParentChild.js to only test setupInParent r=ochameau
Depends on D93821

Differential Revision: https://phabricator.services.mozilla.com/D93822
2020-10-19 09:59:11 +00:00
Julian Descottes aef14fc3b4 Bug 1671676 - [devtools] Remove setupInChild from DevTools codebase r=ochameau
Depends on D93820

This is no longer used, except in one test which will be cleaned up in the next changeset.

Differential Revision: https://phabricator.services.mozilla.com/D93821
2020-10-19 19:34:25 +00:00
Julian Descottes 157cd2cea2 Bug 1671609 - [devtools] Simplify message manager handling in storage actor r=ochameau,ladybenko
Depends on D93817

There should no longer be new message managers during the lifecycle of the actor.
We can simplify the storage actor thanks to this.

Differential Revision: https://phabricator.services.mozilla.com/D93819
2020-10-20 16:23:08 +00:00
Julian Descottes 66b1914d6f Bug 1671609 - [devtools] Remove browserSwap support from devtools r=ochameau
This method was only useful for the old RDM implementation and can now be removed.

Differential Revision: https://phabricator.services.mozilla.com/D93817
2020-10-19 09:32:56 +00:00
Csoregi Natalia f9e58cacd1 Backed out 9 changesets (bug 1623667) for failures on devtools/client/*. CLOSED TREE
Backed out changeset 54ca4d13f54f (bug 1623667)
Backed out changeset ce62de8733f1 (bug 1623667)
Backed out changeset 4877c0c5ba2c (bug 1623667)
Backed out changeset d32decff7ea8 (bug 1623667)
Backed out changeset 53a2c44f955b (bug 1623667)
Backed out changeset 0addf3282b72 (bug 1623667)
Backed out changeset feeb0f0b3bb3 (bug 1623667)
Backed out changeset f90ccc4f5210 (bug 1623667)
Backed out changeset e18376ee942f (bug 1623667)
2020-10-20 17:39:28 +03:00
Razvan Caliman 1d2ad58af3 Bug 1623667 - [devtools] Update CustomHighlighterActor comments and docs r=ochameau
Depends on D92220

Rephrasing of code comments and cleanup of documentation to reflect that `CustomHighlighterActor` is now the only actor which deals with highlighting stuff after removing `HighlighterActor` in D92220. No functionality is changed in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D92221
2020-10-14 14:19:39 +00:00
Razvan Caliman e7d88cfad5 Bug 1623667 - [devtools] Remove HighlighterActor r=ochameau,devtools-backward-compat-reviewers
This patch completely removes the `HighlighterActor` and its accessors.

The rest of the patches in this commit series update the consumers and tests to use the new highlighter manager added to `HighlightersOverlay` in D81526. [Bug 1646028](https://bugzilla.mozilla.org/show_bug.cgi?id=1646028) updated all consumers within the **Inspector** panel to use this approach. Now, we're updating the rest of the consumers outside the Inspector.

### Why remove HighlighterActor?

The changes introduced in D81526 for [Bug 1646028](https://bugzilla.mozilla.org/show_bug.cgi?id=1646028) make it possible to  highlight nodes using the `CustomHighligtherActor` with the **Box Model Highlighter** implementation.

The `HighlighterActor` was itself a wrapper around **Box Model Highlighter** and Simple Outline Highlighter, and exposed node picking functionality. Simple Outline Highlighter was removed with [Bug 1650094](https://bugzilla.mozilla.org/show_bug.cgi?id=1650094). The node picking functionality was decoupled from `HighlighterActor`in [Bug 1607756](https://bugzilla.mozilla.org/show_bug.cgi?id=1607756).

After those changes, `HighlighterActor` is no longer special. It can be removed in favor of a single generic actor, `CustomHighligtherActor`, with the Box Model Highlighter implementation.

Differential Revision: https://phabricator.services.mozilla.com/D92220
2020-10-13 15:40:13 +00:00
Hubert Boma Manilla 3d1f26e2cd Bug 1663523 - [devtools] Add the network event stacktrace watcher r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86809
2020-10-19 01:19:39 +00:00
Bogdan Tara 61728de827 Backed out changeset de71a00c6f68 (bug 1663523) for devtools/shared/ failures CLOSED TREE 2020-10-18 20:53:17 +03:00
Hubert Boma Manilla 403ec0015b Bug 1663523 - [devtools] Add the network event stacktrace watcher r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86809
2020-10-18 17:11:36 +00:00
Hubert Boma Manilla 30aacc98e1 Bug 1670627 - [devtools] Pass the updateType to the data provider on the resource update event r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D93700
2020-10-16 09:42:48 +00:00
Alexandre Poirot be7dd39054 Bug 1671419 - [devtools] Avoid updating resource types if the list is empty. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D93657
2020-10-15 18:55:59 +00:00
Csoregi Natalia e0eb861a18 Backed out 4 changesets (bug 1633712) for leaks. CLOSED TREE
Backed out changeset 03553b300b86 (bug 1633712)
Backed out changeset 19c8ea0b43df (bug 1633712)
Backed out changeset 6eaa4d12b58c (bug 1633712)
Backed out changeset 10f97f47c883 (bug 1633712)
2020-10-15 09:36:36 +03:00
Nicolas Chevobbe 1e17daf388 Bug 1633712 - [devtools] Create WorkerTargets as soon as possible. r=ochameau,devtools-backward-compat-reviewers.
This patch adds support for dedicated worker targets in the Watcher actor.
Shared and Service workers are not handled yet.

In a similar manner to what we already have for frame targets, we add a worker-helper
file that will communicate with a JsWindowActor pair spawned on each document,
that will  manage workers (DevToolsWorkerParent/DevToolsWorkerChild).

For a given document, the DevToolsWorkerChild will enumerate the existing workers
related to it, as well as add an event listener to be notified when workers are
being registered and unregistered, and communicate that back to the DevToolsWorkerParent
on the main thread, so worker targets creation and destruction are notified by
the Watcher actor (via target-available-form and target-destroyed-form events).

When a worker is created, the DevToolsWorkerChild for the document the worker
was spawned from will create a WorkerTargetActor, that will live in the worker
thread (using worker-connector.js), passing it resources the Watcher is currently
listening for. It will also handle communication between the main thread and the
worker thread, when the watcher listen to new resources (or stop watching resources).

A WorkerTargetFront is created so the client can be notified about available
resources (via the resource-available-form event, emitted from the worker target).

Tests are added in the next patches of this queue.

Differential Revision: https://phabricator.services.mozilla.com/D85399
2020-10-15 05:17:52 +00:00
Nicolas Chevobbe 54da2bd313 Bug 1633712 - [devtools] Move shouldNotifyWindowGlobal and getAllRemoteBrowsingContexts to a util file. r=ochameau.
These functions will be used by the worker-helper.js module as well.

Differential Revision: https://phabricator.services.mozilla.com/D92751
2020-10-15 05:11:58 +00:00
JulianWels b88cf407ac Bug 1608074 - Set channel ReferrerInfo in privileged code instead of referrer header r=nchevobbe,mixedpuppy,valentin
Differential Revision: https://phabricator.services.mozilla.com/D59856
2020-10-13 12:27:26 +00:00
Mihai Alexandru Michis 55dd1dbe43 Backed out changeset b3fb1b5bbe34 (bug 1608074) for causing bustages in XMLHttpRequestMainThread.cpp
CLOSED TREE
2020-10-13 14:55:06 +03:00
JulianWels 2ae8134434 Bug 1608074 - Set channel ReferrerInfo in privileged code instead of referrer header r=nchevobbe,mixedpuppy,valentin
Differential Revision: https://phabricator.services.mozilla.com/D59856
2020-10-13 10:39:11 +00:00
Julian Descottes 4d7f2e708f Bug 1669681 - [devtools] Ignore detach errors when purging Front requests r=ochameau
Depends on D92756

Detach errors can happen when a target is being destroyed.
Historically, those errors were swallowed in the TargetFront mixin.
However this logic became outdated when we started purging requests during Front::destroy.

This results in non-actionable error messages logged frequently while using DevTools.
This changeset updates the logic in target-mixin.js in order to swallow errors due to purged requests.

Differential Revision: https://phabricator.services.mozilla.com/D92757
2020-10-12 08:12:53 +00:00
Julian Descottes d4c1319148 Bug 1669681 - [devtools] Stop processing packet responses in destroyed Fronts r=ochameau
Depends on D93030

All Front requests are purged before the Front is destroyed.
In theory there is no reason to process packets after the Front has been destroyed.
It will only create cryptic error messages.

Differential Revision: https://phabricator.services.mozilla.com/D92756
2020-10-12 08:13:06 +00:00
Alexandre Poirot 342c1ad0be Bug 1669545 - [devtools] Print internal error codes instead of only "Blocked" when there is not explicit blocking reason. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D92657
2020-10-09 13:45:55 +00:00
Emilio Cobos Álvarez 4d89ea6d7c Bug 1654866 - Make style inspector account for UA/chrome sheets and quirks properly. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D92633
2020-10-09 11:56:18 +00:00
Sylvestre Ledru cad53f4804 Bug 1588458 - Replace dxr links by searchfox in the code/test r=kats,sparky
Differential Revision: https://phabricator.services.mozilla.com/D92792
2020-10-08 14:02:40 +00:00
Alexandre Poirot af7666a292 Bug 1669527 - [devtools] Ensure destroying the NetworkMonitorActor spawn in the parent process. r=Honza,jdescottes
The WebConsoleActor tries to destroy it via a debug:destroy-network-monitor.
But as it is done during the destruction of the target actor, typically when there is a
top level target switching, this message doesn't reach the parent process.
So, ensure destroying this actor from the parent process side, when we see that the
frame target is being destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D92654
2020-10-07 13:39:48 +00:00
Alexandre Poirot e11f76a190 Bug 1669473 - [devtools] Fix a typo around event timings. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D92605
2020-10-07 16:00:50 +00:00
Alexandre Poirot e69ee12648 Bug 1669473 - [devtools] add built-in logging for platform events in NetworkObserver. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D92604
2020-10-07 16:00:47 +00:00
Nicolas Chevobbe 37873fd6f8 Bug 1669655 - [devtools] Cleanup worker-connector.js and startup/worker.js. r=ochameau.
- Rename `id` to a more explicit `forwardingPrefix` property
- Add comments to why we need to handle a list of connections
- Remove the `rpcs` property from the connections object
- Turn `rpcDeferred` from an array to an object, as it's used like one.

Differential Revision: https://phabricator.services.mozilla.com/D92752
2020-10-08 05:54:18 +00:00
Razvan Maries e523193665 Backed out 2 changesets (bug 1669473) for perma failures on browser_net_block-csp.js. CLOSED TREE
Backed out changeset d798c548257e (bug 1669473)
Backed out changeset d25a3deb4961 (bug 1669473)
2020-10-07 17:46:31 +03:00
Alexandre Poirot 434bebe5da Bug 1669473 - [devtools] Fix a typo around event timings. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D92605
2020-10-07 08:24:51 +00:00
Alexandre Poirot 73a6605181 Bug 1669473 - [devtools] add built-in logging for platform events in NetworkObserver. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D92604
2020-10-07 11:35:03 +00:00
Alexandre Poirot 2c3d8677f9 Bug 1667839 - Pass watchedData to already existing targets. r=nchevobbe
The previous code was all wrong and we weren't correctly listening to resource
for already existing additional targets. Top level target was still working fine
thanks to WatcherActor.watchResources calling watchTargetResource directly.

Differential Revision: https://phabricator.services.mozilla.com/D91969
2020-10-05 20:52:23 +00:00
Gabriel Luong 7afa635edb Bug 1662059 - [devtools] Only read devtools.overflow.debugging.enabled from the client. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D92363
2020-10-06 02:50:38 +00:00
Gabriel Luong 18a75c17f7 Bug 1660973 - [devtools] Return a disconnectedNodeArray for getOverflowCausingElements. r=jdescottes,devtools-backward-compat-reviewers
The problem with `getOverflowCausingElement`s seems to be that it returned an array
of nodes that weren't properly attached to their parents.

To mitigate this, we call `attachElements` on the entire list of nodes and
return a `disconnectedNodeArray` which ensures that the returned nodes
are properly attached and therefore has all their parent node information
when calling `showNode`.

Differential Revision: https://phabricator.services.mozilla.com/D92360
2020-10-05 15:58:21 +00:00
Gijs Kruitbosch 1aa2c4d5db Bug 1668274 - update eslint, eslint-plugin-no-unsanitized and mocha to allow use of logical assignment operators, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D91933
2020-10-02 18:00:40 +00:00
Nicolas Chevobbe 6e140506a1 Bug 1662734 - [devtools] Create an actual WorkerTargetActor and use it in startup/worker.js . r=ochameau,jdescottes,devtools-backward-compat-reviewers.
This patch adds a simple WorkerTargetActor, which is similar to the mock target
actor we had in startup/worker.js.

Its spec file is empty at the moment, and it does not have an associated front,
but that might change with Bug 1633712 where we will at least have events for
resources available/destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D91128
2020-09-29 14:47:34 +00:00
Nicolas Chevobbe 056b9542f2 Bug 1573779 - [devtools] Rename WorkerTargetActorList to WorkerDescriptorActorList. r=jdescottes.
This class is creating (and handling) WorkerDescriptorActor now, so we rename
it to make it explicit.

Differential Revision: https://phabricator.services.mozilla.com/D91557
2020-09-29 14:31:10 +00:00
Nicolas Chevobbe f315ff58cd Bug 1573779 - [devtools] Rename WorkerTarget to WorkerDescriptor. r=ochameau,jdescottes,devtools-backward-compat-reviewers.
This renames the current WorkerTargetActor which is actually a descriptor.
We also rename the existing `workerTargetFront` occurences to `workerDescriptorFront`
to avoid confusion when we do introduce the real worker fronts and actors.

Differential Revision: https://phabricator.services.mozilla.com/D91100
2020-09-29 14:30:24 +00:00
Dorel Luca f826d52619 Backed out 3 changesets (bug 1573779, bug 1662734) for Geckoview failures. CLOSED TREE
Backed out changeset 0adff4f08b28 (bug 1662734)
Backed out changeset c6bb84f2a032 (bug 1573779)
Backed out changeset 0c605800aa6b (bug 1573779)
2020-09-29 12:59:39 +03:00
Nicolas Chevobbe 68ba8f3d46 Bug 1662734 - [devtools] Create an actual WorkerTargetActor and use it in startup/worker.js . r=ochameau,jdescottes,devtools-backward-compat-reviewers.
This patch adds a simple WorkerTargetActor, which is similar to the mock target
actor we had in startup/worker.js.

Its spec file is empty at the moment, and it does not have an associated front,
but that might change with Bug 1633712 where we will at least have events for
resources available/destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D91128
2020-09-28 12:29:11 +00:00
Nicolas Chevobbe bda0dabd83 Bug 1573779 - [devtools] Rename WorkerTargetActorList to WorkerDescriptorActorList. r=jdescottes.
This class is creating (and handling) WorkerDescriptorActor now, so we rename
it to make it explicit.

Differential Revision: https://phabricator.services.mozilla.com/D91557
2020-09-29 01:54:32 +00:00
Nicolas Chevobbe 4914f8c614 Bug 1573779 - [devtools] Rename WorkerTarget to WorkerDescriptor. r=ochameau,jdescottes,devtools-backward-compat-reviewers.
This renames the current WorkerTargetActor which is actually a descriptor.
We also rename the existing `workerTargetFront` occurences to `workerDescriptorFront`
to avoid confusion when we do introduce the real worker fronts and actors.

Differential Revision: https://phabricator.services.mozilla.com/D91100
2020-09-28 12:27:22 +00:00
Frederic Wang 0eebca3c33 Bug 1667118 - Rename -moz-math-script-level to math-depth. r=emilio
This renames the internal -moz-math-script-level property in order to
prepare for full math-depth support. Currently, the property is guarded
under a disabled-by-default flag, so there should be no observable
behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D91285
2020-09-26 03:04:56 +00:00
Narcis Beleuzu 679469fad8 Backed out changeset 239f29a99c4f (bug 1667118) for bc failure on browser_parsable_css.js . CLOSED TREE 2020-09-25 23:39:15 +03:00
Frederic Wang 5461921d85 Bug 1667118 - Rename -moz-math-script-level to math-depth. r=emilio
This renames the internal -moz-math-script-level property in order to
prepare for full math-depth support. Currently, the property is guarded
under a disabled-by-default flag, so there should be no observable
behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D91285
2020-09-25 18:37:39 +00:00
Mihai Alexandru Michis cc04d2696e Backed out changeset b08319695e21 (bug 1667118) for causing xpcshell failures in test_css-properties-db.js
CLOSED TREE
2020-09-25 16:40:33 +03:00
Frederic Wang eb4b491896 Bug 1667118 - Rename -moz-math-script-level to math-depth. r=emilio
This renames the internal -moz-math-script-level property in order to
prepare for full math-depth support. Currently, the property is guarded
under a disabled-by-default flag, so there should be no observable
behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D91285
2020-09-25 12:04:53 +00:00
Razvan Maries ed260c95a0 Backed out changeset 08538390d573 (bug 1667118) for perma failures on test_css-properties-db.js. CLOSED TREE 2020-09-25 00:12:10 +03:00
Frederic Wang c828ccef71 Bug 1667118 - Rename -moz-math-script-level to math-depth. r=emilio
This renames the internal -moz-math-script-level property in order to
prepare for full math-depth support. Currently, the property is guarded
under a disabled-by-default flag, so there should be no observable
behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D91285
2020-09-24 18:44:41 +00:00
Frederic Wang aec8cecc03 Bug 1665975 - Implement the math-style property. r=emilio
This patch renames the internal -moz-math-display to math-style and
exposes it under the layout.css.math-style.enabled preference. The
initial value becomes "normal" but that does not affect the default
MathML behavior since the UA style sheet sets the math-style property
explicitly on <math> tags. WPT tests are updated to use the syntax
approved by the CSSWG.

Intent to prototype: https://groups.google.com/forum/#!msg/mozilla.dev.platform/1hQQ7ISudGo/_yLEckEeBQAJ

Differential Revision: https://phabricator.services.mozilla.com/D90731
2020-09-23 13:04:48 +00:00
Narcis Beleuzu 85b4b24cfc Backed out changeset 9480237e1e6f (bug 1665975) for xpcshell failure on test_css-properties-db.js. CLOSED TREE 2020-09-23 13:06:21 +03:00
Frederic Wang ff5e02320a Bug 1665975 - Implement the math-style property. r=emilio
This patch renames the internal -moz-math-display to math-style and
exposes it under the layout.css.math-style.enabled preference. The
initial value becomes "normal" but that does not affect the default
MathML behavior since the UA style sheet sets the math-style property
explicitly on <math> tags. WPT tests are updated to use the syntax
approved by the CSSWG.

Intent to prototype: https://groups.google.com/forum/#!msg/mozilla.dev.platform/1hQQ7ISudGo/_yLEckEeBQAJ

Differential Revision: https://phabricator.services.mozilla.com/D90731
2020-09-23 08:14:38 +00:00
Bogdan Tara 2991b8c066 Backed out changeset 0da5103ba772 (bug 1665975) for mozglue_static::panic_hook mass crashes CLOSED TREE 2020-09-21 10:07:03 +03:00
Frederic Wang 1ac695dbdc Bug 1665975 - Implement the math-style property. r=emilio
This patch renames the internal -moz-math-display to math-style and
exposes it under the layout.css.math-style.enabled preference. The
initial value becomes "normal" but that does not affect the default
MathML behavior since the UA style sheet sets the math-style property
explicitly on <math> tags. WPT tests are updated to use the syntax
approved by the CSSWG.

Intent to prototype: https://groups.google.com/forum/#!msg/mozilla.dev.platform/1hQQ7ISudGo/_yLEckEeBQAJ

Differential Revision: https://phabricator.services.mozilla.com/D90731
2020-09-21 05:41:51 +00:00
Razvan Caliman f36f05b770 Bug 1572662 - Clean-up SelectorHighlighter and clarify code comments r=jdescottes
Depends on D90245

Differential Revision: https://phabricator.services.mozilla.com/D90246
2020-09-16 10:09:11 +00:00
Razvan Caliman 020ea4af5e Bug 1572662 - Remove unused option to customize fill color on SelectorHighlighter and BoxModelHighlighter r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90245
2020-09-16 13:43:57 +00:00
Razvan Caliman 8f69605f28 Bug 1665341 - Remove obsolete BoxModelRenderer. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90402
2020-09-16 14:05:30 +00:00
Kriyszig d79006ce23 Bug 1653520 - Remove code replication in the compatibility actor by moving UserSettings to shared folder r=daisuke,mtigley,devtools-backward-compat-reviewers
Instead of replicationg the browser list fetch using the
preference on the server side, we send the browser list from the
client side to the CompatibilityActor to get the declaration block
compatibility issues.
This way the pref setting is retained completely on the client
side and server doesn't have code duplication.

Differential Revision: https://phabricator.services.mozilla.com/D87613
2020-09-15 14:26:39 +00:00
Kriyszig da1f86f883 Bug 1657537 - Part 2 - Move MDNCompatibility library and related files to devtools/server/actors/compatibility r=daisuke,mtigley
This moves the MDNCompatibility library and the related datasets
and tests to the server side. It also moves the compatibility actor
file intot he compatibility directory.
The links to these files have been updated and the library tests have
been moved to the new location.

Differential Revision: https://phabricator.services.mozilla.com/D86521
2020-09-15 14:26:36 +00:00
Kriyszig 4825b53af6 Bug 1657537 - Part 1 - Move the ISSUE_TYPE property to devtools/shared/constants.js r=mtigley
Most of the client side imports from the MDNCompatibility library
is to access the MDNCompatibility.ISSUE_TYPE property.
This patch moves the property into devtools/shared/constants.js
from where it can be accessed on both the client and server side.

Differential Revision: https://phabricator.services.mozilla.com/D86519
2020-09-15 14:26:23 +00:00
Daisuke Akatsuka aa9f77e93e Bug 1644193: Make walker.getStyleSheetOwnerNode() to reflect resource watcher. r=ochameau
Depends on D89282

Differential Revision: https://phabricator.services.mozilla.com/D89283
2020-09-14 23:37:39 +00:00
Daisuke Akatsuka 581ea9af20 Bug 1644193: Implement addStyleSheet function. r=ochameau,devtools-backward-compat-reviewers
Depends on D89280

Differential Revision: https://phabricator.services.mozilla.com/D89281
2020-09-14 23:37:39 +00:00
Daisuke Akatsuka eb8b319b2c Bug 1644193: Reflect added stylesheets. r=ochameau
Depends on D89277

Differential Revision: https://phabricator.services.mozilla.com/D89280
2020-09-11 08:11:08 +00:00
Daisuke Akatsuka 1a2e261447 Bug 1644193: Implement update function. r=ochameau
Depends on D88540

Differential Revision: https://phabricator.services.mozilla.com/D89277
2020-09-11 08:10:25 +00:00
Daisuke Akatsuka 3908e7a6d9 Bug 1644193: Implement basic server-side stylesheets watcher. r=ochameau
Depends on D88531

Differential Revision: https://phabricator.services.mozilla.com/D88540
2020-09-14 21:29:47 +00:00
Daisuke Akatsuka 3fd81e0284 Bug 1664842: Introduce async watch function. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D88759
2020-09-14 21:12:52 +00:00
Julian Descottes ab325d894c Bug 1664437 - Fix uri logging in WindowGlobalLogger r=ochameau
Depends on D89909

Differential Revision: https://phabricator.services.mozilla.com/D89910
2020-09-14 17:02:31 +00:00
Julian Descottes 7ad7cc6bec Bug 1664437 - Update WindowGlobalLogger to format logs on several lines r=ochameau
Depends on D89908

Differential Revision: https://phabricator.services.mozilla.com/D89909
2020-09-14 17:01:46 +00:00
Julian Descottes 7bad920441 Bug 1664437 - Extract DevTools WindowGlobalLogger to a dedicated module r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D89908
2020-09-14 16:53:08 +00:00
Jan de Mooij 927eea2c81 Bug 1663847 part 2 - Change Debugger.Environment.callee getter to calleeScript getter. r=tcampbell,jdescottes
The callee getter returned |undefined| for certain functions because it's
hard to recover the callee consistently for all environments (and we can't
return the internal canonical function). See also bug 1414684.

This patch fixes that by exposing the script instead of the callee. Devtools is
only interested in the displayName and parameterNames properties and those are
also available on scripts (the previous patch adds Script.parameterNames).

Differential Revision: https://phabricator.services.mozilla.com/D89701
2020-09-11 09:24:34 +00:00
Julian Descottes a66edac6cb Bug 1663941 - Do not call onAvailable if cached server resources are empty r=ochameau
Depends on D89609

Differential Revision: https://phabricator.services.mozilla.com/D89611
2020-09-10 20:52:39 +00:00
Christoph Kerschbaumer af3ae708f9 Bug 1664177: Load all images in devtools/client/debugger/images using chrome:. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D89727
2020-09-10 17:04:35 +00:00
Razvan Caliman 8e4b6b2a5b Bug 1646028 - Add generic highlighter manager to HighlightersOverlay. r=ochameau
Depends on D81525

Introduced a centralized way in `HighlightersOverlay` to invoke highlighters by type, automatically managing previously active highlighters.

First some context.
`HighlightersOverlay` is a bit of a misnomer. It already does a few things:
- provides methods to manually invoke some highlighters (Flex/Grid/Shapes/BoxModel)
- provides a way to delegate mouse events from Rules view / Computed view / Markup and invoke highlighters based on the event's target node
- manages state of Flex/Grid highlighters to be able to restore them on page refresh
- exposes the node that is highlighted by a particular highlighter
- misc handlers for events that require hiding highlighters by type (ex mutation events)

The changes in this patch add the core functionality which will automatically manage the visibility of highlighters regardless of their node's host frame:
- `this._activeHighlighters` is a Map which maps a highlighter type to the currently visible highlighter instance and its corresponding `NodeFront`
- `showHighlighterTypeForNode(type, nodeFront, options)` invokes a highlighter type for a given `NodeFront` while toggling off any existing highlighter for that type. For situations where multiple highlighters of the same type can be visible at the same time (ex: Grid), this is where we could manage their visibility.
- `hideHighlighterType(type)` hides all highlighters of a given type; can be followed-up with a more specific `hideHighlighterTypeForNode()` when needed
- `getNodeForActiveHighlighter(type)` returns the `NodeFront` currently highlighted by a highlighter type. This is an abstracted replacement for `flexboxHighlighterShown`, `geometryEditorHighlighterShown`, etc.

##### Accommodation for tests

To mitigate the fact that many tests and some consumers expect [exact event names](https://searchfox.org/mozilla-central/search?path=&q=-highlighter-shown) to be fired, like "box-model-highlighter-shown", instead of generic shown/hidden events with the highlighter type property as event data, we introduce a temporary map, `HIGHLIGHTER_EVENTS`, from which we pick the event to fire according to the highlighter type. As we progress in refactoring, the intent is for this map to slowly go away.


##### Intent for refactoring

The intent is for all client-side consumers to invoke highlighters via these methods. For example:
```
this.inspector.highlighters.showHighlighterTypeForNode(
      "BoxModelHighlighter",
      nodeFront
    )
```

See another example of this in the migration of `FlexboxHighligther` in D79694.

##### Future plans

In the medium-term, it's likely we'll move this part of `HighligthersOverlay` from inspector to toolbox and rename it `HighlightersManager`. This way, other consumers, like Debugger and Console can also use it [instead of the existing approach](https://searchfox.org/mozilla-central/rev/027893497316897b8f292bde48dbb6da2391a331/devtools/client/framework/toolbox.js#3503-3557). Haven't attempted this yet. Pending updates to the Flexbox, Grid, Shapes and CSS Transform highlighters so when we migrate paths from `inspector.highlighters` to ️ `toolbox.highlighters` is done in one go for all tests and consumers.

Differential Revision: https://phabricator.services.mozilla.com/D81526
2020-09-10 12:00:34 +00:00
Emilio Cobos Álvarez a3c20c9800 Bug 1662703 - Make appearance: button behave like auto. r=heycam
As per https://github.com/w3c/csswg-drafts/issues/5174.

Differential Revision: https://phabricator.services.mozilla.com/D89119
2020-09-10 08:58:09 +00:00
Razvan Maries f0ac3ad62a Backed out changeset baab244deeb0 (bug 1662703) for perma failures on 482681.xhtml. CLOSED TREE 2020-09-10 04:50:23 +03:00
Emilio Cobos Álvarez af8bc3472b Bug 1662703 - Make appearance: button behave like auto. r=heycam
As per https://github.com/w3c/csswg-drafts/issues/5174.

Differential Revision: https://phabricator.services.mozilla.com/D89119
2020-09-08 23:03:58 +00:00
Julian Descottes fde673f31c Bug 1635461 - Remove watcher logic from Walker Actor r=ochameau,devtools-backward-compat-reviewers
Depends on D86163

Differential Revision: https://phabricator.services.mozilla.com/D86549
2020-09-09 17:14:07 +00:00
Julian Descottes 7909e64490 Bug 1635461 - Remove watcher logic from WalkerFront in favor of ResourceWatcher r=ochameau
Depends on D86162
The resource watcher already guarantees that listeners are only called once, caches resources etc.
Consequently, the client side logic currently implemented in the WalkerFront is redundant and should be removed.

Differential Revision: https://phabricator.services.mozilla.com/D86163
2020-09-09 16:08:56 +00:00
Julian Descottes 2eb6d9ccce Bug 1635461 - Use ResourceWatcher for root-node resources in tests r=ochameau
Depends on D86160

Differential Revision: https://phabricator.services.mozilla.com/D86162
2020-09-09 16:08:38 +00:00
Alexandre Poirot 550422b87a Bug 1663636 - Prevent trying to resume destroyed documents. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D89450
2020-09-08 16:31:01 +00:00
Brad Werth fc3cb8fd99 Bug 1661283 Part 6: Add a test of NodeActor.isScrollable on various elements. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D88683
2020-08-31 17:56:24 +00:00
Brad Werth 8ca8fd6962 Bug 1661283 Part 5: Add a test of GetOverflowingChildrenOfElement on the body element. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D88682
2020-09-04 13:15:08 +00:00
Brad Werth ccf873b003 Bug 1661283 Part 4: Make NodeActor.initialize respect overflow debugging pref. r=gl
This also reuses a cached result of isScrollable, to avoid a second call.

Differential Revision: https://phabricator.services.mozilla.com/D88507
2020-09-02 23:52:37 +00:00
Brad Werth 75102cef12 Bug 1661283 Part 3: Make NodeActor.isScrollable use the new Element.hasVisibleScrollbars method. r=gl
This removes the need for the document/dom walk.

Differential Revision: https://phabricator.services.mozilla.com/D88506
2020-08-28 22:18:34 +00:00
Alexandre Poirot 1b5d072163 Bug 1662126 - Make synchronization code related to resourceTypes reusable. r=nchevobbe
The idea here is to reuse this to communicate the breakpoints (and many other things).

Differential Revision: https://phabricator.services.mozilla.com/D88849
2020-09-07 08:32:44 +00:00
Alexandre Poirot 04f81fed65 Bug 1662126 - Share code in WatcherRegistry between targets and resouces. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88848
2020-09-07 08:32:37 +00:00
Alexandre Poirot acd17d815f Bug 1662126 - Convert WatcherRegistry Set to Arrays. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88847
2020-09-07 08:32:34 +00:00
Julian Descottes 3a577649e6 Bug 1662067 - Set default preferences from about:debugging when connecting to remote runtimes r=daisuke,nchevobbe,devtools-backward-compat-reviewers
At the moment, it is easy to break remote debugging by reading preferences incorrectly.
Typically, creating a preference in the firefox preference index file will only create it for Firefox, not for mobile (Fenix).
When trying to read the preference from the server with the Services.prefs.get*Pref APIs, the call will throw unless a fallback value was specified.

A longer term solution is investigated at https://bugzilla.mozilla.org/show_bug.cgi?id=1660182, but for now this changeset allows about:debugging to set a few default values for preferences when connecting to a remote runtime.

Differential Revision: https://phabricator.services.mozilla.com/D88782
2020-09-03 07:49:33 +00:00
Nicolas Chevobbe 317a7ff2c2 Bug 1660466 - Fix attaching target/thread test intermittents. r=jdescottes.
Move the function taking care of closing the Browser Console to shared-head so
we can close it before closing the tabs opened during the test.

While attaching the worker, check that the Worker Debugger isn't closed, and
if it is, reject the promise. On the target list, catch rejection while attaching
and simply bail out so we don't call the rest of the code in onTargetAvailable.

Those guards are not enough to prevent any failure while attaching, so we're
wrapping calls to `attachAndInitThread`/`_onThreadInitialized` in try/catch
blocks to avoid test failures.

Differential Revision: https://phabricator.services.mozilla.com/D88766
2020-09-02 14:43:23 +00:00
Hubert Boma Manilla 87bd8a1f81 Bug 1644191 - Server side network events listening r=nchevobbe,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D78867
2020-09-02 13:31:59 +00:00
Alexandre Poirot 2452f172af Bug 1661627 - Stop ignoring PDF print preview documents. r=nchevobbe
PDF print preview are using about:blank documents, which are ignored
by DevTools in order to save resources.
We avoid creating targets for these, very often, transcient documents.
I tried to find ways to distinguish typical temporary about:blank documents
from this print preview one.

Differential Revision: https://phabricator.services.mozilla.com/D88956
2020-09-02 07:38:59 +00:00
Emilio Cobos Álvarez 03baee9d8a Bug 1662478 - Rename ::file-chooser-button to ::file-selector-button, and enable it in all channels. r=jwatt
See https://github.com/w3c/csswg-drafts/issues/5049

Differential Revision: https://phabricator.services.mozilla.com/D88995
2020-09-01 22:58:10 +00:00
Daisuke Akatsuka b9e65b07d6 Bug 1659589: Implement update method in stylesheets actor. r=ochameau,devtools-backward-compat-reviewers
Depends on D87046

Differential Revision: https://phabricator.services.mozilla.com/D87047
2020-08-28 06:27:53 +00:00
Daisuke Akatsuka e9b12ccb1d Bug 1659589: Implement getText in stylesheets actor. r=ochameau,devtools-backward-compat-reviewers
Depends on D87044

Differential Revision: https://phabricator.services.mozilla.com/D87045
2020-08-28 06:07:33 +00:00
Daisuke Akatsuka f8c36ace27 Bug 1659589: Implement toggleDisabled in stylesheets actor. r=ochameau,devtools-backward-compat-reviewers
Depends on D87043

Differential Revision: https://phabricator.services.mozilla.com/D87044
2020-08-20 08:27:47 +00:00
Julian Descottes 4d4be17fbc Bug 1662058 - Add fallback to get pref devtools.overflow.debugging.enabled from server r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88767
2020-08-31 08:37:13 +00:00
Alexandre Poirot 45a188bf6b Bug 1661569 - Avoid mixing target actor of the many toolboxes. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88486
2020-08-28 05:48:53 +00:00
Daisuke Akatsuka a936229ca0 Bug 1659589: Get property-change event via resource watcher. r=ochameau
Depends on D87041

Differential Revision: https://phabricator.services.mozilla.com/D87042
2020-08-26 08:37:18 +00:00
Daisuke Akatsuka 0adc3db50a Bug 1659589: Handle importing stylesheet from file using resource watcher mechanism to keep consistency. r=ochameau,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D87040
2020-08-27 22:31:52 +00:00
Alexandre Poirot 2effa77867 Bug 1660895 - Eagerly ignore loading or destroying documents. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88075
2020-08-26 20:31:57 +00:00
Alexandre Poirot 07e7e6e9b1 Bug 1660892 - Ignore window objects related to remote iframes in thread actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88074
2020-08-26 14:25:31 +00:00
Mihai Alexandru Michis 01a6dfae9d Backed out changeset 9d95edbd8386 (bug 1660892) for causing devtool timeouts.
CLOSED TREE
2020-08-26 15:39:48 +03:00
Alexandre Poirot 6238cd4670 Bug 1660892 - Ignore window objects related to remote iframes in thread actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88074
2020-08-26 08:48:23 +00:00
Nicolas Chevobbe aaa2b8be93 Bug 1659376 - Fix Browser Toolbox inspector when print preview is displayed.r=rcaliman.
The issue was that the getHighlighter request for the about:printpreview
target never settled. It appears that the document always stays in an
unitialized readyState, which was causing trouble.
Instead of relying only on readyState, we now call isDocumentReady, which
also checks if the document is loading.

Differential Revision: https://phabricator.services.mozilla.com/D87756
2020-08-25 07:08:12 +00:00
Nicolas Chevobbe a00c418cc2 Bug 1659376 - Extract isDocumentReady from WalkerActor to inspector utils file. r=rcaliman.
Differential Revision: https://phabricator.services.mozilla.com/D87755
2020-08-25 07:07:48 +00:00
manas 68019d8bda Bug 1660266 - Encapsulate the code for finding overflow causing elements inside the Overflow Debugging pref. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D87926
2020-08-23 23:05:13 +00:00
Razvan Maries 5dd733dcb0 Backed out changeset 11f769ec943d (bug 1660266) for perma failures on browser_markup_overflow_badge.js. CLOSED TREE 2020-08-22 21:58:24 +03:00
manas 4ef56c529d Bug 1660266 - Encapsulate the code for finding overflow causing elements inside the Overflow Debugging pref. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D87926
2020-08-22 16:57:04 +00:00
manas 071d9177e5 Bug 1657680 - Make the scrollable badge clickable and add click handler. r=gl,jdescottes,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D86245
2020-08-22 09:12:12 +00:00
Narcis Beleuzu 4751b29785 Backed out changeset ed74d4e4b273 (bug 1657680) for dt failure on browser_markup_overflow_badge.js 2020-08-22 04:42:50 +03:00
manas 88e461c163 Bug 1657680 - Make the scrollable badge clickable and add click handler. r=gl,jdescottes,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D86245
2020-08-21 22:27:18 +00:00
Narcis Beleuzu cb798e0f9e Backed out 2 changesets (bug 1659376) for dt failures on browser_dbg-content-script-sources.js. CLOSED TREE
Backed out changeset 61e3dea03a62 (bug 1659376)
Backed out changeset 86e77b35c75d (bug 1659376)
2020-08-21 20:47:02 +03:00
Nicolas Chevobbe 0cd6331277 Bug 1659376 - Fix Browser Toolbox inspector when print preview is displayed.r=rcaliman.
The issue was that the getHighlighter request for the about:printpreview
target never settled. It appears that the document always stays in an
unitialized readyState, which was causing trouble.
Instead of relying only on readyState, we now call isDocumentReady, which
also checks if the document is loading.

Differential Revision: https://phabricator.services.mozilla.com/D87756
2020-08-21 11:56:51 +00:00
Nicolas Chevobbe f9dc6cb44b Bug 1659376 - Extract isDocumentReady from WalkerActor to inspector utils file. r=rcaliman.
Differential Revision: https://phabricator.services.mozilla.com/D87755
2020-08-21 11:56:48 +00:00
Julian Descottes 8853c00813 Bug 1659866 - Move server-side devtools pref for Compatibility panel to modules/libpref/init/all.js r=daisuke
Depends on D87603

Differential Revision: https://phabricator.services.mozilla.com/D87611
2020-08-19 22:34:22 +00:00
Bogdan Tara 789e572738 Backed out changeset c209cb1c0341 (bug 1658146) for browser_resources_network_events.js failures CLOSED TREE 2020-08-20 03:17:05 +03:00
Hubert Boma Manilla 75bcf1cab2 Bug 1658146 - Stop request blocking for no valid reason r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D87569
2020-08-19 14:13:48 +00:00
Julian Descottes 8aecb1e6df Bug 1642295 - Enable server side resource watching by default r=ochameau
Depends on D86963

Just for reference for now, since this is incompatible with target switching.

Differential Revision: https://phabricator.services.mozilla.com/D86964
2020-08-19 14:08:40 +00:00
Julian Descottes e9bb161639 Bug 1642295 - Fold clearCachedMessage from ConsoleServiceListener into WebConsoleActor r=nchevobbe
Depends on D86961

Differential Revision: https://phabricator.services.mozilla.com/D86962
2020-08-19 14:08:37 +00:00
Julian Descottes 3507a935c3 Bug 1642295 - Fix shouldHandleMessage signature in platform-message DevTools resource r=nchevobbe
Depends on D86960

Differential Revision: https://phabricator.services.mozilla.com/D86961
2020-08-19 14:08:36 +00:00
Julian Descottes 2703786741 Bug 1642295 - Add missing Cu import in devtools/server/actors/object/utils.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86960
2020-08-19 14:08:36 +00:00
Nicolas Chevobbe 4024f7b515 Bug 1659407 - Remove newCacheStructure webconsole trait. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D87234
2020-08-18 15:11:59 +00:00
Julian Descottes 1ecab54df3 Bug 1658888 - Remove old backward compat code for ArrayBuffer marshalling r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86947
2020-08-17 18:35:18 +00:00
Kris Maglione 0c976d908a Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-08-17 20:22:12 +00:00
Kris Maglione 3af8c4138c Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-08-17 20:20:50 +00:00
Nicolas Chevobbe 5c09051944 Bug 1658945 - Add getResourceTypeDictionaryForTargetType function in devtools/server/actors/resources/index.js. r=ochameau.
We already had a function that was returning a resourceType dictionnary for
a given watcher or target actor, on which we were then checking the targetType
to return the appropriate dictionnary.
It feels appropriate to have a dedicated function to get the dictionnary from
the targetType only, so we can call it from other places instead of repeating
the same instructions.

Differential Revision: https://phabricator.services.mozilla.com/D86979
2020-08-14 05:09:02 +00:00
Christoph Kerschbaumer bc8e540bb5 Bug 1658323: HTTPS-Only Mode: Have console message link to SUMO page r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86577
2020-08-11 13:22:32 +00:00
Alexandre Poirot 2cee1e6ebe Bug 1657105 - Fix server side update and destroy events. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86048
2020-08-12 16:49:25 +00:00
Alexandre Poirot 3441a8b394 Bug 1657105 - Allow listening for resources from both parent and content processes. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86046
2020-08-12 16:49:23 +00:00
Alexandre Poirot 9f9a8d9b3e Bug 1657105 - Use constants to define target types on the server and set targetType on all targets. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86632
2020-08-12 16:49:21 +00:00
Alexandre Poirot c5b1ffc8f8 Bug 1658566 - Remove all unecessary typeName. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86722
2020-08-12 16:57:05 +00:00
Bogdan Tara 16fadcf1aa Backed out 3 changesets (bug 1657105) for es lint and test_logpoint-03.js failures CLOSED TREE
Backed out changeset e0ac6c61d65a (bug 1657105)
Backed out changeset 51b8364f941b (bug 1657105)
Backed out changeset cc50fc1340a9 (bug 1657105)
2020-08-12 18:56:52 +03:00
Alexandre Poirot feeba49b58 Bug 1657105 - Fix server side update and destroy events. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86048
2020-08-11 14:15:18 +00:00
Alexandre Poirot 3bf66fff0b Bug 1657105 - Allow listening for resources from both parent and content processes. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86046
2020-08-11 14:11:52 +00:00
Alexandre Poirot f4606b2122 Bug 1657105 - Use constants to define target types on the server and set targetType on all targets. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86632
2020-08-12 15:10:13 +00:00
Julian Descottes f05829aa08 Bug 1629890 - Use Front/Actor::isDestroyed to replace actorID checks r=nchevobbe
Depends on D86325

Differential Revision: https://phabricator.services.mozilla.com/D86356
2020-08-12 11:33:44 +00:00
Julian Descottes 028ab078d0 Bug 1629890 - Convert accessible isDestroyed getter to Actor::isDestroyed() r=yzen,nchevobbe
Depends on D86324

Differential Revision: https://phabricator.services.mozilla.com/D86325
2020-08-10 18:56:38 +00:00
Noemi Erli 56b4ff381b Backed out changeset 9040cdaddc7c (bug 1658323) for causing multiple failures actors/webconsole related CLOSED TREE 2020-08-11 14:45:36 +03:00
Christoph Kerschbaumer a2f94da3d9 Bug 1658323: HTTPS-Only Mode: Have console message link to SUMO page r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86577
2020-08-11 10:00:53 +00:00
Daisuke Akatsuka d9acff03ab Bug 1644194: Implement CSS change watcher. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85239
2020-08-10 23:32:28 +00:00
Butkovits Atila 6c59af367d Backed out changeset cfaf03474399 (bug 1651033) for failure at browser_accessibility_walker.js. CLOSED TREE 2020-08-10 19:28:49 +03:00
Julian Descottes a0acf13c9c Bug 1651033 - Prevent default for pointerup/down events with DevTools node picker r=gl
Differential Revision: https://phabricator.services.mozilla.com/D86502
2020-08-10 14:37:50 +00:00
Julian Descottes 6e5145a87c Bug 1652445 - Use root node resource to detect navigation for all frames r=rcaliman,ochameau
Depends on D85599

The WalkerActor is currently responsible for watching navigations and exposes them to the client.
However, this is communicated to the client differently depending on what kind of frame navigates.
If the top frame of the target navigates, this will be exposed via the watchRootNode API (onDestroyed/onAvailable callbacks will be triggered)
If an inner frame navigates, mutations will be emitted: "frameLoad"/"documentUnload" + a fake "childList" mutation.

On the client side, we have to handle both very similarly which leads to some duplication.
Also "frameLoad"/"documentUnload" are one of the last "immediateMutations" which usually means they should not have been mutations in the first place.

The goal here is to use the watchRootNode API for all frames.

Differential Revision: https://phabricator.services.mozilla.com/D84973
2020-08-07 12:16:51 +00:00
Julian Descottes 40eb2a0d73 Bug 1652445 - Remove skipped & outdated test browser_inspector-mutations-frameload.js r=ochameau
Depends on D85598

This test relies on mutations which are no longer emitted for most navigations and which will no longer be emitted at all with the next patches.
It has been disabled for 9 months and should be removed.

Differential Revision: https://phabricator.services.mozilla.com/D85599
2020-08-07 12:16:44 +00:00
Julian Descottes 58de59ca2b Bug 1652445 - Remove backward compatibility code for newRoot mutations r=rcaliman
Depends on D85597

newRoot mutations are no longer emitted by any server we support, we can remove the corresponding client code.

Differential Revision: https://phabricator.services.mozilla.com/D85598
2020-08-07 12:16:42 +00:00
Julian Descottes efef5c970b Bug 1652445 - Remove outdated traits from NodeActor r=rcaliman
Depends on D84972

Differential Revision: https://phabricator.services.mozilla.com/D85597
2020-08-07 12:15:02 +00:00
Julian Descottes 1d0130e4df Bug 1652445 - Rename WalkerActor _ref method and _refMap property r=gl
_ref is renamed to _getOrCreateNodeActor to better reflect the purpose of the method.
_refMap is renamed to _nodeActorsMap

The test helper inspector-helpers was also directly querying _refMap.
This has been replaced by a call to the public API getNode.

Differential Revision: https://phabricator.services.mozilla.com/D84972
2020-08-07 12:14:37 +00:00
Kriyszig 039a9c85b1 Bug 1649018 - Expose compatibility computation for CSS declaration block via CompatiblityActor and add browser dataset fetch r=daisuke,devtools-backward-compat-reviewers DONTBUILD
Previously CompatibilityActor could only compute the compatiblity
issues taking node actor. However with the implementation of
inline compatibility warning, it becomes necessary to compute
compatiblity issue from the CSS declaration block. This patch
exposes a getCssDeclarationBlockIssues and add browser dataset
fetch within the actor for inline warnings.

Differential Revision: https://phabricator.services.mozilla.com/D81472
2020-07-15 09:11:21 +00:00
manas 89eed33401 Bug 1653290 - Add overflow badge and show an overflow badge for every scroll causing element dynamically and a test to check its working. r=gl,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84333
2020-08-06 16:14:23 +00:00
Nicolas Chevobbe 7ee8cd576d Bug 1657389 - Rename target actor mock 'window' property to 'workerGlobal'. r=ochameau.
Not having the window property anymore, we have to change the `window` getter
in WebConsoleActor to retrieve `workerGlobal`. And since the getter name wasn't
reflecting what it was holding (it can be a window, a worker global or a sandbox),
we rename it to `global` (and `evalWindow` to `evalGlobal`).

We remove the `globalDebugObject` getter on the thread actor that wasn't used
anywhere in the code.

Differential Revision: https://phabricator.services.mozilla.com/D86035
2020-08-06 14:05:07 +00:00
Hubert Boma Manilla 7c093a6ed4 Bug 1653743 - Send request body event for service workers r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84340
2020-08-05 12:09:44 +00:00
Nicolas Chevobbe 38c24cfb66 Bug 1656888 - Load ad-hoc console listener module in worker context. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D85815
2020-08-05 08:59:20 +00:00
Nicolas Chevobbe a704fd4ad8 Bug 1656888 - Make WorkerThread's mock parent an Actor. r=ochameau.
The `watchResources` function [1] takes as a first parameter either a watcher
actor or a target actor, that is used to manage the created resources (e.g. the
object actors of console messages). In order to be able to manage actors, it
needs to extend the `Pool` class (which is the case for Actor).
In the worker cases, things are a bit different, since we create a DevToolServer
which only have a WebConsole and a Thread actor. Those actors usually take a target
actor as a parent, but in the Worker thread we simply have an object implementing
the properties and methods it needs.
This will be this target actor mock that we're going to pass to `watchResources`,
and in order to be able to do that, it needs to be able to manage actors.

In regard of all this, this patch makes the target actor mock an actual Actor,
witout spec, on which we then put the existing methods and properties.

[1] https://searchfox.org/mozilla-central/rev/0e309417bdc73be33fc93f6bd7a0d4063d2c6e51/devtools/server/actors/resources/index.js#66

Differential Revision: https://phabricator.services.mozilla.com/D85814
2020-08-05 08:29:00 +00:00
Julian Descottes 064e9e3b54 Bug 1655985 - Move devtools/server/actors/descriptors/watcher up one level r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D85966
2020-08-05 12:00:58 +00:00
Julian Descottes 9208b6c499 Bug 1657104 - Support onResourceUpdated for server resources r=ochameau,devtools-backward-compat-reviewers,nchevobbe
Depends on D85881

Differential Revision: https://phabricator.services.mozilla.com/D85882
2020-08-05 08:59:42 +00:00
Julian Descottes 44ff0cd41b Bug 1657104 - Support onResourceDestroyed for server resources r=ochameau
Depends on D85879

Differential Revision: https://phabricator.services.mozilla.com/D85881
2020-08-04 20:33:56 +00:00
Bogdan Tara 91572b9250 Backed out changeset 2d126d9f7ef8 (bug 1653290) for /browser_markup_overflow_badge.js failures CLOSED TREE 2020-08-04 22:36:58 +03:00
Logan Smyth 06838cf425 Bug 917963 - Implement break on first script statement. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D85198
2020-08-04 18:46:48 +00:00
wartmanm f4757d7c63 Bug 1656726 - Pause On Exceptions, DOM mutation breakpoints, debugger statements pause in blackboxed original sources r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D85718
2020-08-04 18:41:53 +00:00
manas 95bf33558a Bug 1653290 - Add overflow badge and show an overflow badge for every scroll causing element dynamically and a test to check its working. r=gl,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84333
2020-08-04 17:17:26 +00:00
Sebastian Streich bf58055b03 Bug 1633710 - Move uri.spec calls to nsIPrincipal r=necko-reviewers,geckoview-reviewers,preferences-reviewers,ckerschb,ntim,snorp,valentin
Differential Revision: https://phabricator.services.mozilla.com/D82911
2020-08-04 11:10:41 +00:00
Julian Descottes 32de28696d Bug 1656825 - Fix duplicate calls to lazyRequireGetter r=nchevobbe
Depends on D85288

Differential Revision: https://phabricator.services.mozilla.com/D85720
2020-08-03 07:53:50 +00:00
Taegeon Lee 7d84058c16 Bug 1621889 Remove unused originalRegisteredPool in Thread.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D85659
2020-08-03 07:06:14 +00:00
Julian Descottes 4430f1a349 Bug 1472821 - Use array of properties to call lazyRequireGetter in inspector actors r=rcaliman
Depends on D85280

To illustrate the added value of supporting arrays in lazyRequireGetter

Differential Revision: https://phabricator.services.mozilla.com/D85269
2020-08-01 10:49:07 +00:00
Dorel Luca 419e9ccc2c Backed out 2 changesets (bug 1644194) for Devtools failures in /browser_browser_toolbox_fission_contentframe_inspector.js
Backed out changeset 5786eef0515a (bug 1644194)
Backed out changeset a5147f70d344 (bug 1644194)
2020-08-03 05:13:04 +03:00
Daisuke Akatsuka 7812b6ddf1 Bug 1644194: Implement CSS change watcher. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85239
2020-08-02 22:43:20 +00:00
Jeremy Ir 20235b390f Bug 1531609 part 1 - Rename overflow:-moz-hidden-unscrollable to overflow:clip. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73716
2020-08-01 01:56:58 +00:00
Butkovits Atila cc95b93cba Backed out 3 changesets (bug 1635473, bug 1531609) for reftest failures. CLOSED TREE
Backed out changeset 1e7b32808be8 (bug 1531609)
Backed out changeset e64a61869cdb (bug 1531609)
Backed out changeset 6da37d7f6dd3 (bug 1635473)
2020-07-31 23:56:54 +03:00
Yura Zenevich 46631a3015 Bug 1655053 - updating color vision deficiency simulation in accessibility panel. r=jdescottes
* removing simulations for protanomaly, deuteranomaly and tritanomaly
* updating (fixing) the color matrices for protanopia, deuteranopia and tritanopia
* adding a matrix to simulate achromatopsia

Co-authored-by: Matthew Petroff <mozilla@mpetroff.net>

Differential Revision: https://phabricator.services.mozilla.com/D85508
2020-07-31 16:58:01 +00:00
Jeremy Ir 92b8f0f77a Bug 1531609 part 1 - Rename overflow:-moz-hidden-unscrollable to overflow:clip. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73716
2020-07-31 16:40:48 +00:00
Daisuke Akatsuka 4a9d8ddf56 Bug 1478688: Remove no longer used code from network monitor actor. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85370
2020-07-30 13:43:31 +00:00
Hubert Boma Manilla eb5f181cd0 Bug 1656193 - Use the browserId instead of BrowsingContextID r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85380
2020-07-30 18:47:08 +00:00
Yura Zenevich 86b660210e Bug 1653186 - fix highlighter in about:addons (ensure that the highlighter markup nodes are created using the correct window/document). r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85191
2020-07-30 14:00:11 +00:00
Yura Zenevich e9437a481d Bug 1650094 - making the box model highlighter work in the browser toolbox. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D81476
2020-07-30 14:00:03 +00:00
Yura Zenevich e65360bcf3 Bug 1648161 - update code paths where canvas helper was expected to insert synchronously. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D82416
2020-07-30 13:59:53 +00:00
Yura Zenevich c894b69ce1 Bug 1648161 - use accessible highlighter instead of xul-accessible highlighter in browser toolbox. Remove xul-accessible highlighter altogether. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D80005
2020-07-30 13:59:36 +00:00
Daisuke Akatsuka 29ac85b4ad Bug 1643294: Show prefixNeeded message. r=rcaliman,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83284
2020-07-30 03:36:25 +00:00
Noemi Erli 5cebe61c77 Backed out changeset 4ed7b13fb7a5 (bug 1633710) for causing failures in browser_amosigned_url.js CLOSED TREE 2020-07-29 22:34:42 +03:00
Sebastian Streich ea482d8e73 Bug 1633710 - Move uri.spec calls to nsIPrincipal r=necko-reviewers,geckoview-reviewers,preferences-reviewers,ckerschb,ntim,snorp,valentin
Differential Revision: https://phabricator.services.mozilla.com/D82911
2020-07-29 17:33:10 +00:00
Nicolas Chevobbe be3c8ebd18 Bug 1655442 - Make usage of nsIWorkerDebugger.addListener more explicit. r=loganfsmyth
Declare separate listener objects instead of relying on the presence of the
listener method in a broader class.

Differential Revision: https://phabricator.services.mozilla.com/D84964
2020-07-29 07:30:56 +00:00
Julian Descottes 49a164e548 Bug 1633727 - Improve error reporting for legacy actors r=nchevobbe
Depends on D75157

A thread actor attach error shows up as
  Protocol error (unknownError): error occurred while processing 'attach':
  [object Object] from: server0.conn145.content-process36/workerTarget5/thread1

[object Object] is a legacy {error, message} object thrown by the thread actor

Differential Revision: https://phabricator.services.mozilla.com/D83507
2020-07-28 19:44:51 +00:00
Brad Werth f825199513 Bug 1228985 Part 1: Extend HTMLStyleElement to allow devtools to become the triggering principal. r=ckerschb,emilio
Differential Revision: https://phabricator.services.mozilla.com/D77557
2020-07-28 15:45:35 +00:00
Daisuke Akatsuka f89e71f3a5 Bug 1644195: Implement document event watcher. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D83900
2020-07-28 03:02:24 +00:00
Daisuke Akatsuka 19143855ba Bug 1644195: Make document-listener not depend on console actor to reuse in another place. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D83899
2020-07-28 07:56:40 +00:00
Sonia Singla d9f9215481 Bug 1653907 - Remove outdated DevTools style actor trait getAppliedCreatesStyleCache. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D84908
2020-07-27 15:14:33 +00:00
nchevobbe f218d77123 Bug 1651402 - Use obj.isError instead of obj.class='Error' in DevTools code. r=davidwalsh
Depends on D82876

Differential Revision: https://phabricator.services.mozilla.com/D84958
2020-07-27 15:48:16 +00:00
Alexandre Poirot 3928fe477e Bug 1644649 - Flush sharedData from WatcherRegistry in order to prevent races. r=jdescottes
If we don't, content processes may have outdated data and create a target actor
for a watcher that no longer watch for targets.

Differential Revision: https://phabricator.services.mozilla.com/D82798
2020-07-27 13:27:59 +00:00
Alexander Surkov 305d2fd10d Bug 921504 - implement -moz-inert CSS property r=emilio
-moz-inert CSS property reflects inert subtrees concept and can be used to implement HTML:dialog element and HTML:inert attribute

Differential Revision: https://phabricator.services.mozilla.com/D81701
2020-07-26 21:30:56 +00:00
Mark Banner 10cbdaa642 Bug 1620537 - Fix more ESLint issues raised after upgrading to ESlint 7. r=mossop
There's two issues being fixed here - the first is that no-unused-vars now reports against the last instance of the unused variable. The second is no-dupe-else-if is now on by default.

Depends on D84816

Differential Revision: https://phabricator.services.mozilla.com/D84818
2020-07-24 21:31:24 +00:00
Julian Descottes d56c1d12bc Bug 1654762 - Use traits to detect DevTools storage actor supported methods r=nchevobbe,davidwalsh
This is the only meaningful callsite for actorHasMethod.
This method has many bugs and we want to replace it with traits

Differential Revision: https://phabricator.services.mozilla.com/D84689
2020-07-24 18:07:14 +00:00
Nicolas Chevobbe 2570490cad Bug 1651470 - Fix autocomplete errors. r=bomsy.
This patch is a mixed bag of fixes:

- don't log an error when the string couldn't be analyzed, as it can occur
  frequently when the console input isn't valid, and it clutters the browser
  console
- never return a `null` matchProp. Default to empty string, so consumer code
  can always assume it's a string
- don't call trim on a property if it's not a string (it can be an integer at
  this point).

Differential Revision: https://phabricator.services.mozilla.com/D84779
2020-07-24 14:40:46 +00:00
Narcis Beleuzu 37cb83a398 Backed out 2 changesets (bug 921504) for wpt failures on inert-retargeting-iframe.tentative.html . CLOSED TREE
Backed out changeset 8b75cd744e80 (bug 921504)
Backed out changeset a56b2d354613 (bug 921504)
2020-07-22 23:53:55 +03:00
Alexander Surkov 1c382cad65 Bug 921504 - implement HTML:inert r=emilio,heycam
Differential Revision: https://phabricator.services.mozilla.com/D81701
2020-07-22 04:26:08 +00:00
Dorel Luca 990d081d9f Backed out 2 changesets (bug 1651519) for WPT failures in webdriver/tests/switch_to_frame/switch.py. CLOSED TREE
Backed out changeset 7b973a0e7be9 (bug 1651519)
Backed out changeset 55e9184c5617 (bug 1651519)
2020-07-22 02:47:34 +03:00
Emilio Cobos Álvarez 5adefab54c Bug 1449401 - Remove moz-math-anonymous ua-only pseudo. r=heycam
We do not expose it nor ever style it. Just use the parent style all the
time. This avoids problematic style resolution calls during reflow.

Differential Revision: https://phabricator.services.mozilla.com/D84358
2020-07-21 22:35:46 +00:00
Kris Maglione d182c95351 Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-07-21 22:19:19 +00:00
Kris Maglione e7d942c77f Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-07-21 19:02:27 +00:00
Nicolas Chevobbe ae24ed2cde Bug 1652016 - Destroy target created by WebExtension when destroying the toolbox. r=rpl,daisuke,jdescottes.
The problem has 2 folds.
The first one is that the shutdown function on DevToolsExtensionPageContextParent
wasn't called, which means the target was never destroyed. This is fixed by
overriding unload in DevToolsExtensionPageContextParent instead of shutdown, so
the function gets called and the target destroyed.

The second issue was that a single webextension could create 2 targets, and since
we only keep track of a single target, we would miss one. This is fixed by putting
the call to watchTargets in getCurrentDevTools in a promise, so subsequent calls
that might occur before the resulting promise isn't resolved don't end up calling
watchTargets a second time.

Differential Revision: https://phabricator.services.mozilla.com/D83935
2020-07-21 16:26:16 +00:00
Dorel Luca d91c6dc40b Backed out 2 changesets (bug 1651519) for wpt failures in webdriver/tests/switch_to_frame/switch.py. CLOSED TREE
Backed out changeset 52317abc5c68 (bug 1651519)
Backed out changeset 45448dca59a4 (bug 1651519)
2020-07-21 21:55:57 +03:00
Nicolas Chevobbe ebc4f4e1ab Bug 1492797 - Autocomplete for classes panel. r=rcaliman,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D71160
2020-07-21 18:03:13 +00:00
Kris Maglione 4a25531b4a Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-07-21 16:59:33 +00:00
Kris Maglione 9c2c147159 Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-07-21 16:59:28 +00:00
Kashav Madan ae956c4eef Bug 1653674 - Unskip passing fission tests, r=kmag
It's possible that some of these are still failing intermittently. We can't
really know without first unskipping them.

https://github.com/annygakh/audit-tests

Differential Revision: https://phabricator.services.mozilla.com/D84017
2020-07-21 15:42:48 +00:00
Luca Greco b2f2e7f66d Bug 1620767 - Fix test_extension_storage_actor_upgrade intermittency by explicitly waiting the stores-update RDP event. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84215
2020-07-21 12:10:05 +00:00
Razvan Maries 657d7e2c6b Backed out 3 changesets (bug 1492797) for perma failures on browser_editor_autocomplete_events.js. CLOSED TREE
Backed out changeset 3bfad9588f0b (bug 1492797)
Backed out changeset 3ecf0fc44704 (bug 1492797)
Backed out changeset a7f6906f69de (bug 1492797)
2020-07-21 14:26:49 +03:00
Nicolas Chevobbe f6c68a97f9 Bug 1492797 - Autocomplete for classes panel. r=rcaliman,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D71160
2020-07-20 17:00:01 +00:00
Narcis Beleuzu 0a0d8f9451 Backed out 3 changesets (bug 1648161, bug 1650094) as requeste by yzen
Backed out changeset a05fbae74197 (bug 1650094)
Backed out changeset b1c3cfa3b77b (bug 1648161)
Backed out changeset 7cd63199f143 (bug 1648161)
2020-07-20 18:01:00 +03:00
Nicolas Chevobbe 7fa11883f2 Bug 1653598 - Add a constant for CSS Parser message category. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D84123
2020-07-20 08:15:03 +00:00
Nicolas Chevobbe 8e74f48b9e Bug 1644187 - Add server support for CSS warning resources. r=jdescottes.
This is quite similar to the error messages watcher, except that we call
ensureCSSErrorReportingEnabled after retrieving the cached messages.

Resource no longer includes `errorMessageName` and `isPromiseRejection` as it
makes little sense for the CSS warning.

The existing resource test is updated to run with and without the server support.

Differential Revision: https://phabricator.services.mozilla.com/D83047
2020-07-17 14:58:43 +00:00
Nicolas Chevobbe ec43ae2c74 Bug 1652938 - Add base class for nsIConsoleListener-based resources. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D83621
2020-07-17 14:50:09 +00:00
Hubert Boma Manilla 32fa49ba40 Bug 1651625 - Avoid error when weakmap does not contain any info for the channel r=Honza
I've not got Windows to test the fix specifically.

This should stop from throwing an Error if the WeakMap does not contain
any data for the channel.
It should just return `null`

Differential Revision: https://phabricator.services.mozilla.com/D83840
2020-07-17 06:06:17 +00:00
Cameron McCormack 557d0316a9 Bug 1620467 - Part 8: Make `appearance: button` behave like auto on various elements. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83434
2020-07-16 22:04:24 +00:00
Cameron McCormack dd61f595eb Bug 1620467 - Part 4: Change internal uses of -moz-appearance to appearance and -moz-default-appearance. r=emilio,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,ntim,agi,miketaylr
Uses of `-moz-appearance: none` are changed to `appearance: none`.

Uses of other values that are simply reverting the appearance back to
its default are changed to `appearance: auto`.

Uses of values in UA sheets that are defining the inherent appearance of
widgets are changed to:

  appearance: auto;
  -moz-default-appearance: <value>;

since those values are either no longer supported on (-moz-)appearance,
or are still supported but only in some limited form.

There are some uses of `-moz-appearance: textfield` on <input
type=number> elements that are renamed to `appearance: textfield`.

Differential Revision: https://phabricator.services.mozilla.com/D83430
2020-07-16 22:04:14 +00:00
Cameron McCormack 1739610d9a Bug 1620467 - Part 2: Add unprefixed appearance property and make -moz-appearance and -webkit-appearance be aliases. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83428
2020-07-16 22:04:11 +00:00
Julian Descottes 31f3e7257b Bug 1628473 - Update the markup view when a remote frame navigates r=rcaliman
Depends on D79675

Differential Revision: https://phabricator.services.mozilla.com/D79676
2020-07-16 16:22:30 +00:00
Julian Descottes 0125dd01b6 Bug 1628473 - Remove watchRootNode trait r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D83194
2020-07-16 16:20:41 +00:00
manas 7a7e2a7c34 Bug 1647372 Part 2 - Add tests for GetOverflowingChildrenOfElement. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D81957
2020-07-16 17:05:47 +00:00
Johann Hofmann d2c3957504 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-15 18:52:19 +00:00
Frederik Braun a7153982e8 Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Brad Werth 9d266c9a3f Bug 1625925 Part 1: Change touch-simulator.js synthesizeNative methods to use screen coordinates directly. r=botond
This removes the calculation method coordinatesRelativeToScreen in favor of
using the event-supplied screen coordinates. Those coordinates are scaled to
device coordinates to meet expectations of the sendNative methods.

Differential Revision: https://phabricator.services.mozilla.com/D74161
2020-07-13 20:39:52 +00:00
Yura Zenevich c4d9e1e226 Bug 1650094 - making the box model highlighter work in the browser toolbox. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D81476
2020-07-14 17:14:16 +00:00
Yura Zenevich 0e099f0461 Bug 1648161 - update code paths where canvas helper was expected to insert synchronously. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D82416
2020-07-14 17:38:28 +00:00
Yura Zenevich b1d246431a Bug 1648161 - use accessible highlighter instead of xul-accessible highlighter in browser toolbox. Remove xul-accessible highlighter altogether. r=ochameau,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D80005
2020-07-14 17:13:48 +00:00
Julian Descottes df3fa95f9d Bug 1652079 - Remove mutationBreakpoints from WalkerActor IMMEDIATE_MUTATIONS list r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D83493
2020-07-14 20:02:41 +00:00
Logan Smyth 2f3df327f4 Bug 1196089 - Treat javascript: scripts as anonymous sources. r=davidwalsh
Depends on D83410

Differential Revision: https://phabricator.services.mozilla.com/D83411
2020-07-14 15:04:59 +00:00
Logan Smyth 283fb0d42d Bug 1196089 - Treat script sources introduced by DOM timers as anonymous. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D83410
2020-07-14 15:03:53 +00:00
Logan Smyth d1c3302aa9 Bug 1652608 - Remove usage of nonexistent hostAnnotations property. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D83421
2020-07-14 15:13:31 +00:00
Daisuke Akatsuka 6e9455cf79 Bug 1478688: Remove test codes that does not use anymore. r=Honza
Depends on D83288

Differential Revision: https://phabricator.services.mozilla.com/D83289
2020-07-13 10:38:55 +00:00
Daisuke Akatsuka f77008aa71 Bug 1478688: Remove codes that does not use anymore. r=Honza
Depends on D83287

Differential Revision: https://phabricator.services.mozilla.com/D83288
2020-07-13 10:05:52 +00:00
Daisuke Akatsuka 90dd432408 Bug 1478688: Avoid getting cached content from console actor. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D83287
2020-07-13 10:05:40 +00:00
Kris Maglione b6be72f351 Bug 1649554: Part 1 - Move deprecated component registration helpers out of XPCOMUtils. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,whimboo,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81749
2020-07-10 23:58:30 +00:00
Kris Maglione 9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Hubert Boma Manilla 7121f0a1fb Bug 1649771 - Refactor Channel Map refSet to use a Map instead to improve perf r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D83010
2020-07-10 12:59:41 +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
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 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
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
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
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 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 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
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
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