mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 967694 - Make clear that we only sync spawn plugins in response to content, not chrome, JS access. r=bsmedberg
This commit is contained in:
parent
cab43a3bfd
commit
5cfba85d3a
@ -2622,7 +2622,7 @@ nsObjectLoadingContent::ScriptRequestPluginInstance(JSContext* aCx,
|
||||
NS_NOTREACHED("failed to dispatch PluginScripted event");
|
||||
}
|
||||
mScriptRequested = true;
|
||||
} else if (mType == eType_Plugin && !mInstanceOwner &&
|
||||
} else if (callerIsContentJS && mType == eType_Plugin && !mInstanceOwner &&
|
||||
nsContentUtils::IsSafeToRunScript() &&
|
||||
InActiveDocument(thisContent)) {
|
||||
// If we're configured as a plugin in an active document and it's safe to
|
||||
@ -3434,7 +3434,8 @@ nsObjectLoadingContent::DoNewResolve(JSContext* aCx, JS::Handle<JSObject*> aObje
|
||||
JS::Handle<jsid> aId,
|
||||
JS::MutableHandle<JSPropertyDescriptor> aDesc)
|
||||
{
|
||||
// We don't resolve anything; we just try to make sure we're instantiated
|
||||
// We don't resolve anything; we just try to make sure we're instantiated.
|
||||
// This purposefully does not fire for chrome/xray resolves, see bug 967694
|
||||
|
||||
nsRefPtr<nsNPAPIPluginInstance> pi;
|
||||
nsresult rv = ScriptRequestPluginInstance(aCx, getter_AddRefs(pi));
|
||||
@ -3450,8 +3451,8 @@ nsObjectLoadingContent::GetOwnPropertyNames(JSContext* aCx,
|
||||
ErrorResult& aRv)
|
||||
{
|
||||
// Just like DoNewResolve, just make sure we're instantiated. That will do
|
||||
// the work our Enumerate hook needs to do, and we don't want to return these
|
||||
// property names from Xrays anyway.
|
||||
// the work our Enumerate hook needs to do. This purposefully does not fire
|
||||
// for xray resolves, see bug 967694
|
||||
nsRefPtr<nsNPAPIPluginInstance> pi;
|
||||
aRv = ScriptRequestPluginInstance(aCx, getter_AddRefs(pi));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user