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
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
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
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
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
This was making browser_webconsole_filters.js fail on verify mode, and
could potentially cause other issues in the future.
MozReview-Commit-ID: 9syLDYAjm6S
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
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
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
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
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
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
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