Bug 32672 - NPWindow.clipRect bug
Summary: NPWindow.clipRect bug
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-17 10:36 PST by Anders Bakken
Modified: 2022-07-01 11:36 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Bakken 2009-12-17 10:36:34 PST
The clipRect seems to be incorrectly set up in void PluginView::setNPWindowIfNeeded() (PluginView.cpp).

m_npWindow.clipRect.left = m_clipRect.x();
m_npWindow.clipRect.top = m_clipRect.y();
m_npWindow.clipRect.right = m_clipRect.width();
m_npWindow.clipRect.bottom = m_clipRect.height();

I would expect:

m_npWindow.clipRect.left = m_clipRect.x();
m_npWindow.clipRect.top = m_clipRect.y();
m_npWindow.clipRect.right = m_clipRect.x() + m_clipRect.width();
m_npWindow.clipRect.bottom = m_clipRect.y() + m_clipRect.height();

Possibly with - 1 on right/bottom.
Comment 1 Alexey Proskuryakov 2022-07-01 11:36:01 PDT
Mass closing plug-in bugs, as plug-in support has been removed from WebKit.

Please comment and/or reopen if this still affects WebKit in some way.