Bug 1910698 - Remove nsIScriptError.sourceLine. r=smaug,devtools-reviewers,webdriver-reviewers,necko-reviewers,nchevobbe,kershaw,jdescottes,credential-management-reviewers,dimi
Afaict the source lines are not exposed anywhere in the UI. Differential Revision: https://phabricator.services.mozilla.com/D218115
This commit is contained in:
@@ -6342,10 +6342,12 @@ nsresult nsDocShell::EndPageLoad(nsIWebProgress* aProgress,
|
||||
DisplayLoadError(aStatus, url, nullptr, aChannel);
|
||||
}
|
||||
} else if (skippedUnknownProtocolNavigation) {
|
||||
nsAutoCString sanitized;
|
||||
nsTArray<nsString> params;
|
||||
if (NS_FAILED(
|
||||
NS_GetSanitizedURIStringFromURI(url, *params.AppendElement()))) {
|
||||
params.LastElement().AssignLiteral(u"(unknown uri)");
|
||||
if (NS_SUCCEEDED(NS_GetSanitizedURIStringFromURI(url, sanitized))) {
|
||||
params.AppendElement(NS_ConvertUTF8toUTF16(sanitized));
|
||||
} else {
|
||||
params.AppendElement(u"(unknown uri)"_ns);
|
||||
}
|
||||
nsContentUtils::ReportToConsole(
|
||||
nsIScriptError::warningFlag, "DOM"_ns, GetExtantDocument(),
|
||||
|
||||
Reference in New Issue
Block a user