Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug

This commit is contained in:
Andrea Marchesini
2018-03-13 06:40:38 +01:00
parent 05b0134ece
commit cdb15164d7
35 changed files with 139 additions and 84 deletions

View File

@@ -147,7 +147,8 @@ JavaScriptParent::allowMessage(JSContext* cx)
nsCOMPtr<nsIScriptError> error(do_CreateInstance(NS_SCRIPTERROR_CONTRACTID));
error->Init(NS_LITERAL_STRING("unsafe/forbidden CPOW usage"), filename,
EmptyString(), lineno, column,
nsIScriptError::warningFlag, "chrome javascript");
nsIScriptError::warningFlag, "chrome javascript",
false /* from private window */);
console->LogMessage(error);
} else {
NS_WARNING("Unsafe synchronous IPC message");