Closed Bug 1428443 Opened 7 years ago Closed 7 years ago

Allow panels to override picker functionality when they are active.

Categories

(DevTools :: Framework, enhancement, P2)

57 Branch
enhancement

Tracking

(firefox60 fixed)

RESOLVED FIXED
Firefox 60
Tracking Status
firefox60 --- fixed

People

(Reporter: yzen, Assigned: yzen)

References

Details

Attachments

(1 file)

Use case: Inspector panel highlights/picks accessible objects and not DOM nodes. They do not have a box model and might have different bounds from DOM nodes. Picker in this case would need to work with objects other than DOM nodes.
Severity: normal → enhancement
Priority: -- → P2
Attached patch 1428443 patch (deleted) — Splinter Review
Attachment #8947824 - Flags: review?(pbrosset)
Comment on attachment 8947824 [details] [diff] [review] 1428443 patch Review of attachment 8947824 [details] [diff] [review]: ----------------------------------------------------------------- ::: devtools/client/framework/toolbox.js @@ +1423,5 @@ > + > + if (currentPanel && currentPanel.updatePickerButton) { > + currentPanel.updatePickerButton(); > + } else { > + button.description = L10N.getStr("pickButton.tooltip"); Please insert a comment before this line that says something like "if the current panel doesn't define a custom updatePickerButton, revert the button to its default state".
Attachment #8947824 - Flags: review?(pbrosset) → review+
Pushed by yura.zenevich@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/e0ac728caeaa allow panels to override picker functionality when they are active. r=pbro
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: