Bug 75922

Summary: [chromium] Fix navigation start time on cross-renderer navigation
Product: WebKit Reporter: James Simonsen <simonjam>
Component: New BugsAssignee: James Simonsen <simonjam>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, fishd, japhet, tonyg, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch for landing
none
Patch for landing none

James Simonsen
Reported 2012-01-09 18:18:28 PST
[chromium] Fix navigation start time on cross-renderer navigation
Attachments
Patch (5.25 KB, patch)
2012-01-09 18:20 PST, James Simonsen
no flags
Patch (4.76 KB, patch)
2012-01-10 14:23 PST, James Simonsen
no flags
Patch (4.75 KB, patch)
2012-01-12 13:31 PST, James Simonsen
no flags
Patch (5.02 KB, patch)
2012-01-23 18:28 PST, James Simonsen
no flags
Patch for landing (5.03 KB, patch)
2012-02-29 11:12 PST, James Simonsen
no flags
Patch for landing (5.01 KB, patch)
2012-02-29 14:20 PST, James Simonsen
no flags
James Simonsen
Comment 1 2012-01-09 18:20:12 PST
WebKit Review Bot
Comment 2 2012-01-09 18:23:21 PST
Please wait for approval from fishd@chromium.org before submitting because this patch contains changes to the Chromium public API.
Tony Gentilcore
Comment 3 2012-01-10 02:57:13 PST
Comment on attachment 121776 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=121776&action=review LGTM, but leaving to fishd to review. > Source/WebKit/chromium/public/WebFrame.h:362 > + // cross-renderer navigation, the value comes from the previous renderer. This makes the API kind of sad, but I guess it really is that complicated.
Darin Fisher (:fishd, Google)
Comment 4 2012-01-10 13:57:54 PST
Comment on attachment 121776 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=121776&action=review >> Source/WebKit/chromium/public/WebFrame.h:362 >> + // cross-renderer navigation, the value comes from the previous renderer. > > This makes the API kind of sad, but I guess it really is that complicated. It seems like this should be a method on WebDataSource instead as it specific to the creation of a document.
Darin Fisher (:fishd, Google)
Comment 5 2012-01-10 13:58:28 PST
Comment on attachment 121776 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=121776&action=review > Source/WebKit/chromium/src/WebFrameImpl.cpp:1093 > + FrameLoader* frameLoader = m_frame->loader(); yeah, since your implementation just pokes the DocumentLoader, this clearly needs to be a method on WebDataSource instead.
James Simonsen
Comment 6 2012-01-10 14:23:15 PST
Darin Fisher (:fishd, Google)
Comment 7 2012-01-11 13:12:56 PST
Comment on attachment 121910 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=121910&action=review > Source/WebKit/chromium/public/WebDataSource.h:107 > + // navigation start is determined in FrameLoader. But, in the case of nit: Please avoid referencing WebCore classes in the public APIs. The point of the API is to insulate users of the API from WebCore. Also, someone modifying WebCore (who renames a class in WebCore) will be unlikely to update such comments. Also, WebKit does not know anything about the concept of cross-renderer navigation. Please avoid adding anything to WebKit that is predicated on WebKit knowing about such things. APIs should make sense outside of that context too.
James Simonsen
Comment 8 2012-01-12 13:31:09 PST
Darin Fisher (:fishd, Google)
Comment 9 2012-01-18 21:28:50 PST
Comment on attachment 122301 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=122301&action=review > Source/WebKit/chromium/public/WebDataSource.h:109 > + virtual void setNavigationStartTime(double) = 0; When is it OK to call this function? inside WebFrameClient::didCreateDataSource? or, what about later on? Will it cause problems to set this later on?
James Simonsen
Comment 10 2012-01-23 18:28:14 PST
WebKit Review Bot
Comment 11 2012-01-24 01:28:34 PST
Comment on attachment 123688 [details] Patch Attachment 123688 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11117720 New failing tests: media/audio-garbage-collect.html
Darin Fisher (:fishd, Google)
Comment 12 2012-02-28 16:49:49 PST
Comment on attachment 123688 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=123688&action=review > Source/WebKit/chromium/public/WebDataSource.h:110 > + // Calling it later may confuse users, because Javascript may have run and nit: Javascript -> JavaScript do you want to assert this restriction?
James Simonsen
Comment 13 2012-02-29 11:12:52 PST
Created attachment 129479 [details] Patch for landing
WebKit Review Bot
Comment 14 2012-02-29 14:15:30 PST
Comment on attachment 129479 [details] Patch for landing Rejecting attachment 129479 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1 ERROR: /mnt/git/webkit-commit-queue/Source/WebCore/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output: http://queues.webkit.org/results/11769024
James Simonsen
Comment 15 2012-02-29 14:20:42 PST
Created attachment 129516 [details] Patch for landing
WebKit Review Bot
Comment 16 2012-02-29 20:04:02 PST
The commit-queue encountered the following flaky tests while processing attachment 129516 [details]: css3/filters/effect-hue-rotate-hw.html bug 79845 (author: cmarrin@apple.com) The commit-queue is continuing to process your patch.
WebKit Review Bot
Comment 17 2012-02-29 20:09:43 PST
Comment on attachment 129516 [details] Patch for landing Clearing flags on attachment: 129516 Committed r109300: <http://trac.webkit.org/changeset/109300>
WebKit Review Bot
Comment 18 2012-02-29 20:09:48 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.