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

4181 Коммитов

Автор SHA1 Сообщение Дата
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