Skip to content

Commit

Permalink
Cherry-pick ff70798. rdar://problem/100335624
Browse files Browse the repository at this point in the history
    REGRESSION (256161@main): [ macOS Debug ] TestWebKitAPI.GPUProcess.OnlyLaunchesGPUProcessWhenNecessaryMediaFeatureDetection is a consistent failure
    https://bugs.webkit.org/show_bug.cgi?id=247775
    rdar://102221029

    Reviewed by Darin Adler and John Wilander.

    * Source/WebKit/UIProcess/WebPageProxy.cpp:
    (WebKit::WebPageProxy::didCommitLoadForFrame): Use `m_userMediaPermissionRequestManager`
    instead of `userMediaPermissionRequestManager()`` so we don't create the manager, and thus
    the GPU process, if it doesn't already exist.

    Canonical link: https://commits.webkit.org/256591@main

Canonical link: https://commits.webkit.org/252432.814@safari-7614.3.7.3-branch
  • Loading branch information
eric-carlson authored and alancoon committed Nov 12, 2022
1 parent f339635 commit ef0fd89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/WebKit/UIProcess/WebPageProxy.cpp
Expand Up @@ -5212,7 +5212,8 @@ void WebPageProxy::didCommitLoadForFrame(FrameIdentifier frameID, FrameInfoData&
#endif

#if ENABLE(MEDIA_STREAM)
userMediaPermissionRequestManager().didCommitLoadForFrame(frameID);
if (m_userMediaPermissionRequestManager)
m_userMediaPermissionRequestManager->didCommitLoadForFrame(frameID);
#endif
}

Expand Down

0 comments on commit ef0fd89

Please sign in to comment.