Commit Graph

20751 Commits

Author SHA1 Message Date
Hubert Boma Manilla
1718c07f68 Bug 1622925 - Wait for navigate to make sure the page title is available r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D79836
2020-06-18 14:44:36 +00:00
Alexandre Poirot
e5f625b56e Bug 1646143 - Use instantiable classes for resource watchers. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D79882
2020-06-18 10:34:37 +00:00
Alexandre Poirot
31a7c42e44 Bug 1644772 - Avoid an exception when we fail detaching a SW on destroy. r=jdescottes
No idea if that is the real reason why the Browser Toolbox failed opening.
It isn't clear how WorkerTarget detach is implied in toolbox opening?

Differential Revision: https://phabricator.services.mozilla.com/D79159
2020-06-18 10:12:04 +00:00
Alexandre Poirot
1a2600afe4 Bug 1646409 - Remove unecessary gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser); in devtools tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D80152
2020-06-18 09:48:11 +00:00
Nicolas Chevobbe
e7f3831299 Bug 1641554 - Fix scroll to bottom issue when expanding object in console. r=bomsy.
The issue was that we were having a ResizeObserver only on the console output
node. When the output only has a few node, its height is impacted when an
element is expanded.
We fix this by observing the output parent node, which contains both the input
and the output, which prevents the issue.
In editor mode though, we still need to observe only the output element, as
the editor is on the right side.
So when the console changes from editor mode to inline, or the other way around,
we change the observed element.

A test case is added to make sure the issue is fixed. Sadly, this also means
we have to remove a test case (typing a multiline expression in input mode
won't keep the output scroll to the bottom), but it's a tradeoff I'm willing
to make as the issue isn't as annoying as the one we're fixing here.

Differential Revision: https://phabricator.services.mozilla.com/D79961
2020-06-18 07:49:47 +00:00
Emilio Cobos Álvarez
011d524740 Bug 1646336 - Don't unnecessarily lose precision in nsComputedDOMStyle. r=hiro
We're converting to nscoord in some places unnecessarily, reducing the
precision of the computed value we return.

This makes some tests unnecessarily fail if we change the base of
nscoord.

Differential Revision: https://phabricator.services.mozilla.com/D79996
2020-06-18 00:42:47 +00:00
Gijs Kruitbosch
19220a3149 Bug 1644863 - fix trailing whitespace and windows line endings in locale files, r=fluent-reviewers,flod,Pike
Differential Revision: https://phabricator.services.mozilla.com/D79203
2020-06-17 22:46:22 +00:00
Gijs Kruitbosch
d523471eac Bug 1644863 - fix trailing whitespace in browser/toolkit/devtools/mobile frontend code files, r=mossop,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D79201
2020-06-17 22:40:53 +00:00
Julian Descottes
e52e2c32ec Bug 1644870 - Remove removeEventsTopTarget method from debugger codebase r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D79184
2020-06-17 20:01:31 +00:00
Julian Descottes
eddca6ec0a Bug 1639934 - Enable devtools.contenttoolbox.fission by default but gate it behind fission.autostart r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D79849
2020-06-17 19:46:51 +00:00
Kris Maglione
3bda67deab Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-17 17:17:16 +00:00
surya_b
ffd4f25375 Bug 1637842 - Respect prefers-reduced-motion for animation preview in timing function editor. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D79616
2020-06-17 13:03:05 +00:00
Richard Sherman
2f209f56c9 Bug 1631545 - Add better tooltip to Reps. r=nchevobbe
This patch adds title attributes on the different Reps, alongside with a new `shouldRenderTooltip` prop.
The props is only used from the ExpressionPanel in the debugger so far.
Tests are added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D72900
2020-06-17 09:33:03 +00:00
Marco Zehe
1c1f12c84d Bug 1242856 - Add accessibility semantics to the computed styles view, r=gl
This patch does the following:

1. Adds a semantic document role to the computed styles pane. This causes screen readers to treat it as something they can use their reading commands on for better navigation and efficiency.
2. Gives the expansion twisties a button role and a label. I am reusing the labels introduced in an earlier patch.
3. Turns the name portion of each property into a heading so screen reader users can quickly skip between them, regardless of their expanded status or not.
4. Explicitly displays the status for each rule match with visually hidden text because screen readers do not pick up text from titles on simple span elements.
5. Adjusts the visually-hidden class to be more modern and less intrusive.

Differential Revision: https://phabricator.services.mozilla.com/D79673
2020-06-16 16:07:13 +00:00
Nicolas Chevobbe
76fccc6721 Bug 1625910 - Use ResourceAPI for CSS Warning messages.r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D79069
2020-06-16 18:21:22 +00:00
Narcis Beleuzu
971e6397f2 Backed out changeset 9055fd940de5 (bug 1625910) for dt failures on browser_webconsole_location_styleeditor_link.js . CLOSED TREE 2020-06-16 20:52:43 +03:00
Nicolas Chevobbe
43bd5f2873 Bug 1646083 - Fix and add JsDoc in devtools/server/actors/descriptors/watcher/watcher.js. r=ochameau,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D79847
2020-06-16 16:38:11 +00:00
Nicolas Chevobbe
0480240653 Bug 1644185 - Implement Platform Messages listening via the ResourceWatcher API on the actor side. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D79425
2020-06-16 16:37:52 +00:00
Nicolas Chevobbe
49bb11a38e Bug 1645334 - Handle parentProcessTargetActor in WatcherActor. r=jdescottes,ochameau.
In order to handle parentProcessTargetActor in the WatcherActor, we modify
TargetActorRegistry.getTargetActor to return the parent process target when
the passed browsing context id is null.

The comment explaining why we need to call getTargetActor in
WatcherActor#watchResources is modified to better summarize the situation.

We also take this as an opportunity to handle those targets in unwatchResources.

Differential Revision: https://phabricator.services.mozilla.com/D79424
2020-06-16 16:37:09 +00:00
Nicolas Chevobbe
ce5630b4f5 Bug 1625910 - Use ResourceAPI for CSS Warning messages.r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D79069
2020-06-16 10:29:03 +00:00
Julian Descottes
2c4d8f2731 Bug 1641796 - Fix parent-intercept skip-if for browser_dbg-windowless-service-workers r=jlast
Depends on D79059

Differential Revision: https://phabricator.services.mozilla.com/D79060
2020-06-16 14:27:45 +00:00
Julian Descottes
265dbfbb5b Bug 1641796 - Add a debugger test for service worker sources on page reload r=jlast
Depends on D79053

Differential Revision: https://phabricator.services.mozilla.com/D79059
2020-06-16 14:27:43 +00:00
Julian Descottes
f1c719abb7 Bug 1641796 - Add tests for serviceworker navigation in target list r=ochameau
Depends on D79465

Differential Revision: https://phabricator.services.mozilla.com/D79053
2020-06-16 14:26:27 +00:00
Julian Descottes
8511f289c4 Bug 1641796 - Add a flag to disable service worker target destruction on navigation r=ochameau
Depends on D77425

Differential Revision: https://phabricator.services.mozilla.com/D79465
2020-06-16 14:26:01 +00:00
Julian Descottes
0c97ccfbf2 Bug 1641796 - Emit onTargetDestroyed/Available for serviceworker targets when navigating with localTab toolbox r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D77425
2020-06-16 14:06:40 +00:00
Butkovits Atila
3bea9ed088 Backed out 5 changesets (bug 1641796) for causing failure at browser_target_list_service_workers_navigation.js. CLOSED TREE
Backed out changeset 82c01676f8d5 (bug 1641796)
Backed out changeset 9c56dfb36661 (bug 1641796)
Backed out changeset 37ea8e324248 (bug 1641796)
Backed out changeset c48704eb4d3a (bug 1641796)
Backed out changeset b50762e5da7d (bug 1641796)
2020-06-16 13:09:40 +03:00
Julian Descottes
f267aae5ad Bug 1641796 - Fix parent-intercept skip-if for browser_dbg-windowless-service-workers r=jlast
Depends on D79059

Differential Revision: https://phabricator.services.mozilla.com/D79060
2020-06-16 07:56:32 +00:00
Julian Descottes
30d3c6963b Bug 1641796 - Add a debugger test for service worker sources on page reload r=jlast
Depends on D79053

Differential Revision: https://phabricator.services.mozilla.com/D79059
2020-06-16 07:56:14 +00:00
Julian Descottes
072c5a72e7 Bug 1641796 - Add tests for serviceworker navigation in target list r=ochameau
Depends on D79465

Differential Revision: https://phabricator.services.mozilla.com/D79053
2020-06-16 07:55:18 +00:00
Julian Descottes
10c6ab83ff Bug 1641796 - Add a flag to disable service worker target destruction on navigation r=ochameau
Depends on D77425

Differential Revision: https://phabricator.services.mozilla.com/D79465
2020-06-16 07:54:58 +00:00
Julian Descottes
f0287cc47b Bug 1641796 - Emit onTargetDestroyed/Available for serviceworker targets when navigating with localTab toolbox r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D77425
2020-06-16 07:54:40 +00:00
James Teh
9d14fdc961 Bug 1645731: Don't expose the autocomplete popup panel as an alert for accessibility. r=nchevobbe
There was already code to do this, but it was acting on a div instead of the XUL panel.

Differential Revision: https://phabricator.services.mozilla.com/D79635
2020-06-16 06:58:12 +00:00
Kriyszig
a39858820c Bug 1637632 - Add browser tests for the CompatibilityActor r=mtigley,daisuke
Added browser test for CompatibilityActor to check consistency and
correctness.
Thse test include:
* Test for no issue
* Test for simple issue
* Test for invalid CSS rule
* Test for aliases
* Test for browser specific issues
* Test for multiple issues for same element

Differential Revision: https://phabricator.services.mozilla.com/D78956
2020-06-15 23:21:07 +00:00
Kriyszig
0d68d9f541 Bug 1637632 - Create a compatibility actor and connect it to Inspector's Compatibility panel r=mtigley,daisuke,devtools-backward-compat-reviewers
This patch adds a `CompatibilityActor` that calls the MDNCompatibility
library from the devtool server.
This patch exposes `_declarations` from the `StyleRuleActor` and the
a new function `formDeclaration` responsible for populating the
declarations property.
As a check for correctness, the patch replaces the `pageStyle.getApplied`
call in the Compatibility Panel on the client with `compatibility.getNodeCssIssues`
fetching the array of compatibility issues directly and removing the
dependency on MDNCompatibility library for client side computation of
compatibility issues.

Differential Revision: https://phabricator.services.mozilla.com/D77060
2020-06-10 09:09:00 +00:00
Narcis Beleuzu
8b0c5c5de4 Backed out changeset 88d5337be8e0 (bug 1242856) for dt failures on browser_computed_getNodeInfo.js . CLOSED TREE 2020-06-15 19:52:41 +03:00
Andrew Halberstadt
ba07c87114 Bug 1645398 - [ci] Add a SCHEDULES rule to prevent 'android' builds and tests on pushes that exclusively modify files under /devtools, r=gbrown,jlast
In a nutshell, this rule says that if a push only modifies files under "/devtools" then
only run builds and tests that are tagged with "linux", "macosx" or "windows" and skip
all others (which is just "android").

Note it may still be possible to see Android builds and tests as not all tasks use
the 'skip-unless-schedules' optimization, but this should avoid most of them.

Differential Revision: https://phabricator.services.mozilla.com/D79470
2020-06-15 13:38:46 +00:00
Razvan Caliman
b648f4a716 Bug 1645448 - Remove handling code for FlexItemHighlighter which is not implemented. r=gl
While cleaning up and restructuring client-side code to manage highlighters, I discovered that FlexItemHighlighter is not implemented / landed ([Bug 1477614](https://bugzilla.mozilla.org/show_bug.cgi?id=1477614)).
To ease clean-up and review of incoming changes, I am removing this orphaned code. It will be available with this revision if we need to revert it later.

Differential Revision: https://phabricator.services.mozilla.com/D79517
2020-06-15 15:37:43 +00:00
Marco Zehe
b59c6a3e54 Bug 1242856 - Add accessibility semantics to the computed styles view, r=gl
This patch does the following:

1. Adds a semantic document role to the computed styles pane. This causes screen readers to treat it as something they can use their reading commands on for better navigation and efficiency.
2. Gives the expansion twisties a button role and a label. I am reusing the labels introduced in an earlier patch.
3. Turns the name portion of each property into a heading so screen reader users can quickly skip between them, regardless of their expanded status or not.
4. Explicitly displays the status for each rule match with visually hidden text because screen readers do not pick up text from titles on simple span elements.

Differential Revision: https://phabricator.services.mozilla.com/D79673
2020-06-15 14:18:22 +00:00
Nicolas Chevobbe
fe22cc7330 Bug 1632715 - Fix intermittent on devtools/client/webconsole/test/browser/browser_webconsole_navigate_to_parse_error.js . r=ckerschb.
There's no good reason for the message to be duplicated, and it turns out that
this test was actually asserting a bug that occured with CSP violation messages
(see Bug 1645745).
We change the test so it only waits for a single message, which should fix the
intermittent on windows7 (the message wasn't "repeated" but duplicated).

Differential Revision: https://phabricator.services.mozilla.com/D79651
2020-06-15 08:25:31 +00:00
Emilio Cobos Álvarez
ffec6f608b Bug 1643656 - Remove prefers-color-scheme: no-preference. r=gl,remote-protocol-reviewers,hiro,whimboo
It was removed from the spec.

Differential Revision: https://phabricator.services.mozilla.com/D78834
2020-06-14 23:26:04 +00:00
Logan Smyth
25d491b792 Bug 1601179 - Enable async stacks but limit captured async stacks to debuggees. r=jorendorff,smaug
The 'asyncStack' flag on JS execution contexts is used as a general switch
to enable async stack capture across all locations in SpiderMonkey, but
this causes problems because it can at times be too much of a performance
burden to general and track all of these stacks.

Since the introduction of this option, we have only enabled it on Nightly
and DevEdition for non-mobile builds, which has left a lot of users unable
to take advantage of this data while debugging.

This patch enables async stack traces across all of Firefox, but introduces
a new pref to toggle the scope of the actual expensive part of async stacks,
which is _capturing_ them and keeping them alive in memory. The new pref
limits the capturing of async stack traces to only debuggees, unless an
explicit pref is flipped to capture async traces for all cases.

This means that while async stacks are technically enabled, and code could
manually capture a stack and pass it back to SpiderMonkey and see that stack
reflected in later captured stacks, SpiderMonkey itself and related async
DOM APIs, among others, will not capture stacks or pass them to SpiderMonkey,
so there should be no general change in performance by enabling the broader
feature itself, unless the user is actively debugging the page.

One effect of this patch is that if you have the debugger open and then close
it, objects that have async stacks associated with them will retain those
stacks and they will continue to show up in stack traces, no _new_ stacks
will be captured. jorendorff and I have decided that this is okay because
the expectation that the debugger fully revert every possible effect that it
could have on a page is a nice goal but not a strict requirement.

Differential Revision: https://phabricator.services.mozilla.com/D68503
2020-06-14 02:41:45 +00:00
Yura Zenevich
dbf76d8e3e Bug 1598026 - add OOP frame mutation tests. Re-enable oop tree expansion test. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D78596
2020-06-12 17:32:45 +00:00
Nicolas Chevobbe
087df13c27 Bug 1628898 - Fix intermittent on browser_webconsole_output_order. r=loganfsmyth.
Differential Revision: https://phabricator.services.mozilla.com/D79474
2020-06-12 16:13:11 +00:00
Jason Laster
13a9ca307f Bug 1644808 - Remove references to wasmBinarySource. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D79165
2020-06-12 20:28:44 +00:00
Kris Maglione
e4f51c32b7 Bug 1645237: Lazily load JSONView components via static registration. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D79385
2020-06-12 18:48:47 +00:00
Narcis Beleuzu
010f052da8 Bug 1594467 - Fix lint. a=jlast . CLOSED TREE 2020-06-13 00:00:01 +03:00
Marco Zehe
1b32b90556 Bug 1644669 part 2 - Make the flex container view more accessible to screen reader users, r=yzen
This patch does the following:

1. Both the flex-direction and flex-wrap badges are being treated as illustrations, not generic containers, so screen readers immediately pick up the full meaning from the title.
2. Turns the flex item list sub heading into an actual heading for screen readers. It is level 3 because the accordeon headings are all level 2.

Differential Revision: https://phabricator.services.mozilla.com/D79129
2020-06-12 17:39:44 +00:00
Marco Zehe
760479ff25 Bug 1644669 Part 1 - Label the button to return to the flex container view for screen readers, r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D79128
2020-06-12 14:50:30 +00:00
Stepan Stava
7b50798bc1 Bug 1594467 - Add 'Restart frame' r=loganfsmyth
Adds 'Restart frame' context menu item to the Call stack

Differential Revision: https://phabricator.services.mozilla.com/D75620
2020-06-12 18:26:40 +00:00
Jason Laster
d213ae4f61 Bug 1644813 - Remove references to autoBlackbox. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D79167
2020-06-12 18:06:42 +00:00