RESOLVED FIXED 144748
[GTK] Expose allowFileAccessFromFileURLs setting to WebKit2 GTK+ API
https://bugs.webkit.org/show_bug.cgi?id=144748
Summary [GTK] Expose allowFileAccessFromFileURLs setting to WebKit2 GTK+ API
Carlos Garcia Campos
Reported 2015-05-07 09:34:58 PDT
This is needed by local applications loaded as a file URI that do XMLHttpRequests.
Attachments
Patch (11.63 KB, patch)
2015-05-07 09:38 PDT, Carlos Garcia Campos
svillar: review+
svillar: commit-queue-
Carlos Garcia Campos
Comment 1 2015-05-07 09:38:34 PDT
Sergio Villar Senin
Comment 2 2015-05-07 23:45:01 PDT
Comment on attachment 252594 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252594&action=review That's a r=me. Another WebKitGtk reviewer must approve the new API though > Source/WebKit2/UIProcess/API/gtk/WebKitSettings.cpp:3060 > + if (currentValue == allowed) currentValue is not really needed. I think using the function call directly is explicit enough.
Carlos Garcia Campos
Comment 3 2015-05-07 23:57:45 PDT
(In reply to comment #2) > Comment on attachment 252594 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=252594&action=review > > That's a r=me. Another WebKitGtk reviewer must approve the new API though Thanks!, you can safely r+, cq- I won't land it until I get the second approval. > > Source/WebKit2/UIProcess/API/gtk/WebKitSettings.cpp:3060 > > + if (currentValue == allowed) > > currentValue is not really needed. I think using the function call directly > is explicit enough. Yes, we have that pattern in the whole file, I don't remember if there was a reason, or we just copy-pasted every time :-)
Gustavo Noronha (kov)
Comment 4 2015-05-08 04:23:20 PDT
Comment on attachment 252594 [details] Patch Yep, makes sense to me =)
Carlos Garcia Campos
Comment 5 2015-05-08 04:55:26 PDT
Note You need to log in before you can comment on or make changes to this bug.