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

Side by Side Diff: webkit/glue/plugins/plugin_list_win.cc

Issue 20087: Disable the WanWang protocol handler plugin (npww.dll) as it crashes during s... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <tchar.h> 5 #include <tchar.h>
6 6
7 #include "webkit/glue/plugins/plugin_list.h" 7 #include "webkit/glue/plugins/plugin_list.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 15 matching lines...) Expand all
26 const TCHAR kRegistryWindowsMedia[] = _T("wmplayer.exe"); 26 const TCHAR kRegistryWindowsMedia[] = _T("wmplayer.exe");
27 const TCHAR kRegistryQuickTime[] = _T("QuickTimePlayer.exe"); 27 const TCHAR kRegistryQuickTime[] = _T("QuickTimePlayer.exe");
28 const TCHAR kRegistryPath[] = _T("Path"); 28 const TCHAR kRegistryPath[] = _T("Path");
29 const TCHAR kRegistryMozillaPlugins[] = _T("SOFTWARE\\MozillaPlugins"); 29 const TCHAR kRegistryMozillaPlugins[] = _T("SOFTWARE\\MozillaPlugins");
30 const TCHAR kRegistryFirefoxInstalled[] = 30 const TCHAR kRegistryFirefoxInstalled[] =
31 _T("SOFTWARE\\Mozilla\\Mozilla Firefox"); 31 _T("SOFTWARE\\Mozilla\\Mozilla Firefox");
32 const TCHAR kMozillaActiveXPlugin[] = _T("npmozax.dll"); 32 const TCHAR kMozillaActiveXPlugin[] = _T("npmozax.dll");
33 const TCHAR kNewWMPPlugin[] = _T("np-mswmp.dll"); 33 const TCHAR kNewWMPPlugin[] = _T("np-mswmp.dll");
34 const TCHAR kOldWMPPlugin[] = _T("npdsplay.dll"); 34 const TCHAR kOldWMPPlugin[] = _T("npdsplay.dll");
35 const TCHAR kYahooApplicationStatePlugin[] = _T("npystate.dll"); 35 const TCHAR kYahooApplicationStatePlugin[] = _T("npystate.dll");
36 const TCHAR kWanWangProtocolHandlerPlugin[] = _T("npww.dll");
36 const TCHAR kRegistryJava[] = 37 const TCHAR kRegistryJava[] =
37 _T("Software\\JavaSoft\\Java Runtime Environment"); 38 _T("Software\\JavaSoft\\Java Runtime Environment");
38 const TCHAR kRegistryBrowserJavaVersion[] = _T("BrowserJavaVersion"); 39 const TCHAR kRegistryBrowserJavaVersion[] = _T("BrowserJavaVersion");
39 const TCHAR kRegistryCurrentJavaVersion[] = _T("CurrentVersion"); 40 const TCHAR kRegistryCurrentJavaVersion[] = _T("CurrentVersion");
40 const TCHAR kRegistryJavaHome[] = _T("JavaHome"); 41 const TCHAR kRegistryJavaHome[] = _T("JavaHome");
41 42
42 #ifdef GEARS_STATIC_LIB 43 #ifdef GEARS_STATIC_LIB
43 // defined in gears/base/common/module.cc 44 // defined in gears/base/common/module.cc
44 NPError API_CALL Gears_NP_GetEntryPoints(NPPluginFuncs* funcs); 45 NPError API_CALL Gears_NP_GetEntryPoints(NPPluginFuncs* funcs);
45 NPError API_CALL Gears_NP_Initialize(NPNetscapeFuncs* funcs); 46 NPError API_CALL Gears_NP_Initialize(NPNetscapeFuncs* funcs);
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 // Depends on XPCOM. 348 // Depends on XPCOM.
348 if (filename == kMozillaActiveXPlugin) 349 if (filename == kMozillaActiveXPlugin)
349 return false; 350 return false;
350 351
351 // Disable the Yahoo Application State plugin as it crashes the plugin 352 // Disable the Yahoo Application State plugin as it crashes the plugin
352 // process on return from NPObjectStub::OnInvoke. Please refer to 353 // process on return from NPObjectStub::OnInvoke. Please refer to
353 // http://b/issue?id=1372124 for more information. 354 // http://b/issue?id=1372124 for more information.
354 if (filename == kYahooApplicationStatePlugin) 355 if (filename == kYahooApplicationStatePlugin)
355 return false; 356 return false;
356 357
358 // Disable the WangWang protocol handler plugin (npww.dll) as it crashes
359 // chrome during shutdown. Firefox also disables this plugin.
360 // Please refer to http://code.google.com/p/chromium/issues/detail?id=3953
361 // for more information.
362 if (filename == kWanWangProtocolHandlerPlugin)
363 return false;
364
357 // Special WMP handling 365 // Special WMP handling
358 366
359 // We will use the ActiveX shim to handle embedded WMP media. 367 // We will use the ActiveX shim to handle embedded WMP media.
360 if (use_internal_activex_shim_) { 368 if (use_internal_activex_shim_) {
361 if (filename == kNewWMPPlugin || filename == kOldWMPPlugin) 369 if (filename == kNewWMPPlugin || filename == kOldWMPPlugin)
362 return false; 370 return false;
363 } else { 371 } else {
364 // If both the new and old WMP plugins exist, only load the new one. 372 // If both the new and old WMP plugins exist, only load the new one.
365 if (filename == kNewWMPPlugin) { 373 if (filename == kNewWMPPlugin) {
366 if (dont_load_new_wmp_) 374 if (dont_load_new_wmp_)
(...skipping 23 matching lines...) Expand all
390 398
391 if (!use_internal_activex_shim_) 399 if (!use_internal_activex_shim_)
392 return; 400 return;
393 401
394 LoadPlugin(FilePath(kActiveXShimFileName)); 402 LoadPlugin(FilePath(kActiveXShimFileName));
395 LoadPlugin(FilePath(kActiveXShimFileNameForMediaPlayer)); 403 LoadPlugin(FilePath(kActiveXShimFileNameForMediaPlayer));
396 } 404 }
397 405
398 } // namespace NPAPI 406 } // namespace NPAPI
399 407
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698