http/tests/security/sandboxed-iframe-invalid.html is flaky on Mac
[WebKit-https.git] / Tools / DumpRenderTree / mac / UIDelegate.mm
index 3473d17..0ceac74 100644 (file)
@@ -60,6 +60,9 @@ DumpRenderTreeDraggingInfo *draggingInfo = nil;
 
 - (void)webView:(WebView *)sender addMessageToConsole:(NSDictionary *)dictionary withSource:(NSString *)source
 {
+    if (done)
+        return;
+
     NSString *message = [dictionary objectForKey:@"message"];
     NSNumber *lineNumber = [dictionary objectForKey:@"lineNumber"];