WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
151168
Rename handle.*Event to dispatch.*Event
https://bugs.webkit.org/show_bug.cgi?id=151168
Summary
Rename handle.*Event to dispatch.*Event
Geoffrey Garen
Reported
2015-11-11 16:48:19 PST
Rename handle.*Event to dispatch.*Event
Attachments
Patch
(19.39 KB, patch)
2015-11-11 16:49 PST
,
Geoffrey Garen
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Geoffrey Garen
Comment 1
2015-11-11 16:49:38 PST
Created
attachment 265336
[details]
Patch
Chris Dumez
Comment 2
2015-11-11 16:50:54 PST
Comment on
attachment 265336
[details]
Patch r=me
Geoffrey Garen
Comment 3
2015-11-11 16:59:44 PST
Comment on
attachment 265336
[details]
Patch Go go Gadget Commit Queue.
WebKit Commit Bot
Comment 4
2015-11-11 17:48:28 PST
Comment on
attachment 265336
[details]
Patch Clearing flags on attachment: 265336 Committed
r192342
: <
http://trac.webkit.org/changeset/192342
>
WebKit Commit Bot
Comment 5
2015-11-11 17:48:33 PST
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 6
2015-11-14 14:06:41 PST
Comment on
attachment 265336
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=265336&action=review
> Source/WebCore/loader/DocumentLoader.h:142 > + void dispatchOnloadEvents(); > + bool wasOnloadDispatched() { return m_wasOnloadDispatched; }
These are not good function names. The events are “load” events. There is no standard “onload” event, although a webpage could create and dispatch an event with that name, although there would be no point. There are some attributes named "onload" that set up handlers for "load" events. I’m also unclear why “event” here is plural. Maybe there is more than one load event that gets dispatched?
> Source/WebCore/loader/DocumentLoader.h:391 > + bool m_wasOnloadDispatched;
Ditto.
> Source/WebCore/loader/EmptyClients.h:274 > + virtual void dispatchDidDispatchOnloadEvents() override { }
Ditto.
> Source/WebCore/loader/FrameLoader.h:215 > + void dispatchOnloadEvents();
Ditto.
> Source/WebCore/loader/FrameLoaderClient.h:155 > + virtual void dispatchDidDispatchOnloadEvents() = 0;
Ditto.
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