Skip to content

Commit 8f2ed5c

Browse files
pgorszkowski-igaliaspenap
authored andcommitted
Relax user agent validation
We need to configure UA for some apps that don't pass isValidUserAgentHeaderValue check, but it is still a valid header value.
1 parent d2ea27d commit 8f2ed5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3244,7 +3244,7 @@ void webkit_settings_set_user_agent(WebKitSettings* settings, const char* userAg
32443244
String userAgentString;
32453245
if (userAgent && *userAgent) {
32463246
userAgentString = String::fromUTF8(userAgent);
3247-
g_return_if_fail(WebCore::isValidUserAgentHeaderValue(userAgentString));
3247+
g_return_if_fail(WebCore::isValidHTTPHeaderValue(userAgentString));
32483248
} else
32493249
userAgentString = WebCore::standardUserAgent(emptyString());
32503250

0 commit comments

Comments
 (0)