⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 259739 in webkit


Ignore:
Timestamp:
Apr 8, 2020, 11:57:53 AM (6 years ago)
Author:
Devin Rousso
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):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r259731 r259739  
     12020-04-08  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: only broadcast the console message to main frames
     4        https://bugs.webkit.org/show_bug.cgi?id=210122
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * WebProcess/Network/NetworkProcessConnection.cpp:
     9        (WebKit::NetworkProcessConnection::broadcastConsoleMessage):
     10
    1112020-04-08  Kate Cheney  <katherine_cheney@apple.com>
    212
  • trunk/Source/WebKit/WebProcess/Network/NetworkProcessConnection.cpp

    r259236 r259739  
    320320    FAST_RETURN_IF_NO_FRONTENDS(void());
    321321
    322     for (auto* frame : WebProcess::singleton().webFrames())
    323         frame->addConsoleMessage(source, level, message);
     322    for (auto* frame : WebProcess::singleton().webFrames()) {
     323        if (frame->isMainFrame())
     324            frame->addConsoleMessage(source, level, message);
     325    }
    324326}
    325327
Note: See TracChangeset for help on using the changeset viewer.