Bug 1483240 - Disable plugins in recording/replaying processes, r=jimm.

--HG--
extra : rebase_source : 342a8a0b55affc43858e9cba231888af4411892e
This commit is contained in:
Brian Hackett 2018-08-21 00:56:47 +00:00
Родитель 418ac18c32
Коммит f4be588d5b
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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;