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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user