Commit Graph

20685 Commits

Author SHA1 Message Date
Daisuke Akatsuka
a65a1cf8c8 Bug 1641545: Enable the pref for compatibility panel. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D77389
2020-05-29 09:01:38 +00:00
Stepan Stava
525e6a8186 Bug 1622238 - Inconsistent variable preview r=jlast
Fixes incorrect 'expression' strings getting from the parse causing overwriting of values when hovering.

If an 'expression' string is in the form of `"foo = value"`, when hovering over 'foo', that 'expression' string is sent to 'evaluateJSAsync()' in 'webConsoleActor' which overwrites any previously set values to 'foo'.

Differential Revision: https://phabricator.services.mozilla.com/D77266
2020-05-28 20:46:19 +00:00
Julian Descottes
66564c9bcf Bug 1637687 - Catch push subscription actor errors in about:debugging r=davidwalsh,daisuke
Depends on D75905

Differential Revision: https://phabricator.services.mozilla.com/D75906
2020-05-29 06:06:58 +00:00
Julian Descottes
4c889947b8 Bug 1637687 - Remove lastPush/pushCount from PushSubscriptionActor as they are not supported on GeckoView r=davidwalsh,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D75905
2020-05-29 06:08:55 +00:00
Alexandre Poirot
8827278483 Bug 1640641 - Add resourceType attribute to each resource and emit list of resources. r=nchevobbe,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D76672
2020-05-29 06:29:40 +00:00
Alexandre Poirot
6e0500aaaa Bug 1640641 - Instantiate only one ResourceWatcher in the console stubs test. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D75790
2020-05-29 06:29:38 +00:00
Nicolas Chevobbe
1e8a799842 Bug 1641590 - Make ErrorRep text red. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D77268
2020-05-28 20:00:29 +00:00
Julian Descottes
a4568d4c46 Bug 1641490 - TargetList::watchTargets should wait for onAvailable to be called on service worker targets r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D77225
2020-05-29 06:00:06 +00:00
Alexandre Poirot
4d7c2b365c Bug 1636192 - Clean Content process Target actor on process shutdown. r=nchevobbe
Before this patch, we were not trying to cleanup anything when the process
was known to be in process of destruction. We assumed that everything would
be cleaned up anyway.
But mochitest is actually asserting that nothing is leaked on process shutdown,
and we are easily leaking many thing when not destroying the target actor!

Differential Revision: https://phabricator.services.mozilla.com/D76156
2020-05-28 14:09:44 +00:00
Narcis Beleuzu
860b2f3e65 Backed out 2 changesets (bug 1637641) for dt failures on browser_webconsole_stubs_console_api.js . CLOSED TREE
Backed out changeset 771431dbcec2 (bug 1637641)
Backed out changeset 74e74024568d (bug 1637641)
2020-05-29 05:32:01 +03:00
Daisuke Akatsuka
fb2e714bec Bug 1637641: Add test for the cache mechanism in ResourceWatcher. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D77015
2020-05-29 00:12:08 +00:00
Daisuke Akatsuka
5ecd96db86 Bug 1637641: Make multiple listeners can receive proper cached resources. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D76447
2020-05-29 00:11:56 +00:00
Csoregi Natalia
159c3fa2fb Backed out 2 changesets (bug 1640641) as per request. CLOSED TREE
Backed out changeset aca776a13154 (bug 1640641)
Backed out changeset 9f9e8395f631 (bug 1640641)
2020-05-28 17:12:36 +03:00
Alexandre Poirot
82f43b8076 Bug 1626266 - Prevent exception when destroying the StyleSheets actor when the page is already destroyed. r=jdescottes
This should help better classify DAMP errors as this was picked up by TreeHerder log parser,
while not breaking DAMP.

Differential Revision: https://phabricator.services.mozilla.com/D77224
2020-05-28 09:50:48 +00:00
Alexandre Poirot
b4d4320f1e Bug 1640641 - Add resourceType attribute to each resource and emit list of resources. r=nchevobbe,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D76672
2020-05-28 08:37:21 +00:00
Alexandre Poirot
877779831c Bug 1640641 - Instantiate only one ResourceWatcher in the console stubs test. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D75790
2020-05-28 08:37:14 +00:00
Julian Descottes
d08d42cd18 Bug 1640904 - Do not assert specific error message in browser_actor_error.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D77136
2020-05-28 07:52:59 +00:00
Hubert Boma Manilla
d19ae69ede Bug 1641371 - Align the tracking protection info element r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D77160
2020-05-28 11:17:07 +00:00
Csoregi Natalia
a743a4cfd7 Backed out 2 changesets (bug 1637641) for failures on browser_resources_client_caching.js. CLOSED TREE
Backed out changeset ce69538af12e (bug 1637641)
Backed out changeset b6fabe763177 (bug 1637641)
2020-05-28 13:24:55 +03:00
Nicolas Chevobbe
e93fc6fed6 Bug 1635360 - Fix :screenshot --help command. r=davidwalsh.
This was regressed by Bug 766661, and it highlighted
that we're missing test coverage for this, so this
test is adding a test case to prevent future breakage.

Differential Revision: https://phabricator.services.mozilla.com/D76676
2020-05-27 14:42:29 +00:00
Daisuke Akatsuka
640c65ed86 Bug 1637641: Add test for the cache mechanism in ResourceWatcher. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D77015
2020-05-28 09:07:17 +00:00
Daisuke Akatsuka
602691271c Bug 1637641: Make multiple listeners can receive proper cached resources. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D76447
2020-05-28 09:07:04 +00:00
Gerald Squelart
fedbac274e Bug 1641149 - Add 'fileio', 'fileioall', 'noiostacks' to about:profiling - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D77013
2020-05-28 01:25:02 +00:00
David Walsh
0e4015ecb8 Bug 1640318 - Disable only JavaScript in the present tab when using the debugger menu r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D76600
2020-05-27 19:57:17 +00:00
Greg Tatum
3802fc82a4 Bug 1640274 - Remove the unused TrackOptimizations profiler; r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D76854
2020-05-27 22:08:49 +00:00
Greg Tatum
ca8ec92461 Bug 1571086 - Remove privacy feature from the profiler; r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D76853
2020-05-27 22:07:57 +00:00
Greg Tatum
db4d917032 Bug 1633855 - Break out the about:profiling features into separate sub-sections; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D76512
2020-05-27 22:07:30 +00:00
Greg Tatum
873a3e02c2 Bug 1633855 - Re-work the experimental definitions for features; r=julienw
This commit changes up the definitions of the presets a bit. I promoted the
allocations work to non-experimental, as it's fairly well supported now in the UI.
Others I demoted to experimental if they were not supported in our current UI,
or flat out don't work.

Differential Revision: https://phabricator.services.mozilla.com/D76511
2020-05-27 22:07:08 +00:00
Greg Tatum
680b9f7324 Bug 1633855 - Clean up some old getSupportedFeatures actor compatibility; r=julienw
This is a drive-by clean-up, as I was touching this code.

Differential Revision: https://phabricator.services.mozilla.com/D76510
2020-05-27 22:06:54 +00:00
prathiksha
f247187965 Bug 1634947 - Update the TLS deprecated error message in Firefox. r=johannh,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D77021
2020-05-27 21:58:30 +00:00
Greg Tatum
8b1305be4b Bug 1634448 - Update the menu button to reflect the current profiler states; r=canaltinova
This patch adjusts the profiler menu button to properly reflect the current state
of the profiler. It doesn't completely match the design spec, as there are a bunch
of CSS rules already in place in the toolbar, and I wanted to keep the changes
simple. It does however, update the UI based on the state of the profiler.

Differential Revision: https://phabricator.services.mozilla.com/D75851
2020-05-26 15:59:59 +00:00
Greg Tatum
b9823e9fb8 Bug 1598734 - Refine background script toggleProfiler and captureProfile commands; r=canaltinova
This patch handles the issue where a user sends two commands two toggle the profiler and/or
capture. This gets the profiler UI in a weird state that usually is just because the UI
is hanging and lagging. This makes the profiler pause state into a "capturing" state.
I did not include a test with the behavior change, as I was worried about intermittent
failures on asserting this behavior.

Differential Revision: https://phabricator.services.mozilla.com/D75850
2020-05-26 15:42:34 +00:00
Greg Tatum
b5e1be1d8d Bug 1634448 - Remove some unused references to the old profiler popup iframe; r=canaltinova
These were left-over from the previous implementation.

Differential Revision: https://phabricator.services.mozilla.com/D75849
2020-05-26 15:42:20 +00:00
Itiel
9df9994234 Bug 1641066 - Force LTR the console sidebar contents r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D76938
2020-05-27 13:18:04 +00:00
David Walsh
71202aa381 Bug 1640940 - Better vertically align scopes properties while keeping string integrity r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D76862
2020-05-27 14:45:58 +00:00
Julian Descottes
3f3837ccf9 Bug 1641162 - Use an array of types as argument for TargetList::getAllTargets r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D77003
2020-05-27 13:54:35 +00:00
Nicolas Chevobbe
550a3cb3f4 Bug 1641151 - Rename ResourceWatcher TYPES to their singular counterpart. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D77030
2020-05-27 13:08:14 +00:00
Nicolas Chevobbe
861b7dcfe7 Bug 1640894 - Rename ResourceWatcher [un]watch to [un]watchResources. r=jdescottes.
This is more consistent with what we have in other watch-like API.

Differential Revision: https://phabricator.services.mozilla.com/D76843
2020-05-27 13:08:14 +00:00
Hubert Boma Manilla
f8a6611a78 Bug 1632112 - Remove query string section from request panel r=Honza
Bug 1632112 - Fixed tests r=honza

Differential Revision: https://phabricator.services.mozilla.com/D76458
2020-05-27 10:00:37 +00:00
Dorel Luca
d78dcfafac Backed out changeset 9036936c1908 (bug 1640099) on dev's request. 2020-05-27 11:54:30 +03:00
Belén Albeza
167b982aff Bug 1639232 - Enable Application panel in Settings and in Menu r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D76850
2020-05-26 17:41:23 +00:00
Daisuke Akatsuka
2c08079491 Bug 1641095: Update MDN compat data. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D76958
2020-05-27 08:15:03 +00:00
Daisuke Akatsuka
ed0553d5b2 Bug 1639454: Introduce OPENED_COUNT and TIME_ACTIVE_SECONDS telemetry for the compatibility panel. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D76261
2020-05-27 07:09:22 +00:00
Julian Descottes
7af155daf4 Bug 1640904 - Force property_error_message_fix in browser_actor_error.js r=nchevobbe
The exception used in this test has different formats depending on the channel.

Differential Revision: https://phabricator.services.mozilla.com/D76887
2020-05-27 05:52:57 +00:00
Yura Zenevich
280d4e0f46 Bug 1640767 - remove old backward compatibility code. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D76777
2020-05-26 19:43:57 +00:00
Bogdan Tara
289f25408c Backed out changeset 2cb92b52fb42 (bug 1639454) for telemetry related bustages CLOSED TREE 2020-05-27 02:18:35 +03:00
Daisuke Akatsuka
36563c2de3 Bug 1639454: Introduce OPENED_COUNT and TIME_ACTIVE_SECONDS telemetry for the compatibility panel. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D76261
2020-05-21 13:28:01 +00:00
Hubert Boma Manilla
5d9dc54a29 Bug 1639751 - Headers polish r=Honza,Itiel
Update with polish recommendations
Fixed failing tests

Differential Revision: https://phabricator.services.mozilla.com/D76609
2020-05-26 20:39:54 +00:00
Micah Tigley
530f61617d Bug 1516805 - Add test that ensures mouse pointer events are not dispatched when touch is enabled. r=bradwerth
Depends on D76764

Differential Revision: https://phabricator.services.mozilla.com/D76864
2020-05-26 18:17:41 +00:00
Nicolas Chevobbe
e84ce16407 Bug 1578174 - Use target and window from which a CSS warning was emitted to get the list of impacted elements. r=rcaliman,ochameau.
In order to retrieve the list of impacted element for a given CSS warning,
we are evaluating a document.querySelector expression,
using the cssSelector we get from the error itself.

But if the warning message comes from an iframe, we are not retrieving the
impacted elements, only items from the top-level document.

By storing the target actor id a message is emitted from directly in the message
itself, we can retrieve the target front, and use it to do the evaluation against
the right target.

This is not enough though, as non-remote frame don't have a dedicated target,
and we'll be back at square one, using the top-level document to do the evaluation.
In order to fix that, we're passing the innerWindowID to the evaluateJSAsync method,
so it can be used on the server to retrieve the window instance we need.

A test is added to ensure this feature works as expected for iframes, and it
passes with or without fission enabled.

Differential Revision: https://phabricator.services.mozilla.com/D75811
2020-05-26 15:50:57 +00:00
Nicolas Chevobbe
8da874d5df Bug 1640814 - Add a targetFront property on each resource. r=ochameau.
This will allow resource consumers to have a direct access to the target front
a resource was issued from.
At the moment we only use it in the console, where the targetFront is placed
on the console messages.

Differential Revision: https://phabricator.services.mozilla.com/D76790
2020-05-26 15:49:20 +00:00
Belén Albeza
0af9f70730 Bug 1635403 - Part 4: Do not push about:debugging plug to the bottom r=jdescottes
Depends on D75573

Differential Revision: https://phabricator.services.mozilla.com/D75576
2020-05-26 14:44:22 +00:00
Belén Albeza
7e1cc74d9d Bug 1635403 - Part 3: Fix icons in workers page when width is too thin r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D75573
2020-05-26 14:42:51 +00:00
Belén Albeza
c500bc4c2c Bug 1635403 - Part 2: Place the unregister button in different locations depending on layout r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D75571
2020-05-26 14:41:47 +00:00
Belén Albeza
4612ac49b5 Bug 1635403 - Part 1: Implement responsive layout at app/sidebar/page level r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D75555
2020-05-26 14:40:54 +00:00
David Walsh
766ba1fca9 Bug 1639760 - Add separator before devtools settings icon r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D76257
2020-05-26 13:20:38 +00:00
Hubert Boma Manilla
542b35b680 Bug 1639387 - Wrap the values use all the space r=Honza
Wrap the values of the header properties
Cleanup css

Differential Revision: https://phabricator.services.mozilla.com/D76231
2020-05-26 07:08:29 +00:00
Nicolas Chevobbe
e57ba49236 Bug 1640140 - Fix rendering of very large regexp. r=Honza.
If the displayString of the RegExp is very long (>10,000 chars),
it is returned as a longString grip, and it was making the regexp
reps to throw.
This patch fixes this issue and adds a test to ensure we deal with
these kind of objects now.

Depends on D76673

Differential Revision: https://phabricator.services.mozilla.com/D76674
2020-05-25 10:32:46 +00:00
Nicolas Chevobbe
9d3872eea6 Bug 1640572 - Add Error boundaries to Eager Evaluation component. r=bomsy.
This will prevent the Eager Evaluation component to crash the whole console
when there's an issue in its render function.

Differential Revision: https://phabricator.services.mozilla.com/D76673
2020-05-25 19:16:36 +00:00
Daisuke Akatsuka
ce440098b3 Bug 1639166: Add test that checks to update after selecting the panel again. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D76656
2020-05-26 01:43:44 +00:00
Daisuke Akatsuka
2244e12045 Bug 1639166: Avoid updating if no changes. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D76655
2020-05-26 01:43:42 +00:00
Emilio Cobos Álvarez
b68f73c01a Bug 1635675 - Implement the ::file-chooser-button pseudo-element. r=jwatt
As per https://github.com/w3c/csswg-drafts/issues/5049.

Don't enable it unconditionally just yet, as the name may change.

I had to move some rules in forms.css because otherwise you get
specificity conflicts.

Differential Revision: https://phabricator.services.mozilla.com/D76214
2020-05-25 23:54:10 +00:00
Julian Descottes
b27b79da1e Bug 1639111 - Show the filename, line and column for DevTools actor errors r=davidwalsh,ochameau
Depends on D75902

Differential Revision: https://phabricator.services.mozilla.com/D75904
2020-05-25 17:13:59 +00:00
Julian Descottes
037cce6256 Bug 1639111 - Fallback on error.name in DevTools actor error handling r=davidwalsh,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D75902
2020-05-25 16:29:24 +00:00
Emilio Cobos Álvarez
462a4cc4d8 Bug 1640631 - Make ::marker styles not show up for elements that aren't list items. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D76699
2020-05-25 13:33:05 +00:00
Hubert Boma Manilla
c6109674e2 Bug 1640566 - Fix issue with the cache style having priority over the block style r=Honza
The blocked request style should have priority
When selected the theme selected style should still have priority

Differential Revision: https://phabricator.services.mozilla.com/D76684
2020-05-25 13:44:22 +00:00
Mihai Alexandru Michis
6f4fa0a560 Backed out 2 changesets (bug 1639111) for causing failures in browser_actor_error.js
CLOSED TREE

Backed out changeset 2964f445c2f5 (bug 1639111)
Backed out changeset 84be772b9ac4 (bug 1639111)
2020-05-25 16:34:55 +03:00
Julian Descottes
5c31755a29 Bug 1639111 - Show the filename, line and column for DevTools actor errors r=davidwalsh,ochameau
Depends on D75902

Differential Revision: https://phabricator.services.mozilla.com/D75904
2020-05-25 12:49:10 +00:00
Julian Descottes
3f4b9917d4 Bug 1639111 - Fallback on error.name in DevTools actor error handling r=davidwalsh,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D75902
2020-05-25 12:48:32 +00:00
Sylvestre Ledru
5742ac0cf7 Bug 1640532 - devtools: fix some typos in the localization files r=Gijs,nchevobbe
Note that there is a typo in the identifier.

Differential Revision: https://phabricator.services.mozilla.com/D76636
2020-05-25 10:01:02 +00:00
Narcis Beleuzu
07db232be7 Backed out 2 changesets (bug 1639111) for mochitest failures on test_preference.html . CLOSED TREE
Backed out changeset 7ca3266213e7 (bug 1639111)
Backed out changeset 55df4479027c (bug 1639111)
2020-05-25 13:54:06 +03:00
Narcis Beleuzu
973d9eb6a0 Backed out changeset 82df6f70ec60 (bug 1635675) for lint failure on file-chooser-button-001.tentative.html . CLOSED TREE 2020-05-25 13:49:39 +03:00
Emilio Cobos Álvarez
a39a3a3807 Bug 1635675 - Implement the ::file-chooser-button pseudo-element. r=jwatt
As per https://github.com/w3c/csswg-drafts/issues/5049.

Don't enable it unconditionally just yet, as the name may change.

I had to move some rules in forms.css because otherwise you get
specificity conflicts.

Differential Revision: https://phabricator.services.mozilla.com/D76214
2020-05-21 12:27:54 +00:00
Emilio Cobos Álvarez
dcec1f3697 Bug 1639852 - Don't collect pseudo-element rules for pseudo-elements that cannot apply. r=rcaliman
This prevents showing e.g. ::cue pseudo-elements for elements that are
not videos, and such.

This is useful on its own, but it's going to be even more useful because
I'm making some rules in the UA sheets less specific in the blocking
bugs.

For example, after my patches, the number of expected rules in
test_styles-applied was 24 (instead of 9 with this patch). That's just
too much noise.

Differential Revision: https://phabricator.services.mozilla.com/D76308
2020-05-25 10:17:05 +00:00
Julian Descottes
a7ea81cc29 Bug 1639111 - Show the filename, line and column for DevTools actor errors r=davidwalsh,ochameau
Depends on D75902

Differential Revision: https://phabricator.services.mozilla.com/D75904
2020-05-25 09:47:23 +00:00
Julian Descottes
70687eecfb Bug 1639111 - Fallback on error.name in DevTools actor error handling r=davidwalsh,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D75902
2020-05-25 09:46:57 +00:00
Daisuke Akatsuka
411ce6fdc9 Bug 1639135: Add test for uniqueness of default browsers. r=rcaliman
Depends on D76645

Differential Revision: https://phabricator.services.mozilla.com/D76646
2020-05-25 09:35:34 +00:00
Daisuke Akatsuka
77349bcc21 Bug 1639135: Address browser data that have the same id and status. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D76645
2020-05-25 09:36:41 +00:00
Narcis Beleuzu
ca59ca3100 Backed out changeset d45a9f533b34 (bug 1636192) for xpcshell crashes on test_xpcshell_debugging.js . CLOSED TREE 2020-05-25 12:06:48 +03:00
Narcis Beleuzu
9e455ab006 Backed out changeset 4d792dc91673 (bug 1639387) for dt failure on browser_net_decode-params.js . CLOSED TREE 2020-05-25 12:03:50 +03:00
Alexandre Poirot
0cc17a66e7 Bug 1636192 - Clean Content process Target actor on process shutdown. r=nchevobbe
Before this patch, we were not trying to cleanup anything when the process
was known to be in process of destruction. We assumed that everything would
be cleaned up anyway.
But mochitest is actually asserting that nothing is leaked on process shutdown,
and we are easily leaking many thing when not destroying the target actor!

Differential Revision: https://phabricator.services.mozilla.com/D76156
2020-05-25 06:29:51 +00:00
Hubert Boma Manilla
a02f72ce5d Bug 1639387 - Wrap the values use all the space r=Honza
Wrap the values of the header properties
Cleanup css

Differential Revision: https://phabricator.services.mozilla.com/D76231
2020-05-25 07:03:57 +00:00
Harald Kirschner
8ccedc34a5 Bug 1628194 - Updated DevTools WN panel r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D76654
2020-05-25 07:13:51 +00:00
Jan Odvarko
6f2dc9967c Bug 1640099 - imported patch always-set-reason.diff r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D76448
2020-05-22 16:04:16 +00:00
Mihai Alexandru Michis
37ef8a125d Backed out changeset a845717e4d10 (bug 1482279) for causing multiple failures.
CLOSED TREE
2020-05-23 02:22:20 +03:00
Masatoshi Kimura
0701e89b7e Bug 1482279 - Stop using Cu.forcePermissiveCOWs() in SpecialPowers. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D74641
2020-05-22 21:46:25 +00:00
Andreea Pavel
7d3453d716 Bug 1607569 - disable browser_console_webconsole_private_browsing.js on on linux18.04 fission debug r=jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D76520
2020-05-22 21:54:51 +00:00
Junior Hsu
99cc4bf60e Bug 1638313 - allow origin for testing which is not supposed to be blocked by CORS, r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D76431
2020-05-22 06:24:20 +00:00
Hubert Boma Manilla
dbad6c61d5 Bug 1639962 - Fix the network headers panel in the console r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D76463
2020-05-22 13:18:56 +00:00
Julian Descottes
839278ac34 Bug 1621337 - Add support for service workers in target-list r=ochameau
Depends on D74701

Differential Revision: https://phabricator.services.mozilla.com/D74700
2020-05-22 06:48:14 +00:00
Julian Descottes
1465bfa0c4 Bug 1621337 - Add an option to workers listener to only listen to sw registrations r=ochameau
Depends on D74699

Differential Revision: https://phabricator.services.mozilla.com/D74701
2020-05-22 06:48:07 +00:00
Julian Descottes
0eaaeb886a Bug 1621337 - Check if existingTargets is still defined when processing listWorkerChanged r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D74699
2020-05-22 06:46:31 +00:00
Cosmin Sabou
7edad96abe Bug 1609024 - Un-skip browser_layoutHelpers.js on Linux as the test is fixed. a=test-only 2020-05-21 22:57:47 +03:00
Nicolas Chevobbe
645e4e3c37 Bug 1639305 - Fix beta simulation failure in browser_webconsole_promise_rejected_object.js. r=evilpie.
The javascript.options.asyncstack pref is needed for unhandled
rejected promises messages to have a stacktrace.

Differential Revision: https://phabricator.services.mozilla.com/D76151
2020-05-20 18:15:24 +00:00
Nicolas Chevobbe
3236f8030e Bug 1578594 - Unskip browser_webconsole_warning_group_multiples.js on fission. r=ladybenko.
The test seems to run fine on fission, so let's run it.

Differential Revision: https://phabricator.services.mozilla.com/D75771
2020-05-21 15:40:49 +00:00
Emilio Cobos Álvarez
7b19f0d6d4 Bug 1609024 - Remove cache mechanism which is not very useful. r=hiro,snorp,mccr8
I don't think all this complexity is worth it for having a
marginally-more-realistic testing story. Using the pref just works and we should
do that, I think.

Differential Revision: https://phabricator.services.mozilla.com/D59980
2020-05-21 17:02:06 +00:00
Yura Zenevich
3e86175a52 Bug 1638427 - pass highlight/unhilight props to accessibility panel components instead of using the accessibility walker directly. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D75961
2020-05-20 16:42:06 +00:00
Hubert Boma Manilla
0bbe804ad9 Bug 1637955 - Fix vertical scrolling regresstion in the response panel r=Honza
- Fix the 1px scrollbar issue in the headers panel
 - Allow scrolling for the properties view in the response panel

Differential Revision: https://phabricator.services.mozilla.com/D75671
2020-05-21 06:34:00 +00:00
Boris Chiou
599c6939d9 Bug 1635939 - Let aspect-ratio (css-sizing-4) support 'auto | <ratio>'. r=emilio
In order to test its parsing and serialization, we expose it but protect
it behind a pref.

Besides, I would like to drop layout.css.aspect-ratio-number.enabled in
the next patch because the spec has been updated. It seems we don't have
to keep this pref and we should always use Number.

Differential Revision: https://phabricator.services.mozilla.com/D74955
2020-05-21 06:45:10 +00:00
Jason Laster
6eb3d3d81b Bug 1630776 - Framework groups should be split by async separators. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D71433
2020-05-20 20:53:40 +00:00
Jason Laster
9f485e4904 Bug 1608078 - Stepping out of async function doesnt work properly. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D75235
2020-05-20 22:22:31 +00:00
Csoregi Natalia
c7fbe6575e Backed out changeset 7050d098119c (bug 1608078) for failures on test_stepping-12.js. CLOSED TREE 2020-05-20 23:43:52 +03:00
Jason Laster
eeb896255a Bug 1608078 - Stepping out of async function doesnt work properly. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D75235
2020-05-20 17:53:37 +00:00
David Walsh
067bb4ea4c Bug 1639420 - Code cleanups to breakpoint component r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D76077
2020-05-20 15:33:44 +00:00
Jason Laster
ddfc35cb4f Bug 1639375 - Polish inline preview label styling. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D76059
2020-05-20 15:19:16 +00:00
David Walsh
91b425cd78 Bug 1639088 - Capitalize debugger settings menu items r=Harald,jlast
Differential Revision: https://phabricator.services.mozilla.com/D75972
2020-05-20 01:09:59 +00:00
Hubert Boma Manilla
75174d81e5 Bug 1636804 - Remove quotes and escaping for header sections r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D76111
2020-05-20 14:41:00 +00:00
Kriyszig
781894a0f8 Bug 1635768 - Moved MDNCompatibility library to devtools/shared r=mtigley,daisuke
The MDNCompatibility library will be shared between the upcoming
Compatibility Actor and the Compatibility Panel in the inspector.
This library is necessary for tests in Compatibility Panel and
hence is being moved to the devtools/shared looking at it's
requirements in client as well as the devtools/server/actors

Differential Revision: https://phabricator.services.mozilla.com/D75998
2020-05-20 12:54:10 +00:00
Dão Gottwald
0843f2e08c Bug 1638067 - Stop setting toolkit.cosmeticAnimations.enabled in browser_console_webconsole_ctrlw_close_tab.js. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D76113
2020-05-20 11:27:44 +00:00
Kriyszig
055d9db743 Bug 1636385 - Disable context menu options if blocking is enabled/disabled for all URL in Network Blocking Panel r=bomsy
The context menu of the network blocking panel have options to
 "Enable all" and "Disable all" for enabling and disbaling all the
 patters in the request blocking panel at once.
 This patch disables those options in case all the URLs are already
 enabled or disabled. Having the buttons active all the time might
 lead to confusing situtaions especially with long blocking pattern
 list where it may lead the user to think there is a URL that has not
 been enabled/disabled eve after clicking the menu option.

Differential Revision: https://phabricator.services.mozilla.com/D75247
2020-05-20 09:23:41 +00:00
Daisuke Akatsuka
88c41c11df Bug 1637562: Add test for ignoreExistingResources flag for platform messages. r=ochameau,nchevobbe
Depends on D75750

Differential Revision: https://phabricator.services.mozilla.com/D75751
2020-05-20 08:16:32 +00:00
Daisuke Akatsuka
7d34979f10 Bug 1637562: Add test for ignoreExistingResources flag for error messages. r=ochameau,nchevobbe
Depends on D75749

Differential Revision: https://phabricator.services.mozilla.com/D75750
2020-05-20 08:16:18 +00:00
Daisuke Akatsuka
ee259eff28 Bug 1637562: Add test for ignoreExistingResources flag for console messages. r=ochameau,nchevobbe
Depends on D75748

Differential Revision: https://phabricator.services.mozilla.com/D75749
2020-05-20 08:16:04 +00:00
Daisuke Akatsuka
6c3dbf2ff0 Bug 1637562: Add test for ignoreExistingResources flag for document events. r=ochameau,jdescottes
Depends on D75747

Differential Revision: https://phabricator.services.mozilla.com/D75748
2020-05-20 08:15:55 +00:00
Daisuke Akatsuka
95b8c0340d Bug 1637562: Introduce 'ignoreExistingResources' flag in order to ignore existing resources. r=ochameau,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D75895
2020-05-20 08:15:22 +00:00
Jan Odvarko
57247ea89d Bug 1638471 - imported patch ext-name.diff r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D75903
2020-05-20 00:12:24 +00:00
Farooq AR
8ab834d565 Bug 1636420 - Connect SSE actor to the Message panel. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D75792
2020-05-20 06:02:42 +00:00
Daisuke Akatsuka
25024d453e Bug 1639231: Send utm parameters. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D76084
2020-05-20 05:54:18 +00:00
Dan Glastonbury
b4dde7ce2a Bug 1633459 - Marshal customUserAgent setting via nsDocShell. r=geckoview-reviewers,esawin,nika
Reinstate customUserAgent interface for nsIDocShell. This is so it can be used
as a choke-point to catch setting values on docshells which are in the process
of changing process. We don't want to send changes which will be rejected on the
parent side.

This code should be removed once callers setting customUserAgent are refactored
to only occur from parent process.

Differential Revision: https://phabricator.services.mozilla.com/D75006
2020-05-20 00:19:59 +00:00
Luke Swiderski
7cdabe3c51 Bug 1576192 - Add line-height: 20px to .inline-preview r=jlast
Added line-height of 20px to .inline-preview, inline-preview no longer overlaps debug line.

Differential Revision: https://phabricator.services.mozilla.com/D69397
2020-05-19 22:31:35 +00:00
Greg Tatum
5c9b8bef77 Bug 1634542 - Add a test for the private browsing popup support; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D75602
2020-05-18 14:49:17 +00:00
Greg Tatum
2b35eaf09a Bug 1634542 - Teach the profiler popup about private browsing; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D75601
2020-05-18 14:35:15 +00:00
Sebastian Zartner
19d52149f6 Bug 1309824 - Show proper descriptions for storage types. r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D70663
2020-05-19 17:24:06 +00:00
David Teller
49d5a4d3b4 Bug 1636089 - ActorManagerParent.addJSProcessActors;r=kmag,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75047
2020-05-19 16:29:36 +00:00
Itiel
adba063887 Bug 1638886 - [RTL] Fix misaligned eye icon in the simulation section in the Accessibility panel r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D75813
2020-05-19 16:29:34 +00:00
Julian Descottes
d23f8dc9a3 Bug 1637793 - Wait for requests to settle in 3 intermittent tests involving debugger r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D75755
2020-05-19 16:04:12 +00:00
Neil Deakin
5846219ee4 Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-19 13:42:41 +00:00
Hubert Boma Manilla
314c8af199 Bug 1631295 - Added a UrlPreview component for the Headers panel r=Honza
This is needs a few things to complete, but is ready for gathering initial feedback
 - Added a new Url Preview Component
 - Refactored the UX for the summary sections
 Todo
 - Fix the tests
 - Fix Console errors
 - Cleanups
 - Rebase over D71916 after that lands

Differential Revision: https://phabricator.services.mozilla.com/D73192
2020-05-19 11:08:32 +00:00
Bogdan Tara
d7a0ca85b2 Backed out changeset e4208dfc006f (bug 1636420) for test_protocol_index.js failures CLOSED TREE 2020-05-19 16:03:07 +03:00
Farooq AR
b86d20d213 Bug 1636420 - Connect SSE actor to the Message panel. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D75792
2020-05-19 12:04:12 +00:00
Andy Wingo
30a359cb06 Bug 1628352 - Update wasmparser to version 0.14.0 r=yury
Differential Revision: https://phabricator.services.mozilla.com/D75799
2020-05-18 15:01:58 +00:00
Kriyszig
9607e394bf Bug 1596091 - RFC: Adding drag and drop feature to block URL in netmonitor r=Honza,Harald,bomsy
Drag and drop is a nice little feature to have to add URL to blocked
list. Current implementation allows for blocking the URL from the
context menu but drag and drop is a nifty little feature for
convenience.
Current implementation will only allowed an unblocked URL to be
dragged and dropped. The dragging is blocked is the network
blocking panel isn't opened.
Note: This is just an RFC. @Harald had raised a question of
discoverabilty of the feature given there are no other elements
that can be dragged and dropped within the network monitor. This
is just a proposal to see if it's addition is beneficial.

Differential Revision: https://phabricator.services.mozilla.com/D74535
2020-05-18 13:43:47 +00:00
manas
ca8cca32cb Bug 1631230 - Remove crop property. r=Honza,bradwerth,bomsy
In network analysis in Netmonitor, the headers are being cropped, even when there is space available. This is due to the `cropLimit` property. In this revision, the `cropLimit` property is removed so that the headers take up all available space.

Differential Revision: https://phabricator.services.mozilla.com/D75688
2020-05-18 22:30:46 +00:00
Kyle Knaggs
4fc0b71713 Bug 1636798 - Check tabs instead of source when displaying pretty print icon r=davidwalsh
Added a new hasPrettyTab() selector function.
Renamed the function and prop in SourcesTreeItem to reflect the new hasPrettyTab() selector function.
Updated the snapshot test for the pretty print icon.

Differential Revision: https://phabricator.services.mozilla.com/D75733
2020-05-18 19:13:58 +00:00
Nicolas Chevobbe
3c8cacaa5b Bug 1638533 - Add (in promise) suffix for uncaught rejected promise. r=davidwalsh.
Now that nsIScriptError have a `isPromiseRejection` flag, we can consume it
in the console to indicate to the user that we're dealing with a promise rejection.
The exception message is then: "Uncaught (in promise) XXX".
A few tests needed to be updated, and we take this as an opportunity to
ensure we have a stacktrace for uncaught promise rejection.

Differential Revision: https://phabricator.services.mozilla.com/D75780
2020-05-18 14:34:33 +00:00
Nicolas Chevobbe
3af1e56b63 Bug 1421659 - Keep console output pinned to bottom when resizing. r=bomsy.
When resizing the output, if the height was modified, the scrollbar position
was updated and could lose its pinned-to-bottom state.
This patch adds a resizeObserver to the console output node, where we
scroll the output to the bottom if it's needed.
In order to be able to do that, some changes were done in how we were
detecting that the output was pinned to the bottom.
We now have an intersection observer on the last message element,
which flips a flag when the element isn't intersecting the viewport
anymore.
Some test cases are added to ensure the console has the expected
behavior in different situations.

Depends on D74708

Differential Revision: https://phabricator.services.mozilla.com/D75297
2020-05-18 12:44:07 +00:00
Emilio Cobos Álvarez
f0953195ce Bug 1636998 - Make ::-moz-focus-outer a no-op, and remove it on Nightly. r=jwatt
See https://bugzilla.mozilla.org/show_bug.cgi?id=932410#c2 for the
context for which this pseudo-element was added.

In the previous patch, I had to special-case range appearance because of
this pseudo-class, but that patch makes this pseudo-class completely
redundant, as now all form controls, themed and unthemed, display
outlines, unless the native theme displays a focus indicator on its own.

Remove the special case, and make ranges use outlines like everything
else rather than this bespoke pseudo-element.

Differential Revision: https://phabricator.services.mozilla.com/D74734
2020-05-18 10:54:16 +00:00
Csoregi Natalia
08fa2d05ed Backed out 2 changesets (bug 1546394) for devtools failures with getBlockedUrls. CLOSED TREE
Backed out changeset 0365ee129bc0 (bug 1546394)
Backed out changeset 1b05fad0314a (bug 1546394)
2020-05-18 13:33:42 +03:00
Csoregi Natalia
f6ee95862e Backed out changeset 62ad26fbfaf8 (bug 1636998) for reftest failures on 1174332-1.html. CLOSED TREE 2020-05-18 13:31:56 +03:00
Samarjeet
e4cce8b4ad Bug 1546394: Netmonitor load blockedurls r=nchevobbe,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D72669
2020-05-18 09:10:09 +00:00
Samarjeet
bf742a9699 Bug 1546394 Adds :block <url> command similar to netmonitor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D69803
2020-05-15 10:58:38 +00:00
Emilio Cobos Álvarez
36b46408b8 Bug 1636998 - Make ::-moz-focus-outer a no-op, and remove it on Nightly. r=jwatt
See https://bugzilla.mozilla.org/show_bug.cgi?id=932410#c2 for the
context for which this pseudo-element was added.

In the previous patch, I had to special-case range appearance because of
this pseudo-class, but that patch makes this pseudo-class completely
redundant, as now all form controls, themed and unthemed, display
outlines, unless the native theme displays a focus indicator on its own.

Remove the special case, and make ranges use outlines like everything
else rather than this bespoke pseudo-element.

Differential Revision: https://phabricator.services.mozilla.com/D74734
2020-05-18 07:59:32 +00:00
Nicolas Chevobbe
5a8027aef4 Bug 1631775 - Make the structure of cached messages the same as live ones. r=Honza.
There was no benefit of having cached messages being different from the "live" ones,
so in this patch we make the message packet consistent.
A few tests had to be modified, and we still handle old-style cached
messages for backward compatibility.

Differential Revision: https://phabricator.services.mozilla.com/D75089
2020-05-18 07:32:02 +00:00
Nicolas Chevobbe
7893beb674 Bug 1637969 - Fix React key error in Error rep. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D75304
2020-05-18 07:19:55 +00:00
Daisuke Akatsuka
af95b72695 Bug 1637561: Introduce dictionary argument to 'watch' function. r=ochameau,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D75482
2020-05-18 08:31:30 +00:00
Hubert Boma Manilla
e33974fa12 Bug 1636769 - Make sure code mirror instance exists for the update r=Honza
Lets mke sure the code mirror instance exists before trying to update the
 mode or the text

Differential Revision: https://phabricator.services.mozilla.com/D75677
2020-05-18 07:04:30 +00:00
Nicklas Boman
4f2fa0cfa7 Bug 1515419 - fixing ToNewCString (and ToNewUnicode as well) xpcom/string/nsReadableUtils.cpp r=froydnj,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D17411
2020-05-17 06:58:48 +00:00
wartmanm
b4b0c1dd1e Bug 1536857 - Map scopes for Logpoints r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D70226
2020-05-17 05:07:18 +00:00
David Walsh
03b5f8b62f Bug 1574903 - Update remote debugging tooltip in the settings panel r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D75623
2020-05-16 06:54:15 +00:00
Tom Schuster
ae02d94f29 Bug 1636590 - Update devtools page stubs. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D74603
2020-05-15 20:18:10 +00:00
David Walsh
5cb50223f3 Bug 1617240 - Add reload button for remote debugging r=daisuke,flod,victoria
Differential Revision: https://phabricator.services.mozilla.com/D71370
2020-05-15 16:29:48 +00:00
Hubert Boma Manilla
0c0c25456f Bug 1636394 - Hide response headers for blocked requests r=nchevobbe
Seems like a regression.

As there are actually no responses for blocked requests, this
hides the response headers section when there are no responses.

Also undoing the light gray color on the header titles To fix , Bug 1636917

Differential Revision: https://phabricator.services.mozilla.com/D74410
2020-05-14 18:18:59 +00:00
David Walsh
2048225636 Bug 1631975 - Add settings controls to DevTools debugger r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D73380
2020-05-15 16:42:31 +00:00
Nicolas Chevobbe
2834d00a38 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 16:03:32 +00:00
Julian Descottes
91c02a6412 Bug 1638290 - Update try syntax for DAMP in the devtools documentation r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D75530
2020-05-15 15:03:04 +00:00
Razvan Maries
f5f48cab39 Backed out changeset 3c239920e8fb (bug 1636924) for perma failures on browser_ext_devtools_inspectedWindow.js CLOSED TREE 2020-05-15 15:33:15 +03:00
Andreea Pavel
9257ea9bef Backed out 2 changesets (bug 1594752) for causing bug 1638148 on a CLOSED TREE
Backed out changeset 66cc44b67170 (bug 1594752)
Backed out changeset e781cf38f088 (bug 1594752)
2020-05-15 13:47:49 +03:00
Nicolas Chevobbe
8140fccf69 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 09:09:28 +00:00
Xidorn Quan
3eaf4644b5 Bug 1276537 part 4 - Remove now-useless fullscreenbutton attribute. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D74557
2020-05-13 12:43:27 +00:00
Daisuke Akatsuka
80d3b6bc61 Bug 1633850: Use the loading policy to restrict networks of StyleEditor. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D75466
2020-05-15 06:31:06 +00:00
Daisuke Akatsuka
6bd4831b79 Bug 1637540: Add test for a property defined with prefix. r=rcaliman
Depends on D75256

Differential Revision: https://phabricator.services.mozilla.com/D75257
2020-05-14 18:19:42 +00:00
Daisuke Akatsuka
bcb5bd2ded Bug 1637540: Avoid comparing with perfix if the compat data is defined with prefix. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D75256
2020-05-15 00:27:37 +00:00
Razvan Caliman
c85367f9d5 Bug 1623988 - Extract CSS variables used in a CSS declaration for quick reference r=jdescottes
Inspecting pages with many CSS variables makes DevTools Inspector very slow.
For example, try to inspect an element on [youtube.com](https://www.youtube.com/).

One of the stylesheets loaded by youtube.com contains more than 7800 CSS rules (it's 55K lines long). Some of them specify a very large number of CSS variable delcarations on `:root` which will be inherited by all nodes on the page. This is a perf bottleneck for DevTools.
{F2150398}

Whenever an element is selected, its matching CSS declarations show in the Rules view. If the node inherits CSS variables, for **each declaration**, the Rules view checks if the [variables apply to the current declaration](https://searchfox.org/mozilla-central/rev/2bfe3415fb3a2fba9b1c694bc0b376365e086927/devtools/client/inspector/rules/models/element-style.js#403-408,417,424).

This among other expensive operations which are repeated for each declaration. But for CSS variables, it's particularly slow given the frequent [checks with a regular expression](https://searchfox.org/mozilla-central/rev/2bfe3415fb3a2fba9b1c694bc0b376365e086927/devtools/client/inspector/rules/utils/utils.js#292-295) to verify if a CSS declaration's value includes any references to a given CSS variable name.

This patch introduces new functionality. When a `TextProperty` (aka CSS declaration model) is created on the client, the names of CSS variables found in its value are extracted ahead of time into a `Set`. Whenever we want to check if the declaration uses a certain CSS variable name, we check against this pre-compiled list instead of verifying the string value every time. For high volume checks, like the ones done by the `ElementStyle`, this approach proves significantly faster.

Profile without this patch: https://bit.ly/2Yd7khD
Profile with this patch: https://bit.ly/3aMhJTZ

There are still many optimizations that can be done, but the `hasCSSVariable()` method is no longer a performance bottleneck.

Differential Revision: https://phabricator.services.mozilla.com/D73062
2020-05-14 18:20:00 +00:00
Nicolas Chevobbe
003ec9e5de Bug 1637983 - Replace Slack links by Matrix in documentation. r=jdescottes.
We take this as an opportunity to remove
outdated information in aboutdebugging readme.

Differential Revision: https://phabricator.services.mozilla.com/D75314
2020-05-14 14:57:15 +00:00
Belén Albeza
3f4d65a8af Bug 1635401 - Part 4: Fix about:debugging link appearance r=jdescottes
Depends on D74668

Differential Revision: https://phabricator.services.mozilla.com/D74679
2020-05-13 12:20:32 +00:00
Belén Albeza
9bf989a899 Bug 1635401 - Part 3: Fix registration scope appearance r=jdescottes
Depends on D74659

Differential Revision: https://phabricator.services.mozilla.com/D74668
2020-05-12 15:49:02 +00:00
Belén Albeza
d55a12f74c Bug 1635401 - Part 2: add colored dot to mark service worker state r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D74659
2020-05-12 15:47:54 +00:00
Belén Albeza
e87e86bf59 Bug 1635401 - Part 1: fix font sizes, weights, paddings, margins, etc. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D74656
2020-05-12 15:46:43 +00:00
Jan Odvarko
15fda593b2 Bug 1555057 - Show the related Add-on for blocked resources. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D65452
2020-05-14 08:51:29 +00:00
Farooq AR
2340728c04 Bug 1636417 - Implement EventSourceActor. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D75066
2020-05-14 07:54:18 +00:00
Nicolas Chevobbe
fae6df43c5 Bug 1636995 - Fix scrolling issue with error messages. r=Honza.
The PageError component wasn't passing the maybeScrollToBottom
prop to the GripMessageBody, which was making the console out-of-autoscroll
since the stacktrace is rendered asynchronously.
Some tests cases are added (throwing directly from an evaluation,
or in a setTimeout), so we cover different paths.

Differential Revision: https://phabricator.services.mozilla.com/D74708
2020-05-13 15:42:55 +00:00
Neil Deakin
e11f8b01e0 Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-13 19:26:10 +00:00
Brindusan Cristian
f6e0d86cb5 Backed out changeset 1c4b489b6aa0 (bug 1309824) for dt failures at browser_tableWidget_basic.js. CLOSED TREE 2020-05-14 00:14:16 +03:00
Sebastian Zartner
b5e4795236 Bug 1309824 - Show proper descriptions for storage types. r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D70663
2020-05-13 18:38:02 +00:00
Jason Laster
bedcba7d39 Bug 1619622 - Various fixes after switching processes to the TargetList r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D74240
2020-05-13 14:45:05 +00:00
Jason Laster
c5c9a96e1e Bug 1619622 - Assert the context in various additional places. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D74239
2020-05-13 14:44:57 +00:00
Alexandre Poirot
8919127993 Bug 1619622 - Stop fetching the sources twice. r=jdescottes,jlast
We already do that from actions, once per added thread.
Only the timing may be different.

Differential Revision: https://phabricator.services.mozilla.com/D72686
2020-05-13 15:10:35 +00:00
Alexandre Poirot
80bb55f6f4 Bug 1619622 - Update target/thread individually from the TargetList listeners. r=jdescottes,jlast
Differential Revision: https://phabricator.services.mozilla.com/D72685
2020-05-13 14:44:53 +00:00
Alexandre Poirot
33fed82ffa Bug 1619622 - Use the TargetList to fetch content process targets in the Debugger. r=jdescottes,jlast
Differential Revision: https://phabricator.services.mozilla.com/D65125
2020-05-13 14:44:45 +00:00
David Walsh
3c8142a051 Bug 1637469 - Rename browser_aboutdebugging_navigate_to_url.js test r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D75114
2020-05-13 15:08:31 +00:00
Julian Descottes
38c244e508 Bug 1633748 - Generate console stubs using the ResourceWatcher r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D73443
2020-05-13 12:46:49 +00:00
Christoph Kerschbaumer
026a7442f3 Bug 1636900: Remove TYPE_XBL from nsIContentPolicy. r=remote-protocol-reviewers,emilio,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D74835
2020-05-13 06:53:28 +00:00
Yura Zenevich
2d0b0bc893 Bug 1636490 - rely on garbage collection rather than disabling via UI when testing accessibility panel. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D74411
2020-05-11 17:45:54 +00:00
Micah Tigley
f5ddf2c2d3 Bug 1636348 - Ensure the connection between the about:devtools-toolbox's client and server is closed. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D74467
2020-05-12 17:01:12 +00:00
Nicolas Chevobbe
46d31cc93b Bug 1631529 - Fix intermittent in browser_jsterm_editor_toggle_keyboard_shortcut.js . r=davidwalsh.
The test was failing on ccov machines because it was
timing out. The interesting part is that in the logs
we could see that a huge error was logged, because
we were hitting the IGNORED REDUX ACTION middleware,
which was about a SET_TERMINAL_EAGER_RESULT action
being blocked.
I think that logging this object was taking so much
time that it made the test timeout on slow machines.

So here we're simply waiting for the eager evaluation
result to be displayed, so we know that the action won't
be ignored.

Differential Revision: https://phabricator.services.mozilla.com/D74879
2020-05-12 17:18:46 +00:00
Florens Verschelde
2f778385e8 Bug 1634380 - Part 2: Split devtools-button and legacy devtools-toolbarbutton styles; r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D73495
2020-05-12 13:22:28 +00:00
Florens Verschelde
1fefd1dfc2 Bug 1634380 - Part 1: Flatten CSS variable dependencies for --toolbarbutton variables; r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D73494
2020-05-12 13:22:00 +00:00
Julian Descottes
f3ef81b8c1 Bug 1637012 - Set devtools.browsertoolbox.fission to true in browser_resources_several_resources.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D74828
2020-05-12 12:22:27 +00:00
Alexandre Poirot
718bf89e62 Bug 1620966 - Move DocShell.watchedByDevtools to BrowsingContext and rename it to watchedByDevTools. r=nika,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D66037
2020-05-12 09:18:26 +00:00
Nicolas Chevobbe
f1498ffff6 Bug 1634432 - Enable inspecting error object in sidebar. r=bomsy.
To enable the Open In Sidebar action, we were retrieving the
actor id of the root node of an object inspector.
But in the case of error, we don't use the object inspector
to render them, only the reps.
We still have a reference to the actor id though, so when
there's no object inspector, but that we have an actor id
ref, we enable the action.
A test case is added in a mochitest to ensure this works as
expected for an error object, and that we can observe custom
properties that are not displayed in the error rep.

This also reveiled an issue with React keys in the Error rep,
which we fix in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D73301
2020-05-12 08:34:58 +00:00
Nicolas Chevobbe
90668a72e5 Bug 1607569 - Fix leak in browser_console_devtools_loader_exception. r=ochameau.
In the Browser toolbox destroy function, we now wait for
any pending connection initialization promise.
In the test we close the browser toolbox at the end.
We also need to guard a few method in the connection proxy
to ensure the instances we use are still alive before using
them.

Differential Revision: https://phabricator.services.mozilla.com/D71171
2020-05-12 07:05:27 +00:00
Julian Descottes
f229755908 Bug 1620983 - Disable dom.ipc.processPrelaunch.enabled for all devtools tests r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D74612
2020-05-12 08:24:28 +00:00
Micah Tigley
89c6fbb773 Bug 1629729 - Use BrowserTestUtils.loadURI to navigate to a new URL. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D74721
2020-05-11 20:24:21 +00:00
Bogdan Tara
bf91ff2f3f Backed out changeset 60e4890ac49a (bug 1636348) for browser_aboutdebugging_navigate_to_url.js failures CLOSED TREE 2020-05-12 00:09:23 +03:00
Tom Schuster
7824fc6e57 Bug 1277801 - Remove Object.prototype.toString classname fallback. r=jwalden
Similar to a patch by Robin Templeton <robin@igalia.com>

Differential Revision: https://phabricator.services.mozilla.com/D72459
2020-05-11 20:53:10 +00:00
Boris Chiou
bfdb4fb6ed Bug 1540906 - Disable the pref of synchronizing transform animations with geometric animations on nightly. r=hiro
The original site issue (https://trello.com/) seems not obvious on nightly
now. (See Bug 1301305 for more details.) So perhaps we could give this a
trial to disable this pref, for the better performance in other cases.

Differential Revision: https://phabricator.services.mozilla.com/D74278
2020-05-11 20:40:48 +00:00
Markus Stange
74da9ffadf Bug 1617246 - Always consult objdirs for symbols. r=gregtatum
This moves some symbolication code out of browser.js and into a new module symbolication.jsm.js.

It also threads the pageContext parameter through to getSymbolsFromThisBrowser so that it can
respect the correct objdir pref. This part is probably more complicated than necessary.

Differential Revision: https://phabricator.services.mozilla.com/D63914
2020-05-11 19:52:53 +00:00
Cosmin Sabou
db290306ef Backed out changeset 0be5f9822cad (bug 1607569) because it shouldn't have been landed yet. DONTBUILD 2020-05-11 22:45:34 +03:00
Micah Tigley
0ffb21c838 Bug 1636348 - Ensure the connection between the about:devtools-toolbox's client and server is closed. r=jdescottes
The `browser_aboutdebugging_navigate_to_url.js` test times out if we don't wait for the about:devtools-toolbox tab to be removed as a target from about:debugging.

Differential Revision: https://phabricator.services.mozilla.com/D74467
2020-05-11 13:59:27 +00:00
Nicolas Chevobbe
a2ba8e8d15 Bug 1607569 - Fix leak in browser_console_devtools_loader_exception. r=ochameau.
In the Browser toolbox destroy function, we now wait for
any pending connection initialization promise.
In the test we close the browser toolbox at the end.
We also need to guard a few method in the connection proxy
to ensure the instances we use are still alive before using
them.

Differential Revision: https://phabricator.services.mozilla.com/D71171
2020-05-11 16:50:20 +00:00