Closed Bug 824602 Opened 12 years ago Closed 11 years ago

Remove getUserData() usage from devtools

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 24

People

(Reporter: emk, Assigned: bbenvie)

References

Details

Attachments

(1 file, 3 obsolete files)

      No description provided.
Attached patch work in progress (obsolete) — Splinter Review
Remove get/setUserData() from browser/devtools.

But I have not considered about whether this change has any leak pattern or not. Then I attach the patch as "work in progress".
Attached patch wip v2 (obsolete) — Splinter Review
Attachment #696909 - Attachment is obsolete: true
Movement seems to have stalled here. I believe this is now the only thing keeping us from removing userdata support.
CC harth who will probably be shortly landing significant changes to the style editor, and we'll need to port these changes to the new version

https://github.com/harthur/devtools-window/blob/remote-styleeditor/browser/devtools/styleeditor/StyleEditor.jsm
(In reply to Joe Walker [:jwalker] from comment #4)
> CC harth who will probably be shortly landing significant changes to the
> style editor, and we'll need to port these changes to the new version
> 
> https://github.com/harthur/devtools-window/blob/remote-styleeditor/browser/
> devtools/styleeditor/StyleEditor.jsm

When will we land the new style editor to mozilla-central?
If we have some times before land it, I'll make a pull request for its github repository.
The style editor does no longer seem to use userData, but the split view still does.
Replaces [gs]etUserData in SplitView with WeakMap usage.
Assignee: nobody → bbenvie
Status: NEW → ASSIGNED
StyleEditorUtil.js has the following line:

> forEach(aDescriptor.userData, element.setUserData);

But nowhere is getUserData used in the style editor, so I think this is vestigial and can be removed?
Attachment #751942 - Flags: review?(dcamp)
Attachment #751942 - Flags: review?(dcamp) → review+
Whiteboard: [land-in-fx-team]
Whiteboard: [land-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/03f322ae358f
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 24
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: