⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 271475 in webkit


Ignore:
Timestamp:
Jan 13, 2021, 4:48:26 PM (6 years ago)
Author:
achristensen@apple.com
Message:

Remove deprecated script and stylesheet SPI, replaced with more inclusively-named SPI
https://bugs.webkit.org/show_bug.cgi?id=214937

Fix iOS build after r271457.

  • TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm:

(TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r271459 r271475  
     12021-01-13  Alex Christensen  <achristensen@webkit.org>
     2
     3        Remove deprecated script and stylesheet SPI, replaced with more inclusively-named SPI
     4        https://bugs.webkit.org/show_bug.cgi?id=214937
     5
     6        Fix iOS build after r271457.
     7
     8        * TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm:
     9        (TEST):
     10
    1112021-01-13  Wenson Hsieh  <wenson_hsieh@apple.com>
    212
  • trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm

    r270638 r271475  
    387387    auto schemeHandler = adoptNS([[InAppBrowserSchemeHandler alloc] init]);
    388388    [configuration setURLSchemeHandler:schemeHandler.get() forURLScheme:@"in-app-browser"];
    389     RetainPtr<_WKUserContentWorld> world = [_WKUserContentWorld worldWithName:@"TestWorld"];
     389    RetainPtr<WKContentWorld> world = [WKContentWorld worldWithName:@"TestWorld"];
    390390
    391391    auto webView = adoptNS([[TestWKWebView alloc] initWithFrame:CGRectZero configuration:configuration.get()]);
    392     RetainPtr<_WKUserStyleSheet> styleSheet = adoptNS([[_WKUserStyleSheet alloc] initWithSource:styleSheetSource forWKWebView:webView.get() forMainFrameOnly:YES level:_WKUserStyleUserLevel userContentWorld:world.get()]);
     392    RetainPtr<_WKUserStyleSheet> styleSheet = adoptNS([[_WKUserStyleSheet alloc] initWithSource:styleSheetSource forWKWebView:webView.get() forMainFrameOnly:YES includeMatchPatternStrings:nil excludeMatchPatternStrings:nil baseURL:nil level:_WKUserStyleUserLevel contentWorld:world.get()]);
     393
    393394    [[configuration userContentController] _addUserStyleSheet:styleSheet.get()];
    394395
Note: See TracChangeset for help on using the changeset viewer.