|
|
Harden the implementation of '--disable-web-security'
This patch adds a browser-side check that ensures universal access can
only be granted if the browser process has the '--disable-web-security'
command-line flag. It also weakens the grant given for 'file:' URLs
by things like the 'setAllowUniversalAccessFromFileURLs()' WebView API
by ensuring that it may only be applied to "local" origins.
BUG= 327804
Total comments: 8
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+95 lines, -6 lines) |
Patch |
 |
M |
content/browser/renderer_host/render_process_host_impl.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
1
2
3
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/render_process_messages.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/renderer/content_renderer_client.h
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/renderer/content_renderer_client.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/renderer_blink_platform_impl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/renderer_blink_platform_impl.cc
|
View
|
1
2
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/shell/renderer/layout_test/layout_test_content_renderer_client.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/Document.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h
|
View
|
1
2
3
|
3 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp
|
View
|
1
2
3
|
10 chunks |
+39 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/Platform.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
1 comment
|
Download
|
 |
M |
third_party/WebKit/public/web/WebFrameClient.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
1 comment
|
Download
|
Total messages: 25 (5 generated)
|