Closed Bug 1081899 Opened 10 years ago Closed 9 years ago

HTML importing a blob URL does not load scripts

Categories

(Core :: DOM: Core & HTML, defect)

35 Branch
x86
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ashley, Unassigned)

Details

(Keywords: testcase)

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.101 Safari/537.36 Steps to reproduce: 1. Visit http://www.scirra.com/labs/bugs/ajaximport/ 2. Observe whether an alert popup appears Actual results: No alert popup appears. Expected results: The import references a script which calls alert(). The script should be executed.
More info: the demo AJAX requests the text of import.html, creates a blob, creates a URL to the blob, then inserts a <link ref="import" href="<blob url>"/> element to the page. When done this way, the script tags in the import don't execute. If imported directly, the script tags execute. This also reproduces in Chrome: https://code.google.com/p/chromium/issues/detail?id=422620 Not sure if a spec issue, but I think there is a valid use case: if you have compiled a large web app and want to load it with progress events, AJAX requesting allows progress feedback to be received, but then because of this bug the AJAX response can't be used as an import. The only way to load it is to include it in the page directly, but then no progress feedback is available.
Keywords: testcase
Product: Firefox → Core
Hi Ashley, I have managed to reproduce the issue using latest Firefox release (43.0.2) and latest Nightly build (46.0a1). I will mark this issue as New and assign a component to it to see what is the developer's opinion on this. If someone considers that the component is not the right one, please feel free to change it with a more appropriate one. Thanks, Cosmin.
Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Events
Ever confirmed: true
Component: DOM: Events → DOM
So this is about HTML imports. Note, Gecko doesn't support it (except perhaps still partially when a certain pref is set) and has no plans to support it. As of now I would consider HTML Imports an obsolete feature in the web platform. https://hacks.mozilla.org/2014/12/mozilla-and-web-components/
Status: NEW → UNCONFIRMED
Ever confirmed: false
This is invalid in any case: relative URIs relative to a blob: URI just won't work. This is what the <base> tag is for.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.