[Webkit-unassigned] [Bug 84934] New: Webview Element resets the url property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 26 01:13:33 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=84934

           Summary: Webview Element resets the url property
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: alan.alpert at nokia.com


QML properties should always behave like simple values from the QML 
perspective. This isn't to say that setting them can'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'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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list