Bug 1316683 - Part 5: Avoid going into SpiderMonkey for retrieving origin attributes; r=baku
Our caller is C++ code, and the implementations are all also written in C++, so there is no reason to go through SpiderMonkey here. This patch also makes nsILoadContext builtinclass to ensure that the implementation is always native.
This commit is contained in:
@@ -62,9 +62,7 @@ SerializedLoadContext::Init(nsILoadContext* aLoadContext)
|
||||
aLoadContext->GetIsContent(&mIsContent);
|
||||
aLoadContext->GetUseRemoteTabs(&mUseRemoteTabs);
|
||||
aLoadContext->GetUseTrackingProtection(&mUseTrackingProtection);
|
||||
if (!aLoadContext->GetOriginAttributes(mOriginAttributes)) {
|
||||
NS_WARNING("GetOriginAttributes failed");
|
||||
}
|
||||
aLoadContext->GetOriginAttributes(mOriginAttributes);
|
||||
} else {
|
||||
mIsNotNull = false;
|
||||
mIsPrivateBitValid = false;
|
||||
|
||||
Reference in New Issue
Block a user