<?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>171659</bug_id>
          
          <creation_ts>2017-05-04 07:16:19 -0700</creation_ts>
          <short_desc>iframe with audio tag reloads forever</short_desc>
          <delta_ts>2023-10-12 17:33:16 -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>Media</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://nextjournal.com/mpd/reverse-engineering-an-opera</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="Dieter Komendera">dieter</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>beidson</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>jond</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1304609</commentid>
    <comment_count>0</comment_count>
      <attachid>309045</attachid>
    <who name="Dieter Komendera">dieter</who>
    <bug_when>2017-05-04 07:16:19 -0700</bug_when>
    <thetext>Created attachment 309045
reduced test case

To reproduce just open the attached html test case.

In Safari Technology Preview Release 29 (Safari 10.2, WebKit 12604.1.19.0.1) the iframe reloads forever, the audio in it is never playable.

With Chrome 58.0.3029.81 beta (64-bit) and Firefox 53.0 the iframe only loads once and the audio is playable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304661</commentid>
    <comment_count>1</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2017-05-04 09:35:34 -0700</bug_when>
    <thetext>Assuming this was a general bug with dynamically generated documents in iframes, I tried replacing the media element with an img, but the issue does not reproduce.

There&apos;s likely something specific about media causing onload to fire twice, so the iframe keeps getting reloaded over and over.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304662</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-05-04 09:35:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/31990484&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304663</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-05-04 09:36:00 -0700</bug_when>
    <thetext>&lt;rdar://problem/31990490&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304664</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2017-05-04 09:38:20 -0700</bug_when>
    <thetext>Note: This isn&apos;t a recent regression in STP as it also reproduces in Safari 10.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304668</commentid>
    <comment_count>5</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2017-05-04 09:46:51 -0700</bug_when>
    <thetext>(In reply to Brady Eidson from comment #4)
&gt; Note: This isn&apos;t a recent regression in STP as it also reproduces in Safari
&gt; 10.1

Also reproduced in Safari 10.0

Bummer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1447995</commentid>
    <comment_count>6</comment_count>
    <who name="Dieter Komendera">dieter</who>
    <bug_when>2018-08-05 11:11:26 -0700</bug_when>
    <thetext>Still reproduces with STP Release 62 (Safari 12.1, WebKit 13607.1.1)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1840530</commentid>
    <comment_count>7</comment_count>
      <attachid>451739</attachid>
    <who name="Dieter Komendera">dieter</who>
    <bug_when>2022-02-11 13:41:54 -0800</bug_when>
    <thetext>Created attachment 451739
updated test case

still reproduces with Safari Version 15.3 (17612.4.9.1.5) with this updated test case (in the previous test case the url to the audio file stopped working)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984765</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-12 17:33:16 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari Technology Preview 180 using &apos;update test case&apos; and it continues to reload while Firefox Nightly 120 and Chrome Canary 120 loads fine and allow playing audio.

Adding &apos;BrowserCompat&apos; tag to track it better.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>309045</attachid>
            <date>2017-05-04 07:16:19 -0700</date>
            <delta_ts>2017-05-04 07:16:19 -0700</delta_ts>
            <desc>reduced test case</desc>
            <filename>iframe-reload.html</filename>
            <type>text/html</type>
            <size>1027</size>
            <attacher name="Dieter Komendera">dieter</attacher>
            
              <data encoding="base64">PGh0bWwgbGFuZz0iZW4iIGNsYXNzPSIgdmVuZG9yLXdlYmtpdCBicm93c2VyLWNocm9tZSI+PGhl
YWQ+CiAgICA8bWV0YSBjaGFyc2V0PSJ1dGYtOCI+CiAgICA8bWV0YSBodHRwLWVxdWl2PSJYLVVB
LUNvbXBhdGlibGUiIGNvbnRlbnQ9IklFPWVkZ2UiPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQi
IGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIj4KICAgIDxtZXRh
IG5hbWU9ImRlc2NyaXB0aW9uIiBjb250ZW50PSIiPgogICAgPG1ldGEgbmFtZT0iYXV0aG9yIiBj
b250ZW50PSIiPgoKICAgIDx0aXRsZT5pZnJhbWUgb25sb2FkIGJ1ZzwvdGl0bGU+CgogICAgPHNj
cmlwdD4KICAgICAgdmFyIGNvbnRlbnQgPSAiPCFET0NUWVBFIGh0bWw+XAo8aHRtbD5cCjxib2R5
PlwKICA8ZGl2IHN0eWxlPVwidGV4dC1hbGlnbjpjZW50ZXI7XCI+XAogICAgPGF1ZGlvIGNvbnRy
b2xzPlwKICAgICAgPHNvdXJjZSBzcmM9XCJodHRwczovL25leHRqb3VybmFsLmNvbS9kYXRhLzEy
MjA5NzM5NkE1ODVEQ0E4MzgzMUNCRkYyQ0Q4N0EzQkQyQzQyRjU0NkJGNDE2RTVBQTlGMDAzNUEy
NTg0NDZCNUY3Lm1wM1wiIHR5cGU9XCJhdWRpby9tcGVnXCI+XAogICAgICBZb3VyIGJyb3dzZXIg
ZG9lcyBub3Qgc3VwcG9ydCB0aGUgYXVkaW8gZWxlbWVudC5cCiAgICA8L2F1ZGlvPlwKICA8L2Rp
dj5cCjwvYm9keT5cCjwvaHRtbD4iOwogICAgPC9zY3JpcHQ+CgogIDxib2R5CgogICAgPG1haW4g
cm9sZT0ibWFpbiI+CiAgICAgIDxpZnJhbWUgY2xhc3M9ImNvZGUtaWZyYW1lLXJlc3VsdCIgb25s
b2FkPSJ0aGlzLmNvbnRlbnREb2N1bWVudC5vcGVuKCk7dGhpcy5jb250ZW50RG9jdW1lbnQud3Jp
dGUoY29udGVudCk7dGhpcy5jb250ZW50RG9jdW1lbnQuY2xvc2UoKTt0aGlzLnN0eWxlLmhlaWdo
dCA9IHRoaXMuY29udGVudERvY3VtZW50LmJvZHkuc2Nyb2xsSGVpZ2h0ICsgJ3B4JzsiIHN0eWxl
PSJoZWlnaHQ6IDUycHg7Ij48L2lmcmFtZT4KICAgIDwvbWFpbj4KICA8L2JvZHk+Cgo8L2h0bWw+
Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>451739</attachid>
            <date>2022-02-11 13:41:54 -0800</date>
            <delta_ts>2022-02-11 13:41:54 -0800</delta_ts>
            <desc>updated test case</desc>
            <filename>iframe-reload.html</filename>
            <type>text/html</type>
            <size>1050</size>
            <attacher name="Dieter Komendera">dieter</attacher>
            
              <data encoding="base64">PGh0bWwgbGFuZz0iZW4iIGNsYXNzPSIgdmVuZG9yLXdlYmtpdCBicm93c2VyLWNocm9tZSI+PGhl
YWQ+CiAgICA8bWV0YSBjaGFyc2V0PSJ1dGYtOCI+CiAgICA8bWV0YSBodHRwLWVxdWl2PSJYLVVB
LUNvbXBhdGlibGUiIGNvbnRlbnQ9IklFPWVkZ2UiPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQi
IGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIj4KICAgIDxtZXRh
IG5hbWU9ImRlc2NyaXB0aW9uIiBjb250ZW50PSIiPgogICAgPG1ldGEgbmFtZT0iYXV0aG9yIiBj
b250ZW50PSIiPgoKICAgIDx0aXRsZT5pZnJhbWUgb25sb2FkIGJ1ZzwvdGl0bGU+CgogICAgPHNj
cmlwdD4KICAgICAgdmFyIGNvbnRlbnQgPSAiPCFET0NUWVBFIGh0bWw+XAo8aHRtbD5cCjxib2R5
PlwKICA8ZGl2IHN0eWxlPVwidGV4dC1hbGlnbjpjZW50ZXI7XCI+XAogICAgPGF1ZGlvIGNvbnRy
b2xzPlwKICAgICAgPHNvdXJjZSBzcmM9XCJodHRwczovL2Nkbi5uZXh0am91cm5hbC5jb20vZGF0
YS8xMjIwOTczOTZBNTg1RENBODM4MzFDQkZGMkNEODdBM0JEMkM0MkY1NDZCRjQxNkU1QUE5RjAw
MzVBMjU4NDQ2QjVGNz9jb250ZW50LXR5cGU9YXVkaW8vbXAzXCIgdHlwZT1cImF1ZGlvL21wZWdc
Ij5cCiAgICAgIFlvdXIgYnJvd3NlciBkb2VzIG5vdCBzdXBwb3J0IHRoZSBhdWRpbyBlbGVtZW50
LlwKICAgIDwvYXVkaW8+XAogIDwvZGl2PlwKPC9ib2R5PlwKPC9odG1sPiI7CiAgICA8L3Njcmlw
dD4KCiAgPGJvZHkKCiAgICA8bWFpbiByb2xlPSJtYWluIj4KICAgICAgPGlmcmFtZSBjbGFzcz0i
Y29kZS1pZnJhbWUtcmVzdWx0IiBvbmxvYWQ9InRoaXMuY29udGVudERvY3VtZW50Lm9wZW4oKTt0
aGlzLmNvbnRlbnREb2N1bWVudC53cml0ZShjb250ZW50KTt0aGlzLmNvbnRlbnREb2N1bWVudC5j
bG9zZSgpO3RoaXMuc3R5bGUuaGVpZ2h0ID0gdGhpcy5jb250ZW50RG9jdW1lbnQuYm9keS5zY3Jv
bGxIZWlnaHQgKyAncHgnOyIgc3R5bGU9ImhlaWdodDogNTJweDsiPjwvaWZyYW1lPgogICAgPC9t
YWluPgogIDwvYm9keT4KCjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>