Reviewed by John Sullivan.
authortomernic <tomernic@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2006 23:06:10 +0000 (23:06 +0000)
committertomernic <tomernic@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2006 23:06:10 +0000 (23:06 +0000)
        Needed for <rdar://problem/4678070>.

        * Plugins/WebBaseNetscapePluginView.m:
        (-[WebBaseNetscapePluginView sendEvent:]):
        Changed an assertion to an early return.  It should be possible to send events, especially updateEvt (for image capturing
        purposes), to off-screen plug-ins.  It just doesn't work right now.  See <rdar://problem/4318269>.

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

WebKit/ChangeLog
WebKit/Plugins/WebBaseNetscapePluginView.m

index 7c93a8b4c5067c22dd5f191d7106e3cc6eda2e2f..8feb7ca8f97935eb96077a688fd137c04b4254d8 100644 (file)
@@ -1,3 +1,14 @@
+2006-08-11  Tim Omernick  <timo@apple.com>
+
+        Reviewed by John Sullivan.
+        
+        Needed for <rdar://problem/4678070>.
+
+        * Plugins/WebBaseNetscapePluginView.m:
+        (-[WebBaseNetscapePluginView sendEvent:]):
+        Changed an assertion to an early return.  It should be possible to send events, especially updateEvt (for image capturing
+        purposes), to off-screen plug-ins.  It just doesn't work right now.  See <rdar://problem/4318269>.
+
 2006-08-11  John Sullivan  <sullivan@apple.com>
 
         Reviewed by Darin
index fa684762e768d2eb3f16989740a18281fb9104c3..2c02434c6ac04a4c115d590e6a3c4a8047d877c5 100644 (file)
@@ -554,7 +554,8 @@ static OSStatus TSMEventHandler(EventHandlerCallRef inHandlerRef, EventRef inEve
 
 - (BOOL)sendEvent:(EventRecord *)event
 {
-    ASSERT([self window]);
+    if (![self window])
+        return NO;
     ASSERT(event);
    
     // If at any point the user clicks or presses a key from within a plugin, set the