From 9d02f5394b362681a789e3e0fd456ce3d60df9ac Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Wed, 13 Aug 2014 10:34:55 +1200 Subject: [PATCH] b=970773 remove unnecessary IsSafeToRunScript() test on event loop nsRunnable r=roc If the event loop is running, then it is safe to run script. --HG-- extra : rebase_source : c0fb5fddb8e714d4d5ed0cdb7384a95cf23ad9af --- content/media/webaudio/ScriptProcessorNode.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/content/media/webaudio/ScriptProcessorNode.cpp b/content/media/webaudio/ScriptProcessorNode.cpp index 89f5b59f6620..0e7e4530a4f3 100644 --- a/content/media/webaudio/ScriptProcessorNode.cpp +++ b/content/media/webaudio/ScriptProcessorNode.cpp @@ -383,12 +383,6 @@ private: NS_IMETHODIMP Run() { - // If it's not safe to run scripts right now, schedule this to run later - if (!nsContentUtils::IsSafeToRunScript()) { - nsContentUtils::AddScriptRunner(this); - return NS_OK; - } - nsRefPtr node; { // No need to keep holding the lock for the whole duration of this