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

20820 Коммитов

Автор SHA1 Сообщение Дата
Butkovits Atila afbfabf2f0 Backed out changeset b09c7ddea2a4 (bug 1646678) for causing leaks. CLOSED TREE 2020-06-23 11:06:54 +03:00
Nicolas Chevobbe b5493ef467 Bug 1646678 - Allow resource watcher tests to force server side support. r=ochameau.
This is done by getting the value of the `devtools.testing.enableServerWatcherSupport`
preference on the WatcherActor, and using its result to enable the traits or not.
On the browser_resources_* test that have both legacy and server listener, we
run the tests twice, without and with the pref to have some decent coverage.

Differential Revision: https://phabricator.services.mozilla.com/D79983
2020-06-22 12:15:11 +00:00
Narcis Beleuzu b894acb874 Backed out 4 changesets (bug 1646582) for mochitest failures on test_ext_tabs_create.html . CLOSED TREE
Backed out changeset ce5cdfc5d7cf (bug 1646582)
Backed out changeset 2ac69a2b6708 (bug 1646582)
Backed out changeset 74d89cb24414 (bug 1646582)
Backed out changeset 7de0ff1af560 (bug 1646582)
2020-06-23 06:30:03 +03:00
James Teh 316e5c9eca Bug 1646267: In Dev Tools autocompletes, Only rebuild the list a11y clone when the main list changes. r=nchevobbe
Previously, the list clone was completely replaced every time aria-activedescendant was set.
This caused screen readers to extraneously report this as a new list every time the user cursored to a different item, even if the items hadn't changed.

Differential Revision: https://phabricator.services.mozilla.com/D79941
2020-06-23 01:57:52 +00:00
Matt Woodrow 2ee0adfb0e Bug 1646582 - Pull the inner window id from the WindowGlobalParent, rather than passing it across PBrowser for updateForLocationChange. r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80131
2020-06-23 01:24:17 +00:00
Matt Woodrow f851c6be5b Bug 1646582 - Remove RemoteWebProgressManager. r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80129
2020-06-23 01:23:59 +00:00
Sebastian Zartner e6b39abe08 Bug 1646945 - Fixed MDN URLs linked to from the storage types. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D80369
2020-06-22 18:03:57 +00:00
Julian Descottes f1c04a710c Bug 1645017 - Provide URL_ROOT variants for example.net, example.org r=ochameau
When testing fission scenarios in mochitests it can be useful to load test
documents with different TLDs.

Differential Revision: https://phabricator.services.mozilla.com/D80149
2020-06-22 17:19:05 +00:00
Nicolas Chevobbe 1e9044a708 Bug 1646633 - Fix intermittent on browser_storage_cache_error.js. r=jdescottes,ochameau.
This patch removes the browsingContextID getter in favor of creating a property
on the instance in the constructor.
The getter was an attempt to handle the fact that we can have multiple browsing
context over time, but it wasn't working that well, so we'll tackle that as
part of Bug 1625027.

Differential Revision: https://phabricator.services.mozilla.com/D80151
2020-06-22 11:36:32 +00:00
Csoregi Natalia d934cffb58 Bug 1640234 - Disabled browser_application_panel_target-switching.js on Linux and Windows. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D80431
2020-06-22 11:24:35 +00:00
Farooq AR 0884c9f3ce Bug 1636421 - Refactor response panel styles into separate file. r=Honza,bomsy
Depends on D80336

Differential Revision: https://phabricator.services.mozilla.com/D80337
2020-06-21 15:14:29 +00:00
Farooq AR 2aa84458db Bug 1636421 - Merge Message panel with the Response panel. r=Honza,bomsy
MessagesPanel is now MessagesView and it is now rendered in Response panel instead of TabboxPanel.

Depends on D80335

Differential Revision: https://phabricator.services.mozilla.com/D80336
2020-06-21 15:16:08 +00:00
Farooq AR 65668ef1a7 Bug 1636421 - Rename MessagesPanel to MessagesView. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D80335
2020-06-19 16:07:41 +00:00
Tooru Fujisawa 74dfbb2d11 Bug 1647026 - Disallow Array.prototype.fill in eager evaluation. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D80373
2020-06-20 18:59:52 +00:00
Hubert Boma Manilla 43efe182ba Bug 1646940 - block request only when there is a reason or an extension id r=Honza
Temp fix  should land in 79,  uplift to 78, and then remove from 79

Differential Revision: https://phabricator.services.mozilla.com/D80305
2020-06-19 09:36:50 +00:00
Harald Kirschner df0102e3be Bug 1642034 - Update DevTools Whats New for 78 r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D80280
2020-06-18 22:49:48 +00:00
Dorel Luca 83762a1f31 Backed out changeset 40dae06d5e4d (bug 1646678) for Devtools failures in tests/browser_resources_several_resources.js. CLOSED TREE 2020-06-18 23:21:43 +03:00
Nicolas Chevobbe 06852fdbb6 Bug 1646678 - Allow resource watcher tests to force server side support. r=ochameau.
This is done by getting the value of the `devtools.testing.enableServerWatcherSupport`
preference on the WatcherActor, and using its result to enable the traits or not.
On the browser_resources_* test that have both legacy and server listener, we
run the tests twice, without and with the pref to have some decent coverage.

Differential Revision: https://phabricator.services.mozilla.com/D79983
2020-06-18 15:20:14 +00:00
Hubert Boma Manilla 12ac6882be Bug 1644275 - Add a new Channel map r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D79137
2020-06-18 14:44:12 +00:00
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
Yura Zenevich 30512f1f1c Bug 1598026 - only reset panel state on document-ready event of the top level document. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D78595
2020-06-12 17:32:35 +00:00
Yura Zenevich af845d619c Bug 1598026 - keep track of accessibility walkers to ensure that accessibility events get handled across the whole tree, including the OOP frames. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D78552
2020-06-12 17:32:33 +00:00
Yura Zenevich ff9694b163 Bug 1643091 - simplify listening to lifecycle events. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D78197
2020-06-12 17:32:26 +00:00
Yura Zenevich d37e33ce1c Bug 1643086 - clean up reset in MainFrame component. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D78118
2020-06-12 17:32:24 +00:00
Marco Zehe 8ab506f68e Bug 1644693 - Grid accordeon: Give the section headers proper heading roles and levels for better structure, r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D79131
2020-06-12 15:18:40 +00:00
Nicolas Chevobbe f77c6d3593 Bug 1644966 - Change parameter of ContentProcessListener to a function. r=jdescottes.
It used to take an object with only 1 property, a function. The way it was
called in the webconsole actor made it harder to follow than it actually need.
We take that as an opportunity to convert the function to a class.

Differential Revision: https://phabricator.services.mozilla.com/D79294
2020-06-12 14:16:41 +00:00
Nicolas Chevobbe 2afd39c3b3 Bug 1644966 - Change second parameter of ConsoleAPIListener to a function. r=jdescottes.
It used to take an object with only 1 property, a function. The way it was
called in the webconsole actor made it harder to follow than it actually need.
We take that as an opportunity to convert the function to a class.

Differential Revision: https://phabricator.services.mozilla.com/D79252
2020-06-12 10:09:29 +00:00
Nicolas Chevobbe 4f8171b1e1 Bug 1644966 - Change second parameter of ConsoleServiceListener to a function. r=jdescottes.
It used to take an object with only 1 property, a function. The way it was
called in the webconsole actor made it harder to follow than it actually need.
We take that as an opportunity to convert the function to a class.

Differential Revision: https://phabricator.services.mozilla.com/D79249
2020-06-12 10:08:51 +00:00
Paul Adenot 5a606e463e Bug 1626918 - Add the native audio callback thread to the profiler. r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D78503
2020-06-12 13:13:06 +00:00
Marco Zehe 99eb448a68 Bug 1644343 Part 3 - Make the box model understandable to screen reader users, r=yzen,flod
This patch adds IDs to all the box divs so they can be referenced by ARIA attributes. The actual legend spans also act as region landmarks with an associated level so the nesting is relayed.

In addition, each of those boxes gets the buttons for its dimensions rendered in-place so for assistive technologies, this all follows a logical flow. aria-owns changes the accessibility tree so the nesting and associated properties are grouped together.

The actual buttons also receive a localizable aria-label that is a combination of the button text and title, so screen reader users not only hear "0 button" without knowing immediately what that button actually belongs to. Title is secondary information.

Differential Revision: https://phabricator.services.mozilla.com/D78953
2020-06-12 12:08:09 +00:00
Marco Zehe 1fc44d0009 Bug 1644343 Part 2 - Make the dimension information in the box model more explicit for screen readers, r=yzen,flod
This patch turns the info that holds the dimensions and position info into a region. Because the visual representation is without explanatory text, an aria-label is constructed for that region to hold a more explicit version of the displayed information.

Differential Revision: https://phabricator.services.mozilla.com/D78952
2020-06-11 10:54:45 +00:00
Marco Zehe aead3a320a Bug 1644343 Part 1 - Make layout properties accessible to screen readers, r=yzen
1. Fix the twisty so it has a role and name that reflects the action the button will take when clicked (show or hide).
2. Give the section itself a heading so it can easily be found. Make it a level 3 so it is clear that this is a sub section of the box model view.
3. Order the properties themselves in a table with rows for each property, and cells for the name and value.
4. Make the property names and values, which are not editable, not clickable.

Differential Revision: https://phabricator.services.mozilla.com/D78951
2020-06-11 15:31:08 +00:00
Marco Zehe 2a88cb7b27 Bug 1596018 - Mark all presentational divs that might become scrollable, with a tabindex of -1 so they are not reached when tabbing, r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D79019
2020-06-12 11:11:50 +00:00
Daisuke Akatsuka f82ba87517 Bug 1625957: Add ResourceWatcher test for CSS changes. r=ochameau,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D74602
2020-06-12 02:09:42 +00:00
Daisuke Akatsuka 7f6b066b27 Bug 1625957: Use ResourceWatcher in Compatibility view. r=ochameau,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D74601
2020-06-12 06:47:19 +00:00
Daisuke Akatsuka 04bef9f4f9 Bug 1625957: Use ResourceWatcher in Changes view. r=ochameau,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D74600
2020-06-12 02:09:40 +00:00
Daisuke Akatsuka 5c4053feaa Bug 1625957: Implement ResourceWatcher for CSS changes. r=ochameau,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D74599
2020-06-12 02:09:44 +00:00
Kriyszig f0405fd72e Bug 1642076 - Add test to prevent unwanted scrollbar in the Network Details' Cookie panel r=Honza,bomsy
Added test to prevent regression with unwanted scrollbars in
Network Monitor's Network Details' Cookie panel

Differential Revision: https://phabricator.services.mozilla.com/D77610
2020-06-12 06:30:45 +00:00
Noemi Erli 279f3b6a42 Backed out changeset 550164313c4f (bug 1601179) for causing failures in test_async CLOSED TREE 2020-06-12 08:16:14 +03:00
Logan Smyth 7f4a5aeed0 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 affect 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-11 21:24:16 +00:00
Razvan Maries b5faf6c48c Backed out 4 changesets (bug 1625957) for devtools failures on browser_inspector_sidebarstate.js. CLOSED TREE
Backed out changeset 6d6323e559cb (bug 1625957)
Backed out changeset 7d796f50c69f (bug 1625957)
Backed out changeset 8520caa244e1 (bug 1625957)
Backed out changeset e540c9937a31 (bug 1625957)
2020-06-12 05:04:55 +03:00
Kyle Knaggs 72e43bb2fd Bug 1601073 - Moved info icon from right side to left side of WhyPaused text r=jlast
Moved info icon from after text to before text.
Matched the spacing between the icon and text to the spacing between the icon and text in the Console.
Updated relevant WhyPaused snapshot tests.

Differential Revision: https://phabricator.services.mozilla.com/D78601
2020-06-12 00:37:22 +00:00
Daisuke Akatsuka c23349725d Bug 1625957: Add ResourceWatcher test for CSS changes. r=ochameau,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D74602
2020-06-12 00:51:40 +00:00
Daisuke Akatsuka 21f8b77140 Bug 1625957: Use ResourceWatcher in Compatibility view. r=ochameau,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D74601
2020-06-11 04:15:19 +00:00
Daisuke Akatsuka eabb991e25 Bug 1625957: Use ResourceWatcher in Changes view. r=ochameau,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D74600
2020-06-11 04:19:31 +00:00
Daisuke Akatsuka 9c6fbf21be Bug 1625957: Implement ResourceWatcher for CSS changes. r=ochameau,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D74599
2020-06-11 04:20:26 +00:00
Kyle Knaggs 5b75e2681f Bug 1644568 - Remove WhyPaused from debugger/src/components/App.js r=jlast
Removes the instance of  `WhyPaused` in `debugger/src/components/App.js` as the mark up that it returns does not contain useful information and is never visible to the user.

Differential Revision: https://phabricator.services.mozilla.com/D79144
2020-06-12 00:20:13 +00:00
Greg Tatum 9322f4483d Bug 1642330 - Fix profiler icon in the overflow menu; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D78143
2020-06-11 21:35:07 +00:00
Emilio Cobos Álvarez 3de085b6b9 Bug 1643713 - Use nsILoadInfo.browsingContextID instead of .browsingContext.id. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D79323
2020-06-11 17:16:38 +00:00
Jason Laster 3ca8acd1fb Bug 1644820 - breakpoints map should be keyed by pending breakpoint. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D79188
2020-06-11 18:13:37 +00:00
Julian Descottes be0cd9625f Bug 1644913 - Avoid exceptions if the storage actor is destroyed while processing a new window r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D79276
2020-06-11 17:22:40 +00:00