Closed
Bug 1197401
Opened 9 years ago
Closed 7 years ago
Remove our HTML import implementation
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: bkelly)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 2 obsolete files)
124.82 KB,
patch
|
bkelly
:
review+
|
Details | Diff | Splinter Review |
AFAIK we have decided that we're not going to ship HTML imports, but we still have the code in the tree that people need to keep working. If that decision is final, it would be nice to delete the code so that we don't have to keep working on it...
Assignee | ||
Comment 1•9 years ago
|
||
Considering it can be resurrected from hg if necessary, this would be nice. I'm running into issues with import over in bug 1184607. It seems html imports has the wrong nsContentPolicyType which will likely confuse our service worker code if it the two interact.
Comment 2•9 years ago
|
||
That decision is final. If we do HTML imports again it will likely have a different shape from what it has today.
Reporter | ||
Comment 3•9 years ago
|
||
Of course, gaia uses imports. :(
Comment 4•9 years ago
|
||
(In reply to Ehsan Akhgari (don't ask for review please) from comment #3) > Of course, gaia uses imports. :( Are you sure? Last time I checked (it was a while ago) they used a JS implemented custom implementation instead the native one this bug is about. Plus imports are hidden behind a flag that is off by default (tests relying on it turns that flag on), so we could just turn off the tests as a start, and stop worrying about breaking them if this blocking people.
Flags: needinfo?(ehsan)
Reporter | ||
Comment 5•9 years ago
|
||
I'm relatively sure. See <http://mxr.mozilla.org/mozilla-central/source/dom/base/nsDocument.cpp#5879> and then <https://mxr.mozilla.org/gaia/search?string=moz-extremely-unstable-and-will-change-webcomponents>.
Flags: needinfo?(ehsan)
Comment 6•9 years ago
|
||
(In reply to Ehsan Akhgari (don't ask for review please) from comment #5) > I'm relatively sure. See > <http://mxr.mozilla.org/mozilla-central/source/dom/base/nsDocument.cpp#5879> > and then > <https://mxr.mozilla.org/gaia/search?string=moz-extremely-unstable-and-will- > change-webcomponents>. I'm not sure what that flag does, but imports are relying on this one: http://mxr.mozilla.org/mozilla-central/source/dom/base/nsStyleLinkElement.cpp#139 and I'm pretty sure it is only turned on for tests.
Reporter | ||
Comment 7•9 years ago
|
||
You're right, good!
Assignee | ||
Comment 8•7 years ago
|
||
I'm going to take this. With html imports enabled in tests we're actually hitting assertions in a service worker WPT. We also have other intermittent test failures in the imports tests. Lets finally de-orbit this to reduce our maintenance load.
Assignee: nobody → bkelly
Status: NEW → ASSIGNED
Assignee | ||
Comment 10•7 years ago
|
||
Assignee | ||
Comment 11•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d2ca56c4967f11e0e1b042672eece01581067e71
Comment 12•7 years ago
|
||
Setting straight to dev-doc-complete; I went to the HTML Imports page, and simple removed the mention of being able to turn HMTL Imports on in Fx using the pref. https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports Since we never shipped this, I'm not going to mention it in the Fx rel notes.
Keywords: dev-doc-complete
Assignee | ||
Comment 13•7 years ago
|
||
William, this patch attempts to remove our pref'ed off HTML imports implementation. I basically did this by removing import specific stuff in HTMLLinkElement/nsDocument/ImportManager and then fixing build errors. I also removed the pref in the test profile and the mochitests themselves. I updated test expectations for WPT.
Attachment #8874991 -
Attachment is obsolete: true
Attachment #8875328 -
Flags: review?(wchen)
Comment 14•7 years ago
|
||
Comment on attachment 8875328 [details] [diff] [review] Remove the disabled HTML imports implementation. r=wchen Review of attachment 8875328 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/base/nsIDocument.h @@ -2854,5 @@ > - virtual bool HasSubImportLink(nsINode* aLink) = 0; > - virtual uint32_t IndexOfSubImportLink(nsINode* aLink) = 0; > - virtual void AddSubImportLink(nsINode* aLink) = 0; > - virtual nsINode* GetSubImportLink(uint32_t aIdx) = 0; > - We should also get rid of the forward declaration. https://dxr.mozilla.org/mozilla-central/rev/e61060be36424240058f8bef4c5597f401bc8b7e/dom/base/nsIDocument.h#144 ::: dom/html/nsHTMLDocument.cpp @@ -1893,5 @@ > mTooDeepWriteRecursion = > (mWriteLevel > NS_MAX_DOCUMENT_WRITE_DEPTH || mTooDeepWriteRecursion); > NS_ENSURE_STATE(!mTooDeepWriteRecursion); > > - if (!IsHTMLDocument() || mDisableDocWrite || !IsMasterDocument()) { We also need to get rid of a check for import here: https://dxr.mozilla.org/mozilla-central/rev/e61060be36424240058f8bef4c5597f401bc8b7e/dom/html/nsHTMLDocument.cpp#534
Attachment #8875328 -
Flags: review?(wchen) → review+
Assignee | ||
Comment 15•7 years ago
|
||
Attachment #8875328 -
Attachment is obsolete: true
Attachment #8876735 -
Flags: review+
Comment 16•7 years ago
|
||
Pushed by bkelly@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/c41595a24fbd Remove the disabled HTML imports implementation. r=wchen
Comment 17•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c41595a24fbd
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•