Closed Bug 611438 Opened 15 years ago Closed 14 years ago

Parent loader instance should be accessed via require('chrome').parentLoader instead of require('parent-loader')

Categories

(Add-on SDK Graveyard :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: avarma, Assigned: warner)

Details

Attachments

(1 file)

Since having access to parent-loader requires the same authority as chrome, we might as well just make it an export of the chrome module.
OS: Mac OS X → All
Priority: -- → P3
Hardware: x86 → All
Target Milestone: --- → Future
Brian: what do you think we should do here?
I think we should do what the title says: make it an undocumented property of require("chrome"). Not sure how much work it represents, but I'll take a look.
Assignee: nobody → warner-bugzilla
Oh, actually it's easier than I thought: the only thing that uses parent-module is e10s.js, which is unused, likely to be deleted any day now, and only uses parent-module as a fallback anyways. This patch just deletes all references to parent-loader.
Attachment #554226 - Flags: review?(rFobic)
Comment on attachment 554226 [details] [diff] [review] remove all uses of the "parent-loader" module Review of attachment 554226 [details] [diff] [review]: ----------------------------------------------------------------- That's surprising, I thought it was used in tests r+ assuming all tests pass.
Attachment #554226 - Flags: review?(rFobic) → review+
I was surprised too. In 1.0 it was only used in e10s.js. In 0.9 it was also used in packages/jetpack-core/lib/unit-test.js and test-harness/lib/harness.js, but those were removed by some of Atul's e10s work last october/november. Landed in https://github.com/mozilla/addon-sdk/commit/ccdbd667dde14f9c7b11c7bfdee89dea2310182f . Thanks!
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: