WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
Patch
bug-219995-20201217232126.patch (text/plain), 3.32 KB, created by
Jan-Michael Brummer
on 2020-12-17 14:21:27 PST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jan-Michael Brummer
Created:
2020-12-17 14:21:27 PST
Size:
3.32 KB
patch
obsolete
>Subversion Revision: 270424 >diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog >index 7c40900514ad564eebba412310bef2da5d93cfd5..3843fa8a7a31ccf59c280b5846155e3a95ea1a13 100644 >--- a/Source/WebKit/ChangeLog >+++ b/Source/WebKit/ChangeLog >@@ -1,3 +1,17 @@ >+2020-12-17 Jan-Michael Brummer <jan.brummer@tabos.org> >+ >+ [GTK] Expose setCORSDisablingPatterns >+ https://bugs.webkit.org/show_bug.cgi?id=219995 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ No new tests (OOPS!). >+ >+ * UIProcess/API/gtk/WebKitWebView.h: >+ * UIProcess/API/gtk/WebKitWebViewGtk.cpp: >+ (webkit_web_view_set_cors_disabling_patterns): >+ * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt: >+ > 2020-12-03 Alex Christensen <achristensen@webkit.org> > > Introduce new download API >diff --git a/Source/WebKit/UIProcess/API/gtk/WebKitWebView.h b/Source/WebKit/UIProcess/API/gtk/WebKitWebView.h >index ac51683b675d5a98b6655323f9a51c49e7623a1e..d0c5779674436a496f2f25c7362a3f3a712c2bde 100644 >--- a/Source/WebKit/UIProcess/API/gtk/WebKitWebView.h >+++ b/Source/WebKit/UIProcess/API/gtk/WebKitWebView.h >@@ -589,6 +589,10 @@ webkit_web_view_get_input_method_context (WebKitWebView > WEBKIT_API WebKitWebsitePolicies * > webkit_web_view_get_website_policies (WebKitWebView *web_view); > >+WEBKIT_API void >+webkit_web_view_set_cors_disabling_patterns (WebKitWebView *web_view, >+ const gchar * const *patternList); >+ > > G_END_DECLS > >diff --git a/Source/WebKit/UIProcess/API/gtk/WebKitWebViewGtk.cpp b/Source/WebKit/UIProcess/API/gtk/WebKitWebViewGtk.cpp >index 8b0c890c21bd2e53d7803f20e8dfa40c7c2102bc..3196469b40c715a84c07dab50e36a6ca5b269aae 100644 >--- a/Source/WebKit/UIProcess/API/gtk/WebKitWebViewGtk.cpp >+++ b/Source/WebKit/UIProcess/API/gtk/WebKitWebViewGtk.cpp >@@ -465,3 +465,18 @@ void webkit_web_view_get_background_color(WebKitWebView* webView, GdkRGBA* rgba) > auto& page = *webkitWebViewBaseGetPage(reinterpret_cast<WebKitWebViewBase*>(webView)); > *rgba = page.backgroundColor().valueOr(WebCore::Color::white); > } >+ >+void webkit_web_view_set_cors_disabling_patterns(WebKitWebView* webView, const gchar * const *patternList) >+{ >+ g_return_if_fail(WEBKIT_IS_WEB_VIEW(webView)); >+ >+ if (!patternList || !g_strv_length(const_cast<char**>(patternList))) >+ return; >+ >+ Vector<String> patterns; >+ for (size_t i = 0; patternList[i]; ++i) >+ patterns.append(String::fromUTF8(patternList[i])); >+ >+ auto& page = *webkitWebViewBaseGetPage(reinterpret_cast<WebKitWebViewBase*>(webView)); >+ page.setCORSDisablingPatterns(WTFMove(patterns)); >+} >diff --git a/Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt b/Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt >index f6f5b8c51e6c98bcbb6e5894a0b6878e21cc875b..f943b677f9f8f38058a54d8155b46f86b79e8f07 100644 >--- a/Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt >+++ b/Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt >@@ -290,6 +290,8 @@ webkit_web_view_send_message_to_page_finish > webkit_web_view_set_input_method_context > webkit_web_view_get_input_method_context > webkit_web_view_get_website_policies >+webkit_web_view_set_cors_disabling_patterns >+ > > <SUBSECTION WebKitJavascriptResult> > WebKitJavascriptResult
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 219995
:
416469
|
416474
|
416511
|
416521
|
430490