<?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>37315</bug_id>
          
          <creation_ts>2010-04-09 02:04:05 -0700</creation_ts>
          <short_desc>DumpRenderTree should log pushState/replaceState changing URL in the address bar</short_desc>
          <delta_ts>2010-12-02 22:33:43 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonas Beck">jonas.beck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>arv</cc>
    
    <cc>beidson</cc>
    
    <cc>mihaip</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>210640</commentid>
    <comment_count>0</comment_count>
    <who name="Jonas Beck">jonas.beck</who>
    <bug_when>2010-04-09 02:04:05 -0700</bug_when>
    <thetext>This is maybe not a bug, but the specs indicates that the documents URL should change when pushState is called and it seems strange to not reflect this in the UI as well.

&quot;The document&apos;s address is an absolute URL  that is set when the Document is created. The document&apos;s current address is an absolute URL  that can change during the lifetime of the Document, for example when the user navigates to a fragment identifier on the page or when the pushState() method is called with a new URL.&quot; http://www.whatwg.org/specs/web-apps/current-work/#documents

Both Minefield and Chromium change the URL in the address bar when pushState is used. 

A important use case for this feature would be if content is loaded with ajax and the user would like to use the URL in the address for tipping about this specific content.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>210808</commentid>
    <comment_count>1</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2010-04-09 10:46:34 -0700</bug_when>
    <thetext>Chrome and Minefield have the advantage of having released a new browser client in addition to their engine changes that implement replaceState.

WebKit implements the callback for client apps in WebFrameLoaderClient.mm:
void WebFrameLoaderClient::dispatchDidReplaceStateWithinPage()

But currently shipping Safari doesn&apos;t listen for it for obvious reasons. (it doesn&apos;t ship with a WebKit that supports the feature)

This bugzilla is still interesting, however, because DRT should listen for both the push and replace state callbacks and dump them out, so we can at least have layouttest coverage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216469</commentid>
    <comment_count>2</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2010-04-23 10:42:42 -0700</bug_when>
    <thetext>Chrome does not yet update the address bar:

http://code.google.com/p/chromium/issues/detail?id=36548</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>316459</commentid>
    <comment_count>3</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-12-02 15:37:45 -0800</bug_when>
    <thetext>Should this bug still be open? Both Chrome and Safari now update the location bar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>316678</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-12-02 22:33:43 -0800</bug_when>
    <thetext>The original report is not about anything in open source WebKit. But Brady suggested repurposing it for DumpRenderTree improvement, which makes sense to me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>