Bug 148923

Summary: When object data attribute is set dynamically, loading from cache fails
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, koivisto, sabouhallawa
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=148922

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).