Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[GLIB] Add API to set WebView's Content-Security-Policy
https://bugs.webkit.org/show_bug.cgi?id=240221 Reviewed by Michael Catanzaro and Adrian Perez de Castro. This adds API to set the WebView's default policy as well as API to indicate that the WebView is in a WebExtension. This changes the internal behavior of CSP to block some options. Both of these are required for a complete WebExtension implementation in browsers such as Epiphany. * Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp: (testWebViewDefaultContentSecurityPolicy): (testWebViewWebExtensionMode): (beforeAll): * Tools/TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp: (WebViewTest::loadHtml): * Tools/TestWebKitAPI/glib/WebKitGLib/WebViewTest.h: * Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp: (webkitWebContextCreatePageForWebView): * Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp: (webkitWebViewSetProperty): (webkitWebViewGetProperty): (webkit_web_view_class_init): (webkit_web_view_get_web_extension_mode): (webkit_web_view_get_default_content_security_policy): * Source/WebKit/UIProcess/API/gtk/WebKitWebView.h: * Source/WebKit/UIProcess/API/wpe/WebKitWebView.h: Canonical link: https://commits.webkit.org/251684@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
7 changed files
with
234 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters