|
@@ -1,122 +0,0 @@
|
|
-# HG changeset patch
|
|
|
|
-# User Bill Gianopoulos <wgianopoulos@gmail.com>
|
|
|
|
-# Date 1712772626 0
|
|
|
|
-Bug 9999999 - Port bug 1873386 to suite.
|
|
|
|
-
|
|
|
|
-diff --git a/suite/components/sessionstore/nsISessionStore.idl b/suite/components/sessionstore/nsISessionStore.idl
|
|
|
|
---- a/suite/components/sessionstore/nsISessionStore.idl
|
|
|
|
-+++ b/suite/components/sessionstore/nsISessionStore.idl
|
|
|
|
-@@ -81,34 +81,37 @@ interface nsISessionStore : nsISupports
|
|
|
|
- void setWindowState(in nsIDOMWindow aWindow, in AString aState, in boolean aOverwrite);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param aTab is the tabbrowser tab whose state is to be returned.
|
|
|
|
- *
|
|
|
|
- * @returns a JSON string representing the state of the tab
|
|
|
|
- * (note: doesn't contain cookies - if you need them, use getWindowState instead).
|
|
|
|
- */
|
|
|
|
-+ [noscript]
|
|
|
|
- AString getTabState(in nsINode aTab);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param aTab is the tabbrowser tab whose state is to be set.
|
|
|
|
- * @param aState is a JSON string representing a session state.
|
|
|
|
- */
|
|
|
|
-+ [noscript]
|
|
|
|
- void setTabState(in nsINode aTab, in AString aState);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Duplicates a given tab as thoroughly as possible.
|
|
|
|
- *
|
|
|
|
- * @param aWindow is the browser window into which the tab will be duplicated.
|
|
|
|
- * Pass null if you want to create a new window.
|
|
|
|
- * @param aTab is the tabbrowser tab to duplicate (can be from a different window).
|
|
|
|
- * @param aDelta is the offset to the history entry that you want to load.
|
|
|
|
- * @param aRelated is a flag to be passed to addTab().
|
|
|
|
- * @returns a reference to the newly created tab, or null if opening a window.
|
|
|
|
- */
|
|
|
|
-+ [noscript]
|
|
|
|
- nsINode duplicateTab(in nsIDOMWindow aWindow, in nsINode aTab,
|
|
|
|
- [optional] in long aDelta,
|
|
|
|
- [optional] in boolean aRelated);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Get the number of restore-able tabs for a browser window
|
|
|
|
- */
|
|
|
|
- unsigned long getClosedTabCount(in nsIDOMWindow aWindow);
|
|
|
|
-@@ -121,22 +124,24 @@ interface nsISessionStore : nsISupports
|
|
|
|
- */
|
|
|
|
- AString getClosedTabData(in nsIDOMWindow aWindow);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param aWindow is the browser window to reopen a closed tab in.
|
|
|
|
- * @param aIndex is the index of the tab to be restored (FIFO ordered).
|
|
|
|
- * @returns a reference to the reopened tab.
|
|
|
|
- */
|
|
|
|
-+ [noscript]
|
|
|
|
- nsINode undoCloseTab(in nsIDOMWindow aWindow, in unsigned long aIndex);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @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).
|
|
|
|
- */
|
|
|
|
-+ [noscript]
|
|
|
|
- nsINode forgetClosedTab(in nsIDOMWindow aWindow, in unsigned long aIndex);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Get the number of restore-able windows
|
|
|
|
- */
|
|
|
|
- unsigned long getClosedWindowCount();
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
-@@ -153,16 +158,17 @@ interface nsISessionStore : nsISupports
|
|
|
|
- nsIDOMWindow undoCloseWindow(in unsigned long aIndex);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param aIndex is the index of the closed window to be removed (FIFO ordered).
|
|
|
|
- *
|
|
|
|
- * @throws NS_ERROR_INVALID_ARG
|
|
|
|
- * when aIndex does not map to a closed window
|
|
|
|
- */
|
|
|
|
-+ [noscript]
|
|
|
|
- nsINode forgetClosedWindow(in unsigned long aIndex);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param aWindow is the window to get the value for.
|
|
|
|
- * @param aKey is the value's name.
|
|
|
|
- *
|
|
|
|
- * @returns A string value or an empty string if none is set.
|
|
|
|
- */
|
|
|
|
-@@ -182,29 +188,32 @@ interface nsISessionStore : nsISupports
|
|
|
|
- void deleteWindowValue(in nsIDOMWindow aWindow, in AString aKey);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param aTab is the tabbrowser tab to get the value for.
|
|
|
|
- * @param aKey is the value's name.
|
|
|
|
- *
|
|
|
|
- * @returns A string value or an empty string if none is set.
|
|
|
|
- */
|
|
|
|
-+ [noscript]
|
|
|
|
- AString getTabValue(in nsINode aTab, in AString aKey);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param aTab is the tabbrowser tab to set the value for.
|
|
|
|
- * @param aKey is the value's name.
|
|
|
|
- * @param aStringValue is the value itself (use toSource/eval before setting JS objects).
|
|
|
|
- */
|
|
|
|
-+ [noscript]
|
|
|
|
- void setTabValue(in nsINode aTab, in AString aKey, in AString aStringValue);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param aTab is the tabbrowser tab to get the value for.
|
|
|
|
- * @param aKey is the value's name.
|
|
|
|
- */
|
|
|
|
-+ [noscript]
|
|
|
|
- void deleteTabValue(in nsINode aTab, in AString aKey);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @param aName is the name of the attribute to save/restore for all tabbrowser tabs.
|
|
|
|
- */
|
|
|
|
- void persistTabAttribute(in AString aName);
|
|
|
|
-
|
|
|
|
- /**
|
|
|