mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 520805: Full screen video plays back on wrong monitor (multiple monitor setup). r=jst, a=beltzner
This commit is contained in:
parent
75b5f4d7ae
commit
aa23897901
@ -807,7 +807,7 @@ nsContextMenu.prototype = {
|
|||||||
this.target.pause();
|
this.target.pause();
|
||||||
|
|
||||||
openDialog("chrome://browser/content/fullscreen-video.xhtml",
|
openDialog("chrome://browser/content/fullscreen-video.xhtml",
|
||||||
"", "chrome,dialog=no", this.target);
|
"", "chrome,centerscreen,dialog=no", this.target);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Change current window to the URL of the background image.
|
// Change current window to the URL of the background image.
|
||||||
|
@ -175,7 +175,7 @@ nsresult nsWebShellWindow::Initialize(nsIXULWindow* aParent,
|
|||||||
|
|
||||||
// XXX: need to get the default window size from prefs...
|
// XXX: need to get the default window size from prefs...
|
||||||
// Doesn't come from prefs... will come from CSS/XUL/RDF
|
// Doesn't come from prefs... will come from CSS/XUL/RDF
|
||||||
nsIntRect r(0, 0, aInitialWidth, aInitialHeight);
|
nsIntRect r(mOpenerScreenRect.x, mOpenerScreenRect.y, aInitialWidth, aInitialHeight);
|
||||||
|
|
||||||
// Create top level window
|
// Create top level window
|
||||||
mWindow = do_CreateInstance(kWindowCID, &rv);
|
mWindow = do_CreateInstance(kWindowCID, &rv);
|
||||||
|
Loading…
Reference in New Issue
Block a user