Bug 148923 - When object data attribute is set dynamically, loading from cache fails
Summary: When object data attribute is set dynamically, loading from cache fails
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-06 22:53 PDT by Alexey Proskuryakov
Modified: 2015-09-06 22:57 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 Alexey Proskuryakov 2015-09-06 22:53:23 PDT
Steps to reproduce:

run-webkit-tests svg/as-object/svg-in-object-dynamic-attribute-change.html --no-retry --repeat 2

On the second try, image #4 fails to load. It is loaded like this:

      var object4 = document.getElementById("object4");
      object4.onload = onObjectLoad;
      object4.setAttribute("type", "image/png");
      object4.setAttribute("data", "resources/lime100x100.png");

This is 100% reproducible, and still happens when I remove other sub-tests from this test.
Comment 1 Alexey Proskuryakov 2015-09-06 22:57:29 PDT
The test is currently marked as a flaky failure, so to reproduce, please add -v (verbose).