[Webkit-unassigned] [Bug 73215] [Qt][WK2] Split QWebPermissionRequest into QWebSecurityOrigin

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 24 08:00:18 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=73215





--- Comment #38 from Kenneth Rohde Christiansen <kenneth at webkit.org>  2012-01-24 08:00:18 PST ---
(From update of attachment 123733)
View in context: https://bugs.webkit.org/attachment.cgi?id=123733&action=review

> Source/WebKit2/UIProcess/API/qt/qtwebsecurityorigin.cpp:109
> +bool QtWebSecurityOrigin::canAccess(const QUrl& url, OriginPolicyFlags flags)
> +{
> +    if (scheme() == QLatin1String("data"))
> +        return false;
> +
> +    if (containsScheme(m_url.scheme())) {
> +        if (containsScheme(url.scheme()) && (flags & LocalContentHasSystemLocalAccess))
> +            return true;
> +
> +        return m_url.path() == QFileInfo(m_url.path()).canonicalFilePath();
> +    }
> +
> +    return m_url.scheme() == url.scheme() && m_url.host() == url.host() && m_url.port() == url.port();
> +}

I think we should leave this out for now, or at least make it use webcore internals.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list