Skip to content
  • commit-queue@webkit.org's avatar
    [BlackBerry] Adding window.external to our port · f6e3a8e8
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=100868
    
    Patch by Otto Derek Cheung <otcheung@rim.com> on 2012-10-31
    Reviewed by Rob Buis.
    
    Source/WebKit:
    
    Adding ExternalExtension classes to the BB cmake file.
    
    * PlatformBlackBerry.cmake:
    
    Source/WebKit/blackberry:
    
    Attaching the window.external interface to the frame when
    it loads up.
    
    When called, the external interface methods call stubs declared
    in ChromeClientBlackBerry. The method passes in the url of the search
    provider and the url of the frame. Cross-site check has to be done in the
    implementation PR.
    
    * WebCoreSupport/ChromeClientBlackBerry.cpp:
    (WebCore::ChromeClientBlackBerry::addSearchProvider):
    (WebCore):
    (WebCore::ChromeClientBlackBerry::isSearchProviderInstalled):
    * WebCoreSupport/ChromeClientBlackBerry.h:
    (ChromeClientBlackBerry):
    * WebCoreSupport/ExternalExtension.cpp: Added.
    (addSearchProviderMethod):
    (IsSearchProviderInstalledMethod):
    (externalExtensionInitialize):
    (externalExtensionFinalize):
    * WebCoreSupport/ExternalExtension.h: Added.
    (WebCore):
    * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
    (WebCore::FrameLoaderClientBlackBerry::dispatchDidClearWindowObjectInWorld):
    
    LayoutTests:
    
    Adding BlackBerry platform specific DRT tests for window.external interface.
    
    * platform/blackberry/external/search-provider/search-provider-installed-expected.txt: Added.
    * platform/blackberry/external/search-provider/search-provider-installed.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f6e3a8e8