|
<webview>: Change how plugin load works inside guests.
The changes include:
* Always disallow loading NPAPI plugins inside guests.
* Do not allow installing a plugin from inside guests.
* Mark all plugins inside guests as needing authorization. This triggers a
javascript 'permissionrequest' event on the <webview> inside the embedder.
The embedder can chose to allow() or deny() the plugin from being loaded. If
the embedder callback doesn't preventDefault() the event, and does not call
either allow() or deny(), then the plugin is allowed.
BUG= 156120
R=bauerb@chromium.org, fsamuel@chromium.org, jam@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225800
Total comments: 11
Total comments: 2
Total comments: 2
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+341 lines, -7 lines) |
Patch |
 |
M |
chrome/browser/apps/web_view_browsertest.cc
|
View
|
1
2
3
|
3 chunks |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/guestview/webview/plugin_permission_helper.h
|
View
|
1
2
3
4
5
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/guestview/webview/plugin_permission_helper.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+113 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/guestview/webview/webview_constants.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/guestview/webview/webview_constants.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/guestview/webview/webview_guest.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/guestview/webview/webview_guest.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+22 lines, -1 line |
0 comments
|
Download
|
 |
A |
chrome/browser/guestview/webview/webview_permission_types.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/plugins/plugin_info_message_filter.cc
|
View
|
1
2
3
|
3 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extensions/web_view.js
|
View
|
1
2
3
4
|
5 chunks |
+33 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extensions/web_view_experimental.js
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/platform_apps/web_view/shim/main.js
|
View
|
1
2
|
2 chunks |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/common/browser_plugin_permission_type.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
tools/metrics/actions/chromeactions.txt
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|