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

Issue 42684: It looks like the Chrome NPAPI plugin installer has been broken since we firs... (Closed)

Created:
11 years, 9 months ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
Mark Larson, jam
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

It looks like the Chrome NPAPI plugin installer has been broken since we first updated chrome webkit after 1.0 shipped. Basically in the 1.0 branch when the plugin was instantiated in its instantiation it would get the mime type along with the list of other arguments. If an object tag was specified with the classid, it would get mapped to the mime type. With the webkit merge the classs id is passed in along with the mime type. The plugin installer thinks that this is an activex installation on receiving a valid class id and and ends up checking if it is a white listed classid, etc. All this code will be taken out along with the activex shim in the near future. For now we take this code path only if we don't have a valid mime type. This fixes http://code.google.com/p/chromium/issues/detail?id=8584 Added a plugin test for the argument parsing functionality in the default plugin. I changed the ParseInstantiationArguments function in the plugin installer to a static function to be able to unit test this. Bug=8584 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12733

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 2

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -53 lines) Patch
M chrome/chrome.sln View 2 3 4 5 6 7 11 chunks +327 lines, -0 lines 0 comments Download
M chrome/test/plugin/plugin_test.cpp View 2 3 4 5 6 7 3 chunks +84 lines, -1 line 0 comments Download
M webkit/default_plugin/plugin_impl_win.h View 2 3 4 5 6 7 4 chunks +37 lines, -28 lines 0 comments Download
M webkit/default_plugin/plugin_impl_win.cc View 1 2 3 4 5 6 7 4 chunks +56 lines, -24 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ananta
11 years, 9 months ago (2009-03-27 02:02:15 UTC) #1
ananta
11 years, 9 months ago (2009-03-27 02:07:13 UTC) #2
jam
I haven't heard about the activex shim going away. I personally would like it to, ...
11 years, 9 months ago (2009-03-27 18:33:00 UTC) #3
ananta
On 2009/03/27 18:33:00, John Abd-El-Malek wrote: > I haven't heard about the activex shim going ...
11 years, 9 months ago (2009-03-27 22:46:04 UTC) #4
jam
11 years, 9 months ago (2009-03-28 02:22:27 UTC) #5
lgtm

http://codereview.chromium.org/42684/diff/2020/2024
File chrome/chrome.sln (right):

http://codereview.chromium.org/42684/diff/2020/2024#newcode101
Line 101: ndProject
E is gone..

http://codereview.chromium.org/42684/diff/2020/2022
File webkit/default_plugin/plugin_impl_win.h (right):

http://codereview.chromium.org/42684/diff/2020/2022#newcode228
Line 228: static bool ParseInstantiationArguments(NPMIMEType mime_type,
36 lines is huge for a function comment!  can you trim this down a little? 
perhaps just one line for each parameter..

Powered by Google App Engine
This is Rietveld 408576698