зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1455676 part 9. Mostly remove use of nsIDOMNode from mobile/. r=snorp
This commit is contained in:
Родитель
9748db120d
Коммит
4cf7b4f9a1
|
@ -3153,7 +3153,7 @@ var NativeWindow = {
|
|||
},
|
||||
|
||||
_getLink: function(aElement) {
|
||||
if (aElement.nodeType == Ci.nsIDOMNode.ELEMENT_NODE &&
|
||||
if (aElement.nodeType == aElement.ELEMENT_NODE &&
|
||||
((ChromeUtils.getClassName(aElement) === "HTMLAnchorElement" && aElement.href) ||
|
||||
(ChromeUtils.getClassName(aElement) === "HTMLAreaElement" && aElement.href) ||
|
||||
ChromeUtils.getClassName(aElement) === "HTMLLinkElement" ||
|
||||
|
@ -4891,7 +4891,7 @@ var BrowserEventHandler = {
|
|||
},
|
||||
|
||||
_getLinkURI: function(aElement) {
|
||||
if (aElement.nodeType == Ci.nsIDOMNode.ELEMENT_NODE &&
|
||||
if (aElement.nodeType == aElement.ELEMENT_NODE &&
|
||||
((ChromeUtils.getClassName(aElement) === "HTMLAnchorElement" && aElement.href) ||
|
||||
(ChromeUtils.getClassName(aElement) === "HTMLAreaElement" && aElement.href))) {
|
||||
try {
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIDOMWindow;
|
||||
interface nsIDOMNode;
|
||||
|
||||
webidl Node;
|
||||
|
||||
/**
|
||||
* nsISessionStore keeps track of the current browsing state.
|
||||
|
@ -41,13 +42,13 @@ interface nsISessionStore : nsISupports
|
|||
* @param aCloseTabData is the data of the tab to be restored.
|
||||
* @returns a reference to the reopened tab.
|
||||
*/
|
||||
nsIDOMNode undoCloseTab(in nsIDOMWindow aWindow, in jsval aCloseTabData);
|
||||
Node undoCloseTab(in nsIDOMWindow aWindow, in jsval aCloseTabData);
|
||||
|
||||
/**
|
||||
* @param aWindow is the browser window associated with the closed tab.
|
||||
* @param aIndex is the index of the closed tab to be removed (FIFO ordered).
|
||||
*/
|
||||
nsIDOMNode forgetClosedTab(in nsIDOMWindow aWindow, in unsigned long aIndex);
|
||||
Node forgetClosedTab(in nsIDOMWindow aWindow, in unsigned long aIndex);
|
||||
|
||||
/**
|
||||
* Whether the "Undo close tab" message should be shown or not after a tab has been closed.
|
||||
|
|
Загрузка…
Ссылка в новой задаче