зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1483240
- Disable plugins in recording/replaying processes, r=jimm.
--HG-- extra : rebase_source : 342a8a0b55affc43858e9cba231888af4411892e
This commit is contained in:
Родитель
418ac18c32
Коммит
f4be588d5b
|
@ -793,6 +793,12 @@ nsPluginHost::InstantiatePluginInstance(const nsACString& aMimeType, nsIURI* aUR
|
||||||
return NS_ERROR_FAILURE;
|
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();
|
RefPtr<nsPluginInstanceOwner> instanceOwner = new nsPluginInstanceOwner();
|
||||||
if (!instanceOwner) {
|
if (!instanceOwner) {
|
||||||
return NS_ERROR_OUT_OF_MEMORY;
|
return NS_ERROR_OUT_OF_MEMORY;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче