Commit Graph

20685 Commits

Author SHA1 Message Date
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
Razvan Maries
9a77df696d Backed out changeset 04b11bcd330e (bug 1596018) for perma failures on test_accessible_contrast.html. CLOSED TREE 2020-06-11 21:30:29 +03:00
Nicolas Chevobbe
4ff9d9138d Bug 1644662 - Fix accepting element access autocompletion with autoclose bracket enabled. r=bomsy.
When the autoclose bracket addon is enabled, quotes and ] are automatically
inserted, but that wasn't taken into account in the function that is in charge
of setting the input value when the user accept the autocompletion.
This patch should fix this, and add a few tests to makes sure we don't regress.

Differential Revision: https://phabricator.services.mozilla.com/D79126
2020-06-11 15:29:07 +00:00
Nicolas Chevobbe
9a848212a5 Bug 1644158 - Close autocomplete when typing a closing bracket. r=bomsy.
The console editor uses the codeMirror autoclose bracket addon,
which when the user types a closing bracket and the next char
in the input is the same char, won't insert a new char, but will
only move the cursor.
In such case, the JsTerm code wasn't capturing this key event, and
it could happen that the autocomplete would still be displayed,
which would then lead to some weirdness when the user hits Enter.
In order to fix that, we listen for the keyHandled event, which
is fired one a keypress was handled, and that appear that be fired
for the case I exposed, and isn't triggered when the character is
simply inserted.
A test case is added in one of our test to make sure this works as
expected.

Differential Revision: https://phabricator.services.mozilla.com/D78935
2020-06-11 15:30:16 +00:00
Emilio Cobos Álvarez
67ed214041 Bug 1643713 - Properly null-check loadinfo's browsingcontext before trying to get the id. r=bomsy,Honza,ochameau. CLOSED TREE
My patch from bug 1599160 changed timing in a way that makes this bug a
perma fail and I'd rather not get it backed out :)

Differential Revision: https://phabricator.services.mozilla.com/D79316
2020-06-11 16:39:46 +00:00
Marco Zehe
b5812ea865 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-11 14:55:24 +00:00
Marco Zehe
f81a375e03 Bug 1645013 - Fix mis-typed localization reference, r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D79278
2020-06-11 12:20:17 +00:00
Emilio Cobos Álvarez
ef3d21048d Bug 1640623 - Use enum classes for LookAndFeel int and float IDs. r=jmathies,geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D76694
2020-06-11 11:27:43 +00:00
Nicolas Chevobbe
69126eb5b2 Bug 1624531 - Refresh codeMirror instance when input is resized. r=Honza.
This patch adds a ResizeObserver to the input node, which when triggered
refreshes the codeMirror instance.
This is needed because codeMirror draws specific elements, like the cursor
and selection blocks, and they need to be re-computed if the editor size
changed (the line might have wrapped, and the cursor need to be in a new
position now).

Depends on D78649

Differential Revision: https://phabricator.services.mozilla.com/D78661
2020-06-11 10:18:12 +00:00
Nicolas Chevobbe
130c2955a0 Bug 1620569 - Reset editor selection when console input is blurred. r=Honza.
CodeMirror does not have an option to automatically remove
the selection when the editor is blurred, which means there
can be a kind-of weird visual glitch when there was a selection
and the user does another selection.
This patch listen for the blur event on the editor, and if there
was a selection, removes it.
The blur event need to be piped down from the sourceeditor.
A test is added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D78649
2020-06-11 10:14:30 +00:00
Farooq AR
ae23f02b59 Bug 1637867 - UI support for Server side events. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D78637
2020-06-11 07:40:07 +00:00
Daisuke Akatsuka
c7b8d14634 Bug 1644618: Update MDN compat data. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D79013
2020-06-10 17:16:12 +00:00
Micah Tigley
ab5243a5b4 Bug 1644248 - Duplicate test for browser_navigation.js to be run against browserUI pref set to false. r=bradwerth
Depends on D78835

Differential Revision: https://phabricator.services.mozilla.com/D78843
2020-06-10 17:30:24 +00:00
Micah Tigley
7a05f4c246 Bug 1644248 - Fallback on RemoteWebNavigation's method for navigating backward/forward. r=bradwerth
Support for `goForward()` and `goBack()` has been removed for `mozbrowser` elements, which were methods that old-RDM used to handle backward/forward navigation. Since the custom implementation of the webNavigation object for old-RDM uses the `WebNavigation` actor as a fallback for APIs that are not supported by `mozbrowser`, we can also do the same for `goForward()` and `goBack()`.

Differential Revision: https://phabricator.services.mozilla.com/D78835
2020-06-10 02:04:14 +00:00
neil
6b1f254a89 Bug 1641324 Remove the layout.css.scrollbar-width.enabled and layout.css.scrollbar-color.enabled prefs r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D78400
2020-06-10 13:16:34 +00:00
Nicolas Chevobbe
595a3d5ef3 Bug 1629875 - Style blocked network messages in console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D71912
2020-06-10 08:31:42 +00:00
Marco Zehe
901ff9ac52 Bug 1644650 - Make the main developer tools window an application for assistive technologies again, r=nchevobbe
This broke when the main developer tools window was converted from XUL to XHTML. By adding the application role, the window is once again a window, not a document for the accessibility engine.

In addition, while I was here, I fixed the role of the focusable vbox because it is the first thing the user lands on when tabbing, to make it a semantic group, not an "unknown". Since this is probably supposed to be focusable for keyboard users, it is better to have an appropriate role.

Differential Revision: https://phabricator.services.mozilla.com/D79038
2020-06-10 07:38:32 +00:00
Julian Descottes
66dd40ed42 Bug 1639354 - DevTools tests should await on async checkDeclarationIsInactive r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D78460
2020-06-10 05:52:53 +00:00
Noemi Erli
d9fe9eb624 Backed out 2 changesets (bug 1644248) for causing dt failures in browser_old-rdm_navigation.js
Backed out changeset 014940ce9ff5 (bug 1644248)
Backed out changeset 53433ac7ae94 (bug 1644248)
2020-06-10 04:28:37 +03:00
Micah Tigley
13b53c835c Bug 1644248 - Duplicate test for browser_navigation.js to be run against browserUI pref set to false. r=bradwerth
Depends on D78835

Differential Revision: https://phabricator.services.mozilla.com/D78843
2020-06-09 23:43:03 +00:00
Micah Tigley
4924f3a2ce Bug 1644248 - Fallback on RemoteWebNavigation's method for navigating backward/forward. r=bradwerth
Support for `goForward()` and `goBack()` has been removed for `mozbrowser` elements, which were methods that old-RDM used to handle backward/forward navigation. Since the custom implementation of the webNavigation object for old-RDM uses the `WebNavigation` actor as a fallback for APIs that are not supported by `mozbrowser`, we can also do the same for `goForward()` and `goBack()`.

Differential Revision: https://phabricator.services.mozilla.com/D78835
2020-06-09 23:44:38 +00:00
Alexandre Poirot
f685402246 Bug 1638914 - Fix watchedByDevTools exceptions when debugging with Fission ON. r=jdescottes
This attribute can only be toggled on top level BrowsingContext.
These are the top level window's, or tab's BrowsingContext.
From DevTools point of view, it should only be toggled by the
Parent Process or Tab target.

Differential Revision: https://phabricator.services.mozilla.com/D78860
2020-06-09 09:50:05 +00:00
Alexandre Poirot
d6c2c33b24 Bug 1620243 - Watch console messages resources from the server side. r=nchevobbe,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D77441
2020-06-09 18:22:45 +00:00
Alexandre Poirot
9ff9996e6a Bug 1620243 - Fix the key used for DevToolsFramesChild._connections map. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D77769
2020-06-08 22:45:32 +00:00
Alexandre Poirot
4ecf485bc0 Bug 1620243 - Pass BrowsingContextTargetActor docShell via its constructor. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D77066
2020-06-08 22:45:24 +00:00
David Walsh
4d5a078a43 Bug 1643990 - Set tooltip for navigation buttons r=flod,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D78690
2020-06-09 11:15:08 +00:00
Johann Hofmann
20b1b77919 Bug 1515073 - Part 5 - Disable browser.navigation.requireUserInteraction in tests. r=Gijs
Depends on D27588

Differential Revision: https://phabricator.services.mozilla.com/D31604
2020-06-09 14:51:06 +00:00
Razvan Maries
f761608e79 Backed out changeset bca9f7459a16 (bug 1643656) for reftests perma failures. CLOSED TREE 2020-06-09 18:24:48 +03:00
Emilio Cobos Álvarez
6b86e22f72 Bug 1643656 - Remove prefers-color-scheme: no-preference. r=gl,remote-protocol-reviewers,hiro,whimboo
It was removed from the spec. Bug 1643934 updates the WPT tests.

Differential Revision: https://phabricator.services.mozilla.com/D78834
2020-06-09 13:21:54 +00:00
Julian Descottes
a24d35c9ab Bug 1583738 - Attach webextension targets from WebExtensionDescriptorFront::getTarget r=ochameau
Depends on D78008

Differential Revision: https://phabricator.services.mozilla.com/D78009
2020-06-09 09:46:35 +00:00
Julian Descottes
ed439868c2 Bug 1583738 - Move webextension target caching to the descriptor front r=ochameau,daisuke
Depends on D78007

Differential Revision: https://phabricator.services.mozilla.com/D78008
2020-06-09 09:37:49 +00:00
Julian Descottes
8c0c6dcb20 Bug 1583738 - Expose proper getters for public WebExtensionDescriptor properties r=daisuke
Depends on D78006

Differential Revision: https://phabricator.services.mozilla.com/D78007
2020-06-09 09:37:37 +00:00
Julian Descottes
cd847ae126 Bug 1583738 - Rename targetForm property to _form in WebExtensionDescriptorFront r=daisuke
Depends on D78005

Differential Revision: https://phabricator.services.mozilla.com/D78006
2020-06-09 09:16:23 +00:00
Julian Descottes
72952290d1 Bug 1583738 - Web extension descriptor should throw when calling getTarget for a non-webextension target r=daisuke
Depends on D78002

Differential Revision: https://phabricator.services.mozilla.com/D78005
2020-06-09 09:15:55 +00:00
Julian Descottes
64c147e23d Bug 1583738 - Remove unused isDescriptor trait from webextension descriptor r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D78002
2020-06-09 09:15:33 +00:00
Julian Descottes
67fbd88fbd Bug 1642875 - Remove getBrowsingContextDescriptor r=ochameau,nchevobbe
Depends on D77998

Differential Revision: https://phabricator.services.mozilla.com/D77999
2020-06-09 07:27:27 +00:00