WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
117031
Fix double hash lookup in DocumentEventQueue::cancelEvent().
https://bugs.webkit.org/show_bug.cgi?id=117031
Summary
Fix double hash lookup in DocumentEventQueue::cancelEvent().
Andreas Kling
Reported
2013-05-30 08:13:27 PDT
Fix double hash lookup in DocumentEventQueue::cancelEvent().
Attachments
Patch
(1.32 KB, patch)
2013-05-30 08:15 PDT
,
Andreas Kling
andersca
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2013-05-30 08:15:00 PDT
Created
attachment 203358
[details]
Patch
Anders Carlsson
Comment 2
2013-05-30 08:39:38 PDT
Comment on
attachment 203358
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=203358&action=review
> Source/WebCore/dom/DocumentEventQueue.cpp:103 > + m_queuedEvents.remove(it);
You only want to remove it if it's found.
Andreas Kling
Comment 3
2013-05-30 08:40:46 PDT
(In reply to
comment #2
)
> (From update of
attachment 203358
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=203358&action=review
> > > Source/WebCore/dom/DocumentEventQueue.cpp:103 > > + m_queuedEvents.remove(it); > > You only want to remove it if it's found.
THE SHAME :(
Andreas Kling
Comment 4
2013-05-30 10:09:08 PDT
Committed
r150969
: <
http://trac.webkit.org/changeset/150969
>
Darin Adler
Comment 5
2013-05-30 10:16:09 PDT
I think we should add a bool return value to remove so we don’t have to use iterators in all the cases like this.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug