Closed Bug 1534480 Opened 5 years ago Closed 5 years ago

Do not update Fluent DOM attributes if they match current ones

Categories

(Core :: Internationalization, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: zbraniecki, Assigned: zbraniecki)

References

Details

Attachments

(1 file)

DOMLocalization.setAttributes can detect when the old and new id/args are the same and avoid setting them, which in turn avoids Mutations and inheritance in XBL.

Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Priority: -- → P3

This appears to fix the churn issue I mention in https://github.com/projectfluent/fluent.js/issues/300, meaning there will be much less back-and-forth on accesskey formatting with the label Custom Element (Bug 1448213).

Blocks: 1448213
Attachment #9050164 - Attachment description: Bug 1534480 - Do not update Fluent DOM attributes if they match current ones. r?bgrins → Bug 1534480 - Do not update Fluent DOM attributes if they match current ones. r?bgrins,smaug,stas
Pushed by zbraniecki@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a8acb6aa4a52
Do not update Fluent DOM attributes if they match current ones. r=smaug
Pushed by zbraniecki@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f7f4cfa92ebf
Do not update Fluent DOM attributes if they match current ones. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Flags: needinfo?(gandalf)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: