Need a mechanism to override navigator.userAgent
[WebKit-https.git] / Source / WebKit / UIProcess / API / Cocoa / _WKWebsitePolicies.mm
index 3928e39..fda88b0 100644 (file)
     return _websitePolicies->customUserAgent();
 }
 
+- (void)setCustomJavaScriptUserAgent:(NSString *)customUserAgent
+{
+    _websitePolicies->setCustomJavaScriptUserAgent(customUserAgent);
+}
+
+- (NSString *)customJavaScriptUserAgent
+{
+    return _websitePolicies->customJavaScriptUserAgent();
+}
+
 - (void)setCustomNavigatorPlatform:(NSString *)customNavigatorPlatform
 {
     _websitePolicies->setCustomNavigatorPlatform(customNavigatorPlatform);