Scripts added to iframe via blob URL don't run from local file system
Categories
(Core :: DOM: HTML Parser, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox66 | --- | wontfix |
firefox67 | --- | fix-optional |
firefox68 | --- | fix-optional |
People
(Reporter: alice0775, Unassigned, NeedInfo)
References
Details
(Keywords: nightly-community, regression)
Attachments
(1 file)
1.09 KB,
text/html
|
Details |
+++ This bug was initially created as a clone of Bug #1538082 +++
Loading the html from http works as expected.
However loading the html from file: will fail.
Steps to reproduce:
- Save the attached html to local file
- Open it
Actual Results:
Nothing is displayed.
And an error shows in Browser Console:
Loading failed for the module with source “blob:null/f3df8bca-0453-4099-b54b-3b1f131f90ac"
Expected Results:
1234 is displayed
Expected results:
The output pane of the jsfiddle should show 1234.
This works correctly in Safari and Chrome.
It also appears to work correctly in FireFox if you do it outside an iframe: https://jsfiddle.net/ejdh87z3/1/
Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
ok, so this is similar to bug 1538082, but exactly the same.
Updated•6 years ago
|
Comment 2•6 years ago
|
||
When loaded from Bugzilla or from file: before bug 1071816, the character encoding is windows-1252. After bug 1071816 from a file: URL, it's UTF-8. However, the test case is ASCII and the Blob
constructor shouldn't look at the encoding of the document, so I have no idea why bug 1071816 would change what's happening here.
Comment 3•6 years ago
|
||
(In reply to Henri Sivonen (:hsivonen) from comment #2)
When loaded from Bugzilla or from file: before bug 1071816, the character encoding is windows-1252. After bug 1071816 from a file: URL, it's UTF-8. However, the test case is ASCII and the
Blob
constructor shouldn't look at the encoding of the document, so I have no idea why bug 1071816 would change what's happening here.
UTF-8 isn't the problem. If I add the UTF-8 BOM, the test case works.
Updated•6 years ago
|
Updated•2 years ago
|
Description
•