Changeset 244529 in webkit


Ignore:
Timestamp:
Apr 22, 2019 5:15:03 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Deprecate WKContextCreateWithInjectedBundlePath
https://bugs.webkit.org/show_bug.cgi?id=197169

Patch by Alex Christensen <achristensen@webkit.org> on 2019-04-22
Reviewed by Youenn Fablet.

Source/WebKit:

  • UIProcess/API/C/WKContext.h:

Tools:

  • TestWebKitAPI/PlatformUtilities.cpp:

(TestWebKitAPI::Util::createContextWithInjectedBundle):
Use WKContextCreateWithConfiguration instead of WKContextCreateWithInjectedBundlePath after having set its injected bundle path.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244521 r244529  
     12019-04-22  Alex Christensen  <achristensen@webkit.org>
     2
     3        Deprecate WKContextCreateWithInjectedBundlePath
     4        https://bugs.webkit.org/show_bug.cgi?id=197169
     5
     6        Reviewed by Youenn Fablet.
     7
     8        * UIProcess/API/C/WKContext.h:
     9
    1102019-04-22  Alex Christensen  <achristensen@webkit.org>
    211
  • trunk/Source/WebKit/UIProcess/API/C/WKContext.h

    r240363 r244529  
    108108
    109109WK_EXPORT WKContextRef WKContextCreate() WK_C_API_DEPRECATED_WITH_REPLACEMENT(WKContextCreateWithConfiguration);
    110 WK_EXPORT WKContextRef WKContextCreateWithInjectedBundlePath(WKStringRef path);
     110WK_EXPORT WKContextRef WKContextCreateWithInjectedBundlePath(WKStringRef path) WK_C_API_DEPRECATED_WITH_REPLACEMENT(WKContextCreateWithConfiguration);
    111111WK_EXPORT WKContextRef WKContextCreateWithConfiguration(WKContextConfigurationRef configuration);
    112112
  • trunk/Tools/ChangeLog

    r244521 r244529  
     12019-04-22  Alex Christensen  <achristensen@webkit.org>
     2
     3        Deprecate WKContextCreateWithInjectedBundlePath
     4        https://bugs.webkit.org/show_bug.cgi?id=197169
     5
     6        Reviewed by Youenn Fablet.
     7
     8        * TestWebKitAPI/PlatformUtilities.cpp:
     9        (TestWebKitAPI::Util::createContextWithInjectedBundle):
     10        Use WKContextCreateWithConfiguration instead of WKContextCreateWithInjectedBundlePath after having set its injected bundle path.
     11
    1122019-04-22  Alex Christensen  <achristensen@webkit.org>
    213
  • trunk/Tools/TestWebKitAPI/PlatformUtilities.cpp

    r244390 r244529  
    2727#include "PlatformUtilities.h"
    2828
     29#include <WebKit/WKContextConfigurationRef.h>
    2930#include <wtf/StdLibExtras.h>
    3031
     
    3738{
    3839    WKRetainPtr<WKStringRef> injectedBundlePath = adoptWK(createInjectedBundlePath());
    39     WKContextRef context = WKContextCreateWithInjectedBundlePath(injectedBundlePath.get());
    40 
    41     return context;
     40    auto configuration = adoptWK(WKContextConfigurationCreate());
     41    WKContextConfigurationSetInjectedBundlePath(configuration.get(), injectedBundlePath.get());
     42    return WKContextCreateWithConfiguration(configuration.get());
    4243}
    4344
Note: See TracChangeset for help on using the changeset viewer.