Bug 132294

Summary: Don't immediately snapshot plugin to allow for proper dominant plugin detection.
Product: WebKit Reporter: Roger Fong <roger_fong>
Component: Plug-insAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, roger_fong, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 131871    
Attachments:
Description Flags
patch dino: review+

Roger Fong
Reported 2014-04-28 12:07:21 PDT
Currently we immediately set the display state to displaying snapshot if the max number of snapshot retries is 0. However, this causes timing problems. Namely, it causes hit testing to fail because the hit test needs to happen with the original plugin element. If we instead call beginSnapshottingRunningPlugin, we allow the page some time to perform the hit test with the plugin element before snapshotting. I've only seen this affect layout tests, where we explicitly set the max number of snapshot retries to 0. This fix will allow us to enable snapshotting tests.
Attachments
patch (1.53 KB, patch)
2014-04-28 12:21 PDT, Roger Fong
dino: review+
Radar WebKit Bug Importer
Comment 1 2014-04-28 12:07:58 PDT
Roger Fong
Comment 2 2014-04-28 12:21:09 PDT
Roger Fong
Comment 3 2014-04-29 15:15:36 PDT
Note You need to log in before you can comment on or make changes to this bug.