[Webkit-unassigned] [Bug 212120] WebProcessPool::startDisplayLink() is often called with a displayID of 0

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 19 20:32:15 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=212120

--- Comment #1 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
diff --git a/Source/WebKit/UIProcess/mac/DisplayLink.cpp b/Source/WebKit/UIProcess/mac/DisplayLink.cpp
index 9f0c10181957ca4dec980191a4647ad4123c5d08..169c4ed6f8ee5d38313f46eb7e08026d884b59d7 100644
--- a/Source/WebKit/UIProcess/mac/DisplayLink.cpp
+++ b/Source/WebKit/UIProcess/mac/DisplayLink.cpp
@@ -36,6 +36,7 @@ namespace WebKit {
 DisplayLink::DisplayLink(WebCore::PlatformDisplayID displayID)
     : m_displayID(displayID)
 {
+    ASSERT(displayID);
     ASSERT(hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer));
     CVReturn error = CVDisplayLinkCreateWithCGDisplay(displayID, &m_displayLink);
     if (error) {

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200520/aa6e1a4f/attachment.htm>


More information about the webkit-unassigned mailing list