WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
66297
Page::PageClients not fully initialized?
https://bugs.webkit.org/show_bug.cgi?id=66297
Summary
Page::PageClients not fully initialized?
Berend-Jan Wever
Reported
2011-08-16 06:23:40 PDT
Created
attachment 104032
[details]
Repro Repro: <script> new (window.open()).PeerConnection([].x,function(){}); </script> It seems that a WebViews PageClients structure is not fully initialized; "deviceMotionClient" and "mediaStreamClient" are not set: WebViewImpl::WebViewImpl(WebViewClient* client) : m_client(client) <<<snip>>> Page::PageClients pageClients; -------------------------------- struct PageClients { <<<snip>>> ChromeClient* chromeClient; ContextMenuClient* contextMenuClient; EditorClient* editorClient; DragClient* dragClient; InspectorClient* inspectorClient; GeolocationClient* geolocationClient; DeviceMotionClient* deviceMotionClient; DeviceOrientationClient* deviceOrientationClient; RefPtr<BackForwardList> backForwardClient; SpeechInputClient* speechInputClient; MediaStreamClient* mediaStreamClient; }; -------------------------------- pageClients.chromeClient = &m_chromeClientImpl; pageClients.contextMenuClient = &m_contextMenuClientImpl; pageClients.editorClient = &m_editorClientImpl; pageClients.dragClient = &m_dragClientImpl; pageClients.inspectorClient = &m_inspectorClientImpl; #if ENABLE(INPUT_SPEECH) pageClients.speechInputClient = m_speechInputClient.get(); #endif pageClients.deviceOrientationClient = m_deviceOrientationClientProxy.get(); pageClients.geolocationClient = m_geolocationClientProxy.get(); pageClients.backForwardClient = BackForwardListChromium::create(this); m_page = adoptPtr(new Page(pageClients)); <<<snip>>> This will cause the corresponding MediaStreamController to have a NULL m_client, which the code does not take into account and can leads to a NULL ptr as show in the repro.
Attachments
Repro
(75 bytes, text/html)
2011-08-16 06:23 PDT
,
Berend-Jan Wever
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Berend-Jan Wever
Comment 1
2011-08-16 06:25:56 PDT
Chromium:
https://code.google.com/p/chromium/issues/detail?id=93046
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug