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:
Emilio Cobos Álvarez
2024-08-01 17:12:48 +00:00
parent a44b49af0b
commit 77c40caac6
101 changed files with 341 additions and 573 deletions

View File

@@ -1151,12 +1151,11 @@ nsresult nsScriptSecurityManager::ReportError(const char* aMessageTag,
// using category of "SOP" so we can link to MDN
if (aInnerWindowID != 0) {
rv = error->InitWithWindowID(
message, u""_ns, u""_ns, 0, 0, nsIScriptError::errorFlag, "SOP"_ns,
message, ""_ns, 0, 0, nsIScriptError::errorFlag, "SOP"_ns,
aInnerWindowID, true /* From chrome context */);
} else {
rv = error->Init(message, u""_ns, u""_ns, 0, 0, nsIScriptError::errorFlag,
"SOP"_ns, aFromPrivateWindow,
true /* From chrome context */);
rv = error->Init(message, ""_ns, 0, 0, nsIScriptError::errorFlag, "SOP"_ns,
aFromPrivateWindow, true /* From chrome context */);
}
NS_ENSURE_SUCCESS(rv, rv);
console->LogMessage(error);