[Webkit-unassigned] [Bug 82506] [Qt][WK2] QQuickWebView fails to load an url if the same url is requested again to be loaded

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 4 11:25:44 PDT 2012


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





--- Comment #7 from Marcelo Lira <marcelo.lira at openbossa.org>  2012-04-04 11:25:43 PST ---
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #2)
> > > We can close this if this is what is expected. Hey Simon, what do you think?
> > 
> > Perhaps I misunderstood this, but IMHO conceptually calling
> > 
> >     view->setUrl(view->url())
> > 
> > should be a noop and not cause any errors. In other words: setting a property to the value that's already set should not do anything.
> > 
> > Does that make sense?
> 
> That makes perfect sense. I believe when user really wants to trigger a reload, then he should use the reload function, instead of view.url = view.url.
> 
> I didn't look at the code, but the problem might lie around the fact that the current url value of a web view is not the url that is being loaded, but the last url completely loaded, right Marcelo?

(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #2)
> > > We can close this if this is what is expected. Hey Simon, what do you think?
> > 
> > Perhaps I misunderstood this, but IMHO conceptually calling
> > 
> >     view->setUrl(view->url())
> > 
> > should be a noop and not cause any errors. In other words: setting a property to the value that's already set should not do anything.
> > 
> > Does that make sense?
> 
> That makes perfect sense. I believe when user really wants to trigger a reload, then he should use the reload function, instead of view.url = view.url.
> 
> I didn't look at the code, but the problem might lie around the fact that the current url value of a web view is not the url that is being loaded, but the last url completely loaded, right Marcelo?
Yes, QQuickWebView::url() returns the url from webPageProxy->mainFrame(), but the frame may not be ready when WebView.url is called, so in QML it will result in an empty string.

-- 
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