Backed out changeset 7fa7d6e6dedc (bug 1442778) for devtools failures on browser_webconsole_check_stubs_console_api.js CLOSED TREE

This commit is contained in:
Cosmin Sabou
2019-03-26 20:27:55 +02:00
parent ca7c61ef80
commit de6f748a09
37 changed files with 68 additions and 149 deletions

View File

@@ -102,7 +102,6 @@ class WebSocketImpl final : public nsIInterfaceRequestor,
mScriptColumn(0),
mInnerWindowID(0),
mPrivateBrowsing(false),
mIsChromeContext(false),
mIsMainThread(true),
mMutex("WebSocketImpl::mMutex"),
mWorkerShuttingDown(false) {
@@ -202,7 +201,6 @@ class WebSocketImpl final : public nsIInterfaceRequestor,
uint32_t mScriptColumn;
uint64_t mInnerWindowID;
bool mPrivateBrowsing;
bool mIsChromeContext;
RefPtr<ThreadSafeWorkerRef> mWorkerRef;
@@ -346,7 +344,7 @@ void WebSocketImpl::PrintErrorOnConsole(const char* aBundleURI,
rv = errorObject->Init(message, NS_ConvertUTF8toUTF16(mScriptFile),
EmptyString(), mScriptLine, mScriptColumn,
nsIScriptError::errorFlag, "Web Socket",
mPrivateBrowsing, mIsChromeContext);
mPrivateBrowsing);
}
NS_ENSURE_SUCCESS_VOID(rv);
@@ -1506,7 +1504,6 @@ nsresult WebSocketImpl::Init(JSContext* aCx, nsIPrincipal* aLoadingPrincipal,
}
mPrivateBrowsing = !!aPrincipal->OriginAttributesRef().mPrivateBrowsingId;
mIsChromeContext = nsContentUtils::IsSystemPrincipal(aPrincipal);
// parses the url
rv = ParseURL(aURL);