Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(799)

Issue 293021: Introduce WebSecurityPolicy for security related methods (Closed)

Created:
11 years, 2 months ago by Mohamed Mansour
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Introduce WebSecurityPolicy for security related methods. Move security related methods out of WebKit.h into its own class WebSecurityPolicy. This involves these functions: - registerURLSchemeAsLocal - registerURLSchemeAsNoAccess - whiteListAccessFromOrigin - resetOriginAccessWhiteLists BUG=24601 TEST=Compiled locally, try bot'ed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29639 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29758

Patch Set 1 : Introduce WebSecurityPolicy #

Total comments: 7

Patch Set 2 : Make it into a class with static methods. #

Total comments: 2

Patch Set 3 : Fix my errors #

Total comments: 8

Patch Set 4 : Do the nits! #

Total comments: 1

Patch Set 5 : Fix the white space issue #

Patch Set 6 : rebase #

Patch Set 7 : socket needs weburl import #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -58 lines) Patch
M chrome/renderer/extensions/extension_process_bindings.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M chrome/renderer/render_thread.cc View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M webkit/api/public/WebKit.h View 1 3 chunks +0 lines, -18 lines 0 comments Download
A webkit/api/public/WebSecurityPolicy.h View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
M webkit/api/src/SocketStreamHandle.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/api/src/WebKit.cpp View 1 3 chunks +0 lines, -28 lines 0 comments Download
A webkit/api/src/WebSecurityPolicy.cpp View 1 1 chunk +69 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/layout_test_controller.cc View 1 2 3 4 5 4 chunks +7 lines, -5 lines 0 comments Download
M webkit/tools/test_shell/test_shell_webkit_init.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M webkit/webkit.gyp View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mohamed Mansour
This time I didn't forget webkit.gyp
11 years, 2 months ago (2009-10-20 04:35:24 UTC) #1
darin (slow to review)
Thanks for working on this!! http://codereview.chromium.org/293021/diff/6/1008 File webkit/api/public/WebSecurityPolicy.h (right): http://codereview.chromium.org/293021/diff/6/1008#newcode35 Line 35: #include "WebURL.h" nit: ...
11 years, 2 months ago (2009-10-20 05:48:29 UTC) #2
Hironori Bono
This is just a drive-by nit. Regards, Hironori Bono http://codereview.chromium.org/293021/diff/4001/4009 File webkit/tools/test_shell/test_shell_webkit_init.h (right): http://codereview.chromium.org/293021/diff/4001/4009#newcode53 Line ...
11 years, 2 months ago (2009-10-21 02:58:51 UTC) #3
Mohamed Mansour
Thanks hbono. I did a stupid mistake (handling two different bugs in the same time). ...
11 years, 2 months ago (2009-10-21 03:47:17 UTC) #4
darin (slow to review)
http://codereview.chromium.org/293021/diff/6/1008 File webkit/api/public/WebSecurityPolicy.h (right): http://codereview.chromium.org/293021/diff/6/1008#newcode35 Line 35: #include "WebURL.h" On 2009/10/21 03:47:17, Mohamed Mansour wrote: ...
11 years, 2 months ago (2009-10-21 04:02:11 UTC) #5
darin (slow to review)
just nits: http://codereview.chromium.org/293021/diff/7001/7002 File chrome/renderer/extensions/extension_process_bindings.cc (right): http://codereview.chromium.org/293021/diff/7001/7002#newcode40 Line 40: using WebKit::WebFrame; please insert 'using WebKit::WebSecurityPolicy' ...
11 years, 2 months ago (2009-10-21 04:04:49 UTC) #6
Mohamed Mansour
Updated the nits, sorry for the trouble. http://codereview.chromium.org/293021/diff/7001/7002 File chrome/renderer/extensions/extension_process_bindings.cc (right): http://codereview.chromium.org/293021/diff/7001/7002#newcode40 Line 40: using ...
11 years, 2 months ago (2009-10-21 05:03:01 UTC) #7
darin (slow to review)
11 years, 2 months ago (2009-10-21 05:18:34 UTC) #8
LGTM

http://codereview.chromium.org/293021/diff/7011/10004
File webkit/api/public/WebSecurityPolicy.h (right):

http://codereview.chromium.org/293021/diff/7011/10004#newcode50
Line 50: WEBKIT_API  static void registerURLSchemeAsNoAccess(const WebString&);
nit: there's an extra space after WEBKIT_API

Powered by Google App Engine
This is Rietveld 408576698