Bug 809055 - Restore fullscreen plugins after document becomes active r=blassey

This commit is contained in:
James Willcox 2012-12-17 10:05:59 -05:00
parent 65e5a49652
commit 8b0bdd7a65

View File

@ -3383,6 +3383,8 @@ nsPluginInstanceOwner::UpdateDocumentActiveState(bool aIsActive)
if (mInstance) {
if (!mPluginDocumentActiveState)
RemovePluginView();
else if (mPluginDocumentActiveState && mFullScreen)
AddPluginView();
mInstance->NotifyOnScreen(mPluginDocumentActiveState);