Changeset 75279 in webkit


Ignore:
Timestamp:
Jan 7, 2011 2:58:29 PM (13 years ago)
Author:
jberlin@webkit.org
Message:

WebKit2: Need WKBundleFrameCopyProvisionalURL
https://bugs.webkit.org/show_bug.cgi?id=52083

Reviewed by Dan Bernstein.

  • WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:

(WKBundleFrameCopyProvisionalURL):

  • WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
  • WebProcess/WebPage/WebFrame.cpp:

(WebKit::WebFrame::provisionalURL):
Grab the URL from the provisional document loader.

  • WebProcess/WebPage/WebFrame.h:
Location:
trunk/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r75276 r75279  
     12011-01-07  Jessie Berlin  <jberlin@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        WebKit2: Need WKBundleFrameCopyProvisionalURL
     6        https://bugs.webkit.org/show_bug.cgi?id=52083
     7
     8        * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
     9        (WKBundleFrameCopyProvisionalURL):
     10        * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
     11        * WebProcess/WebPage/WebFrame.cpp:
     12        (WebKit::WebFrame::provisionalURL):
     13        Grab the URL from the provisional document loader.
     14        * WebProcess/WebPage/WebFrame.h:
     15
    1162011-01-07  James Robinson  <jamesr@chromium.org>
    217
  • trunk/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp

    r75171 r75279  
    4949{
    5050    return toCopiedURLAPI(toImpl(frameRef)->url());
     51}
     52
     53WKURLRef WKBundleFrameCopyProvisionalURL(WKBundleFrameRef frameRef)
     54{
     55    return toCopiedURLAPI(toImpl(frameRef)->provisionalURL());
    5156}
    5257
  • trunk/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.h

    r75171 r75279  
    4242WK_EXPORT WKStringRef WKBundleFrameCopyName(WKBundleFrameRef frame);
    4343WK_EXPORT WKURLRef WKBundleFrameCopyURL(WKBundleFrameRef frame);
     44WK_EXPORT WKURLRef WKBundleFrameCopyProvisionalURL(WKBundleFrameRef frame);
    4445
    4546WK_EXPORT JSGlobalContextRef WKBundleFrameGetJavaScriptContext(WKBundleFrameRef frame);
  • trunk/WebKit2/WebProcess/WebPage/WebFrame.cpp

    r75054 r75279  
    507507}
    508508
     509String WebFrame::provisionalURL() const
     510{
     511    if (!m_coreFrame)
     512        return String();
     513
     514    return m_coreFrame->loader()->provisionalDocumentLoader()->url().string();
     515}
     516
    509517} // namespace WebKit
  • trunk/WebKit2/WebProcess/WebPage/WebFrame.h

    r75054 r75279  
    107107    bool allowsFollowingLink(const WebCore::KURL&) const;
    108108
     109    String provisionalURL() const;
     110
    109111    // Simple listener class used by plug-ins to know when frames finish or fail loading.
    110112    class LoadListener {
Note: See TracChangeset for help on using the changeset viewer.