WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
28151
KURL hasFragmentIdentifier()/removeFragmentIdentifier() should be cleaned up and made a little smarter
https://bugs.webkit.org/show_bug.cgi?id=28151
Summary
KURL hasFragmentIdentifier()/removeFragmentIdentifier() should be cleaned up ...
Brady Eidson
Reported
2009-08-10 09:41:14 PDT
KURL hasFragmentIdentifier()/removeFragmentIdentifier() should be cleaned up and made a little smarter. There's a handful of callsites that always say: if (someURL.hasFragmentIdentifier()) someURL.removeFragmentIdentifier(); Which is kind of silly and might be cleaner as one line of code... ...except that removeFragmentIdentifier() always allocs a new string and reparses it, when it should really do its own "if I don't have a fragment ID, don't do anything" check.
Attachments
Add attachment
proposed patch, testcase, etc.
Anne van Kesteren
Comment 1
2023-05-22 03:44:35 PDT
KURL is gone.
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