Closed Bug 398502 Opened 17 years ago Closed 17 years ago

Closing a tab doesn't call nsFormFillController's nsIDOMEventListener with a "pagehide" event

Categories

(Core :: DOM: Events, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 376563

People

(Reporter: Dolske, Unassigned)

References

Details

Over in bug 397753 Martijn noted that closing a tab will cause the following alert to be triggered in a test page:

<body onpagehide="alert('test');"></body>

[The code is also called when navigating away from the page.]

nsFormFillController has a nsIDOMEventListener implementation listening for this event too. It gets called when the page is navigated away from, but not when the tab is closed.

Also of potential interest: bug 376563, where nsFormFillController's ::Unload code isn't getting called.
This looks to have the same root cause as bug 376563... The window listeners were being removed before being called. Doh.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.