Bug 37271 - [chromium] Expose SecurityOrigin::canRequest in WebSecurityOrigin.
Summary: [chromium] Expose SecurityOrigin::canRequest in WebSecurityOrigin.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-08 07:43 PDT by jochen
Modified: 2010-04-09 03:46 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.35 KB, patch)
2010-04-08 07:44 PDT, jochen
no flags Details | Formatted Diff | Diff
Patch (2.41 KB, patch)
2010-04-08 23:35 PDT, jochen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jochen 2010-04-08 07:43:46 PDT
Expose SecurityOrigin::canRequest in WebSecurityOrigin.
Comment 1 jochen 2010-04-08 07:44:53 PDT
Created attachment 52864 [details]
Patch
Comment 2 Adam Barth 2010-04-08 09:02:57 PDT
LGTM, but you need fishd's review for WebKit API changes.
Comment 3 Darin Fisher (:fishd, Google) 2010-04-08 11:00:34 PDT
Comment on attachment 52864 [details]
Patch

> +    // Returns true if this WebSecurityOrigin can read content retrieved from
> +    // the given URL. For example, call this function before issuing
> +    // XMLHttpRequests.
> +    WEBKIT_API bool canRequest(const WebURL&) const;

nit: The XMLHttpRequest example doesn't really apply to WebKit API consumers.

Otherwise, this change is fine.  Please post a revised patch for the commit queue.
Comment 4 jochen 2010-04-08 23:35:31 PDT
Created attachment 52938 [details]
Patch
Comment 5 Adam Barth 2010-04-08 23:37:26 PDT
Comment on attachment 52938 [details]
Patch

Picture perfect
Comment 6 WebKit Commit Bot 2010-04-09 03:46:26 PDT
Comment on attachment 52938 [details]
Patch

Clearing flags on attachment: 52938

Committed r57325: <http://trac.webkit.org/changeset/57325>
Comment 7 WebKit Commit Bot 2010-04-09 03:46:32 PDT
All reviewed patches have been landed.  Closing bug.