Changeset 271475 in webkit
- Timestamp:
- Jan 13, 2021, 4:48:26 PM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r271459 r271475 1 2021-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 1 11 2021-01-13 Wenson Hsieh <wenson_hsieh@apple.com> 2 12 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm
r270638 r271475 387 387 auto schemeHandler = adoptNS([[InAppBrowserSchemeHandler alloc] init]); 388 388 [configuration setURLSchemeHandler:schemeHandler.get() forURLScheme:@"in-app-browser"]; 389 RetainPtr< _WKUserContentWorld> world = [_WKUserContentWorld worldWithName:@"TestWorld"];389 RetainPtr<WKContentWorld> world = [WKContentWorld worldWithName:@"TestWorld"]; 390 390 391 391 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 393 394 [[configuration userContentController] _addUserStyleSheet:styleSheet.get()]; 394 395
Note:
See TracChangeset
for help on using the changeset viewer.