Closed
Bug 1334043
Opened 8 years ago
Closed 7 years ago
Implement connected lifecycle callbacks for custom elements
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: edgar, Assigned: jessica)
References
Details
(Whiteboard: dom-ce-m3)
Attachments
(3 files, 4 obsolete files)
10.36 KB,
patch
|
jessica
:
review+
|
Details | Diff | Splinter Review |
21.68 KB,
patch
|
jessica
:
review+
|
Details | Diff | Splinter Review |
19.39 KB,
patch
|
jessica
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jjong
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Comment 4•7 years ago
|
||
Olli, feel free to review these when you're available. :)
Flags: needinfo?(bugs)
Updated•7 years ago
|
Flags: needinfo?(bugs)
Attachment #8904570 -
Flags: review+
Comment 5•7 years ago
|
||
Comment on attachment 8904571 [details] [diff] [review]
Part 2: make nsContentUtils::EnqueueLifecycleCallback static, v1.
s/windows object/window object/
Things are getting simpler, good.
Attachment #8904571 -
Flags: review+
Updated•7 years ago
|
Attachment #8904572 -
Flags: review+
Assignee | ||
Comment 6•7 years ago
|
||
I forgot to add this part, I'll merge into Part 1 and Part 4 once it's reviewed.
Attachment #8904744 -
Flags: review?(bugs)
Comment 7•7 years ago
|
||
Comment on attachment 8904744 [details] [diff] [review]
Part 4: connected callback while upgrading, v1.
># HG changeset patch
># Parent fd2411bd35dbdc1a952a7300910ce028a6d3e7cd
>Bug 1334043 - Part 4: Enqueue connected callback if element is connected while upgrading. r=smaug
>
>MozReview-Commit-ID: DTsEDZG978L
>
>diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp
>--- a/dom/base/CustomElementRegistry.cpp
>+++ b/dom/base/CustomElementRegistry.cpp
>@@ -939,17 +939,20 @@ CustomElementRegistry::Upgrade(Element*
> nsContentUtils::EnqueueLifecycleCallback(nsIDocument::eAttributeChanged,
> aElement,
> &args, aDefinition);
> }
> }
> }
>
> // Step 4.
>- // TODO: Bug 1334043 - Implement connected lifecycle callbacks for custom elements
>+ if (aElement->GetComposedDoc()) {
IsInComposedDoc
Attachment #8904744 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 8•7 years ago
|
||
This and the other custom elements patches will land after v57 branching, before end of next week hopefully.
Assignee | ||
Comment 9•7 years ago
|
||
Rebased and added part of Part 4 (attachment 8904744 [details] [diff] [review]).
Attachment #8904570 -
Attachment is obsolete: true
Attachment #8912102 -
Flags: review+
Assignee | ||
Comment 10•7 years ago
|
||
rebased.
Attachment #8904571 -
Attachment is obsolete: true
Attachment #8912103 -
Flags: review+
Assignee | ||
Comment 11•7 years ago
|
||
Rebased and added part of Part 4 (attachment 8904744 [details] [diff] [review] [diff] [review]).
Attachment #8904572 -
Attachment is obsolete: true
Attachment #8904744 -
Attachment is obsolete: true
Attachment #8912104 -
Flags: review+
Assignee | ||
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
Pushed by jjong@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/157b2ba57ad2
Part 1: Replace attached callback (v0) with connected callback (v1). r=smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/f0b6fd276560
Part 2: Make nsContentUtils::EnqueueLifecycleCallback static. r=smaug
https://hg.mozilla.org/integration/mozilla-inbound/rev/b900023d886c
Part 3: Update tests for connected callback. r=smaug
Comment 14•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/157b2ba57ad2
https://hg.mozilla.org/mozilla-central/rev/f0b6fd276560
https://hg.mozilla.org/mozilla-central/rev/b900023d886c
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•