Closed
Bug 1245530
Opened 7 years ago
Closed 7 years ago
Remove usages of Cu.import(Services.jsm) in favor or require("Services")
Categories
(DevTools :: General, defect)
DevTools
General
Tracking
(firefox47 fixed)
RESOLVED
FIXED
Firefox 47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
148.69 KB,
patch
|
ochameau
:
review+
|
Details | Diff | Splinter Review |
Today, we mix both Cu.import and require for loading Services. This is disturbing. Either we consider that require("Services") is really useful and use it everywhere, or we stick with Cu.import(). But we shouldn't have both in our codebase.
Assignee | ||
Comment 1•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ee1182bc4287
Assignee | ||
Comment 2•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=23068cb42858
Assignee | ||
Comment 3•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=633f590780fd
Assignee | ||
Comment 4•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ef118d4303e1
Assignee | ||
Comment 5•7 years ago
|
||
Let's try to wrap up with this refactoring patch I keep rebasing...
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → poirot.alex
Assignee | ||
Comment 6•7 years ago
|
||
Comment on attachment 8722927 [details] [diff] [review] patch v1 Review of attachment 8722927 [details] [diff] [review]: ----------------------------------------------------------------- This is a quite dump patch... Sometimes I have to move around the precise line where I do a require(), as require is often available a few lines after. Sometimes I already replace lazyImporter with require() as there isn't much value in lazy loading this module!
Attachment #8722927 -
Flags: review?(jryans)
Assignee | ||
Comment 7•7 years ago
|
||
Here is a try build with this patch (and many others) https://treeherder.mozilla.org/#/jobs?repo=try&revision=848118726eaa&exclusion_profile=false
Assignee | ||
Comment 8•7 years ago
|
||
Even greener try, with even more patches: https://treeherder.mozilla.org/#/jobs?repo=try&revision=6989b13865cb
Attachment #8722927 -
Flags: review?(jryans) → review+
Assignee | ||
Updated•7 years ago
|
Attachment #8722927 -
Attachment is obsolete: true
Assignee | ||
Comment 10•7 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/93f0d5522db1bcdb8a7c839930025a2d2f37b443 Bug 1245530 - Use require(Services) instead of Cu.import(Services.jsm). r=jryans
Comment 11•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/93f0d5522db1
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
Depends on: 1252287
Updated•5 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•