Changeset 183586 in webkit


Ignore:
Timestamp:
Apr 29, 2015, 4:02:11 PM (11 years ago)
Author:
Simon Fraser
Message:

Allow testing of plug-ins that handle wheel events.
https://bugs.webkit.org/show_bug.cgi?id=144413

Reviewed by Tim Horton.

Source/WebKit2:

Allow the Test Netscape Plug-in to pretend to handle wheel events,
so layout tests can use it.

  • Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:

(WebKit::NetscapePluginModule::determineQuirks):

LayoutTests:

Test the non-fast scrollable region with top content inset and header height, and with a plug-in.

  • platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/top-content-inset-expected.txt: Added.
  • platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/top-content-inset-header-expected.txt: Added.
  • platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/top-content-inset-header.html: Added.
  • platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/top-content-inset.html: Added.
  • platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/wheel-event-plugin-expected.txt: Added.
  • platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/wheel-event-plugin.html: Added.
Location:
trunk
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r183584 r183586  
     12015-04-29  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Allow testing of plug-ins that handle wheel events.
     4        https://bugs.webkit.org/show_bug.cgi?id=144413
     5
     6        Reviewed by Tim Horton.
     7       
     8        Test the non-fast scrollable region with top content inset and header height, and with a plug-in.
     9
     10        * platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/top-content-inset-expected.txt: Added.
     11        * platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/top-content-inset-header-expected.txt: Added.
     12        * platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/top-content-inset-header.html: Added.
     13        * platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/top-content-inset.html: Added.
     14        * platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/wheel-event-plugin-expected.txt: Added.
     15        * platform/mac-wk2/tiled-drawing/scrolling/non-fast-region/wheel-event-plugin.html: Added.
     16
    1172015-04-29  Martin Robinson  <mrobinson@igalia.com>
    218
  • trunk/Source/WebKit2/ChangeLog

    r183575 r183586  
     12015-04-29  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Allow testing of plug-ins that handle wheel events.
     4        https://bugs.webkit.org/show_bug.cgi?id=144413
     5
     6        Reviewed by Tim Horton.
     7       
     8        Allow the Test Netscape Plug-in to pretend to handle wheel events,
     9        so layout tests can use it.
     10
     11        * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
     12        (WebKit::NetscapePluginModule::determineQuirks):
     13
    1142015-04-29  Filip Pizlo  <fpizlo@apple.com>
    215
  • trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm

    r181562 r183586  
    535535#endif
    536536
    537     if (plugin.bundleIdentifier == "com.adobe.acrobat.pdfviewerNPAPI") {
     537    if (plugin.bundleIdentifier == "com.adobe.acrobat.pdfviewerNPAPI" || plugin.bundleIdentifier == "com.apple.testnetscapeplugin") {
    538538        // The Adobe Reader plug-in wants wheel events.
    539539        m_pluginQuirks.add(PluginQuirks::WantsWheelEvents);
Note: See TracChangeset for help on using the changeset viewer.