<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>230688</bug_id>
          
          <creation_ts>2021-09-23 06:10:55 -0700</creation_ts>
          <short_desc>REGRESSION (Safari 15): Toggling object element display property reloads the object</short_desc>
          <delta_ts>2023-08-21 15:45:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>Safari Technology Preview</version>
          <rep_platform>All</rep_platform>
          <op_sys>iOS 14</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben">ben.browitt</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>mike</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1796467</commentid>
    <comment_count>0</comment_count>
    <who name="Ben">ben.browitt</who>
    <bug_when>2021-09-23 06:10:55 -0700</bug_when>
    <thetext>When you toggle &lt;object&gt; HTML element between display:block and display:none the object is reloaded.
Didn&apos;t happen on iPadOS 14.0 and doesn&apos;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 &apos;Toggle Display&apos; button.
On Chrome and Firefox the timestamp doesn&apos;t change.
https://jsbin.com/yoboxuhegu/1/edit?html,output

&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta charset=&quot;utf-8&quot;&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quot;&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;button onclick=&quot;toggleDisplay()&quot;&gt;Toggle Display&lt;/button&gt;
    &lt;object style=&quot;display: block;&quot; data=&quot;data:text/html;utf-8,&amp;lt;body onload=&apos;document.body.innerText = Date.now()&apos;&amp;gt;hello&quot;&gt;&lt;/object&gt;    
    &lt;script&gt;
        let el = document.querySelector(&apos;object&apos;);
        let count = 1;
        function log() {
          el.text = count;
          count++;
        }
      
        function toggleDisplay() {
            let display = el.style.display == &apos;block&apos; ? &apos;none&apos; : &apos;block&apos;;
            el.style.display = display;
        }
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1797214</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-25 12:09:50 -0700</bug_when>
    <thetext>&lt;rdar://problem/83534931&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890255</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-10 04:29:27 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari 15.6 and Technical Preview 150 on macOS 12.5 and toggling &quot;Display&quot; button changes timestamp every time unlike other browsers (Chrome Canary 106 and Firefox Nightly 105). Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961661</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-06-14 15:59:33 -0700</bug_when>
    <thetext>Adding &apos;BrowserCompat&apos; since it is still reproducible in STP172.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>