Skip to content

Commit 0207ce5

Browse files
committed
Backed out 2 changesets (bug 1470510) for build bustage on /build/src/widget/cocoa/nsChildView.mm. CLOSED TREE
Backed out changeset 5967bf633574 (bug 1470510) Backed out changeset 067a556bb614 (bug 1470510) --HG-- rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h extra : amend_source : 752d828c6a0726c3f2df57a25741e38b36b75d6b
1 parent b1b874a commit 0207ce5

File tree

71 files changed

+1673
-1557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1673
-1557
lines changed

accessible/generic/RootAccessible.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#include "nsGlobalWindow.h"
4646

4747
#ifdef MOZ_XUL
48-
# include "nsIAppWindow.h"
48+
# include "nsIXULWindow.h"
4949
#endif
5050

5151
using namespace mozilla;
@@ -97,18 +97,18 @@ role RootAccessible::NativeRole() const {
9797
uint32_t RootAccessible::GetChromeFlags() const {
9898
// Return the flag set for the top level window as defined
9999
// by nsIWebBrowserChrome::CHROME_WINDOW_[FLAGNAME]
100-
// Not simple: nsIAppWindow is not just a QI from nsIDOMWindow
100+
// Not simple: nsIXULWindow is not just a QI from nsIDOMWindow
101101
nsCOMPtr<nsIDocShell> docShell = nsCoreUtils::GetDocShellFor(mDocumentNode);
102102
NS_ENSURE_TRUE(docShell, 0);
103103
nsCOMPtr<nsIDocShellTreeOwner> treeOwner;
104104
docShell->GetTreeOwner(getter_AddRefs(treeOwner));
105105
NS_ENSURE_TRUE(treeOwner, 0);
106-
nsCOMPtr<nsIAppWindow> appWin(do_GetInterface(treeOwner));
107-
if (!appWin) {
106+
nsCOMPtr<nsIXULWindow> xulWin(do_GetInterface(treeOwner));
107+
if (!xulWin) {
108108
return 0;
109109
}
110110
uint32_t chromeFlags;
111-
appWin->GetChromeFlags(&chromeFlags);
111+
xulWin->GetChromeFlags(&chromeFlags);
112112
return chromeFlags;
113113
}
114114
#endif

browser/base/content/browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ var gBrowserInit = {
17591759
// This needs setting up before we create the first remote browser.
17601760
window.docShell.treeOwner
17611761
.QueryInterface(Ci.nsIInterfaceRequestor)
1762-
.getInterface(Ci.nsIAppWindow).XULBrowserWindow = window.XULBrowserWindow;
1762+
.getInterface(Ci.nsIXULWindow).XULBrowserWindow = window.XULBrowserWindow;
17631763
window.browserDOMWindow = new nsBrowserAccess();
17641764

17651765
gBrowser = window._gBrowser;
@@ -2534,7 +2534,7 @@ var gBrowserInit = {
25342534
window.XULBrowserWindow = null;
25352535
window.docShell.treeOwner
25362536
.QueryInterface(Ci.nsIInterfaceRequestor)
2537-
.getInterface(Ci.nsIAppWindow).XULBrowserWindow = null;
2537+
.getInterface(Ci.nsIXULWindow).XULBrowserWindow = null;
25382538
window.browserDOMWindow = null;
25392539
},
25402540
};

browser/components/BrowserGlue.jsm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,11 @@ let LEGACY_ACTORS = {
449449
// Set the size to use when the user leaves the maximized mode.
450450
// The persisted size is the outer size, but the height/width
451451
// attributes set the inner size.
452-
let appWin = win.docShell.treeOwner
452+
let xulWin = win.docShell.treeOwner
453453
.QueryInterface(Ci.nsIInterfaceRequestor)
454-
.getInterface(Ci.nsIAppWindow);
455-
height -= appWin.outerToInnerHeightDifferenceInCSSPixels;
456-
width -= appWin.outerToInnerWidthDifferenceInCSSPixels;
454+
.getInterface(Ci.nsIXULWindow);
455+
height -= xulWin.outerToInnerHeightDifferenceInCSSPixels;
456+
width -= xulWin.outerToInnerWidthDifferenceInCSSPixels;
457457
docElt.setAttribute("height", height);
458458
docElt.setAttribute("width", width);
459459
} else {

browser/components/downloads/DownloadsTaskbar.jsm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ var DownloadsTaskbar = {
131131
// Activate the indicator on the specified window.
132132
let docShell = aWindow.docShell.treeOwner
133133
.QueryInterface(Ci.nsIInterfaceRequestor)
134-
.getInterface(Ci.nsIAppWindow).docShell;
134+
.getInterface(Ci.nsIXULWindow).docShell;
135135
this._taskbarProgress = gWinTaskbar.getTaskbarProgress(docShell);
136136

137137
// If the DownloadSummary object has already been created, we should update

browser/components/extensions/parent/ext-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ class Window extends WindowBase {
10091009
}
10101010

10111011
get alwaysOnTop() {
1012-
return this.appWindow.zLevel >= Ci.nsIAppWindow.raisedZ;
1012+
return this.xulWindow.zLevel >= Ci.nsIXULWindow.raisedZ;
10131013
}
10141014

10151015
get isLastFocused() {

browser/components/extensions/test/browser/browser_ext_windows_create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ add_task(async function testWindowCreate() {
172172
if (expected.chromeFlags) {
173173
let { chromeFlags } = latestWindow.docShell.treeOwner
174174
.QueryInterface(Ci.nsIInterfaceRequestor)
175-
.getInterface(Ci.nsIAppWindow);
175+
.getInterface(Ci.nsIXULWindow);
176176
for (let flag of expected.chromeFlags) {
177177
ok(
178178
chromeFlags & Ci.nsIWebBrowserChrome[flag],

browser/components/privatebrowsing/test/browser/browser_privatebrowsing_context_and_chromeFlags.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* Given some window in the parent process, ensure that
5-
* the nsIAppWindow has the CHROME_PRIVATE_WINDOW chromeFlag,
5+
* the nsIXULWindow has the CHROME_PRIVATE_WINDOW chromeFlag,
66
* and that the usePrivateBrowsing property is set to true on
77
* both the window's nsILoadContext, as well as on the initial
88
* browser's content docShell nsILoadContext.
@@ -15,7 +15,7 @@ function assertWindowIsPrivate(win) {
1515
let winDocShell = win.docShell;
1616
let chromeFlags = winDocShell.treeOwner
1717
.QueryInterface(Ci.nsIInterfaceRequestor)
18-
.getInterface(Ci.nsIAppWindow).chromeFlags;
18+
.getInterface(Ci.nsIXULWindow).chromeFlags;
1919

2020
if (!win.gBrowser.selectedBrowser.hasContentOpener) {
2121
Assert.ok(

browser/components/search/SearchTelemetry.jsm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ class TelemetryHandler {
244244
* This is called when a new window is opened, and handles registration of
245245
* that window if it is a browser window.
246246
*
247-
* @param {nsIAppWindow} appWin The xul window that was opened.
247+
* @param {nsIXULWindow} xulWin The xul window that was opened.
248248
*/
249-
onOpenWindow(appWin) {
250-
let win = appWin.docShell.domWindow;
249+
onOpenWindow(xulWin) {
250+
let win = xulWin.docShell.domWindow;
251251
win.addEventListener(
252252
"load",
253253
() => {
@@ -268,10 +268,10 @@ class TelemetryHandler {
268268
* Listener that is called when a window is closed, and handles deregistration of
269269
* that window if it is a browser window.
270270
*
271-
* @param {nsIAppWindow} appWin The xul window that was closed.
271+
* @param {nsIXULWindow} xulWin The xul window that was closed.
272272
*/
273-
onCloseWindow(appWin) {
274-
let win = appWin.docShell.domWindow;
273+
onCloseWindow(xulWin) {
274+
let win = xulWin.docShell.domWindow;
275275

276276
if (
277277
win.document.documentElement.getAttribute("windowtype") !=

browser/components/sessionstore/SessionStore.jsm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5259,7 +5259,7 @@ var SessionStoreInternal = {
52595259
},
52605260

52615261
/**
5262-
* on popup windows, the AppWindow's attributes seem not to be set correctly
5262+
* on popup windows, the XULWindow's attributes seem not to be set correctly
52635263
* we use thus JSDOMWindow attributes for sizemode and normal window attributes
52645264
* (and hope for reasonable values when maximized/minimized - since then
52655265
* outerWidth/outerHeight aren't the dimensions of the restored window)
@@ -5298,13 +5298,13 @@ var SessionStoreInternal = {
52985298
}
52995299
// Width and height attribute report the inner size, but we want
53005300
// to store the outer size, so add the difference.
5301-
let appWin = aWindow.docShell.treeOwner
5301+
let xulWin = aWindow.docShell.treeOwner
53025302
.QueryInterface(Ci.nsIInterfaceRequestor)
5303-
.getInterface(Ci.nsIAppWindow);
5303+
.getInterface(Ci.nsIXULWindow);
53045304
let diff =
53055305
aAttribute == "width"
5306-
? appWin.outerToInnerWidthDifferenceInCSSPixels
5307-
: appWin.outerToInnerHeightDifferenceInCSSPixels;
5306+
? xulWin.outerToInnerWidthDifferenceInCSSPixels
5307+
: xulWin.outerToInnerHeightDifferenceInCSSPixels;
53085308
return attr + diff;
53095309
}
53105310
}

browser/components/tests/startupRecorder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ startupRecorder.prototype = {
123123
// not other types (for example, the gfx sanity test window)
124124
if (topic == firstPaintNotification) {
125125
// In the case we're handling xul-window-visible, we'll have been handed
126-
// an nsIAppWindow instead of an nsIDOMWindow.
127-
if (subject instanceof Ci.nsIAppWindow) {
126+
// an nsIXULWindow instead of an nsIDOMWindow.
127+
if (subject instanceof Ci.nsIXULWindow) {
128128
subject = subject
129129
.QueryInterface(Ci.nsIInterfaceRequestor)
130130
.getInterface(Ci.nsIDOMWindow);

0 commit comments

Comments
 (0)