[Webkit-unassigned] [Bug 230688] New: Toggling object element display property reloads the object
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 23 06:10:55 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=230688
Bug ID: 230688
Summary: Toggling object element display property reloads the
object
Product: WebKit
Version: Safari Technology Preview
Hardware: All
OS: iOS 14
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ben.browitt at gmail.com
When you toggle <object> HTML element between display:block and display:none the object is reloaded.
Didn't happen on iPadOS 14.0 and doesn't happen on Chrome and FireFox.
Tested on iPadOS 15.0, 14.8
To reproduce see that the timestamp on Safari changes every time you click on the 'Toggle Display' button.
On Chrome and Firefox the timestamp doesn't change.
https://jsbin.com/yoboxuhegu/1/edit?html,output
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
</head>
<body>
<button onclick="toggleDisplay()">Toggle Display</button>
<object style="display: block;" data="data:text/html;utf-8,<body onload='document.body.innerText = Date.now()'>hello"></object>
<script>
let el = document.querySelector('object');
let count = 1;
function log() {
el.text = count;
count++;
}
function toggleDisplay() {
let display = el.style.display == 'block' ? 'none' : 'block';
el.style.display = display;
}
</script>
</body>
</html>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210923/3709b92a/attachment.htm>
More information about the webkit-unassigned
mailing list