Bug 1158761: Part 1 - Make CheckPluginStopEvent run asynchronously; r=bholley
authorAaron Klotz <aklotz@mozilla.com>
Thu, 30 Apr 2015 14:54:09 -0600
changeset 243057 e7219efa371ebbbd43751393e7398e121e0ed444
parent 243056 053b96e48e3cf49f8cd8d5dbac12c3a016275c87
child 243058 afbc1f7623e78648ec70e04aa794de4cc5851e07
push id59577
push useraklotz@mozilla.com
push dateFri, 08 May 2015 20:28:27 +0000
treeherdermozilla-inbound@afbc1f7623e7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
bugs1158761
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1158761: Part 1 - Make CheckPluginStopEvent run asynchronously; r=bholley
dom/base/nsObjectLoadingContent.cpp
--- a/dom/base/nsObjectLoadingContent.cpp
+++ b/dom/base/nsObjectLoadingContent.cpp
@@ -569,20 +569,17 @@ IsPluginEnabledByExtension(nsIURI* uri, 
 
 // Helper to queue a CheckPluginStopEvent for a OBJLC object
 void
 nsObjectLoadingContent::QueueCheckPluginStopEvent()
 {
   nsCOMPtr<nsIRunnable> event = new CheckPluginStopEvent(this);
   mPendingCheckPluginStopEvent = event;
 
-  nsCOMPtr<nsIAppShell> appShell = do_GetService(kAppShellCID);
-  if (appShell) {
-    appShell->RunInStableState(event);
-  }
+  NS_DispatchToCurrentThread(event);
 }
 
 // Tedious syntax to create a plugin stream listener with checks and put it in
 // mFinalListener
 bool
 nsObjectLoadingContent::MakePluginListener()
 {
   if (!mInstanceOwner) {