Bug 55842 - [Qt] Simplify how QWebFrame::requestedUrl() is obtained
Summary: [Qt] Simplify how QWebFrame::requestedUrl() is obtained
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P3 Normal
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2011-03-06 06:49 PST by Caio Marcelo de Oliveira Filho
Modified: 2011-03-10 14:54 PST (History)
3 users (show)

See Also:


Attachments
patch (5.35 KB, patch)
2011-03-06 07:00 PST, Caio Marcelo de Oliveira Filho
no flags Details | Formatted Diff | Diff
patch with improved ChangeLog (6.30 KB, patch)
2011-03-06 07:51 PST, Caio Marcelo de Oliveira Filho
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Caio Marcelo de Oliveira Filho 2011-03-06 06:49:17 PST
The idea here is to always store the requested url once frame loader start the provisional load. And clears it when the load is finished -- since it is available in the document loader.

The stored value is useful for the error cases, when the load wasn't successful. The idea is similar to the old implementation, but simpler.

This change is related to bug 32723. There, I want to decouple the clearing of the frame from the URL passed in setUrl(), by removing the argument url from the call to DocumentWriter::begin(), and having the value stored in case of fail is useful to implement QWebFrame::url().
Comment 1 Caio Marcelo de Oliveira Filho 2011-03-06 07:00:18 PST
Created attachment 84888 [details]
patch
Comment 2 Kenneth Rohde Christiansen 2011-03-06 07:03:21 PST
Comment on attachment 84888 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=84888&action=review

Your changelog does not explain why this new code is equal to the old code, or why the old code is wrong. Are these edge cases not valid anymore?

> Source/WebKit/qt/ChangeLog:9
> +        so we now it'll be available in the DocumentLoader.

know?
Comment 3 Caio Marcelo de Oliveira Filho 2011-03-06 07:51:32 PST
Created attachment 84889 [details]
patch with improved ChangeLog
Comment 4 Caio Marcelo de Oliveira Filho 2011-03-06 07:59:34 PST
Antonio, added you to CC since most of the requestedUrl() was implemented by you back in time. Would be very helpful if you could take a look / review this patch, or point some one who would be able to review it. :-)
Comment 5 WebKit Commit Bot 2011-03-10 14:54:20 PST
Comment on attachment 84889 [details]
patch with improved ChangeLog

Clearing flags on attachment: 84889

Committed r80768: <http://trac.webkit.org/changeset/80768>
Comment 6 WebKit Commit Bot 2011-03-10 14:54:25 PST
All reviewed patches have been landed.  Closing bug.