[Webkit-unassigned] [Bug 36361] Changing data of <OBJECT> element (PDF) does not refresh content

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 28 14:24:35 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=36361


Nikolas Zimmermann <zimmermann at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com,
                   |                            |hyatt at apple.com,
                   |                            |jamesr at chromium.org,
                   |                            |mitz at webkit.org,
                   |                            |mjs at apple.com,
                   |                            |simon.fraser at apple.com,
                   |                            |zimmermann at kde.org




--- Comment #1 from Nikolas Zimmermann <zimmermann at kde.org>  2011-07-28 14:24:35 PST ---
I was experimenting a bit with dynamically changing object data attribute, but it doesn't work as expected.
So here's an even simpler reduction:

<html>
<body onclick="changeUrl()">
<object style="width: 800px; height: 600px;" data="http://www.google.com"></object>
<script>
function changeUrl() { 
    document.getElementsByTagName("object")[0].setAttribute("data", "http://www.apple.com");
}
</script>
</body>
</html>

Google is still interactive and usable after clicking somewhere on the screen.
If i zoom in/out, it loads apple.com.

That also works when adding myObject.style.width = "801px"; just below the setAttribute call.

It's pretty obivous nothing happens, when looking at HTMLObjectElement::parseMappedAttribute, for dataAttr. In the example above isImageType() returns false, and nothing is done except updating m_url.
No relayout triggerd, nothing.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list