mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1375123 - Remove nsIDOMWindowInternal. r=Ehsan
MozReview-Commit-ID: 2jjGFsxsLTz --HG-- extra : rebase_source : 5cb538ff53369cb724b0d336de1e74dd8a7d35c1
This commit is contained in:
parent
866d87ee67
commit
90da924fda
@ -990,8 +990,7 @@ nsDocShell::GetInterface(const nsIID& aIID, void** aSink)
|
||||
aIID.Equals(NS_GET_IID(nsIGlobalObject)) ||
|
||||
aIID.Equals(NS_GET_IID(nsPIDOMWindowOuter)) ||
|
||||
aIID.Equals(NS_GET_IID(mozIDOMWindowProxy)) ||
|
||||
aIID.Equals(NS_GET_IID(nsIDOMWindow)) ||
|
||||
aIID.Equals(NS_GET_IID(nsIDOMWindowInternal))) &&
|
||||
aIID.Equals(NS_GET_IID(nsIDOMWindow))) &&
|
||||
NS_SUCCEEDED(EnsureScriptEnvironment())) {
|
||||
return mScriptGlobal->QueryInterface(aIID, aSink);
|
||||
} else if (aIID.Equals(NS_GET_IID(nsIDOMDocument)) &&
|
||||
|
@ -293,7 +293,6 @@ using mozilla::dom::cache::CacheStorage;
|
||||
static LazyLogModule gDOMLeakPRLog("DOMLeak");
|
||||
|
||||
nsGlobalWindow::WindowByIdTable *nsGlobalWindow::sWindowsById = nullptr;
|
||||
bool nsGlobalWindow::sWarnedAboutWindowInternal = false;
|
||||
bool nsGlobalWindow::sIdleObserversAPIFuzzTimeDisabled = false;
|
||||
|
||||
static int32_t gRefCnt = 0;
|
||||
@ -2222,16 +2221,6 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsGlobalWindow)
|
||||
// Make sure this matches the cast in nsGlobalWindow::FromWrapper()
|
||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDOMEventTarget)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIDOMWindow)
|
||||
if (aIID.Equals(NS_GET_IID(nsIDOMWindowInternal))) {
|
||||
foundInterface = static_cast<nsIDOMWindowInternal*>(this);
|
||||
if (!sWarnedAboutWindowInternal) {
|
||||
sWarnedAboutWindowInternal = true;
|
||||
nsContentUtils::ReportToConsole(nsIScriptError::warningFlag,
|
||||
NS_LITERAL_CSTRING("Extensions"), mDoc,
|
||||
nsContentUtils::eDOM_PROPERTIES,
|
||||
"nsIDOMWindowInternalWarning");
|
||||
}
|
||||
} else
|
||||
NS_INTERFACE_MAP_ENTRY(nsIGlobalObject)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIScriptGlobalObject)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIScriptObjectPrincipal)
|
||||
|
@ -261,7 +261,7 @@ private:
|
||||
|
||||
class nsGlobalWindow : public mozilla::dom::EventTarget,
|
||||
public nsPIDOMWindow<nsISupports>,
|
||||
private nsIDOMWindowInternal,
|
||||
private nsIDOMWindow,
|
||||
public nsIScriptGlobalObject,
|
||||
public nsIScriptObjectPrincipal,
|
||||
public nsSupportsWeakReference,
|
||||
@ -2087,7 +2087,6 @@ protected:
|
||||
friend class IdleRequestExecutor;
|
||||
|
||||
static WindowByIdTable* sWindowsById;
|
||||
static bool sWarnedAboutWindowInternal;
|
||||
};
|
||||
|
||||
inline nsISupports*
|
||||
|
@ -20,10 +20,3 @@ interface nsIVariant;
|
||||
|
||||
[scriptable, uuid(b8343993-0383-4add-9930-ad176b189240)]
|
||||
interface nsIDOMWindow : nsISupports {};
|
||||
|
||||
/**
|
||||
* Empty interface for compatibility with older versions.
|
||||
* @deprecated Use nsIDOMWindow instead
|
||||
*/
|
||||
[scriptable, uuid(8c589e65-3237-4cd1-8bad-c5c47135e79b)]
|
||||
interface nsIDOMWindowInternal : nsIDOMWindow {};
|
||||
|
@ -62,7 +62,6 @@ TextContentWarning=Use of attributes’ textContent attribute is deprecated. Use
|
||||
EnablePrivilegeWarning=Use of enablePrivilege is deprecated. Please use code that runs with the system principal (e.g. an extension) instead.
|
||||
nsIJSONDecodeDeprecatedWarning=nsIJSON.decode is deprecated. Please use JSON.parse instead.
|
||||
nsIJSONEncodeDeprecatedWarning=nsIJSON.encode is deprecated. Please use JSON.stringify instead.
|
||||
nsIDOMWindowInternalWarning=Use of nsIDOMWindowInternal is deprecated. Use nsIDOMWindow instead.
|
||||
FullscreenDeniedDisabled=Request for fullscreen was denied because Fullscreen API is disabled by user preference.
|
||||
FullscreenDeniedFocusedPlugin=Request for fullscreen was denied because a windowed plugin is focused.
|
||||
FullscreenDeniedHidden=Request for fullscreen was denied because the document is no longer visible.
|
||||
|
@ -62,7 +62,7 @@ function Factory(component) {
|
||||
let windowListener = {
|
||||
onOpenWindow: function(aWindow) {
|
||||
// Wait for the window to finish loading
|
||||
let domWindow = aWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowInternal || Ci.nsIDOMWindow);
|
||||
let domWindow = aWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindow);
|
||||
domWindow.addEventListener("UIReady", function() {
|
||||
loadIntoWindow(domWindow);
|
||||
}, {once: true});
|
||||
|
@ -165,13 +165,6 @@ NS_IMETHODIMP nsXULWindow::GetInterface(const nsIID& aIID, void** aSink)
|
||||
domWindow.forget(aSink);
|
||||
return rv;
|
||||
}
|
||||
if (aIID.Equals(NS_GET_IID(nsIDOMWindowInternal))) {
|
||||
nsCOMPtr<mozIDOMWindowProxy> window = nullptr;
|
||||
rv = GetWindowDOMWindow(getter_AddRefs(window));
|
||||
nsCOMPtr<nsIDOMWindowInternal> domWindowInternal = do_QueryInterface(window);
|
||||
domWindowInternal.forget(aSink);
|
||||
return rv;
|
||||
}
|
||||
if (aIID.Equals(NS_GET_IID(nsIWebBrowserChrome)) &&
|
||||
NS_SUCCEEDED(EnsureContentTreeOwner()) &&
|
||||
NS_SUCCEEDED(mContentTreeOwner->QueryInterface(aIID, aSink)))
|
||||
|
Loading…
Reference in New Issue
Block a user