Created attachment 65204 [details] This patch exposes an API for enabling/disabling universal access 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.
Just noticed, that "true" and "false" should be swapped in the last sentence.
Comment on attachment 65204 [details] This patch exposes an API for enabling/disabling universal access Following http://trac.webkit.org/wiki/QtWebKitAPI, please post a message first to webkit-qt mailing list. Clearing the review flag until we have some discussions.
*** This bug has been marked as a duplicate of bug 45436 ***