Closed Bug 1310279 Opened 8 years ago Closed 8 years ago

Create a shim for Services.getMostRecentWindow().openUILinkInWindow()

Categories

(DevTools :: General, defect, P1)

defect

Tracking

(firefox52 fixed)

RESOLVED FIXED
Firefox 52
Iteration:
52.3 - Nov 14
Tracking Status
firefox52 --- fixed

People

(Reporter: jdescottes, Assigned: tromey)

References

Details

(Whiteboard: [devtools-html])

Attachments

(1 file)

The MDN Docs widget loaded by the inspector is using Services.getMostRecentWindow().openUILinkInWindow() in order to open the MDN link in a new window.

We should provide a content friendly alternative to this.

We can either extend the Services shim or create a new util/helper that would fallback on window.open when loaded in content.
Flags: qe-verify?
Whiteboard: [devtools-html]
Assignee: nobody → ttromey
Status: NEW → ASSIGNED
Iteration: --- → 52.3 - Nov 7
Priority: P2 → P1
Comment on attachment 8806876 [details]
Bug 1310279 - add "wm" to Services shim;

https://reviewboard.mozilla.org/r/87332/#review90784

This looks good to me, thanks for working on it Tom!
Attachment #8806876 - Flags: review?(jdescottes) → review+
Fixing eslint.
Pushed by ttromey@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0440791609bd
add "wm" to Services shim; r=jdescottes
https://hg.mozilla.org/mozilla-central/rev/0440791609bd
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Flags: qe-verify? → qe-verify-
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: