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

20674 Коммитов

Автор SHA1 Сообщение Дата
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
Julian Descottes a2c4ad9d7e Bug 1642875 - Remove legacy-frame-watcher r=nchevobbe
Depends on D77996

Differential Revision: https://phabricator.services.mozilla.com/D77998
2020-06-09 07:26:55 +00:00
Julian Descottes d21194c5dd Bug 1642875 - Remove listRemoteFrames r=nchevobbe
Depends on D77995

Differential Revision: https://phabricator.services.mozilla.com/D77996
2020-06-09 07:26:38 +00:00
Julian Descottes 89a8d5e9e5 Bug 1642875 - Remove unused Frame Descriptor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D77995
2020-06-09 07:26:11 +00:00
Marco Zehe fac90408bc Bug 1644127 - Turn the layout side pane into a document for screen readers, r=yzen
This will make it navigable with screen reader commands.

Depends on D78674

Differential Revision: https://phabricator.services.mozilla.com/D78675
2020-06-08 16:53:03 +00:00
Marco Zehe 829c6bdfc4 Bug 977244 - Make the rules view easier to navigate with a screen reader, r=yzen
To give the whole rules view more structure:

1. Make the container a document so screen readers invoke their reading mode.
2. Give the different section headers a proper heading role.
3. Make each separate item an article so screen readers can navigate them more easily.
4. Give the expander twisty for the pseudo classes a proper label that adjusts depending on whether pseudo classes are expanded or collapsed. Also make it a button for screen readers.

This patch does not attempt to simulate any advanced navigation via the keyboard.

Differential Revision: https://phabricator.services.mozilla.com/D78674
2020-06-08 17:08:53 +00:00
Jason Laster 4b31d29b34 Bug 1643822 - getTextAtLine should not use split. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D78576
2020-06-08 18:21:52 +00:00
Jason Laster 47520447f2 Bug 1643781 - Empty debugger sources after refresh with workersListener error. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D78562
2020-06-08 15:51:04 +00:00
Nicolas Chevobbe f8a42b5329 Bug 1642730 - Fix intermittent on browser_jsterm_autocomplete_null. r=davidwalsh.
Now that network requests can be displayed as error (for 4XX and 5XX),
this test could get one of those and think we were getting an actual
js error, which makes the test fail.
Excluding network messages from the messages we are checking should
fix the intermittent.

Differential Revision: https://phabricator.services.mozilla.com/D78493
2020-06-08 15:21:15 +00:00
Brad Werth 99e3b95ef3 Bug 1630268 Part 2: Move half of the tests in browser_part1.ini into a new file, browser_part2.ini. r=ochameau
Depends on D78354

Differential Revision: https://phabricator.services.mozilla.com/D78355
2020-06-08 12:49:07 +00:00
Brad Werth 5e914edb9b Bug 1630268 Part 1: Rename devtools/client/inspector/rules/test/browser.ini. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D78354
2020-06-08 12:41:28 +00:00
Nicolas Chevobbe ef8aabcc2d Bug 1643697 - Add rel attribute to string rep links. r=bomsy,Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D78531
2020-06-08 11:37:26 +00:00