Commit Graph
996 Commits
Author SHA1 Message Date
Noemi Erli 86fad0dd21 Backed out 3 changesets (bug 1404917)for failing clipboard in devtools/client/netmonitor/src/har/test/browser_net_har_copy_all_as_har.js r=backout on a CLOSED TREE
Backed out changeset 3e7a6e920c6b (bug 1404917)
Backed out changeset 7dcfe8d12d6f (bug 1404917)
Backed out changeset 3d8a6d24cec9 (bug 1404917)
2017-11-10 16:56:35 +02:00
Alexandre Poirot aa763cbfa0 Bug 1404917 - Fetch response content only on-demand. r=Honza
Response content should only be fetched whenever it is strictly needed
as it is the response body. A possibly very large string.
So, netmonitor UI should only retrieve it when users select the Response Panel
or do any other action that require having access to it (like "Copy response"
context menu).

MozReview-Commit-ID: CtpJ8PKsCsm
2017-10-26 09:03:40 -07:00
Nicolas Chevobbe 29100b622f Bug 1408928 - Rename and enable browser_webconsole_closing_brackets.js in new console frontend; r=Honza.
MozReview-Commit-ID: EEwk0mSD5Rs
2017-11-07 12:19:09 +01:00
Nicolas Chevobbe efbbeb50cf Bug 1401958 - Remove browser_webconsole_copy_entire_message_context_menu.js; r=Honza.
The test already exists with a different name (browser_webconsole_context_menu_copy_entire_message).

MozReview-Commit-ID: 9NmXosnAVAi
2017-11-07 12:05:57 +01:00
Nicolas Chevobbe 22e0eba7df Bug 1403449 - Enable browser_webconsole_console_dir_uninspectable.js in new frontend; r=jdescottes.
MozReview-Commit-ID: 5d0vbbVKi2T
2017-11-07 09:35:06 +01:00
Nicolas Chevobbe a1a71c336b Bug 1406069 - Enable browser_webconsole_cached_messages.js in new console frontend; r=jdescottes.
MozReview-Commit-ID: EypyZoZUWeo
2017-11-06 09:43:16 +01:00
Nicolas Chevobbe 84bfc44884 Bug 1408920 - Rename and enable browser_webconsole_autocomplete_in_debugger_stackframe.js; r=jdescottes.
We take this as an opportunity to add a jsterm helper function to set its value and
wait for completion, and use it in a test where we did the same thing.
This also copies the openDebugger helper from the old frontend head.js .
The test still uses the old debugger, since it will be fixed in a specific bug
for all the console tests.

MozReview-Commit-ID: AKB3CBY8GPv
2017-11-03 10:46:49 +01:00
Nicolas Chevobbe 04e2cc9797 Bug 1408919 - Rename and enable browser_webconsole_autocomplete_crossdomain_iframe.js; r=Honza.
This bug also renames the support file, and create a dedicated one for the child iframe.
An helper method is created to only wait for a single message with given text in it, as
well as returning an array of matched message in waitForMessages (we were returning the
result of setting the listener, which I doubt is useful for any test.

MozReview-Commit-ID: Gz7zqX825oR
2017-11-02 14:24:45 +01:00
Jan Odvarko bc4a939a61 Bug 1409413 - Put shared styles into network-monitor context; r=rickychien
MozReview-Commit-ID: KVuFWsRxb2W
2017-11-06 16:26:48 +01:00
Jan Odvarko af8b241cc1 Bug 1409413 - Split Netmonitor styles into more files; r=rickychien
MozReview-Commit-ID: 7odPKz06XeA
2017-11-06 16:26:28 +01:00
Csoregi Natalia 6e3d2271e7 Backed out 3 changesets (bug 1409413) for failing Devtools browser_net_headers-alignment.js r=backout CLOSED TREE
Backed out changeset 3a63235751b8 (bug 1409413)
Backed out changeset 2f4dd6186137 (bug 1409413)
Backed out changeset 263fbdbfba96 (bug 1409413)
2017-11-06 15:50:26 +02:00
Jan Odvarko 7bba853b74 Bug 1409413 - Put shared styles into network-monitor context; r=rickychien
MozReview-Commit-ID: KVuFWsRxb2W
2017-11-06 11:31:10 +01:00
Jan Odvarko ebb5d5d8b6 Bug 1409413 - Split Netmonitor styles into more files; r=rickychien
MozReview-Commit-ID: 7odPKz06XeA
2017-11-06 11:30:59 +01:00
J.C. Jones 9281fe5334 Bug 1409259 - Add browser console test for the distrust console message r=keeler,ttaubert
There are xpcshell tests to verify that the appropriate distrust flag is set
upon reaching an affected end entity certificate; this test checks that the
distrust flag prints a warning to console.

MozReview-Commit-ID: OMG246WOOT
2017-11-01 20:59:33 -07:00
Nicolas Chevobbe bb3b72922f Bug 1404850 - Fix self-XSS protection in new console and enable test; r=Honza.
The self-XSS protection was broken since the switch to an HTML document. We
went from using the XUL <notificationbox> tag to a simple div.
But notificationbox has method that a simple div has not, and when trying
to display the warning message, there was an error in terminal.
This patch uses the NotificationBox React component and create it when needed.
It also rename and enable the test that ensures that XSS is working.

MozReview-Commit-ID: BhxIqf7gzAG
2017-10-24 11:08:02 +02:00
Sebastian Hengst ef55bd51d9 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GSDYk9wLOAM
2017-11-01 22:55:12 +01:00
Jan de Mooij 511b262e20 Bug 1083482 part 3 - Fix browser_webconsole_bug_632347_iterators_generators.js to not use legacy generators. r=arai 2017-11-01 15:01:08 +01:00
Alexandre Poirot a5403db77c Bug 1411887 - Add telemetry to track console refresh time when reload a page. r=nchevobbe
MozReview-Commit-ID: 8zZyq9suJWB
2017-10-24 11:56:58 -07:00
Nicolas Chevobbe 2b39a34218 Bug 1408924 - Rename and enable browser_webconsole_cached_autocomplete.js in the new console frontend; r=Honza.
MozReview-Commit-ID: GiaKsuxfrKr
2017-10-31 09:20:26 +01:00
Nicolas Chevobbe 1da66ca179 Bug 1408922 - Rename and enable browser_webconsole_autocomplete_popup.js in the new console frontend; r=Honza.
MozReview-Commit-ID: A8wZ3MCHgCt
2017-10-30 09:46:57 +01:00
Nicolas Chevobbe 0f5a320e57 Bug 1408923 - Rename and enable browser_webconsole_autocomplete_popup_close_on_tab_switch.js in the new console frontend; r=Honza
MozReview-Commit-ID: EzHtCcJQF8H
2017-10-27 17:55:11 +02:00
Nicolas Chevobbe 04b353e196 Bug 1412049 - Clear filterbar visible prefs between tests; r=Honza.
This was making browser_webconsole_filters.js fail on verify mode, and
could potentially cause other issues in the future.

MozReview-Commit-ID: 9syLDYAjm6S
2017-10-27 16:02:49 +02:00
Nicolas Chevobbe b47951f5a2 Bug 1391688 - Show only messages that fit in the viewport on first console render; r=bgrins.
This allow us to have a faster first meaningful render for the user.
The other messages get rendered after ConsoleOutput mounting.

MozReview-Commit-ID: KIptXsLmTiA
2017-10-24 15:54:00 +02:00
Nicolas Chevobbe 70399708e8 Bug 1391688 - Change console panel init resolution to be more meaningful; r=bgrins.
Previously, we were only waiting for NewConsoleOutputWrapper init function to
be done to consider the console loaded. From a user standpoint, it makes more
sense to see it loaded when it do render something to screen.
This patch only resolve the init function when the consoleOutput component is
mounted and painted.

MozReview-Commit-ID: 6tJ0s4HS0yw
2017-10-27 08:50:57 +02:00
Jan Odvarko 14c6d7df0d Bug 1406610 - Implementing test; r=nchevobbe
MozReview-Commit-ID: 16GTk18AbcZ
2017-10-30 16:04:28 +01:00
Jan Odvarko 2843b408dc Bug 1406610 - No HTTP details for requests executed before the Console is activated; r=nchevobbe
MozReview-Commit-ID: B77VqNxXDWo
2017-10-30 15:32:15 +01:00
Nicolas Chevobbe fd5b4ea92a Bug 1411863 - Cleanup new console tests; r=bgrins.
Move clear jsterm history to openNewTabAndConsole.
Switch openNewTabAndConsole to an async function (instead of using Task.async).
Switch openNewTabAndConsole consumers to async as well.

MozReview-Commit-ID: KgMXowGYIJ5
2017-10-26 10:21:45 +02:00
Nicolas Chevobbe 597dc1afba Bug 1408921 - Split browser_webconsole_autocomplete_keys.js in the new console frontend; r=bgrins.
The test was very long and tested different bugs.
Splitting it make all the test case clearer.


MozReview-Commit-ID: 4z45RE3eJoC
2017-10-25 11:59:02 +02:00
Michael Ratcliffe d4722043ac Bug 1411531 - Web Console to ES6 classes r=nchevobbe
MozReview-Commit-ID: BBtCmeyMBaH
2017-10-25 13:33:15 +01:00
Nicolas Chevobbe 1be39f71c2 Bug 1403458 - Convert browser_webconsole_assert.js to a backend test; r=bgrins.
The test ensures that packet are sent for falsy console.assert calls,
and that no packet are sent for truthy console.assert.calls, using a timeout.
Mochitest and support files are removed from the new frontend.

MozReview-Commit-ID: C9QpXfBySLo
2017-10-24 10:45:29 +02:00
Nicolas Chevobbe 13c1733173 Bug 1408918 - Rename and enable browser_webconsole_autocomplete_accessibility.js in new console frontend; r=Honza
MozReview-Commit-ID: CknvP7M1rVJ
2017-10-23 09:07:14 +02:00
Nicolas Chevobbe 7c9964f3c2 Bug 1411502 - Enable browser_jsterm_copy_command.js in new frontend; r=Honza.
MozReview-Commit-ID: EsQsov5y7cD
2017-10-25 10:00:47 +02:00
Nicolas Chevobbe 74d8eb499d Bug 1408917 - Rename, refactor and enable browser_webconsole_autocomplete_JSTerm_helpers.js in new console frontend; r=Honza.
MozReview-Commit-ID: 3TN6q63mnHp
2017-10-20 09:40:54 +02:00
Tom Schuster d16ce1aa47 Bug 638054 - Remove or fix tests outside JS using watch/unwatch. r=bz,fitzgen 2017-10-24 20:48:14 +02:00
Nicolas Chevobbe f64b741c3e Bug 1410071 - Remove space between user styled messages parts; r=bgrins.
The %c marker is only valid for the first argument, so if we find ourselves
between two parameters with user-styled messages, it means we should respect
the original formatting.

MozReview-Commit-ID: 4GORZyvvxRN
2017-10-19 16:03:03 +02:00
Nicolas Chevobbe f59cf78392 Bug 1405652 - Enable browser_webconsole_view_source.js in new console frontend; r=bgrins.
MozReview-Commit-ID: DctteBfNgtC
2017-10-20 08:58:07 +02:00
Nicolas Chevobbe 5adc92f704 Bug 1409836 - Fix setting filters prefs when filters are reset or cleared; r=bgrins.
We were getting the filter state after dispatching the action, which made
all the filters to have an enabled state. Getting the state before dispatching
fixes the issue.
This patch enhance the Service mock in order to have a better idea of what is going on
with prefs. This allow us to introduce some tests to make sure prefs are updated in
reaction to given actions.

MozReview-Commit-ID: Byay0TwF25I
2017-10-19 10:07:54 +02:00
Brian Grinstead 9cb8a4e7af Bug 1408387 - Only run browser_webconsole_view_source.js task in the new debugger r=jmaher
MozReview-Commit-ID: HjzJsTLUD0O
2017-10-19 09:36:33 -07:00
Nicolas Chevobbe a6bf945941 Bug 1408916 - Rename and enable browser_webconsole_autocomplete-properties-with-non-alphanumeric-names.js in the new console frontend; r=bgrins.
MozReview-Commit-ID: DCFWNLGhCSM
2017-10-19 09:16:39 +02:00
Jan Odvarko b561cd2a93 Bug 1403927 - Test for HTTPi Params panel; r=nchevobbe
MozReview-Commit-ID: 1DzpCgxlrQg
2017-10-19 14:53:23 +02:00
Jan Odvarko 1633b7e728 Bug 1403927 - Fix Params panel in HTTPi; r=nchevobbe
MozReview-Commit-ID: 8KIWYs5sDoG
2017-10-19 14:49:05 +02:00
Nicolas Chevobbe 0c14ca4ad0 Bug 1408915 - Enable and rename browser_webconsole_add_edited_input_to_history.js in the new console frontend; r=Honza.
MozReview-Commit-ID: 41xj6osEFOM
2017-10-19 08:59:32 +02:00
Nicolas Chevobbe 00081bea76 Bug 1404829 - Test the repeat mechanism with different category in mocha;r=Honza.
Also, remove the useless mochitest that was doing the same thing.

MozReview-Commit-ID: AiSXglrcRfa
2017-10-18 10:05:20 +02:00
Sebastian Hengst c35d003b50 Backed out changeset 6b88d856e00f (bug 1403927) for failing mochitest-clipboard's devtools/client/netmonitor/test/browser_net_copy_params.js. r=backout 2017-10-19 11:40:42 +02:00
Sebastian Hengst 37872288c3 Backed out changeset ac5ebd3c7e82 (bug 1403927) 2017-10-19 11:40:36 +02:00
Jan Odvarko 5c705ab3b2 Bug 1403927 - Test for HTTPi Params panel; r=nchevobbe
MozReview-Commit-ID: 4k4kF3cGSTh
2017-10-18 20:45:54 +02:00
Jan Odvarko 10b9c6b1b9 Bug 1403927 - Fix Params panel in HTTPi; r=nchevobbe
MozReview-Commit-ID: 16djEqkEJMj
2017-10-18 18:58:38 +02:00
Miguel Useche e51623ade9 Bug 1402390 - CamelCase all React component files in \devtools\client\netmonitor\src\components\. r=pbro
MozReview-Commit-ID: LseEecjdU7I
2017-10-15 22:46:03 -04:00
Nicolas Chevobbe a121950f3f Bug 1408872 - Enable browser_jsterm_no_autocompletion_on_defined_variables.js on the new console frontend; r=Honza.
MozReview-Commit-ID: BrGniln0AB5
2017-10-17 09:32:25 +02:00
Nicolas Chevobbe 77e6208e52 Bug 1408870 - Enable browser_jsterm_history_persist.js on the new console frontend; r=bgrins.
Cleaning jsterm history from previous test so it does not interfere with this one.
Also clearing history at the beginning of the test so we are future-proof.

MozReview-Commit-ID: 33OCfaSiskw
2017-10-16 18:18:32 +02:00