зеркало из https://github.com/mozilla/gecko-dev.git
Bug 865664 - Remove deprecated nsIDOMWindowUtils.getOuterWindowWithId. r=bz
MozReview-Commit-ID: By0a88Gu4p4 --HG-- extra : rebase_source : 744e9f9f9bcec2b739bc8a4ecd24d1bb43967a37
This commit is contained in:
Родитель
32e5d77ba4
Коммит
8e852a4fe6
|
@ -3087,23 +3087,6 @@ nsDOMWindowUtils::GetDisplayDPI(float *aDPI)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::GetOuterWindowWithId(uint64_t aWindowID,
|
||||
nsIDOMWindow** aWindow)
|
||||
{
|
||||
// XXX This method is deprecated. See bug 865664.
|
||||
nsContentUtils::ReportToConsole(nsIScriptError::warningFlag,
|
||||
NS_LITERAL_CSTRING("DOM"),
|
||||
nsContentUtils::GetDocumentFromCaller(),
|
||||
nsContentUtils::eDOM_PROPERTIES,
|
||||
"GetWindowWithOuterIdWarning");
|
||||
|
||||
*aWindow = nsGlobalWindow::GetOuterWindowWithId(aWindowID);
|
||||
NS_IF_ADDREF(*aWindow);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::GetContainerElement(nsIDOMElement** aResult)
|
||||
{
|
||||
|
|
|
@ -1487,12 +1487,6 @@ interface nsIDOMWindowUtils : nsISupports {
|
|||
*/
|
||||
readonly attribute float displayDPI;
|
||||
|
||||
/**
|
||||
* Return the outer window with the given ID, if any. Can return null.
|
||||
* @deprecated Use nsIWindowMediator.getOuterWindowWithId. See bug 865664.
|
||||
*/
|
||||
nsIDOMWindow getOuterWindowWithId(in unsigned long long aOuterWindowID);
|
||||
|
||||
/**
|
||||
* Return this window's frame element.
|
||||
* Ignores all chrome/content or mozbrowser boundaries.
|
||||
|
|
|
@ -162,8 +162,6 @@ PrefixedFullscreenAPIWarning=Prefixed Fullscreen API is deprecated. Please use u
|
|||
NodeIteratorDetachWarning=Calling detach() on a NodeIterator no longer has an effect.
|
||||
# LOCALIZATION NOTE: Do not translate "LenientThis" and "this"
|
||||
LenientThisWarning=Ignoring get or set of property that has [LenientThis] because the “this” object is incorrect.
|
||||
# LOCALIZATION NOTE: Do not translate "nsIDOMWindowUtils", "getWindowWithOuterId", or "nsIWindowMediator"
|
||||
GetWindowWithOuterIdWarning=Use of nsIDOMWindowUtils.getOuterWindowWithId() is deprecated. Instead, use the nsIWindowMediator method of the same name.
|
||||
# LOCALIZATION NOTE: Do not translate "getPreventDefault" or "defaultPrevented".
|
||||
GetPreventDefaultWarning=Use of getPreventDefault() is deprecated. Use defaultPrevented instead.
|
||||
# LOCALIZATION NOTE: Do not translate "getUserData", "setUserData", "WeakMap", or "element.dataset".
|
||||
|
|
Загрузка…
Ссылка в новой задаче