зеркало из https://github.com/mozilla/gecko-dev.git
Back out the change for bug 277092, since it breaks other compat and pages.
Bug 292921, r=jst, sr+a=brendan
This commit is contained in:
Родитель
0ca7c9501f
Коммит
c8c41508c3
|
@ -3142,10 +3142,6 @@ nsDocShell::Stop(PRUint32 aStopFlags)
|
|||
if (nsIWebNavigation::STOP_CONTENT & aStopFlags) {
|
||||
if (mContentViewer)
|
||||
mContentViewer->Stop();
|
||||
nsCOMPtr<nsPIDOMWindow> ourWindow = do_QueryInterface(mScriptGlobal);
|
||||
if (ourWindow) {
|
||||
ourWindow->ClearAllTimeouts();
|
||||
}
|
||||
}
|
||||
|
||||
if (nsIWebNavigation::STOP_NETWORK & aStopFlags) {
|
||||
|
|
|
@ -75,8 +75,8 @@ class nsIFocusController;
|
|||
struct nsTimeout;
|
||||
|
||||
#define NS_PIDOMWINDOW_IID \
|
||||
{ 0x91671056, 0xa8ed, 0x4ad3, \
|
||||
{ 0x8f, 0x19, 0x69, 0xf5, 0x48, 0xbb, 0x9c, 0x4a } }
|
||||
{ 0x26c9769c, 0xecfc, 0x46b9, \
|
||||
{ 0x9f, 0x62, 0x8e, 0x9b, 0x1a, 0x6c, 0x0d, 0x28 } }
|
||||
|
||||
class nsPIDOMWindow : public nsIDOMWindowInternal
|
||||
{
|
||||
|
@ -142,10 +142,7 @@ public:
|
|||
virtual PopupControlState GetPopupControlState() const = 0;
|
||||
virtual OpenAllowValue GetOpenAllow(const nsAString &aName) = 0;
|
||||
|
||||
// Clear all pending timeouts and intervals.
|
||||
virtual void ClearAllTimeouts() = 0;
|
||||
|
||||
// Returns an object containing the window's state. This also suspends
|
||||
// Returns an object containing the window's state. This also suspends
|
||||
// all running timeouts in the window.
|
||||
virtual nsresult SaveWindowState(nsISupports **aState) = 0;
|
||||
|
||||
|
|
|
@ -204,7 +204,6 @@ public:
|
|||
virtual NS_HIDDEN_(PopupControlState) GetPopupControlState() const;
|
||||
virtual NS_HIDDEN_(OpenAllowValue) GetOpenAllow(const nsAString &aName);
|
||||
|
||||
virtual NS_HIDDEN_(void) ClearAllTimeouts();
|
||||
virtual NS_HIDDEN_(nsresult) SaveWindowState(nsISupports **aState);
|
||||
virtual NS_HIDDEN_(nsresult) RestoreWindowState(nsISupports *aState);
|
||||
|
||||
|
@ -250,6 +249,7 @@ protected:
|
|||
nsresult SetTimeoutOrInterval(PRBool aIsInterval, PRInt32* aReturn);
|
||||
void RunTimeout(nsTimeout *aTimeout);
|
||||
nsresult ClearTimeoutOrInterval();
|
||||
void ClearAllTimeouts();
|
||||
void InsertTimeoutIntoList(nsTimeout **aInsertionPoint, nsTimeout *aTimeout);
|
||||
static void TimerCallback(nsITimer *aTimer, void *aClosure);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче