Closed Bug 1373768 Opened 7 years ago Closed 7 years ago

Use Services.wm instead of getService(Ci.nsIWindowMediator)

Categories

(DevTools :: JSON Viewer, defect)

defect
Not set
normal

Tracking

(firefox56 fixed)

RESOLVED FIXED
Firefox 56
Tracking Status
firefox56 --- fixed

People

(Reporter: Oriol, Assigned: Oriol)

Details

Attachments

(1 file)

Attached patch json-wm.patchSplinter Review
In bug 1327784 I didn't notice Services.wm can be used instead of Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator)

This way is cleaner.
Attachment #8878611 - Flags: review?(odvarko)
Comment on attachment 8878611 [details] [diff] [review]
json-wm.patch

Review of attachment 8878611 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM!

R+

Honza
Attachment #8878611 - Flags: review?(odvarko) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/43d79f61e982
Use Services.wm instead of getService(Ci.nsIWindowMediator). r=Honza
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/43d79f61e982
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: