Bug 208529 - Rename urlSelected to changeLocation
Summary: Rename urlSelected to changeLocation
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Rob Buis
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-03-03 12:29 PST by Rob Buis
Modified: 2020-03-09 10:02 PDT (History)
16 users (show)

See Also:


Attachments
Patch (16.73 KB, patch)
2020-03-03 12:32 PST, Rob Buis
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Buis 2020-03-03 12:29:55 PST
Rename urlSelected to changeLocation and remove the existing changeLocation. The name changeLocation is more intuitive than urlSelected.
Comment 1 Rob Buis 2020-03-03 12:32:54 PST
Created attachment 392310 [details]
Patch
Comment 2 Darin Adler 2020-03-09 00:14:59 PDT
Comment on attachment 392310 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=392310&action=review

> Source/WebCore/loader/FrameLoader.h:-132
> -    void changeLocation(FrameLoadRequest&&);

Was this just unused? I don’t see any cases of this in the patch.
Comment 3 Rob Buis 2020-03-09 01:29:43 PDT
Comment on attachment 392310 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=392310&action=review

>> Source/WebCore/loader/FrameLoader.h:-132
>> -    void changeLocation(FrameLoadRequest&&);
> 
> Was this just unused? I don’t see any cases of this in the patch.

It was used in a few places but those places can just use one of the old urlSelected overloads (now renamed to changeLocation), since I made the second parameter gain a default value. The old changeLocation was just filling in the second parameter and was not so useful.
Comment 4 Rob Buis 2020-03-09 01:32:13 PDT
Darin, I just noticed Source/WebCore/WebCore.order still mentions urlSelected. How important is it to keep this file in sync and is this done regularly? Willing to make a follow up patch if needed.
Comment 5 WebKit Commit Bot 2020-03-09 08:10:08 PDT
Comment on attachment 392310 [details]
Patch

Clearing flags on attachment: 392310

Committed r258140: <https://trac.webkit.org/changeset/258140>
Comment 6 WebKit Commit Bot 2020-03-09 08:10:10 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2020-03-09 08:11:15 PDT
<rdar://problem/60223618>
Comment 8 Darin Adler 2020-03-09 10:02:52 PDT
(In reply to Rob Buis from comment #4)
> Darin, I just noticed Source/WebCore/WebCore.order still mentions
> urlSelected. How important is it to keep this file in sync and is this done
> regularly? Willing to make a follow up patch if needed.

Not important at all.

I don’t know why those order files are still checked in; there may be a good reason. But no matter what that reason is, they definitely can’t be correctly updated by editing the files by hand.