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)

defect

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)

Assignee: nobody → jjong
Olli, feel free to review these when you're available. :)
Flags: needinfo?(bugs)
Flags: needinfo?(bugs)
Attachment #8904570 - Flags: review+
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+
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 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+
This and the other custom elements patches will land after v57 branching, before end of next week hopefully.
Rebased and added part of Part 4 (attachment 8904744 [details] [diff] [review]).
Attachment #8904570 - Attachment is obsolete: true
Attachment #8912102 - Flags: review+
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+
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
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: