Iframe and Audio malfunction with Firefox 58
Hello evbdy . Since FF 58, the html sample file below don't work correctly :
<!DOCTYPE html> <style type="text/css"> body { display:block ; text-align:center ; vertical-align: middle ;} iframe { height:1.5vw ;} </style> <html lang="fr"> <meta charset="iso-8859-15"> <title>Test_Audio avec Timer</title> <body> <p>new stamp<br><iframe id="newflag" src="MajFlag.htm" ></iframe></p> <p>old stamp<br><iframe id="oldflag" src="MajFlag.htm" ></iframe></p> <p id="control" name="control"> </p> <audio controls autoplay > <source src="http://serv-foorzik2.com/fz1music/2782/11.%20I%20Can%20See%20Clearly%20Now%20-%20Jimmy%20Cliff.mp3" type="audio/mpeg"> </audio> </body> <script> // Start timer every 5 secondes window.setInterval("Check_Update()",5000); function Check_Update() // Check if local file has been updated { d= new Date() ; alert("on va recharger new stamp"); document.getElementById("newflag").contentWindow.location.reload(true); var oldflag = document.getElementById("oldflag").contentDocument.body; var newflag = document.getElementById("newflag").contentDocument.body; if ( oldflag.innerHTML != newflag.innerHTML ) { alert(d.toLocaleTimeString() + " on va tout recharger "); window.location.reload(); } else { document.getElementById("control").innerHTML = d.toLocaleTimeString() + " rien n'a changé, on continue"; } } </script> </html>
Audio file is played until the instruction document.getElementById("newflag").contentWindow.location.reload(true); is reached . The player seems in off state .... click on play don't work anymore .
the data of Iframe local file (src="MajFlag.htm") is below :
<html><p align=center>03/02/2018 13:29:49</p></html>
With FF57 and before, Edge or Chrome : no problem . With FF58, no way , the audio is cutted by the timer ....
Modified
Chosen solution
FF 59.0.2 Problem is solved
Read this answer in context 👍 0All Replies (4)
How about the actual link so other can verify what your saying is happening.
All the files are local, no need for a server or a link. To reproduce: Create a local file with name "xxxxx.htm" ( xxxxx is your choice ), copy and paste the code html from the previous post. Create a local file with name "Majflag.htm" in the same directory, Fill it with : 03/02/2018 13:29:49 or any other data ( no matter ) Run the file "xxxxx.htm" with Firefox and let's go . Music must be played until end or return to the start when data is changed in the file "Majflag.htm"
I have the impression of having thrown a bottle in the sea . no response, no news ....
Chosen Solution
FF 59.0.2 Problem is solved