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
223190
Ignore the “title” argument to history.pushState()/history.replaceState()
https://bugs.webkit.org/show_bug.cgi?id=223190
Summary
Ignore the “title” argument to history.pushState()/history.replaceState()
Domenic Denicola
Reported
2021-03-15 10:02:49 PDT
Only Safari (maybe other WebKit browsers?) uses this for its UI. Since it only impacts UI, and only in one browser, it was removed from the spec in
https://github.com/whatwg/html/pull/6482
. Continuing to support title for these functions is not a spec violation, since browser UI is outside the scope of specs (i.e. web pages cannot observe Safari's use of the title argument). But, you might want to clean it up regardless. Especially if web developers only test in other browsers, and so pass strange values (e.g. "null" or similar) which Safari ends up displaying to users.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-03-22 10:03:13 PDT
<
rdar://problem/75695791
>
Ahmad Saleem
Comment 2
2023-11-11 11:17:18 PST
https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-history-interface
sideshowbarker
Comment 3
2023-11-13 00:24:49 PST
Pull request:
https://github.com/WebKit/WebKit/pull/20404
EWS
Comment 4
2024-01-29 05:03:45 PST
Committed
273650@main
(4ef4b65d33f4): <
https://commits.webkit.org/273650@main
> Reviewed commits have been landed. Closing PR #20404 and removing active labels.
Brady Eidson
Comment 5
2024-06-07 13:15:29 PDT
This patch is wrong, as it entirely removed the concept of "title" from WebBackForwardItem, causing a regression in Safari. - (NSString *)title { return nil; } Domenic mentioned:
> Only Safari (maybe other WebKit browsers?) uses this for its UI.
And what he meant was only Safari takes title updates from push/replaceState calls from JavaScript. All browsers still show the page title at the time the page was loaded; just verified with latest Chrome and Firefox. This patch needed to focus on *not updating the title in a bfitem* instead of removing the concept altogether.
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