Closed Bug 522401 Opened 15 years ago Closed 15 years ago

domthingie.on* is undefined and not null if no event handler is set; can't use ("onpagehide" in window) to detect support

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 414853

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

http://webkit.org/blog/516/webkit-page-cache-ii-the-unload-event/ suggests using the expression ("onpagehide" in window) to determine whether the browser supports the onpagehide event.  But this expression evaluates to false in Firefox, so Firefox gets the slow path!

Bug 159849 was fixed only for "with" blocks; I don't know why.

I heard a rumor that peterv was planning to fix this (for reasons other than feature detection).
> Bug 159849 was fixed only for "with" blocks; I don't know why.

That bug was fixed for the assigning case, more specifically.  The code in this case doesn't assign.

I'm pretty sure this is a duplicate...
Whiteboard: DUPEME
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.