[webkit-reviews] review requested: [Bug 44482] [Qt] Expose API to enable/disable universal access : [Attachment 65204] This patch exposes an API for enabling/disabling universal access

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 23 19:09:18 PDT 2010


Alex Karpenko <alexkarpenko at hotmail.com> has asked  for review:
Bug 44482: [Qt] Expose API to enable/disable universal access
https://bugs.webkit.org/show_bug.cgi?id=44482

Attachment 65204: This patch exposes an API for enabling/disabling universal
access
https://bugs.webkit.org/attachment.cgi?id=65204&action=review

------- Additional Comments from Alex Karpenko <alexkarpenko at hotmail.com>
The Qt API currently exposes a way to allow universal access from locally
stored files. This is done by setting the
QWebSettings::LocalContentCanAccessRemoteUrls attribute.

In special circumstances it is desirable to enable universal access for both
local and remote documents. WebKit allows universal access to be enabled by
calling WebCore::Security::setWebSecurityEnabled(false). However, QWebSettings
does not expose this in its API.

This patch adds the QWebSettings::WebSecurityEnabled attribute to allow
enabling/disabling universal access. By default universal access is disabled
(QWebSettings::WebSecurityEnabled is false) as before, and can be enabled by
the client by setting QWebSettings::WebSecurityEnabled to true.


More information about the webkit-reviews mailing list