Bug 44482 - [Qt] Expose API to enable/disable universal document access
Summary: [Qt] Expose API to enable/disable universal document access
Status: RESOLVED DUPLICATE of bug 45436
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks: 31552
  Show dependency treegraph
 
Reported: 2010-08-23 19:09 PDT by Alex Karpenko
Modified: 2010-11-12 06:54 PST (History)
2 users (show)

See Also:


Attachments
This patch exposes an API for enabling/disabling universal access (2.67 KB, patch)
2010-08-23 19:09 PDT, Alex Karpenko
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Karpenko 2010-08-23 19:09:19 PDT
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.
Comment 1 Alex Karpenko 2010-08-23 19:27:17 PDT
Just noticed, that "true" and "false" should be swapped in the last sentence.
Comment 2 Ariya Hidayat 2010-08-23 21:46:00 PDT
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.
Comment 3 Benjamin Poulain 2010-11-12 06:54:17 PST

*** This bug has been marked as a duplicate of bug 45436 ***