Changeset 86242 in webkit


Ignore:
Timestamp:
May 11, 2011 9:56:20 AM (13 years ago)
Author:
Adam Roben
Message:

Use case-insensitive comparisons when checking plugin filenames on Windows

Windows paths are nearly always case-insensitive.

I couldn't think of a good way to test this.

Fixes <http://webkit.org/b/60633> WebKit1 loads Windows Presentation Foundation plugin, but
should not

Reviewed by Steve Falkenburg.

  • plugins/win/PluginPackageWin.cpp:

(WebCore::PluginPackage::isPluginBlacklisted): Use equalIgnoringCase instead of == when
checking plugin filenames.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86237 r86242  
     12011-05-11  Adam Roben  <aroben@apple.com>
     2
     3        Use case-insensitive comparisons when checking plugin filenames on Windows
     4
     5        Windows paths are nearly always case-insensitive.
     6
     7        I couldn't think of a good way to test this.
     8
     9        Fixes <http://webkit.org/b/60633> WebKit1 loads Windows Presentation Foundation plugin, but
     10        should not
     11
     12        Reviewed by Steve Falkenburg.
     13
     14        * plugins/win/PluginPackageWin.cpp:
     15        (WebCore::PluginPackage::isPluginBlacklisted): Use equalIgnoringCase instead of == when
     16        checking plugin filenames.
     17
    1182011-05-11  Adam Roben  <aroben@apple.com>
    219
  • trunk/Source/WebCore/plugins/win/PluginPackageWin.cpp

    r81989 r86242  
    7272        if (compareFileVersion(slPluginMinRequired) < 0)
    7373            return true;
    74     } else if (fileName() == "npmozax.dll") {
     74    } else if (equalIgnoringCase(fileName(), "npmozax.dll")) {
    7575        // Bug 15217: Mozilla ActiveX control complains about missing xpcom_core.dll
    7676        return true;
    77     } else if (fileName() == "npwpf.dll") {
     77    } else if (equalIgnoringCase(fileName(), "npwpf.dll")) {
    7878        // Bug 57119: Microsoft Windows Presentation Foundation (WPF) plug-in complains about missing xpcom.dll
    7979        return true;
Note: See TracChangeset for help on using the changeset viewer.