Bug 224939 - NowPlayingInfoForGPUManager::clearNowPlayingInfoPrivate() sometimes launches the GPUProcess on page close
Summary: NowPlayingInfoForGPUManager::clearNowPlayingInfoPrivate() sometimes launches ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-22 11:50 PDT by Chris Dumez
Modified: 2021-04-22 15:44 PDT (History)
10 users (show)

See Also:


Attachments
Patch (2.04 KB, patch)
2021-04-22 11:52 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2021-04-22 11:50:12 PDT
NowPlayingInfoForGPUManager::clearNowPlayingInfoPrivate() sometimes launches the GPUProcess on page close:
1   0x103940d00 WebKit::WebProcess::ensureGPUProcessConnection()
2   0x1039e1acc WebKit::WebMediaStrategy::createNowPlayingManager() const::NowPlayingInfoForGPUManager::clearNowPlayingInfoPrivate()
3   0x10f5af78c WebCore::NowPlayingManager::removeClient(WebCore::NowPlayingManager::Client&)
4   0x10e75b878 WebCore::MediaSessionManagerCocoa::removeSession(WebCore::PlatformMediaSession&)
5   0x10f5e0130 WebCore::PlatformMediaSession::stopSession()
6   0x10f14ab24 WebCore::HTMLMediaElement::stop()
7   0x10ef9fe60 WTF::Detail::CallableWrapper<WebCore::ScriptExecutionContext::stopActiveDOMObjects()::$_3, WebCore::ScriptExecutionContext::ShouldContinue, WebCore::ActiveDOMObject&>::call(WebCore::ActiveDOMObject&)
8   0x10ef9afc0 WebCore::ScriptExecutionContext::forEachActiveDOMObject(WTF::Function<WebCore::ScriptExecutionContext::ShouldContinue (WebCore::ActiveDOMObject&)> const&) const
9   0x10ef9b220 WebCore::ScriptExecutionContext::stopActiveDOMObjects()
10  0x10eee7194 WebCore::Document::stopActiveDOMObjects()
11  0x10eee7020 WebCore::Document::commonTeardown()
12  0x10eeeed08 WebCore::Document::willBeRemovedFromFrame()
13  0x10f4e8254 WebCore::Frame::setView(WTF::RefPtr<WebCore::FrameView, WTF::RawPtrTraits<WebCore::FrameView>, WTF::DefaultRefDerefTraits<WebCore::FrameView> >&&)
14  0x10f41b504 WebCore::FrameLoader::detachFromParent()
15  0x103ae12c4 WebKit::WebPage::close()
Comment 1 Chris Dumez 2021-04-22 11:52:52 PDT
Created attachment 426833 [details]
Patch
Comment 2 EWS 2021-04-22 14:19:46 PDT
Committed r276461 (236921@main): <https://commits.webkit.org/236921@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 426833 [details].
Comment 3 Radar WebKit Bug Importer 2021-04-22 15:44:51 PDT
<rdar://problem/77042048>