Bug 49034 - Plugins draw unclipped in pixel tests
Summary: Plugins draw unclipped in pixel tests
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar, PlatformOnly
Depends on:
Blocks:
 
Reported: 2010-11-04 15:45 PDT by Adam Roben (:aroben)
Modified: 2022-10-23 12:19 PDT (History)
4 users (show)

See Also:


Attachments
test case (629 bytes, text/html)
2010-11-04 16:06 PDT, Adam Roben (:aroben)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2010-11-04 15:45:25 PDT
To reproduce:

1. Download the attached file to LayoutTests/platform/win/plugins
2. run-webkit-tests -p --reset-results plaform/win/plugins/overflow-clip.html
3. Open LayoutTests/platform/win/platform/win/plugins/overflow-clip-expected.png

The (quite colorful) plugin is overlapping the text. It should be clipped to a 50x50 square. The clipping works fine in the browser, and in DRT (if you modify DRT to put its window on screen). But when creating the image for the pixel dump via WM_PRINT, the plugin's clip seems to be ignored by Windows.

It would be good to have a way to make pixel tests of clipped plugins.
Comment 1 Adam Roben (:aroben) 2010-11-04 16:06:33 PDT
Created attachment 72999 [details]
test case
Comment 2 Adam Roben (:aroben) 2010-11-04 16:06:59 PDT
<rdar://problem/8633402>
Comment 3 Adam Roben (:aroben) 2011-05-06 15:46:23 PDT
We clip plugins using ::SetWindowRgn. I guess WM_PRINT doesn't pay attention to the window's window region. :-\
Comment 4 Adam Roben (:aroben) 2011-05-06 15:51:41 PDT
This affects how plugins appear in Safari's dragged-out tab mini-windows, too.
Comment 5 Ahmad Saleem 2022-10-23 12:19:20 PDT
Webkit / Safari does not support plugins anymore so I think we can close this. Marking this as "RESOLVED WONTFIX". Please reopen, if it is still needed. Thanks!