Fix WKTR crash when running NPN_ConvertPoint test.
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Nov 2011 18:20:11 +0000 (18:20 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Nov 2011 18:20:11 +0000 (18:20 +0000)
Call notifyDone in a timeout - otherwise we'll end up entering layout from layout.

* DumpRenderTree/TestNetscapePlugIn/Tests/mac/ConvertPoint.cpp:
(ConvertPoint::NPP_SetWindow):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@99302 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/DumpRenderTree/TestNetscapePlugIn/Tests/mac/ConvertPoint.cpp

index 6e60dfb..b515792 100644 (file)
@@ -1,5 +1,14 @@
 2011-11-04  Anders Carlsson  <andersca@apple.com>
 
+        Fix WKTR crash when running NPN_ConvertPoint test.
+
+        Call notifyDone in a timeout - otherwise we'll end up entering layout from layout.
+
+        * DumpRenderTree/TestNetscapePlugIn/Tests/mac/ConvertPoint.cpp:
+        (ConvertPoint::NPP_SetWindow):
+
+2011-11-04  Anders Carlsson  <andersca@apple.com>
+
         NPN_ConvertPoint plug-in test should be called from NPP_SetWindow
         https://bugs.webkit.org/show_bug.cgi?id=71570
 
index 16a2b68..96a6cc7 100644 (file)
@@ -74,7 +74,7 @@ private:
         if (testConvert())
             executeScript("document.getElementById('result').innerHTML = 'SUCCESS!'");
 
-        notifyDone();
+        executeScript("setTimeout(function() { layoutTestController.notifyDone() }, 0)");
         return NPERR_NO_ERROR;
     }
 };