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

Issue 584713002: Browser Plugin: Remove dependency on NPAPI (Closed)

Created:
6 years, 3 months ago by Fady Samuel
Modified:
6 years, 3 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@move_content_window
Project:
chromium
Visibility:
Public.

Description

Browser Plugin: Remove dependency on NPAPI The CL moves the final attribute on BrowserPlugin 'allowtransparency' out to the extensions module! No new content APIs had to be introduced! Transparency can be enabled from RenderWidgetHostView::SetBackgroundOpaque in the content embedder. This means that BrowserPlugin no longer depends on NPAPI and so this patch removes a lot of unnecessary code. TBR=asvitkine@chromium.org for histograms.xml, extension_function_histogram_value.h TBR=asvitkine@chromium.org for histograms.xml, extension BUG=330264 Committed: https://crrev.com/516005f409bc6d2221c4be32fe1c0920975cf1ae Cr-Commit-Position: refs/heads/master@{#295879}

Patch Set 1 #

Patch Set 2 : More code cleanup #

Patch Set 3 : Close to working #

Patch Set 4 : Even more cleanup! #

Total comments: 2

Patch Set 5 : Fixed segfault #

Total comments: 2

Patch Set 6 : Addressed comments + added a small test #

Patch Set 7 : Fixed crash #

Patch Set 8 : Updated histograms.xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -585 lines) Patch
M chrome/browser/apps/web_view_browsertest.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/shim/main.js View 1 2 3 4 5 2 chunks +21 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 chunks +6 lines, -13 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 3 4 5 6 1 chunk +9 lines, -1 line 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 2 3 4 5 6 3 chunks +5 lines, -6 lines 0 comments Download
M content/content_renderer.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 6 7 chunks +5 lines, -21 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 12 chunks +16 lines, -79 lines 0 comments Download
D content/renderer/browser_plugin/browser_plugin_bindings.h View 1 chunk +0 lines, -62 lines 0 comments Download
D content/renderer/browser_plugin/browser_plugin_bindings.cc View 1 chunk +0 lines, -267 lines 0 comments Download
M extensions/browser/api/web_view/web_view_internal_api.h View 1 chunk +17 lines, -0 lines 0 comments Download
M extensions/browser/api/web_view/web_view_internal_api.cc View 1 2 3 2 chunks +24 lines, -6 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_constants.h View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_constants.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.cc View 1 2 3 4 5 6 7 chunks +29 lines, -2 lines 0 comments Download
M extensions/common/api/web_view_internal.json View 1 chunk +14 lines, -0 lines 0 comments Download
M extensions/renderer/resources/web_view.js View 1 2 3 4 5 11 chunks +66 lines, -118 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
Fady Samuel
6 years, 3 months ago (2014-09-19 15:32:16 UTC) #2
Fady Samuel
PTAL fixed the segfault. Needed to wait for initial navigation to access the RenderWidgetHostView.
6 years, 3 months ago (2014-09-19 17:29:20 UTC) #3
lazyboy
https://chromiumcodereview.appspot.com/584713002/diff/60001/extensions/renderer/resources/web_view.js File extensions/renderer/resources/web_view.js (right): https://chromiumcodereview.appspot.com/584713002/diff/60001/extensions/renderer/resources/web_view.js#newcode384 extensions/renderer/resources/web_view.js:384: // <webview> src does not quite behave the same ...
6 years, 3 months ago (2014-09-19 17:57:02 UTC) #4
Fady Samuel
PTAL https://chromiumcodereview.appspot.com/584713002/diff/60001/extensions/renderer/resources/web_view.js File extensions/renderer/resources/web_view.js (right): https://chromiumcodereview.appspot.com/584713002/diff/60001/extensions/renderer/resources/web_view.js#newcode384 extensions/renderer/resources/web_view.js:384: // <webview> src does not quite behave the ...
6 years, 3 months ago (2014-09-19 19:53:59 UTC) #5
lazyboy
lgtm
6 years, 3 months ago (2014-09-19 20:07:12 UTC) #6
Fady Samuel
creis@ for rwhvguest + content_renderer.gypi rockot@ for non-guestview extensions stuff kenrb@ for *_messages.h
6 years, 3 months ago (2014-09-19 20:13:10 UTC) #8
Charlie Reis
LGTM
6 years, 3 months ago (2014-09-19 20:31:51 UTC) #9
kenrb
ipc lgtm
6 years, 3 months ago (2014-09-19 21:26:19 UTC) #10
Ken Rockot(use gerrit already)
On 2014/09/19 21:26:19, kenrb wrote: > ipc lgtm lgtm
6 years, 3 months ago (2014-09-19 22:36:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/584713002/100001
6 years, 3 months ago (2014-09-19 22:57:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/584713002/100001
6 years, 3 months ago (2014-09-19 22:57:27 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/12333)
6 years, 3 months ago (2014-09-19 23:23:19 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/12333)
6 years, 3 months ago (2014-09-19 23:23:59 UTC) #20
Fady Samuel
+asvitkine@ for extension_function_histogram_value
6 years, 3 months ago (2014-09-19 23:53:45 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/584713002/140001
6 years, 3 months ago (2014-09-20 16:00:15 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001) as de4b889e2716b43d1f630eb6613f6e7272682923
6 years, 3 months ago (2014-09-20 16:58:05 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-09-20 16:58:42 UTC) #26
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/516005f409bc6d2221c4be32fe1c0920975cf1ae
Cr-Commit-Position: refs/heads/master@{#295879}

Powered by Google App Engine
This is Rietveld 408576698