<?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>84934</bug_id>
          
          <creation_ts>2012-04-26 01:13:33 -0700</creation_ts>
          <short_desc>Webview Element resets the url property</short_desc>
          <delta_ts>2012-04-26 03:48:38 -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>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>77554</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Alan Alpert">alan.alpert</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hausmann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>610419</commentid>
    <comment_count>0</comment_count>
    <who name="Alan Alpert">alan.alpert</who>
    <bug_when>2012-04-26 01:13:33 -0700</bug_when>
    <thetext>QML properties should always behave like simple values from the QML 
perspective. This isn&apos;t to say that setting them can&apos;t have side-effects, but 
when you explicitly set a property in QML it should change immediately (if it 
was not already set to that value) and it should remain set to that value 
until you explicitly unset or reset it (in this context, setting a binding 
counts as an explicit setting and binding reevaluations would thus also count 
as explicit settings). The url property of webview gets reset when webpage JS
redirects you, this is contrary to QML conventions. Upon setting the URL property to 
something different the urlChanged signal should fire once immediately and only once
until you set it again.

I&apos;m going to hazard a guess that the url property behaves like this because it 
is trying to be both the desired and actual URL. These should be separate 
properties, the url property could be the requested URL, which changes the 
URL loaded when set, and there should be a separate read-only property for 
loadedUrl, which may take some time to change after setting the url property. 
It might then change a lot due to all the random redirections webpages have 
these days.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>610480</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-04-26 03:48:38 -0700</bug_when>
    <thetext>The last fix of bug #77554 covers exactly this issue, making sure that after setting the url property in QML it is changed _immediately_.

*** This bug has been marked as a duplicate of bug 77554 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>