<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>223190</bug_id>
          
          <creation_ts>2021-03-15 10:02:49 -0700</creation_ts>
          <short_desc>Ignore the “title” argument to history.pushState()/history.replaceState()</short_desc>
          <delta_ts>2025-09-07 02:17:16 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>History</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Domenic Denicola">d</reporter>
          <assigned_to name="sideshowbarker">mike</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>annevk</cc>
    
    <cc>beidson</cc>
    
    <cc>goshasklyar07</cc>
    
    <cc>mike</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1739493</commentid>
    <comment_count>0</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2021-03-15 10:02:49 -0700</bug_when>
    <thetext>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&apos;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. &quot;null&quot; or similar) which Safari ends up displaying to users.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742272</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-22 10:03:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/75695791&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1991867</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-11 11:17:18 -0800</bug_when>
    <thetext>https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-history-interface</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1992040</commentid>
    <comment_count>3</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2023-11-13 00:24:49 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/20404</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008441</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-01-29 05:03:45 -0800</bug_when>
    <thetext>Committed 273650@main (4ef4b65d33f4): &lt;https://commits.webkit.org/273650@main&gt;

Reviewed commits have been landed. Closing PR #20404 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2040382</commentid>
    <comment_count>5</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2024-06-07 13:15:29 -0700</bug_when>
    <thetext>This patch is wrong, as it entirely removed the concept of &quot;title&quot; from WebBackForwardItem, causing a regression in Safari.

- (NSString *)title
{
    return nil;
}

Domenic mentioned:
&gt; 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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>