Bug Tracker

Modify

Ticket #2620 (closed bug: fixed)

Opened 5 years ago

Last modified 4 years ago

event.fix() possible null dereference

Reported by: jacob Owned by: brandon
Priority: trivial Milestone: 1.4
Component: event Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:

Description

event.fix() does some checks for document.documentElement being not null before it dereferences them, but not enough.

Attachments

event-2620.patch Download (860 bytes) - added by jacob 5 years ago.
don't dereference doc if it's null

Change History

Changed 5 years ago by jacob

don't dereference doc if it's null

comment:1 Changed 5 years ago by davidserduke

Are you actually seeing a bug because of this behavior in some browser or is this written up through a code review?

comment:2 Changed 5 years ago by flesler

  • need changed from Review to Test Case

comment:3 Changed 4 years ago by dmethvin

Since doc.scrollLeft is guarded by a check for doc, it does seem like doc.clientLeft should be done the same way. Either that or the check in front of doc.scrollLeft is extraneous. It would help to have a test case though. Is document.documentElement null in quirks mode?

comment:4 Changed 4 years ago by brandon

  • Owner set to brandon

fixed in r6327

comment:5 Changed 4 years ago by brandon

  • Status changed from new to closed
  • Resolution set to fixed

comment:6 Changed 4 years ago by brandon

  • Milestone changed from 1.2.4 to 1.3.3

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.