Bug 520805: Full screen video plays back on wrong monitor (multiple monitor setup). r=jst, a=beltzner

This commit is contained in:
Felipe Gomes 2010-08-02 22:55:25 -04:00
parent 75b5f4d7ae
commit aa23897901
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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);