Closed
Bug 952307
Opened 11 years ago
Closed 11 years ago
Move some addon-private JSM's to a subdirectory
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: WeirdAl, Assigned: WeirdAl)
References
Details
(Keywords: addon-compat)
Attachments
(1 file)
(deleted),
patch
|
Unfocused
:
review+
|
Details | Diff | Splinter Review |
Spun off from bug 915838 comment 19:
Third, I think we should consider moving some JSM's around, especially addon-related ones. resource://gre/modules/ at the top level is getting kind of crowded, and I think certain modules should be in subdirectories of that to distinguish "public" modules (those others are supposed to use) from "private" modules (which addon users should avoid talking to directly).
--
Obvious candidates:
AddonLogging.jsm
AddonRepository.jsm
AddonRepository_SQLiteMigrator.jsm
AddonUpdateChecker.jsm
XPIProvider.jsm
XPIProviderUtils.js
I've also filed bug 952304 for an addon-supporting module, JSONStore.jsm. That might be a good one to put in a subdirectory as well.
Assignee | ||
Comment 1•11 years ago
|
||
needinfo? to Unfocused to lay out a roadmap. Given a roadmap, I can write up a patch fairly quickly (we're talking straight file moves).
Flags: needinfo?(bmcbride)
Comment 2•11 years ago
|
||
Ugh, sorry I couldn't get to this before my break.
Modules to make private:
AddonLogging.jsm
AddonRepository.jsm
AddonRepository_SQLiteMigrator.jsm
AddonUpdateChecker.jsm
LightweightThemeImageOptimizer.jsm
PluginProvider.jsm
SpellCheckDictionaryBootstrap.js
XPIProvider.jsm
XPIProviderUtils.js
Lets move them to, say, /toolkit/mozapps/extensions/internal/
And have them accessible via resource://gre/modules/addons/
Which is achievable via setting JS_MODULES_PATH in moz.build
Flags: needinfo?(bmcbride)
Comment 3•11 years ago
|
||
AddonRepository.jsm is an odd-duck, in the grey area between being considered public and private. But in practice, it's so very rarely ever used outside of the Add-ons Manager. It's used by only 3 addons on AMO, so lets consider it private and just mark this bug as addon-compat and see if we can get those add-ons updated.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → ajvincent
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8356965 -
Flags: review?(bmcbride)
Comment 5•11 years ago
|
||
Comment on attachment 8356965 [details] [diff] [review]
Move some addon-private JSM's to a subdirectory.
Review of attachment 8356965 [details] [diff] [review]:
-----------------------------------------------------------------
Finally slogging through my huge backlog of non-Australis reviews. Thankfully there's only minimal bitrot here.
Things look a lot cleaner around the place after this patch :) This prompted me to file bug 973752 and bug 973757 for some additional cleanup.
Attachment #8356965 -
Flags: review?(bmcbride) → review+
Assignee | ||
Comment 6•11 years ago
|
||
By the sound of things, I assume whoever's checking this in can handle the bitrot?
Keywords: checkin-needed
Comment 8•11 years ago
|
||
(In reply to Alex Vincent [:WeirdAl] from comment #6)
> By the sound of things, I assume whoever's checking this in can handle the
> bitrot?
Generally that would be your job ;) I'll sort that out now and land it.
Updated•11 years ago
|
Status: NEW → ASSIGNED
Comment 9•11 years ago
|
||
Unbitrotten, and also removed an unneeded define from each of the moz.build files.
https://hg.mozilla.org/integration/fx-team/rev/400723105403
Comment 10•11 years ago
|
||
Backed out in https://hg.mozilla.org/integration/fx-team/rev/a9af498c077d - an impressive toll, but for truly record breaking bustage it would need to not only break all mochitests, reftests, and crashtests, like it did, but also break every flavor of talos and marionette (we haven't had a record breaker since we started doing Cpp tests separate from make check on the build machines, so you don't yet need to break them too for a record).
Assignee | ||
Comment 11•11 years ago
|
||
Sorry, Blair - I would've gotten to the rebase sooner, but I've recently had dental surgery and I am recovering.
Comment 12•11 years ago
|
||
(In reply to Alex Vincent [:WeirdAl] from comment #11)
> Sorry, Blair - I would've gotten to the rebase sooner, but I've recently had
> dental surgery and I am recovering.
No worries :) This is why I'm here. Er, and other reasons too, presumably...
Bored on a Saturday night, may as well figure out why this broke the world.
Comment 13•11 years ago
|
||
*sigh* Missed a line when fixing bitrot.
Waiting for a Try push to go green before I shoot myself in the face again:
https://tbpl.mozilla.org/?tree=Try&rev=5c479251318b
Comment 14•11 years ago
|
||
Try revealed I also missed updating a new test.
https://hg.mozilla.org/integration/fx-team/rev/70df8261030a
Comment 15•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Comment 16•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/f44512993d0fc8229eb3df256a85b80ce619dfb0
Bug 952307 - Move some addon-private JSM's to a subdirectory. r=Unfocused
You need to log in
before you can comment on or make changes to this bug.
Description
•