Changeset 158775 in webkit


Ignore:
Timestamp:
Nov 6, 2013 12:48:59 PM (10 years ago)
Author:
mitz@apple.com
Message:

[Cocoa] Add -[WKBrowsingContextController unreachableURL]
https://bugs.webkit.org/show_bug.cgi?id=123909

Reviewed by Anders Carlsson.

  • UIProcess/API/mac/WKBrowsingContextController.h: Declared unreachableURL property.
  • UIProcess/API/mac/WKBrowsingContextController.mm:

(-[WKBrowsingContextController unreachableURL]): Added.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::unreachableURL): Added.

  • UIProcess/WebPageProxy.h:
Location:
trunk/Source/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r158772 r158775  
     12013-11-06  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Add -[WKBrowsingContextController unreachableURL]
     4        https://bugs.webkit.org/show_bug.cgi?id=123909
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * UIProcess/API/mac/WKBrowsingContextController.h: Declared unreachableURL property.
     9        * UIProcess/API/mac/WKBrowsingContextController.mm:
     10        (-[WKBrowsingContextController unreachableURL]): Added.
     11        * UIProcess/WebPageProxy.cpp:
     12        (WebKit::WebPageProxy::unreachableURL): Added.
     13        * UIProcess/WebPageProxy.h:
     14
    1152013-11-06  Anders Carlsson  <andersca@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.h

    r158764 r158775  
    111111@property(readonly) NSURL *activeURL;
    112112
    113 /* URL for a request that has been sent, but no response has been recieved yet. */
     113/* URL for a request that has been sent, but no response has been received yet. */
    114114@property(readonly) NSURL *provisionalURL;
    115115
    116 /* URL for a request that has been recieved, and is now being used. */
     116/* URL for a request that has been received, and is now being used. */
    117117@property(readonly) NSURL *committedURL;
     118
     119@property(readonly) NSURL *unreachableURL;
    118120
    119121@property(readonly) double estimatedProgress;
  • trunk/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm

    r158764 r158775  
    325325}
    326326
     327- (NSURL *)unreachableURL
     328{
     329    const String& unreachableURL = toImpl(_data->_pageRef.get())->unreachableURL();
     330    if (!unreachableURL)
     331        return nil;
     332
     333    return !unreachableURL ? nil : [NSURL URLWithString:unreachableURL];
     334}
     335
    327336- (double)estimatedProgress
    328337{
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r158759 r158775  
    875875}
    876876
     877String WebPageProxy::unreachableURL() const
     878{
     879    if (!m_mainFrame)
     880        return String();
     881
     882    return m_mainFrame->unreachableURL();
     883}
     884
    877885bool WebPageProxy::canShowMIMEType(const String& mimeType) const
    878886{
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.h

    r158759 r158775  
    298298    String provisionalURL() const;
    299299    String committedURL() const;
     300    String unreachableURL() const;
    300301
    301302    bool willHandleHorizontalScrollEvents() const;
Note: See TracChangeset for help on using the changeset viewer.