Title: [244511] trunk/Source/WebCore
- Revision
- 244511
- Author
- you...@apple.com
- Date
- 2019-04-22 14:29:12 -0700 (Mon, 22 Apr 2019)
Log Message
Update libwebrtc logging when WebCore WebRTC logging is updated
https://bugs.webkit.org/show_bug.cgi?id=197166
Reviewed by Eric Carlson.
When updating WebRTC logging from Web Inspector, update libwebrtc logging so that no page reload is required.
Manually tested.
* page/Page.cpp:
(WebCore::Page::configureLoggingChannel):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (244510 => 244511)
--- trunk/Source/WebCore/ChangeLog 2019-04-22 21:08:07 UTC (rev 244510)
+++ trunk/Source/WebCore/ChangeLog 2019-04-22 21:29:12 UTC (rev 244511)
@@ -1,3 +1,16 @@
+2019-04-22 Youenn Fablet <you...@apple.com>
+
+ Update libwebrtc logging when WebCore WebRTC logging is updated
+ https://bugs.webkit.org/show_bug.cgi?id=197166
+
+ Reviewed by Eric Carlson.
+
+ When updating WebRTC logging from Web Inspector, update libwebrtc logging so that no page reload is required.
+ Manually tested.
+
+ * page/Page.cpp:
+ (WebCore::Page::configureLoggingChannel):
+
2019-04-22 Simon Fraser <simon.fra...@apple.com>
Introduce the concept of "opportunistic" stacking contexts
Modified: trunk/Source/WebCore/page/Page.cpp (244510 => 244511)
--- trunk/Source/WebCore/page/Page.cpp 2019-04-22 21:08:07 UTC (rev 244510)
+++ trunk/Source/WebCore/page/Page.cpp 2019-04-22 21:29:12 UTC (rev 244511)
@@ -2957,6 +2957,9 @@
if (auto* channel = getLogChannel(channelName)) {
channel->state = state;
channel->level = level;
+
+ if (channel == &LogWebRTC && m_mainFrame->document())
+ libWebRTCProvider().setEnableLogging(!m_mainFrame->document()->sessionID().isEphemeral());
}
chrome().client().configureLoggingChannel(channelName, state, level);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes