Changeset 23424 in webkit


Ignore:
Timestamp:
May 29, 2007 1:49:53 PM (17 years ago)
Author:
andersca
Message:

Reviewed by Adam.

<rdar://problem/4761543> nike.com doesn't finish loading if Flash plugin is installed
<rdar://problem/5131528> play button on Flash in ESPN front page does not start movie


Make sure to call NPP_SetWindow right after creating the plugin, and not from the main loop. However,
the WMP plugin needs to have the plugin's window coordinates set correctly when calling NPP_SetWindow so add a
quirk for that.


  • plugins/win/PluginViewWin.cpp: (WebCore::PluginViewWin::determineQuirks): (WebCore::PluginViewWin::init):
  • plugins/win/PluginViewWin.h: (WebCore::):
Location:
branches/WindowsMerge/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/WindowsMerge/WebCore/ChangeLog

    r23423 r23424  
     12007-05-29  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Adam.
     4
     5        <rdar://problem/4761543> nike.com doesn't finish loading if Flash plugin is installed
     6        <rdar://problem/5131528> play button on Flash in ESPN front page does not start movie
     7       
     8        Make sure to call NPP_SetWindow right after creating the plugin, and not from the main loop. However,
     9        the WMP plugin needs to have the plugin's window coordinates set correctly when calling NPP_SetWindow so add a
     10        quirk for that.
     11       
     12        * plugins/win/PluginViewWin.cpp:
     13        (WebCore::PluginViewWin::determineQuirks):
     14        (WebCore::PluginViewWin::init):
     15        * plugins/win/PluginViewWin.h:
     16        (WebCore::):
     17
    1182007-05-29  Sam Weinig  <sam@webkit.org>
    219
  • branches/WindowsMerge/WebCore/plugins/win/PluginViewWin.cpp

    r23423 r23424  
    11541154    if (mimeType == "application/x-shockwave-flash")
    11551155        m_quirks |= PluginQuirkWantsMozillaUserAgent;
     1156
     1157    // The WMP plugin sets its size on the first NPP_SetWindow call and never updates its size, so
     1158    // call SetWindow when the plugin view has a correct size
     1159    if (m_plugin->name().contains("Microsoft") && m_plugin->name().contains("Windows Media"))
     1160        m_quirks |= PluginQuirkDeferFirstSetWindowCall;
    11561161}
    11571162
     
    12341239    }
    12351240
     1241    if (!(m_quirks & PluginQuirkDeferFirstSetWindowCall))
     1242        setNPWindowRect(frameGeometry());
     1243
    12361244    m_status = PluginStatusLoadedSuccessfully;
    12371245}
  • branches/WindowsMerge/WebCore/plugins/win/PluginViewWin.h

    r23384 r23424  
    6262    enum PluginQuirks {
    6363        PluginQuirkWantsMozillaUserAgent = 1 << 0,
     64        PluginQuirkDeferFirstSetWindowCall = 1 << 1,
    6465    };
    6566
Note: See TracChangeset for help on using the changeset viewer.