1. 02 Dec, 2013 21 commits
  2. 01 Dec, 2013 16 commits
  3. 30 Nov, 2013 3 commits
    • weinig@apple.com's avatar
      [CTTE] The WebPageProxy's WebPageGroup is never null so it should be stored in a Ref · 3b9444bb
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125038
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/API/C/WKPage.cpp:
      (WKPageGetPageGroup):
      * UIProcess/API/C/mac/WKPagePrivateMac.cpp:
      (WKPageIsURLKnownHSTSHost):
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController browsingContextGroup]):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _preferencesDidChange]):
      (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::WebContext):
      (WebKit::WebContext::createWebPage):
      * UIProcess/WebContext.h:
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::WebInspectorPageGroups::inspectorLevel):
      (WebKit::WebInspectorPageGroups::isInspectorPageGroup):
      (WebKit::WebInspectorPageGroups::inspectorPageGroupLevel):
      (WebKit::WebInspectorProxy::isInspectorPage):
      * UIProcess/WebInspectorProxy.h:
      * UIProcess/WebPageGroup.cpp:
      (WebKit::WebPageGroup::createNonNull):
      * UIProcess/WebPageGroup.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::create):
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
      (WebKit::WebPageProxy::preferencesDidChange):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::pageGroup):
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::createWebPage):
      * UIProcess/WebProcessProxy.h:
      * UIProcess/mac/WebInspectorProxyMac.mm:
      (WebKit::WebInspectorProxy::createInspectorWindow):
      (WebKit::WebInspectorProxy::platformCreateInspectorPage):
      (WebKit::WebInspectorProxy::windowFrameDidChange):
      * UIProcess/mac/WebProcessProxyMac.mm:
      (WebKit::WebProcessProxy::pageIsProcessSuppressible):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159896 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3b9444bb
    • mitz@apple.com's avatar
      Added a version of +[NSURL _web_URLWithWTFString:relativeToURL:] that doesn’t... · 42115e1b
      mitz@apple.com authored
      Added a version of +[NSURL _web_URLWithWTFString:relativeToURL:] that doesn’t take a base URL and switched all callers to it.
      https://bugs.webkit.org/show_bug.cgi?id=125040
      
      Reviewed by Sam Weinig.
      
      * Shared/Cocoa/WKNSURLExtras.h: Declared new method.
      * Shared/Cocoa/WKNSURLExtras.mm:
      (urlWithWTFString): Added helper function.
      (+[NSURL _web_URLWithWTFString:]): Added.
      (+[NSURL _web_URLWithWTFString:relativeToURL:]): Changed to use helper function.
      * UIProcess/API/Cocoa/WKBackForwardListItem.mm:
      (-[WKBackForwardListItem URL]): Changed to call new method.
      (-[WKBackForwardListItem originalURL]): Ditto.
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController activeURL]): Ditto.
      (-[WKBrowsingContextController provisionalURL]): Ditto.
      (-[WKBrowsingContextController committedURL]): Ditto.
      (-[WKBrowsingContextController unreachableURL]): Ditto.
      (setUpPagePolicyClient): Ditto.
      * UIProcess/API/Cocoa/WKNavigationData.mm:
      (-[WKNavigationData destinationURL]): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      42115e1b
    • mitz@apple.com's avatar
      [Cocoa] Stop using the WKPageRef API in WKBrowsingContextController · 1431d58b
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125036
      
      Reviewed by Sam Weinig.
      
      * Shared/Cocoa/WKNSURLExtras.h: Declared new method.
      * Shared/Cocoa/WKNSURLExtras.mm:
      (-[NSURL _web_originalDataAsWTFString]): Added. Returns a WTF::String with the receiver’s
      bytes.
      
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController loadRequest:userData:]):
      (-[WKBrowsingContextController loadFileURL:restrictToFilesWithin:userData:]):
      (-[WKBrowsingContextController loadHTMLString:baseURL:userData:]):
      (-[WKBrowsingContextController loadAlternateHTMLString:baseURL:forUnreachableURL:]):
      (-[WKBrowsingContextController loadData:MIMEType:textEncodingName:baseURL:userData:]):
      (-[WKBrowsingContextController stopLoading]):
      (-[WKBrowsingContextController reload]):
      (-[WKBrowsingContextController reloadFromOrigin]):
      (-[WKBrowsingContextController goForward]):
      (-[WKBrowsingContextController canGoForward]):
      (-[WKBrowsingContextController goBack]):
      (-[WKBrowsingContextController canGoBack]):
      (-[WKBrowsingContextController activeURL]):
      (-[WKBrowsingContextController provisionalURL]):
      (-[WKBrowsingContextController committedURL]):
      (-[WKBrowsingContextController title]):
      (-[WKBrowsingContextController textZoom]):
      (-[WKBrowsingContextController setTextZoom:]):
      (-[WKBrowsingContextController pageZoom]):
      (-[WKBrowsingContextController setPageZoom:]):
      (setUpPageLoaderClient):
      (setUpPagePolicyClient):
      (-[WKBrowsingContextController setLoadDelegate:]):
      (-[WKBrowsingContextController setPolicyDelegate:]):
      (-[WKBrowsingContextController _pageRef]):
      (-[WKBrowsingContextController setPaginationMode:]):
      (-[WKBrowsingContextController paginationMode]):
      (-[WKBrowsingContextController setPaginationBehavesLikeColumns:]):
      (-[WKBrowsingContextController paginationBehavesLikeColumns]):
      (-[WKBrowsingContextController setPageLength:]):
      (-[WKBrowsingContextController pageLength]):
      (-[WKBrowsingContextController setGapBetweenPages:]):
      (-[WKBrowsingContextController gapBetweenPages]):
      (-[WKBrowsingContextController pageCount]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159894 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1431d58b