Bug 684618 - Deny requests for full-screen in documents containing windowed plugins. Exit full-screen when windowed plugin added document. r=roc
This commit is contained in:
@@ -3277,7 +3277,13 @@ NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget(void)
|
||||
if (!mWidget) {
|
||||
bool windowless = false;
|
||||
mInstance->IsWindowless(&windowless);
|
||||
|
||||
nsIDocument *doc = mContent ? mContent->OwnerDoc() : nsnull;
|
||||
#ifndef XP_MACOSX
|
||||
if (!windowless && doc && doc->IsFullScreenDoc()) {
|
||||
NS_DispatchToCurrentThread(
|
||||
NS_NewRunnableMethod(doc, &nsIDocument::CancelFullScreen));
|
||||
}
|
||||
#endif
|
||||
// always create widgets in Twips, not pixels
|
||||
nsPresContext* context = mObjectFrame->PresContext();
|
||||
rv = mObjectFrame->CreateWidget(context->DevPixelsToAppUnits(mPluginWindow->width),
|
||||
|
||||
Reference in New Issue
Block a user