Changeset 163551 in webkit


Ignore:
Timestamp:
Feb 6, 2014 11:26:52 AM (10 years ago)
Author:
andersca@apple.com
Message:

The source frame request is not the same thing as the original request
https://bugs.webkit.org/show_bug.cgi?id=128317

Reviewed by Andreas Kling.

Grab the source frame URL From the WebFrameProxy object.

  • UIProcess/Cocoa/NavigationState.mm:

(WebKit::frameInfoFromWebFrameProxy):
(WebKit::NavigationState::PolicyClient::decidePolicyForNavigationAction):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r163538 r163551  
     12014-02-06  Anders Carlsson  <andersca@apple.com>
     2
     3        The source frame request is not the same thing as the original request
     4        https://bugs.webkit.org/show_bug.cgi?id=128317
     5
     6        Reviewed by Andreas Kling.
     7
     8        Grab the source frame URL From the WebFrameProxy object.
     9
     10        * UIProcess/Cocoa/NavigationState.mm:
     11        (WebKit::frameInfoFromWebFrameProxy):
     12        (WebKit::NavigationState::PolicyClient::decidePolicyForNavigationAction):
     13
    1142014-02-06  Brady Eidson  <beidson@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm

    r163506 r163551  
    134134    [frameInfo setMainFrame:webFrameProxy.isMainFrame()];
    135135
     136    // FIXME: This should use the full request of the frame, not just the URL.
     137    [frameInfo setRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:webFrameProxy.url()]]];
     138
    136139    return frameInfo;
    137140}
     
    152155    auto navigationAction = adoptNS([[WKNavigationAction alloc] init]);
    153156
    154     if (sourceFrame) {
    155         auto sourceFrameInfo = frameInfoFromWebFrameProxy(*sourceFrame);
    156         [sourceFrameInfo setRequest:originalRequest.nsURLRequest(WebCore::DoNotUpdateHTTPBody)];
    157         [navigationAction setSourceFrame:sourceFrameInfo.get()];
    158     }
     157    if (sourceFrame)
     158        [navigationAction setSourceFrame:frameInfoFromWebFrameProxy(*sourceFrame).get()];
    159159
    160160    [navigationAction setNavigationType:toWKNavigationType(navigationActionData.navigationType)];
Note: See TracChangeset for help on using the changeset viewer.