Closed Bug 921496 Opened 12 years ago Closed 6 years ago

Convert [NavigatorProperty] extended attributes to plain navigator properties

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: emk, Assigned: bzbarsky)

References

Details

Attachments

(2 files)

It will just bring confusion since bug 838146 fixed.
The goal here was to be able to add new things to navigator without writing C++ code. At one point there was discussion about doing this via code-generating a base class for Navigator that would implement getters for the various navigator-property stuff...
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML

OK, I think we should go ahead and do this. There's precisely one consumer of NavigatorProperty, and it would be pretty simple to just switch it to a normal property (like Window's .external) and remove the complexity... We could add a helper C++ method to make it a little simpler and less codepasty to implement things like this.

Thoughts?

Flags: needinfo?(peterv)
Flags: needinfo?(continuation)

We could add a helper C++ method to make it a little simpler and less codepasty to implement things like this.

Filed bug 1570350 on that.

Depends on: 1570350

I haven't looked at this before, but it certainly looks like a ton of code for something that only has a single consumer. The code for the consumer doesn't look particular involved, either.

Flags: needinfo?(continuation)
Flags: needinfo?(peterv)
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ca578c57a4f0 part 1. Remove the one consumer of NavigatorProperty. r=peterv https://hg.mozilla.org/integration/autoland/rev/cc8b5dcacc85 part 2. Remove NavigatorProperty. r=peterv
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Assignee: nobody → bzbarsky
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: