Bug 82248

Summary: Don't manually set an identifier for main resource loads in FrameLoader
Product: WebKit Reporter: Nate Chapin <japhet>
Component: WebCore Misc.Assignee: Nate Chapin <japhet>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ap, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
none
Hopefully EWS-able now abarth: review+, webkit.review.bot: commit-queue-

Description Nate Chapin 2012-03-26 14:49:26 PDT
Currently, we create an identifier and assign it to the ResourceRequest for a main resource load in FrameLoader just before we create the MainResourceLoader.  We then pass the identifier into the MainResourceLoader immediately after it is created.  Given that the MainResourceLoader would have created and set an identifier shortly thereafter (when willSendRequest is called for the initial request), I can't figure out why we need this extra code in FrameLoader.
Comment 1 Nate Chapin 2012-03-26 14:55:35 PDT
Created attachment 133898 [details]
patch
Comment 2 Nate Chapin 2012-03-26 15:12:03 PDT
Created attachment 133904 [details]
Hopefully EWS-able now
Comment 3 Adam Barth 2012-03-27 13:21:45 PDT
Comment on attachment 133904 [details]
Hopefully EWS-able now

Thanks for digging through the history to figure out when this code was added.
Comment 4 WebKit Review Bot 2012-03-27 13:23:49 PDT
Comment on attachment 133904 [details]
Hopefully EWS-able now

Rejecting attachment 133904 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1

Last 500 characters of output:
ueue/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 70, in run_and_handle_errors
    self._run(tool, options, state)
  File "/mnt/git/webkit-commit-queue/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 64, in _run
    step(tool, options).run(state)
  File "/mnt/git/webkit-commit-queue/Tools/Scripts/webkitpy/tool/steps/validatereviewer.py", line 50, in run
    if changelog_entry.has_valid_reviewer():
AttributeError: 'NoneType' object has no attribute 'has_valid_reviewer'

Full output: http://queues.webkit.org/results/12142691
Comment 5 Nate Chapin 2012-03-27 13:31:22 PDT
(In reply to comment #4)
> (From update of attachment 133904 [details])
> Rejecting attachment 133904 [details] from commit-queue.
> 
> Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1
> 
> Last 500 characters of output:
> ueue/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 70, in run_and_handle_errors
>     self._run(tool, options, state)
>   File "/mnt/git/webkit-commit-queue/Tools/Scripts/webkitpy/tool/commands/stepsequence.py", line 64, in _run
>     step(tool, options).run(state)
>   File "/mnt/git/webkit-commit-queue/Tools/Scripts/webkitpy/tool/steps/validatereviewer.py", line 50, in run
>     if changelog_entry.has_valid_reviewer():
> AttributeError: 'NoneType' object has no attribute 'has_valid_reviewer'
> 
> Full output: http://queues.webkit.org/results/12142691

Landed manually: http://trac.webkit.org/changeset/112308