Closed Bug 1631533 Opened 4 years ago Closed 4 years ago

Make sync fields observe DidChange instead of DidSet

Categories

(Core :: DOM: Content Processes, defect)

defect

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file, 2 obsolete files)

And let it observe the old value as needed.

And provide the old value to that callback.

I'm going to need this for zoom.

Blocks: 1612068
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/adcfa8af679c
Make sync fields observe DidChange instead of DidSet. r=nika
Attachment #9141837 - Attachment is obsolete: true

This is needed for zoom because it only fires events when values
actually change for example, but seems useful more generally to
potentially avoid wasted work.

We can't just notify on change because user activation depends on the
time on which DidSet gets called.

Flags: needinfo?(emilio)
Attachment #9141801 - Attachment is obsolete: true
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e27ee92a9e35
Allow to get old value in synced field's DidSet. r=nika
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: