Closed Bug 1502947 Opened 6 years ago Closed 6 years ago

Add helper function to MozXULElement for inheriting attributes

Categories

(Toolkit :: UI Widgets, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: bgrins, Assigned: surkov)

References

Details

Attachments

(1 file, 2 obsolete files)

We want this for a number of bugs, so I'm going to spin this out of Bug 1455433 and make a separate bug for it.
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Priority: -- → P3
Attached patch patch (obsolete) — Splinter Review
Attachment #9020977 - Flags: review?(paolo.mozmail)
Comment on attachment 9020977 [details] [diff] [review]
patch

Review of attachment 9020977 [details] [diff] [review]:
-----------------------------------------------------------------

Stealing review, looks good. Thanks Alex.

::: toolkit/content/tests/chrome/test_custom_element_base.xul
@@ +93,5 @@
> +    let el = document.querySelector("inherited-element");
> +    ok(el, "element exists");
> +
> +    is(el.label.getAttribute("foo"), "fuagra", "predefined attribute @foo");
> +    ok(!el.label.hasAttribute("boo"), "boo", "predefined attribute @boo");

Nit: the second parameter here should be removed (since this is `ok` and not `is`)
Attachment #9020977 - Flags: review?(paolo.mozmail) → review+
Attached patch inheritAttribute.patch (obsolete) — Splinter Review
With nit addressed and commit message
Attachment #9020977 - Attachment is obsolete: true
Attachment #9021247 - Flags: review+
Updated jsdoc comment to not reference attrs as an array
Attachment #9021247 - Attachment is obsolete: true
Attachment #9021248 - Flags: review+
Keywords: checkin-needed
Pushed by bgrinstead@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/2596473d8286
Add helper function to MozXULElement for inheriting attributes;r=bgrins
Keywords: checkin-needed
(In reply to Brian Grinstead [:bgrins] from comment #3)
> Created attachment 9021247 [details] [diff] [review]
> inheritAttribute.patch
> 
> With nit addressed and commit message

thank you!
https://hg.mozilla.org/mozilla-central/rev/2596473d8286
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Blocks: 1527680
Blocks: 1528268
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: