WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
36874
Cleanup RedirectScheduler
https://bugs.webkit.org/show_bug.cgi?id=36874
Summary
Cleanup RedirectScheduler
Adam Barth
Reported
2010-03-31 00:40:15 PDT
Looking at RedirectScheduler last night with othermaciej, it occurred to us that the psuedo-union ScheduleRedirection is really ugly. Othermaciej asked me to clean up the class, so here it is in a less ugly form.
Attachments
Patch
(22.79 KB, patch)
2010-03-31 00:44 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch
(22.92 KB, patch)
2010-03-31 01:53 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch
(22.92 KB, patch)
2010-03-31 02:04 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Patch for landing
(22.93 KB, patch)
2010-03-31 11:08 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2010-03-31 00:44:38 PDT
Created
attachment 52138
[details]
Patch
Maciej Stachowiak
Comment 2
2010-03-31 01:29:39 PDT
Comment on
attachment 52138
[details]
Patch * Suggested renames: - AbstractRedirect --> ScheduledNavigation - SimpleRedirect --> ScheduledURLNavigation * It may or may not be helpful to also add "Scheduled" back to the concrete classes too. * Odd that locationChangePending is true for classes other than LocationChange. Also: even if the API on the scheduler is locationChangePending(), shouldn't the boolean method on an individual AbstractRedirect (or ScheduledNavigation) object be isLocationChange or countsAsLocationChange or something? It's only telling you about what it is, not what is pending. That's my style comments. r- to consider those. I will have to do another pass to check behavior-preservingness of the refactoring (since the lines got moved around a lot, was hard to check that with a linear scan).
Adam Barth
Comment 3
2010-03-31 01:53:53 PDT
Created
attachment 52142
[details]
Patch
Early Warning System Bot
Comment 4
2010-03-31 02:00:06 PDT
Attachment 52142
[details]
did not build on qt: Build output:
http://webkit-commit-queue.appspot.com/results/1621116
WebKit Review Bot
Comment 5
2010-03-31 02:00:42 PDT
Attachment 52142
[details]
did not build on chromium: Build output:
http://webkit-commit-queue.appspot.com/results/1572099
Adam Barth
Comment 6
2010-03-31 02:04:32 PDT
Created
attachment 52144
[details]
Patch
Darin Fisher (:fishd, Google)
Comment 7
2010-03-31 10:01:46 PDT
Comment on
attachment 52144
[details]
Patch
> diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog > + Cleanup RedirectScheduler > +
https://bugs.webkit.org/show_bug.cgi?id=36874
> + > + Removed the nutty ScheduledRedirection struct in favor of a hierarchy
^^^ bad indentation otherwise, this all looks good to me. given the naming of the file, it seems like it would be nice if the base interface were named ScheduledRedirect, but I realize why you chose not to do that.
Adam Barth
Comment 8
2010-03-31 11:05:32 PDT
Yeah, the better solution is probably to rename the class. :)
Adam Barth
Comment 9
2010-03-31 11:08:12 PDT
Created
attachment 52188
[details]
Patch for landing
WebKit Commit Bot
Comment 10
2010-03-31 16:22:29 PDT
Comment on
attachment 52188
[details]
Patch for landing Clearing flags on attachment: 52188 Committed
r56875
: <
http://trac.webkit.org/changeset/56875
>
WebKit Commit Bot
Comment 11
2010-03-31 16:22:35 PDT
All reviewed patches have been landed. Closing bug.
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