Commit Graph
2098 Commits
Author SHA1 Message Date
Alexandre Poirot b446e32dd9 Bug 1510690 - Do focus the content window from the actor when the toolbox closes. r=nchevobbe
No RDP request should be done when the toolbox closes as there no guarantee that
the request will complete. Instead, such cleanup should be done by the actors.

Differential Revision: https://phabricator.services.mozilla.com/D38309
2019-07-31 08:12:16 +00:00
Oriol Brufau aa2cfe8407 Bug 1544175 - Fix browser_console.js. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D38804
2019-07-29 22:06:57 +00:00
Oriol Brufau ab7fb91fef Bug 1544175 - Prevent devtools from accessing CPOWs. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D38803
2019-07-29 22:16:49 +00:00
Tom Schuster 4f127dfe56 Bug 1569122 - Limit Worker/SharedWorker MIME type blocking to Beta/Nightly. r=ckerschb
Depends on D39634

Differential Revision: https://phabricator.services.mozilla.com/D39635
2019-07-29 07:25:37 +00:00
Gurzau Raul 8818582286 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-29 13:06:31 +03:00
Alexandre Poirot 383a8cddbe Bug 1566421 - Ensure that actions.updateRequest resolves only once the action is processed. r=nchevobbe
The code callng action.updateRequest, in FirefoxDataProvider, expects the updateRequest action
to be processed once the returned promise is resolved. Otherwise it may spawn
duplicated requestData requests.

Differential Revision: https://phabricator.services.mozilla.com/D39153
2019-07-29 09:18:14 +00:00
Nicolas Chevobbe cae8319c82 Bug 1567832 - Retrieve fission pref and use it in console classes. r=yulia.
We retrieve the preference in the hudservice, where
WebConsoles and BrowserConsoles are created from.
If the pref is set to true, we assign a different
title to the Browser Console window so it will be
easier to spot.
The preference is then passes to the BrowserConsole,
WebConsole, WebConsoleUI and finally WebConsoleConnectionProxy
instances.
Later, we'll check this pref to connect to different
targets and listen to new ones.

Depends on D39646

Differential Revision: https://phabricator.services.mozilla.com/D39647
2019-07-29 08:44:08 +00:00
Arun Kumar Mohan d9a6da5ba8 Bug 1554901 - Refactor onInputKeyDown method to remove disabled complexity eslint rule. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39488
2019-07-27 14:59:36 +00:00
Bogdan Tara 4a478de642 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-27 00:41:55 +03:00
Bogdan Tara 4df8771cb1 Merge inbound to mozilla-central. a=merge 2019-07-27 00:38:36 +03:00
Nicolas Chevobbe 781197d7d1 Bug 1569190 - Remove outputNode getter from webconsole.js .r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D39516
2019-07-26 16:39:18 +00:00
Nicolas Chevobbe 81db9f8b46 Bug 1569190 - Remove JSTerm outputNode getter. r=jdescottes.
The reference isn't used within the component itself,
and is available in the webConsoleUI.
Callsites are updated.

Differential Revision: https://phabricator.services.mozilla.com/D39505
2019-07-26 16:39:08 +00:00
Armando Ferreira 2b4b284157 Bug 1558201 - Disable history navigation with Arrow keys in Editor mode. r=nchevobbe
In editor mode, there are dedicated icons to history navigation  (See Bug [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1558198 | 1558198 ]]).
Removing the arrow up/down history navigation which is troublesome when working with multi-line snippets.

Differential Revision: https://phabricator.services.mozilla.com/D39262
2019-07-26 18:23:59 +00:00
Nicolas Chevobbe 064fc18bff Bug 1569187 - Move blur event listeners outside of JSTerm. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D39510
2019-07-26 15:50:07 +00:00
Nicolas Chevobbe 54543aef96 Bug 1553180 - Move outputNode clear from JsTerm to webconsoleUI. r=jdescottes.
There's no reason it should be JsTerm's responsability
to clear the output node.

Differential Revision: https://phabricator.services.mozilla.com/D39508
2019-07-26 15:49:53 +00:00
Kris Maglione 545eb3d999 Bug 1568035: Part 4 - Update test expections for Fission. r=mccr8
Some failures crept in and out after my last sets of annotations landed. This
patch updates most of the annotations to deal with them.

MANUAL PUSH: Lando won't let me land.

Differential Revision: https://phabricator.services.mozilla.com/D39462
2019-07-24 13:06:57 -07:00
Kris Maglione fdba7d1377 Bug 1568035: Part 1 - Skip tests which cause shutdown leaks under Fission. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D39459
2019-07-19 15:31:16 -07:00
Alexandre Poirot 725d84c1e0 Bug 1566421 - Make WebConsoleUI.destroy synchronous. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D38460
2019-07-25 06:43:52 +00:00
Nicolas Chevobbe 7076d3a083 Bug 1559717 - Fix displaying getter value for getter returning falsy values. r=davidwalsh.
We were displaying result.value.throw if result.value.return
was falsy. But it can happen that a getter does return a
falsy value, and we want to display it.
So now we turn the expression the other way around, we first
check result.value.throw, and then default to result.value.return.
A mochitest is added to ensure we hav expected value for different
getters returning falsy values.

Differential Revision: https://phabricator.services.mozilla.com/D39136
2019-07-25 13:55:14 +00:00
Nicolas Chevobbe 1637e4f2e4 Bug 1568528 - Remove HUDService's lastFinishedRequest. r=ochameau.
Looks like the property is never used, so we can probably
remove it.

Differential Revision: https://phabricator.services.mozilla.com/D39276
2019-07-25 07:02:12 +00:00
Kris Maglione 1b5a278b6a Bug 1566952: Part 2 - Update Fission failure annotations after skipping crashes. r=mccr8
When a test crashes, the harness skips all of the remaining tests in the
directory. That means that with crashes skipped, we now try to run a whole lot
more tests than we did before, and a lot of them fail under Fission.

This patch adds annotations to the new failures that show up after part 1.

Differential Revision: https://phabricator.services.mozilla.com/D38726
2019-07-19 12:30:10 -07:00
Nicolas Chevobbe d34a531e46 Bug 1568439 - Move webconsole-l10n to utils/l10n. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D39159
2019-07-24 11:11:34 +00:00
Alexandre Poirot 3f55d2085a Bug 1568203 - Removed unused requestEvaluation's frame argument. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39052
2019-07-24 08:35:48 +00:00
Alexandre Poirot 633271ffe8 Bug 1568185 - Remove unused bindObjectActor argument from console actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39051
2019-07-24 08:35:41 +00:00
Bogdan Tara 3423c8474d Backed out 2 changesets (bug 1568203, bug 1568185) for ES lint failure on eval-with-debugger.js CLOSED TREE
Backed out changeset adc394f833f9 (bug 1568203)
Backed out changeset 46c3a1fdc706 (bug 1568185)
2019-07-24 11:24:51 +03:00
Alexandre Poirot f345168351 Bug 1568203 - Removed unused requestEvaluation's frame argument. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39052
2019-07-24 07:48:01 +00:00
Alexandre Poirot b46a73620c Bug 1568185 - Remove unused bindObjectActor argument from console actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D39051
2019-07-24 07:47:55 +00:00
Armando Ferreira b06f32a5f3 Bug 1558198 - Add history navigation buttons in Editor toolbar. r=nchevobbe
Adding History navigation to Editor toolbar

Differential Revision: https://phabricator.services.mozilla.com/D38951
2019-07-23 18:36:01 +00:00
Armando Ferreira 67ff266803 Bug 1540722 - Copy link location should work for learn-more links. r=nchevobbe
Support for coping link location from within the Console panel (through the context menu) can be extended and cover learn more links too.

Differential Revision: https://phabricator.services.mozilla.com/D38546
2019-07-23 18:34:08 +00:00
Alexandre Poirot 85afd526d1 Bug 1567760 - Fix OOM failures in browser_webconsole_inspect_cross_domain_object.js. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D38985
2019-07-23 17:01:28 +00:00
Tom Schuster 4c7462fcf2 Bug 1523706 - Extend devtools test. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D37912
2019-07-23 09:47:03 +00:00
Razvan Maries def2e7c168 Merge mozilla-inbound to mozilla-central a=merge 2019-07-23 00:37:54 +03:00
Gabriel Luong 12587ec458 Bug 1567276 - Refactor inspector to inspectorFront. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D38554
2019-07-18 15:33:55 -04:00
Sebastian Streich 8f2232bf12 Bug 1100630 - Print Related JS-Line on CSP Violation (if any) r=ckerschb,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D31420
2019-07-22 09:31:57 +00:00
Brian Hackett 2d4648a317 Bug 1556813 Part 6 - Watch for provisional logpoint messages in webconsole, r=nchevobbe. 2019-06-12 07:43:35 -10:00
Nicolas Chevobbe c489070ddb Bug 1567370 - Add a close button to the Editor Toolbar. r=Honza.
The button display the same icon that will be used
in the console input when in inline-mode to toggle
the editor mode, active.
A test is added to ensure the button works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D38622
2019-07-19 14:10:06 +00:00
Nicolas Chevobbe 99d1b11f63 Bug 1567167 - Remove webConsoleClient getter from JSTerm. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D38615
2019-07-19 08:29:54 +00:00
Nicolas Chevobbe f2889e192d Bug 1567167 - Remove clearNetworkRequests from JsTerm destroy function. r=jdescottes.
This shouldn't be JSTerm's responsability to call
this function. Furthermore, the function clear
some references in the WebConsoleFront, which are
going to be destroyed anyway.

Differential Revision: https://phabricator.services.mozilla.com/D38614
2019-07-19 08:28:48 +00:00
Nicolas Chevobbe 319b6d8fbf Bug 1567167 - Remove copyObject function from JSTerm. r=jdescottes.
The function is only called from the context-menu,
where we already have all the references we need.
So we can move the function code directly in the
menu item callback.

Differential Revision: https://phabricator.services.mozilla.com/D38613
2019-07-19 08:28:24 +00:00
Nicolas Chevobbe bec1f2e8d5 Bug 1567167 - Remove unused gSequenceId function in JSTerm . r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D38612
2019-07-19 08:27:59 +00:00
Ciure Andrei 23b8c9fc62 Bug 1560261 - disable browser_webconsole_warning_groups_filtering.js on windows 7 opt for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D38091
2019-07-17 17:55:59 +00:00
Eden Chuang e043f4c07d Bug 1561930 - Correct the wrong attribute isFromChromeContext value for chrome context messages from Cu.reportError r=baku
Differential Revision: https://phabricator.services.mozilla.com/D38464
2019-07-18 21:49:30 +00:00
Alexandre Poirot 0ce86f8b2c Bug 1566457 - Remove unused provider logic from Loader.jsm. r=jdescottes
We used to have another provider which would load module via file:// URI,
directly from the disk. But the progress on artifact builds and ./mach build faster
made this obsolete and has been removed a long time ago.
We still have a lot of abstraction to support this non-existent feature.

Differential Revision: https://phabricator.services.mozilla.com/D38284
2019-07-18 12:25:05 +00:00
Noemi Erli 7f6698b383 Backed out changeset a98b795c2b3c (bug 1100630) for Linting failure CLOSED TREE 2019-07-18 19:19:48 +03:00
Sebastian Streich 728a295bbb Bug 1100630 - Print Related JS-Line on CSP Violation (if any) r=ckerschb,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D31420
2019-07-18 15:14:41 +00:00
Nicolas Chevobbe 39eeb06393 Bug 1565781 - Fix ConsoleTable with nested holey array. r=Honza.
A test is added to ensure this is fixed properly.
We also fix the Array previewer to properly return
undefined for unknown array properties, rather than null.

Differential Revision: https://phabricator.services.mozilla.com/D38467
2019-07-18 12:04:42 +00:00
Nicolas Chevobbe 048abcd904 Bug 1567082 - Fix console table overflow. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D38466
2019-07-18 11:58:16 +00:00
Nicolas Chevobbe 8080e9ece9 Bug 1567071 - Remove main.js file. r=jdescottes.
The file was included in the index.html and was used
to create the WebConsoleWrapper.
We can directly create it from webconsole-ui.js and
not have this unusual mechanism.

Differential Revision: https://phabricator.services.mozilla.com/D38456
2019-07-18 11:40:38 +00:00
Nicolas Chevobbe db0b64398f Bug 1554877 - Make JsTerm editor resizable. r=Honza.
We add a GridElementWidthResizer to handle the editor width.
The width is then persisted in a pref.
A test is added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D37687
2019-07-18 05:51:44 +00:00
Nicolas Chevobbe 68aacc044c Bug 1565963 - Add props to NotificationBox to render top and bottom borders. r=Honza.
We need this in the console to put the borders on the
right position, depending on the NotificationBox place.

Differential Revision: https://phabricator.services.mozilla.com/D38039
2019-07-18 05:51:24 +00:00