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

2319 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Chevobbe acc49289d6 Bug 1599805 - Fix React props in JSTerm. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D55240

--HG--
extra : moz-landing-system : lando
2019-11-29 09:59:41 +00:00
Nicolas Chevobbe dc60a356d0 Bug 1599694 - Fix browser_webconsole_object_inspector_key_sorting intermittent. r=Honza.
The test is sometimes failing because there's a pending
connection to the server while the connection is closed.
My guess is that somehow the test could have been checking
other nodes instead of the current evaluated on to wait
for a node to be fully expanded.
The fix made here is to make sure that we only have one
node displayed when testing the object inspector.

Differential Revision: https://phabricator.services.mozilla.com/D54943

--HG--
extra : moz-landing-system : lando
2019-11-28 14:10:29 +00:00
Julian Descottes 3c6458633a Bug 1598557 - Move all BrowserToolbox files to a dedicated folder r=ochameau
Depends on D54119

Differential Revision: https://phabricator.services.mozilla.com/D54265

--HG--
rename : devtools/client/framework/ToolboxProcess.jsm => devtools/client/framework/browser-toolbox/Launcher.jsm
rename : devtools/client/framework/test/browser_browser_toolbox.js => devtools/client/framework/browser-toolbox/test/browser_browser_toolbox.js
rename : devtools/client/framework/test/browser_browser_toolbox_debugger.js => devtools/client/framework/browser-toolbox/test/browser_browser_toolbox_debugger.js
rename : devtools/client/framework/test/browser_browser_toolbox_fission_inspector.js => devtools/client/framework/browser-toolbox/test/browser_browser_toolbox_fission_inspector.js
rename : devtools/client/framework/test/browser_browser_toolbox_rtl.js => devtools/client/framework/browser-toolbox/test/browser_browser_toolbox_rtl.js
rename : devtools/client/framework/test/helpers.js => devtools/client/framework/browser-toolbox/test/helpers-browser-toolbox.js
rename : devtools/client/framework/toolbox-process-window.css => devtools/client/framework/browser-toolbox/window.css
rename : devtools/client/framework/toolbox-process-window.html => devtools/client/framework/browser-toolbox/window.html
rename : devtools/client/framework/toolbox-process-window.js => devtools/client/framework/browser-toolbox/window.js
extra : moz-landing-system : lando
2019-11-27 11:08:11 +00:00
Nicolas Chevobbe 1ad791a1d0 Bug 1375752 - Render empty strings as <empty string> in console. r=yzen.
This only affects console api calls where one of the
argument is an empty string. Since we don't quote
string arguments for those, it was difficult to spot
an empty string there.
Jest test are added, as well as a mochitest for the
console to make sure that we don't have unwanted
side effects (for evaluation results, object with
empty string properties, ...)

Differential Revision: https://phabricator.services.mozilla.com/D54687

--HG--
extra : moz-landing-system : lando
2019-11-26 15:09:00 +00:00
Nicolas Chevobbe 8879b749c1 Bug 1536523 - Support performance.getEntries result in console.table. r=Honza.
PerformanceEntry values are put in the `getterValue` property in
the descriptor, so whenever we want to display a table we need
to check if the value could be in there.
This highlighted an issue in the console layout when there is a
large number of cells, which we fix in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D54261

--HG--
extra : moz-landing-system : lando
2019-11-26 09:56:40 +00:00
Nicolas Chevobbe 544183d2c2 Bug 1067710 - Bump console.table columns limit to 21 to match Chrome. r=Honza.
Increasing the number of columnns highlighted some issues:
- Some element could be off-screen, the grid-template-columns
  needed to be adjusted
- headers could be cut-off, we add a title on the element to
  have the full content in a tooltip
- properties that are not defined were displayed as "undefined",
  which is not really true, and take a lot of space. We render
  them as an empty cell in such case now.

A test is added to check the max-column limit.

Differential Revision: https://phabricator.services.mozilla.com/D54260

--HG--
extra : moz-landing-system : lando
2019-11-26 13:21:12 +00:00
Raymond Liu 152a169cac Bug 1214556 - Add open url MenuItem for links in Web Console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D54418

--HG--
extra : moz-landing-system : lando
2019-11-26 09:04:29 +00:00
Nicolas Chevobbe ed982614a2 Bug 1326182 - Send all the console.table items in the console message. r=Honza.
This allows us to not have to reach for the server
again from the client to get all the data we need
to render the table.

We still need to keep the old function to handle
connections to older servers. We'll use Bug 1597955
in Firefox 74 to clean the bits we don't need anymore.

A test is added to ensure the bug is fixed and we don't
regress; stubs are updated.

Differential Revision: https://phabricator.services.mozilla.com/D53962

--HG--
extra : moz-landing-system : lando
2019-11-22 09:48:58 +00:00
Nicolas Chevobbe b58a9d6894 Bug 1598304 - Optimize isTextInParameters in messages reducer. r=Honza.
We don't need to build an array of all the serializable data we
can find in parameters. We can loop through them and exit as
soon as we match the text filter.

Differential Revision: https://phabricator.services.mozilla.com/D54134

--HG--
extra : moz-landing-system : lando
2019-11-22 15:53:07 +00:00
jaril d3ede1cd95 Bug 1594096 - Display exceptions in the Replay timeline r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D51949

--HG--
extra : moz-landing-system : lando
2019-11-22 19:24:43 +00:00
Nicolas Chevobbe 544d009d66 Bug 1597197 - Add a feature-callout badge on the open editor icon. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D53394

--HG--
extra : moz-landing-system : lando
2019-11-22 13:11:28 +00:00
Nicolas Chevobbe 8957a95c3e Bug 1591757 - Add a test case checking cross-origin iframe elements logged in console can be highlighted. r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D53039

--HG--
extra : moz-landing-system : lando
2019-11-15 14:50:25 +00:00
Nicolas Chevobbe 3e23452e6d Bug 1597295 - Allow to pass a pathPrefix property to the WebConsole ObjectInspector util. r=jlast.
This will allow us to not have 2 object inspectors
with the same name, which was causing an issue
when putting an object in the sidebar (the object
in the sidebar and the one in the output would share
the same key in the objectInspector key, meaning that
expanding/collapsing nodes on one of them would also
do it on the other one).
A test needed to be modified where we were relying on
this behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D53666

--HG--
extra : moz-landing-system : lando
2019-11-20 18:05:42 +00:00
Cosmin Sabou be84eb7037 Backed out 11 changesets (bug 1582512) for causing valgrind bustages.
Backed out changeset 8b850fd66bf5 (bug 1582512)
Backed out changeset 07d3631e609a (bug 1582512)
Backed out changeset fa91b085eb59 (bug 1582512)
Backed out changeset 232d5735d404 (bug 1582512)
Backed out changeset 47045fa2ffd2 (bug 1582512)
Backed out changeset 40a0f6c6cd61 (bug 1582512)
Backed out changeset 5fb3e489c31f (bug 1582512)
Backed out changeset 379318a35b20 (bug 1582512)
Backed out changeset bf81985c33b7 (bug 1582512)
Backed out changeset 1e0dd57b8041 (bug 1582512)
Backed out changeset 2787043f1fab (bug 1582512)
2019-11-20 18:44:45 +02:00
Tom Ritter 78396e5c2c Bug 1582512 - Disable the javascript filename load restriction on specific tests r=jdescottes
Certain tests load data: URIs, blob: URIs, or otherwise do unusual things
that mean we need to disable the restriction for them.

Differential Revision: https://phabricator.services.mozilla.com/D46501

--HG--
extra : moz-landing-system : lando
2019-11-18 20:46:52 +00:00
Nicolas Chevobbe fb841e986b Bug 1597905 - Replace usage of webConsoleUI.clearOutput to head.js clearOutput in tests. r=jdescottes.
The helper function waits for an event to be dispatched,
which adds extra safety.

Differential Revision: https://phabricator.services.mozilla.com/D53927

--HG--
extra : moz-landing-system : lando
2019-11-20 10:18:24 +00:00
Andreea Pavel 2edc95fe48 Bug 1594897 - disable browser_webconsole_location_logpoint_debugger_link.js on ccov r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D53885

--HG--
extra : moz-landing-system : lando
2019-11-19 22:16:58 +00:00
Nicolas Chevobbe 790f56fb4a Bug 1595594 - Add support for typed arrays to console.table. r=Honza.
In order to render a table, we first check that console.table is
called with data that can be displayed in a table. Until now, we
were missing all the typed arrays.
This revealed some smaller issues:
- BigInt64Array were not marked as typed arrays on the server.
- Generating the repeatId for a message containing BigInts would
  throw because BigInts can't be serialized.

We add test cases for all the typed array, and we take this opportunity
to add a test case to ensure object insides table cells can be expanded.

Differential Revision: https://phabricator.services.mozilla.com/D53155

--HG--
extra : moz-landing-system : lando
2019-11-19 13:37:07 +00:00
Dorel Luca b9735a21f4 Backed out changeset d5baee70482a (bug 1597197) for DevTools failures in test/browser/browser_jsterm_no_input_and_tab_key_pressed.js. CLOSED TREE 2019-11-19 14:59:36 +02:00
Nicolas Chevobbe 14ded0304c Bug 1597197 - Add a feature-callout badge on the open editor icon. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D53394

--HG--
extra : moz-landing-system : lando
2019-11-19 09:27:58 +00:00
Nicolas Chevobbe c1e9d9b526 Bug 1595068 - Fix issue with debounced autocompletion in JsTerm. r=Honza,julienw.
The issue was that if a user typed a legitimate letter,
then, quickly after (i.e. before the autocompletion results
are here) hit Enter or Tab, the resulting input value would
be erroneous.
This is because we retrieve the value to insert from the
autocomplete popup, which at that time, is out-of-date, for
this brief moment.
The fix consists in updating the preLabel property of the
autocomplete popup items in order to get the proper
completion if the user ever hit enter, tab or arrow right.
We also take this as an opportunity to have a mechanism
to be able to cancel a registered update.

Differential Revision: https://phabricator.services.mozilla.com/D52376

--HG--
extra : moz-landing-system : lando
2019-11-13 16:19:18 +00:00
Dana Keeler a841102f18 bug 1412438 - add preference to disable HPKP by default r=jcj
As Chrome has removed support for the HPKP (HTTP Public Key Pinning) header,
continuing to support it in Firefox is a compatibility risk. This patch adds
the preference "security.cert_pinning.hpkp.enabled" and sets it to false by
default. As such, the platform will no longer process the HPKP header nor
consult any cached HPKP information for certificate pins.
Preloaded (statically-compiled) pins are still enabled in Firefox by default.
This patch also disables dynamically setting pins via our remote security
settings infrastructure, as it uses the same backend and represents similar
compatibility risk.

Differential Revision: https://phabricator.services.mozilla.com/D52773

--HG--
extra : moz-landing-system : lando
2019-11-13 18:35:35 +00:00
Nicolas Chevobbe 13580b8fea Bug 1595105 - Fix browser_webconsole_context_menu_copy_message_with_async_stacktrace.js perma failure on beta simulation. r=aryx.
Let's set javascript.options.asyncstack in the test to
have the async stacktrace displayed.

Differential Revision: https://phabricator.services.mozilla.com/D52697

--HG--
extra : moz-landing-system : lando
2019-11-12 17:08:26 +00:00
Nicolas Chevobbe 116dcd0e39 Bug 1595012 - Remove WebConsoleFront evaluateJS. r=jdescottes.
The function is only used in tests, which is a bit concerning
as we should test the actual function being used (evaluateJSAsync).

Differential Revision: https://phabricator.services.mozilla.com/D52331

--HG--
extra : moz-landing-system : lando
2019-11-10 11:47:45 +00:00
Dorel Luca 5bb844b4ce Backed out changeset b8c3e2f3cd42 (bug 1595012) for causing DevTools failures in devtools/client/webconsole/test/browser/browser_webconsole_stubs_evaluation_result.js. CLOSED TREE 2019-11-10 05:14:38 +02:00
Nicolas Chevobbe 65a171ad7a Bug 1595012 - Remove WebConsoleFront evaluateJS. r=jdescottes.
The function is only used in tests, which is a bit concerning
as we should test the actual function being used (evaluateJSAsync).

Differential Revision: https://phabricator.services.mozilla.com/D52331

--HG--
extra : moz-landing-system : lando
2019-11-09 11:50:11 +00:00
Jason Laster 58def33d5e Bug 1594979 - Logpoints fail to log with `frame is null`. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D52310

--HG--
extra : moz-landing-system : lando
2019-11-08 16:49:11 +00:00
Nicolas Chevobbe 4051daad83 Bug 1594637 - Fix browser_webconsole_output_order intermittent. r=Honza.
It's not obvious to me what the culprit is, but it may be because
of the clearOutput call somehow.
Let's see if this fix the intermittent.

Differential Revision: https://phabricator.services.mozilla.com/D52321

--HG--
extra : moz-landing-system : lando
2019-11-08 11:52:16 +00:00
Nicolas Chevobbe dc2101bfa2 Bug 1572667 - Re-enable stubs tests. r=Honza.
The tests are rewritten so we only have one test per
stub type. The stubs can be re-generated by passing
the --setenv WEBCONSOLE_STUBS_UPDATE=true arg when running
mach test.
We take this as an opportunity to not store the Messages
directly, but we generate them programmatically, which would
still reveal a bug as most of the test import messages.
Since we're doing that, some messages aren't localized, so
we need to add them to the L10N fixtures we have (which is
revamped a bit as getStr was getting too complex).

Differential Revision: https://phabricator.services.mozilla.com/D51596

--HG--
extra : moz-landing-system : lando
2019-11-08 12:06:42 +00:00
Mihai Alexandru Michis 9d7b170bed Bug 1591590 - Disable browser_toolbox_console_new_process.js on macos debug, linux debug and windows ccov for frequent failures. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D52132

--HG--
extra : moz-landing-system : lando
2019-11-08 10:22:54 +00:00
Nicolas Chevobbe 3b5a8879f9 Bug 1592969 - Show async separator in Frame component. r=davidwalsh.
Differential Revision: https://phabricator.services.mozilla.com/D52133

--HG--
extra : moz-landing-system : lando
2019-11-07 17:28:45 +00:00
Alexandre Poirot 7b1b1cd915 Bug 1592363 - Make the console use the TargetList. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D48860

--HG--
extra : moz-landing-system : lando
2019-11-07 15:05:10 +00:00
Julian Descottes 222bc5ccde Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro
Using next-line is less error prone for refactorings than wrapping methods with enable/disable blocks.

Differential Revision: https://phabricator.services.mozilla.com/D51782

--HG--
extra : moz-landing-system : lando
2019-11-05 14:29:04 +00:00
Andreea Pavel 0f4b106038 Bug 1583706 - remove skip-if from browser_webconsole_location_logpoint_debugger_link.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D51208

--HG--
extra : moz-landing-system : lando
2019-11-04 09:11:29 +00:00
Brian Hackett 5efbcaefb0 Bug 1594042 - Improve logpoint performance, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D51846

--HG--
extra : moz-landing-system : lando
2019-11-05 16:17:13 +00:00
wartmanm 2363fb2b3f Bug 1590824 - Don't pass sourceId in jumpToDefinitionButton event listener. r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D50867

--HG--
extra : moz-landing-system : lando
2019-11-05 13:13:16 +00:00
Nicolas Chevobbe b965151cf7 Bug 1593654 - Fix issue when expanding CSS warnings. r=rcaliman.
The issue was in commands.js evaluateJSAsync function where
we were trying to use an undefined parameter.
The regression wasn't spotted earlier because we only have
mocha test for CSS warning, and they don't assert this
codepath.
A mochitest is added on this patch to ensure CSS Warnings
can be expanded, that they display the impacted elements
as expected, and that clicking on the icon selects the
expected element in the inspector.

Differential Revision: https://phabricator.services.mozilla.com/D51627

--HG--
extra : moz-landing-system : lando
2019-11-04 15:29:22 +00:00
Brian Hackett cff7d7fb16 Bug 1592854 - Workaround rendering problems with conditional panel during test, r=loganfsmyth.
Differential Revision: https://phabricator.services.mozilla.com/D51438

--HG--
extra : moz-landing-system : lando
2019-11-05 01:28:08 +00:00
Nicolas Chevobbe 9c0b3f6b24 Bug 1570524 - Fix browser_webconsole_cached_messages intermittent. r=Honza.
Wait for the messages to be displayed, and requestLongerTimeout,
as test failures logs seem to indicate that slower machine take
more than 30s to run the test.

Differential Revision: https://phabricator.services.mozilla.com/D51562

--HG--
extra : moz-landing-system : lando
2019-11-04 09:53:31 +00:00
Nicolas Chevobbe df353efb8c Bug 1592618 - Fix test memory leak in browser_jsterm_file_load_save_keyboard_shortcut.js .r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D51271

--HG--
extra : moz-landing-system : lando
2019-11-01 14:35:54 +00:00
Nicolas Chevobbe 07a531158b Bug 1592550 - Allow saveAs util function to be passed an array of filters. r=Honza.
A new parameter is added, and it expect an array
of filter objects (which contain a pattern and
a label properties), which are going to be used
by the save file dialog.

Depends on D51070

Differential Revision: https://phabricator.services.mozilla.com/D51078

--HG--
extra : moz-landing-system : lando
2019-11-01 09:26:18 +00:00
jaril 789e9699c4 Bug 1592751 - Maintain purple line above paused console message in Replay r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D51167

--HG--
extra : moz-landing-system : lando
2019-10-31 01:39:19 +00:00
Nicolas Chevobbe 4519e50d89 Bug 1592308 - Add keyboard shortcut for loading / saving from console input. r=Honza.
Ctrl+O (Cmd+O on OSX) will load file content into the console input.
Ctrl+S (Cmd+S on OSX) will show the file dialog for the user
to save the console input content into a file.

A test is added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D51070

--HG--
extra : moz-landing-system : lando
2019-10-30 10:26:49 +00:00
Itiel d26a949e7e Bug 1590212 - More RTL fixes to the console editor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D49986

--HG--
extra : moz-landing-system : lando
2019-10-29 12:40:13 +00:00
Mihai Alexandru Michis 30c8de3920 Backed out changeset ca55fba5a3a3 (bug 1592144) for causing node devtools failures. CLOSED TREE 2019-10-29 16:19:31 +02:00
David Walsh 50a693991f Bug 1592144 - Only set frame logpoint if frame exists r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D50875

--HG--
extra : moz-landing-system : lando
2019-10-29 07:48:23 +00:00
Nicolas Chevobbe d8758a92f8 Bug 1590093 - Lazy load console components. r=Honza.
We try to lazy load all the things we know we might
not need directly when opening the console.

Differential Revision: https://phabricator.services.mozilla.com/D50800

--HG--
extra : moz-landing-system : lando
2019-10-29 10:46:51 +00:00
Narcis Beleuzu 17b37761e8 Backed out changeset 3534c1bfbd8e (bug 1590212) as per Itiel`s request. CLOSED TREE 2019-10-29 14:11:43 +02:00
Itiel 571019ecae Bug 1590212 - More RTL fixes to the console editor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D49986

--HG--
extra : moz-landing-system : lando
2019-10-29 07:59:04 +00:00
Jason Laster ddef712d8f Bug 1580165 - fix selected node for console; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D50126

--HG--
extra : moz-landing-system : lando
2019-10-29 00:36:23 +00:00