mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 09:54:42 +00:00
Backed out changeset 656d52ea68bb (bug 1702812) for causing devtool failures in browser_webconsole_shows_reqs_from_netmonitor.js
CLOSED TREE
This commit is contained in:
parent
306f970597
commit
777f450c24
@ -28,7 +28,6 @@ loader.lazyRequireGetter(
|
||||
const {
|
||||
getHTTPStatusCodeURL,
|
||||
} = require("devtools/client/netmonitor/src/utils/mdn-utils");
|
||||
const { getUnicodeUrl } = require("devtools/client/shared/unicode-url");
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
"BLOCKED_REASON_MESSAGES",
|
||||
@ -155,11 +154,7 @@ function NetworkEventMessage({
|
||||
const xhr = isXHR
|
||||
? dom.span({ className: "xhr" }, l10n.getStr("webConsoleXhrIndicator"))
|
||||
: null;
|
||||
const unicodeURL = getUnicodeUrl(url);
|
||||
const requestUrl = dom.span(
|
||||
{ className: "url", title: unicodeURL },
|
||||
unicodeURL
|
||||
);
|
||||
const requestUrl = dom.span({ className: "url", title: url }, url);
|
||||
const statusBody = statusInfo
|
||||
? dom.a({ className: "status" }, statusInfo)
|
||||
: null;
|
||||
|
@ -299,7 +299,6 @@ fail-if = fission # Bug 1613081
|
||||
[browser_webconsole_network_requests_from_chrome.js]
|
||||
[browser_webconsole_network_reset_filter.js]
|
||||
skip-if = (os == "linux" && fission && !ccov) || (os == "win" && fission) #Bug 1601331
|
||||
[browser_webconsole_network_unicode.js]
|
||||
[browser_webconsole_nodes_highlight.js]
|
||||
[browser_webconsole_nodes_select.js]
|
||||
[browser_webconsole_non_javascript_mime_warning.js]
|
||||
|
@ -1,35 +0,0 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
// Tests that Unicode characters within the domain are displayed
|
||||
// encoded and not in Punycode or somehow garbled.
|
||||
|
||||
"use strict";
|
||||
|
||||
const TEST_URL =
|
||||
"http://example.com/browser/devtools/client/webconsole/test/browser/test-network-request.html";
|
||||
|
||||
add_task(async function() {
|
||||
await pushPref("devtools.webconsole.filter.netxhr", true);
|
||||
|
||||
const toolbox = await openNewTabAndToolbox(TEST_URL, "webconsole");
|
||||
const hud = toolbox.getCurrentPanel().hud;
|
||||
|
||||
const onMessage = waitForMessage(hud, "testxhr", ".network");
|
||||
|
||||
const XHR_TEST_URL_WITHOUT_PARAMS = "http://flüge.example.com/testxhr";
|
||||
const XHR_TEST_URL = XHR_TEST_URL_WITHOUT_PARAMS + "?foo";
|
||||
SpecialPowers.spawn(gBrowser.selectedBrowser, [XHR_TEST_URL], url => {
|
||||
content.fetch(url);
|
||||
});
|
||||
|
||||
info("Wait for expected messages to appear");
|
||||
const message = await onMessage;
|
||||
|
||||
const urlNode = message.node.querySelector(".url");
|
||||
is(
|
||||
urlNode.textContent,
|
||||
XHR_TEST_URL,
|
||||
"The network call is displayed with the expected URL"
|
||||
);
|
||||
});
|
Loading…
Reference in New Issue
Block a user