Commit Graph
802 Commits
Author SHA1 Message Date
Julian Descottes 5554fc2ba6 Bug 1369801 - dt-addon: use window object in webconsole/net/main to load stylesheets;r=jryans
From console/net/main.js we are calling loadSheet from sdk/stylesheet/utils.
This API needs a real window object to work, but now that devtools are loaded
as a system addon, by default the global object is a sandbox wrapper.

Use the window object which points to the actual Window instead.

MozReview-Commit-ID: LxDNfDiOso3
2017-07-12 19:26:33 +02:00
Julian Descottes 8c0c562ada Bug 1369801 - dt-addon-xpcshell: load devtools addon for xpcshell tests;r=bgrins
MozReview-Commit-ID: 4EyclGKca0t
2017-07-11 12:30:22 +02:00
Brian Grinstead 01310e5ea5 Bug 1382833 - Add regression test for CPOWs in the Browser Console;r=jimb
MozReview-Commit-ID: 6OEnLdOpg4Q
2017-07-26 11:22:59 -07:00
Nicolas Chevobbe 97c62ce736 Bug 1380790 - devtools reps: update bundle to v0.10.0; r=bgrins
This also fixes a few tests that were failing due to changes
in how we now render arrays and objects in tiny mode.

MozReview-Commit-ID: 9JRjDQQ46FA
2017-07-25 17:52:38 +02:00
Nicolas Chevobbe ee4a4c043c Bug 881480 - Add ownSymbols to object preview; r=ochameau
This adds an `ownSymbols` and an `ownSymbolsLength` properties to the
grip `preview` property so we can retrieve them in the frontend.
This also refactors the newly introduced test for symbols and add a
function which test the content of the preview property in the grip.
The console test packet stubs files were updated to take this into account.

MozReview-Commit-ID: 7rPxFcS5uXE
2017-07-24 15:25:46 +02:00
Alexandre Poirot c800f15849 Bug 1382661 - Stop injecting DeveloperToolbar on top level windows. r=jdescottes
MozReview-Commit-ID: L6k7SPf8czd
2017-07-20 13:52:57 +02:00
Brian Grinstead ef90612e82 Bug 1380499 - Prevent horizontal scrollbar from appearing in the console after vertical overflow. r=nchevobbe
MozReview-Commit-ID: zU3uHLLmef
2017-07-22 07:58:42 -07:00
Jan Odvarko 075eabaf1c Bug 1326937 - Fix persistent logs; r=bgrins
MozReview-Commit-ID: BLsEmTwkrxK
2017-07-21 11:20:02 +02:00
Jan Odvarko c26c0a47f9 Bug 1326937 - Fix CSS; r=bgrins
MozReview-Commit-ID: CKWZM1mG7YA
2017-06-23 14:22:46 +02:00
Jan Odvarko 65932bda75 Bug 1326937 - Provide HTML page when running new console frontend; r=bgrins
MozReview-Commit-ID: G2TzrRF0Vag
2017-06-09 09:42:34 -07:00
Johann Hofmann 3fca548c18 Bug 1371219 - Add an inputSource attribute to XULCommandEvent. r=smaug
In the frontend we need to know if XUL buttons in the toolbar were
triggered by a touch event, so we're passing on the inputSource
in the command event.

MozReview-Commit-ID: DMvgZULk9hT
2017-07-20 17:45:56 +02:00
Nicolas Chevobbe 550c5dbe71 Bug 1382690 - Adapt extensions inspect() calls to the new frontend. r=bgrins
The inspect command in extension was directly calling jsterm.inspectObject and doing so bypassed
the code we implemented for the command on the new frontend (i.e. no more variable view).
This patch modifies the jsterm inspectObject function so it can do the expected behavior,
and also reverts some changes made in the original inspect command bug, so we only deal with
the new frontend code in jsterm.inspectObject.
This implied changing an extension test that was waiting for the variable view to boot-up.
The test was modified to match the tests we already have for the inspect command on the new
console frontend.

MozReview-Commit-ID: 8fZV20Mck8r
2017-07-20 14:56:46 +02:00
Nicolas Chevobbe 032e8ce73a Bug 1374680 - Retrieve indent property from the message in the messages types components; r=bgrins
We don't retrieve the indent from the MessageContainer anymore, but from the lowest-level
component where we have access to the full message data, i.e. the messages types components (e.g.
ConsoleApi, EvaluationResult, … ).

MozReview-Commit-ID: JkaIcxnyt3W
2017-06-22 11:57:28 +02:00
Jan Odvarko 1b66e0ee95 Bug 1378850 - Stop using sdk/core/heritage in DevTools webconsole hudservice; r=sole,zer0
MozReview-Commit-ID: GWH1hYt3pUr
2017-07-07 13:37:56 +02:00
Ryan VanderMeulen 96dea1ec83 Backed out changeset 68c5012ba344 (bug 1378850) for ESlint no-unused-vars failures on a CLOSED TREE. 2017-07-19 12:26:25 -04:00
Jan Odvarko fd16f0afe1 Bug 1378850 - Stop using sdk/core/heritage in DevTools webconsole hudservice; r=sole,zer0
MozReview-Commit-ID: GWH1hYt3pUr
2017-07-07 13:37:56 +02:00
Jan Odvarko f842b59be1 Bug 1378825 - Stop using sdk/stylesheet/utils in DevTools; r=zer0
MozReview-Commit-ID: F26gvdnTbhT
2017-07-10 11:10:55 +02:00
Nicolas Chevobbe 2e1627a607 Bug 1379570 - Adapt the inspect command to the new console frontend. r=bgrins
MozReview-Commit-ID: LsT12pOJhvV
2017-07-11 13:50:59 +02:00
Wes Kocher 4bc98bfd1b Backed out changeset c676af6947ac (bug 1379570) for devtools failures in browser_webconsole_check_stubs_console_api.js a=backout
MozReview-Commit-ID: GMaDw6nXEwJ
2017-07-17 14:12:35 -07:00
Nicolas Chevobbe d4a4ecd2ad Bug 1379570 - Adapt the inspect command to the new console frontend. r=bgrins
MozReview-Commit-ID: LsT12pOJhvV
2017-07-11 13:50:59 +02:00
Sebastian Hengst 6aa896a12d Backed out changeset 227ff88b9848 (bug 1326937) for timing out in browser_ext_devtools_inspectedWindow_eval_bindings.js. r=backout on A CLOSED TREE 2017-07-17 20:48:25 +02:00
Sebastian Hengst eda374df44 Backed out changeset d99559a7adc7 (bug 1326937) 2017-07-17 20:47:41 +02:00
Jan Odvarko ffef152b76 Bug 1326937 - Fix CSS; r=bgrins
MozReview-Commit-ID: BrQKy5Vgbed
2017-06-23 14:22:46 +02:00
Brian Grinstead 2085208361 Bug 1326937 - Provide HTML page when running new console frontend; r=bgrins
MozReview-Commit-ID: 6Pxao2KmSb4
2017-06-09 09:42:34 -07:00
Junior Hsu ded770e714 Bug 1373198 - Part 5: disable rcwn for devtools mochitest tests which require deterministic cache behavior, r=Honza 2017-07-12 02:02:00 +02:00
Yoshi Huang 6aa2a312e4 Bug 1377523 - Part 6: fix in webconsole/. r=pbro
Use srcdoc for iframe.
2017-07-13 12:28:04 +08:00
Nicolas Chevobbe cd7cd71ba5 Bug 1307922 - Add support for console.dir(); r=Honza
MozReview-Commit-ID: 9TKWqF5FOWr
2017-07-12 14:57:00 +02:00
Nicolas Chevobbe 113448d80a Bug 1308566 - Add a mochitest for the ObjectInspector in the console. r=bgrins
MozReview-Commit-ID: GDiZEo7xfPJ
2017-07-11 09:55:40 +02:00
Nicolas Chevobbe 31aafcfef3 Bug 1308566 - Fixes broken tests due to the ObjectInspector switch. r=bgrins
Some tests were failing after switching to ObjectInspector.
Here we remove the ones that are specific to the VariableView, and
fix the "store as global" one.

MozReview-Commit-ID: 4IhNp4MTC2k
2017-06-29 09:15:16 -07:00
Nicolas Chevobbe 0bf0d3e837 Bug 1308566 - Release actors from loaded properties. r=bgrins,Honza
Because we need to check in an another property from the store for actors to release,
a little refactor of how we deal with actors to be released was needed.
So instead of tracking removed messages from the store, we directly track removed actors.
We can compute this list directly in the reducer, and it even allow us to simplify the enhancer a bit.
Some tests where added to make sure we do handle loaded properties in the store.

MozReview-Commit-ID: 72F2wl3UaLA
2017-06-28 16:51:46 -07:00
Nicolas Chevobbe 6666fbf743 Bug 1308566 - Use Object Inspector in Console. r=bgrins,Honza
MozReview-Commit-ID: 9jzXwHlBu3X
2017-07-11 16:29:41 +02:00
Frederik Braun 96b2642639 Bug 1351608 - Disable warnings for existing violations to no-unsanitize rule r=Standard8.
MozReview-Commit-ID: 7cTNL5jMtRw
2017-07-03 20:07:02 +01:00
Paolo Amadini 6db1a43ab3 Bug 1374242 - Remove obsolete whitelisting of unhandled rejections. r=Mossop
The whitelisting function thisTestLeaksUncaughtRejectionsAndShouldBeFixed was replaced by expectUncaughtRejection, and existing calls did not take effect anymore.

MozReview-Commit-ID: 3uOxkgWYWEz
2017-06-29 00:13:06 +01:00
Sebastian Hengst 7e5fae0fc9 Backed out changeset 1cd9e27f0fa1 (bug 1351608) 2017-06-29 01:01:15 +02:00
Frederik Braun 3332995b26 Bug 1351608 - Comment out existing violations to no-unsanitize rule. r=standard8 2017-06-28 12:50:38 -07:00
Jan Odvarko ff5dbd46a2 Bug 1375458 - New alias for debounce module; r=nchevobbe
MozReview-Commit-ID: CQ62g6ZnlGk
2017-06-22 13:19:15 +02:00
Nicolas Chevobbe 05d4b607fe Bug 1307954 - Add integration test for clicking on network event message url; r=Honza.
This ensures that clicking on a message open the netmonitor panel, with the network
item clicked being selected in the netmonitor panel.
The loadDocument was edited to accept a URL instead of relying on the existence of
a TEST_PATH variable. Callsites where thus modified.

MozReview-Commit-ID: 3dbX1Myxirz
2017-06-20 15:14:32 +02:00
Brian Grinstead 1a7887e736 Bug 1364150 - Introduce debounce middleware; r=bgrins
MozReview-Commit-ID: Hu3rQ3iJHzP
2017-05-11 12:40:20 -07:00
Nicolas Chevobbe ab5d787675 Bug 1373568 - Retrieve message data in MessageContainer instead of in ConsoleOutput; r=bgrins.
Prior to this patch, we were retrieving the message data in the ConsoleOutput
render, for each message. This means that for each message addition, we were
retrieving the data for each message in the store.
This doesn't impact performance if there are not many messages in the store, but
if the store is "full", we might end up calling the function to get those messages
a lot. And since the messages are in an Immutable.OrderedMap, it can be very costly.

Moving the retrieval of the message data in ConsoleOutput allow us to only call this
function when a message is added or updated, which allow us to save some time on
the rendering path.

MozReview-Commit-ID: S4NSSW5Mvw
2017-06-16 10:03:05 +02:00
Paolo Amadini 7afba17088 Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P
2017-06-19 11:32:37 +01:00
Nicolas Chevobbe bedc1fd66a Bug 1372814 - Add test case and performance measurement in test-perf.html . r=bgrins
Add a test case to measure streaming time when the store already hit the log limit so
we can have data about pruning.
Switch to performance.mark and performance.measure for time measurement instead of the
custom timeit function we had.
This allow us to have precise data, and also those are written in the profile and then
shown in perf-html, so we can have a better overview of what's going on during the test.

MozReview-Commit-ID: 2nNmukxmUso
2017-06-14 17:13:52 +02:00
Nicolas Chevobbe 98c0f54e5c Bug 1307917 - Copy existing network messages tests to the new console. r=bgrins
MozReview-Commit-ID: CotlhuLJOii
2017-06-19 18:11:25 +02:00
Sebastian Hengst 9630acb61e Backed out changeset ee03c4d8ee6c (bug 1372814) for eslint failures in test_render_perf.html. r=backout 2017-06-19 19:25:38 +02:00
Nicolas Chevobbe 5b53eaba61 Bug 1361541 - Fix warning messages in dev mode. r=Honza
MozReview-Commit-ID: KrndGb2zQuD
2017-06-16 14:48:31 +02:00
Nicolas Chevobbe 3a0072f3a0 Bug 1372814 - Add test case and performance measurement in test-perf.html . r=bgrins
Add a test case to measure streaming time when the store already hit the log limit so
we can have data about pruning.
Switch to performance.mark and performance.measure for time measurement instead of the
custom timeit function we had.
This allow us to have precise data, and also those are written in the profile and then
shown in perf-html, so we can have a better overview of what's going on during the test.

MozReview-Commit-ID: 2nNmukxmUso
2017-06-14 17:13:52 +02:00
Nicolas Chevobbe cb201542f8 Bug 1370486 - Add mocha tests for messages store cleaning. r=Honza
In the process of adding those tests, I realized the cleanup was
not effective. There were some bugs for Immutable List (we can't
use delete in a withMutation callback), and in object/arrays (we
we're using Array.includes with another array as a parameter).
These were fixed, and the new tests are now passing.

MozReview-Commit-ID: NrKjLuu25
2017-06-16 17:42:11 +02:00
Nicolas Chevobbe 918358d295 Bug 1341308 - Fix network stub check test intermittent. r=bgrins,Honza
In the console, we were assuming that eventTiming was the last
of the eight networkUpdate that happen for a given network request.
Unfortunately, we can't ensure the order in which those updates come,
so the test was intermitently failing when eventTiming was fired
before other updates.
To fix this, we don't look for a specific update, but rather check that
all of the 8 updates happened.

MozReview-Commit-ID: Iv0TIHoqkyv
2017-06-12 09:18:51 +02:00
Jan Odvarko adb9d95cec Bug 1370172 - Remove sdk/core/heritage from Console panel; r=zer0
MozReview-Commit-ID: GYH3p2spgZT
2017-06-14 12:18:48 +02:00
Nicolas Chevobbe 2efb91d07c Bug 1370268 - Stop using Immutable.Record for messages types. r=bgrins
MozReview-Commit-ID: Lp4JnICQzcM
2017-06-12 09:56:31 +02:00
Brian Grinstead 33767b2870 Bug 1371452 - Provide instructions for POSTing the profile from test_render_perf.html to perf-html;r=nchevobbe
MozReview-Commit-ID: HYdmANqxIg5
2017-06-08 15:00:34 -07:00