MediaPlayerPrivate m_private may not yet be created when setPrivateBrowsingMode is...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Jun 2017 01:04:29 +0000 (01:04 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Jun 2017 01:04:29 +0000 (01:04 +0000)
commitb7cd1b09dc5ecc75d8dfc7cb2c1d78f004a1391b
treeafb5f5e4cace9dcfd0336086f4385fe902c6a62b
parentb5d238fc8b8d07134d70d118b27fb1475011d664
MediaPlayerPrivate m_private may not yet be created when setPrivateBrowsingMode is called.
https://bugs.webkit.org/show_bug.cgi?id=173893
rdar://problem/32986872

Patch by Jeremy Jones <jeremyj@apple.com> on 2017-06-27
Reviewed by Ryosuke Niwa.

No new tests because no reproducable case.

setPrivateBrowsingMode can be called on MediaPlayer before the MediaPlayerPrivate is created.
The value should only be pushed down the m_private if it has been created.

* platform/graphics/MediaPlayer.cpp:
(WebCore::MediaPlayer::setPrivateBrowsingMode):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/MediaPlayer.cpp