From f4be588d5bb1f1403bb3fbb3bd1b97f0f1723bcf Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Tue, 21 Aug 2018 00:56:47 +0000 Subject: [PATCH] Bug 1483240 - Disable plugins in recording/replaying processes, r=jimm. --HG-- extra : rebase_source : 342a8a0b55affc43858e9cba231888af4411892e --- dom/plugins/base/nsPluginHost.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dom/plugins/base/nsPluginHost.cpp b/dom/plugins/base/nsPluginHost.cpp index 9d879d98c48c..5ace9a65eec3 100644 --- a/dom/plugins/base/nsPluginHost.cpp +++ b/dom/plugins/base/nsPluginHost.cpp @@ -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 instanceOwner = new nsPluginInstanceOwner(); if (!instanceOwner) { return NS_ERROR_OUT_OF_MEMORY;