forked from mirrors/gecko-dev
Bug 1483240 - Disable plugins in recording/replaying processes, r=jimm.
--HG-- extra : rebase_source : 342a8a0b55affc43858e9cba231888af4411892e
This commit is contained in:
parent
418ac18c32
commit
f4be588d5b
1 changed files with 6 additions and 0 deletions
|
|
@ -793,6 +793,12 @@ nsPluginHost::InstantiatePluginInstance(const nsACString& aMimeType, nsIURI* aUR
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// Plugins are not supported when recording or replaying executions.
|
||||
// See bug 1483232.
|
||||
if (recordreplay::IsRecordingOrReplaying()) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
RefPtr<nsPluginInstanceOwner> instanceOwner = new nsPluginInstanceOwner();
|
||||
if (!instanceOwner) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
|
|
|||
Loading…
Reference in a new issue