Title: [259739] trunk/Source/WebKit
Revision
259739
Author
[email protected]
Date
2020-04-08 11:57:53 -0700 (Wed, 08 Apr 2020)

Log Message

Web Inspector: only broadcast the console message to main frames
https://bugs.webkit.org/show_bug.cgi?id=210122

Reviewed by Timothy Hatcher.

* WebProcess/Network/NetworkProcessConnection.cpp:
(WebKit::NetworkProcessConnection::broadcastConsoleMessage):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (259738 => 259739)


--- trunk/Source/WebKit/ChangeLog	2020-04-08 18:53:10 UTC (rev 259738)
+++ trunk/Source/WebKit/ChangeLog	2020-04-08 18:57:53 UTC (rev 259739)
@@ -1,3 +1,13 @@
+2020-04-08  Devin Rousso  <[email protected]>
+
+        Web Inspector: only broadcast the console message to main frames
+        https://bugs.webkit.org/show_bug.cgi?id=210122
+
+        Reviewed by Timothy Hatcher.
+
+        * WebProcess/Network/NetworkProcessConnection.cpp:
+        (WebKit::NetworkProcessConnection::broadcastConsoleMessage):
+
 2020-04-08  Kate Cheney  <[email protected]>
 
         Return app-bound sessions for instances where WKAppBoundDomains is

Modified: trunk/Source/WebKit/WebProcess/Network/NetworkProcessConnection.cpp (259738 => 259739)


--- trunk/Source/WebKit/WebProcess/Network/NetworkProcessConnection.cpp	2020-04-08 18:53:10 UTC (rev 259738)
+++ trunk/Source/WebKit/WebProcess/Network/NetworkProcessConnection.cpp	2020-04-08 18:57:53 UTC (rev 259739)
@@ -319,8 +319,10 @@
 {
     FAST_RETURN_IF_NO_FRONTENDS(void());
 
-    for (auto* frame : WebProcess::singleton().webFrames())
-        frame->addConsoleMessage(source, level, message);
+    for (auto* frame : WebProcess::singleton().webFrames()) {
+        if (frame->isMainFrame())
+            frame->addConsoleMessage(source, level, message);
+    }
 }
 
 } // namespace WebKit
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to