Summary: | Cannot prevent loading of images in <object> tags using onbeforeload. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andy Estes <aestes> | ||||||||
Component: | Page Loading | Assignee: | Andy Estes <aestes> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | aestes, beidson, commit-queue, hyatt | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Created attachment 60443 [details]
Patch
Comment on attachment 60443 [details]
Patch
Oops, I just realied the fallback case isn't handled correctly. I'll try again.
Created attachment 60658 [details]
Patch
Comment on attachment 60658 [details]
Patch
Interesting. I verified that updateRenderer() will do the work removed in attach(). Thanks for the patch.
Comment on attachment 60658 [details] Patch Clearing flags on attachment: 60658 Committed r62664: <http://trac.webkit.org/changeset/62664> All reviewed patches have been landed. Closing bug. |
Created attachment 59447 [details] test case In general, a script can prevent loading of resources in <object> tags by handling the beforeload event and calling preventDefault(). See LayoutTests/fast/dom/beforeload/flash-before-load.html. Unfortunately, this does not seem to work when the resource specified in the <object> is an image. See the attached test case.