зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1210459: Add originAttributes for tests that implement nsILoadContext. r=bholley
This commit is contained in:
Родитель
3204290bef
Коммит
836f7732eb
|
@ -151,6 +151,10 @@ this.AppsUtils = {
|
|||
topWindow : null,
|
||||
appId: aAppId,
|
||||
isInBrowserElement: aIsBrowser,
|
||||
originAttributes: {
|
||||
appId: aAppId,
|
||||
inBrowser: aIsBrowser
|
||||
},
|
||||
usePrivateBrowsing: false,
|
||||
isContent: false,
|
||||
|
||||
|
|
|
@ -3468,6 +3468,10 @@ this.DOMApplicationRegistry = {
|
|||
// nsILoadContext
|
||||
appId: aOldApp.installerAppId,
|
||||
isInBrowserElement: aOldApp.installerIsBrowser,
|
||||
originAttributes: {
|
||||
appId: aOldApp.installerAppId,
|
||||
inBrowser: aOldApp.installerIsBrowser
|
||||
},
|
||||
usePrivateBrowsing: false,
|
||||
isContent: false,
|
||||
associatedWindow: null,
|
||||
|
|
|
@ -171,6 +171,10 @@ function LoadContextCallback(appId, inBrowserElement, isPrivate, isContent) {
|
|||
this.isInBrowserElement = inBrowserElement;
|
||||
this.usePrivateBrowsing = isPrivate;
|
||||
this.isContent = isContent;
|
||||
this.originAttributes = {
|
||||
appId: appId,
|
||||
inBrowser: inBrowserElement
|
||||
};
|
||||
}
|
||||
|
||||
LoadContextCallback.prototype = {
|
||||
|
|
|
@ -19,6 +19,7 @@ function LoadContext(usePrivateBrowsing) {
|
|||
this.usePrivateBrowsing = usePrivateBrowsing;
|
||||
}
|
||||
LoadContext.prototype = {
|
||||
originAttributes: {},
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsILoadContext, Ci.nsIInterfaceRequestor]),
|
||||
getInterface: XPCOMUtils.generateQI([Ci.nsILoadContext])
|
||||
};
|
||||
|
|
|
@ -20,6 +20,7 @@ function LoadContext(usePrivateBrowsing) {
|
|||
}
|
||||
|
||||
LoadContext.prototype = {
|
||||
originAttributes: {},
|
||||
usePrivateBrowsing: false,
|
||||
// don't bother defining rest of nsILoadContext fields: don't need 'em
|
||||
|
||||
|
|
|
@ -97,7 +97,8 @@ this.DownloadLastDir = function DownloadLastDir(aWindow) {
|
|||
// load context isn't of interest to the content pref service.
|
||||
this.fakeContext = {
|
||||
QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsILoadContext]),
|
||||
usePrivateBrowsing: loadContext.usePrivateBrowsing
|
||||
usePrivateBrowsing: loadContext.usePrivateBrowsing,
|
||||
originAttributes: {},
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче