Closed Bug 1228359 Opened 9 years ago Closed 9 years ago

Experiment add-ons can no more use a chrome.manifest

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox42 --- unaffected
firefox43 + fixed
firefox44 + fixed
firefox45 --- fixed
b2g-v2.5 --- fixed

People

(Reporter: mak, Assigned: mossop)

References

Details

(Keywords: regression)

Attachments

(2 files)

experiments should ideally work like bootstrapped add-ons, differences may really hurt productivity (I spent time today trying to figure why my manifest was being ignored)
[Tracking Requested - why for this release]: There may be experiments hitting this in the wild, and I'm working on a new one.
Blocks: 1219505
This was an accidental change from bug 1193926. The fix is simple but we should get a testcase for this too.
Assignee: nobody → dtownsend
Blocks: 1193926
No longer blocks: 1219505, 1220911
Blocks: 1219505
Bug 1228359: Allow experiments to register chrome.
Attachment #8692624 - Flags: review?(felipc)
Comment on attachment 8692624 [details]
MozReview Request: Bug 1228359: Allow experiments to register chrome. r?felipe

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/26291/diff/1-2/
Attachment #8692624 - Attachment description: MozReview Request: Bug 1228359: Allow experiments to register chrome. → MozReview Request: Bug 1228359: Allow experiments to register chrome. r?felipe
Comment on attachment 8692624 [details]
MozReview Request: Bug 1228359: Allow experiments to register chrome. r?felipe

https://reviewboard.mozilla.org/r/26291/#review23745
Attachment #8692624 - Flags: review?(felipc) → review+
Comment on attachment 8692624 [details]
MozReview Request: Bug 1228359: Allow experiments to register chrome. r?felipe

Approval Request Comment
[Feature/regressing bug #]: Bug 1193926
[User impact if declined]: Experiments will be a little harder to write than normal. We might have broken existing experiment code.
[Describe test coverage new/current, TreeHerder]: About to land, the fix is dead simple though
[Risks and why]: No risks
[String/UUID change made/needed]: None
Attachment #8692624 - Flags: approval-mozilla-beta?
Attachment #8692624 - Flags: approval-mozilla-aurora?
Backed out for Windows XPCshell bustage: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=247bfa7ed091

Failure: https://treeherder.mozilla.org/logviewer.html#?job_id=17897155&repo=mozilla-inbound

TEST-UNEXPECTED-FAIL | xpcshell-unpack.ini:toolkit/mozapps/extensions/test/xpcshell/test_bootstrap.js | xpcshell return code: 0
TEST-UNEXPECTED-FAIL | xpcshell-unpack.ini:toolkit/mozapps/extensions/test/xpcshell/test_bootstrap.js | AddonListener.onOperationCancelled - [AddonListener.onOperationCancelled : 1357] "onOperationCancelled" == "onInstalled"
TEST-UNEXPECTED-FAIL | xpcshell-unpack.ini:toolkit/mozapps/extensions/test/xpcshell/test_bootstrap.js | InstallListener.onInstallFailed - [InstallListener.onInstallFailed : 1419] "onInstallFailed" == "onInstallEnded"
TEST-UNEXPECTED-FAIL | xpcshell-unpack.ini:toolkit/mozapps/extensions/test/xpcshell/test_experiment.js | xpcshell return code: 0
TEST-UNEXPECTED-FAIL | xpcshell-unpack.ini:toolkit/mozapps/extensions/test/xpcshell/test_experiment.js | test_checkCompatibility - [test_checkCompatibility : 1574] 4 == 3
TEST-UNEXPECTED-FAIL | xpcshell-unpack.ini:toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js | xpcshell return code: 0
TEST-UNEXPECTED-FAIL | xpcshell-unpack.ini:toolkit/mozapps/extensions/test/xpcshell/test_mapURIToAddonID.js | run_test_7 - NS_ERROR_FILE_ACCESS_DENIED: Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]
TEST-UNEXPECTED-FAIL | all-test-dirs.list:toolkit/mozapps/extensions/test/xpcshell/test_temporary.js | xpcshell return code: 0
TEST-UNEXPECTED-FAIL | all-test-dirs.list:toolkit/mozapps/extensions/test/xpcshell/test_system_update.js | xpcshell return code: 0

13:24:50     INFO -  TEST-PASS | xpcshell-unpack.ini:toolkit/mozapps/extensions/test/xpcshell/test_bootstrap.js | observe - [observe : 223] true == true
13:24:50     INFO -  PROCESS | 11472 | 1448573090451	addons.xpi	ERROR	Failed to create directory c:\\users\\cltbld\\appdata\\local\\temp\\xpc-profile-pfbqbi\\extensions\\bootstrap1@tests.mozilla.org: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"  nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)"  location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm :: SIO_installDirectory :: line 422"  data: no] Stack trace: SIO_installDirectory()@resource://gre/modules/addons/XPIProvider.jsm:422 < SIO_installDirEntry()@resource://gre/modules/addons/XPIProvider.jsm:486 < SIO_move()@resource://gre/modules/addons/XPIProvider.jsm:509 < DirInstallLocation_installAddon()@resource://gre/modules/addons/XPIProvider.jsm:7601 < AI_startInstall/<()@resource://gre/modules/addons/XPIProvider.jsm:5949 < TaskImpl_run()@resource://gre/modules/Task.jsm:330 < Handler.prototype.process()@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:934 < this.PromiseWalker.walkerLoop()@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:813
13:24:50     INFO -  PROCESS | 11472 | 1448573090452	addons.xpi	ERROR	Failure moving c:\\users\\cltbld\\appdata\\local\\temp\\xpc-profile-pfbqbi\\extensions\\staged\\bootstrap1@tests.mozilla.org to c:\\users\\cltbld\\appdata\\local\\temp\\xpc-profile-pfbqbi\\extensions
13:24:50     INFO -  PROCESS | 11472 | 1448573090453	addons.xpi	WARN	Failed to install C:\\slave\\test\\build\\tests\\xpcshell\\tests\\toolkit\\mozapps\\extensions\\test\\xpcshell\\addons\\test_bootstrap1_2.xpi from file:///C:/slave/test/build/tests/xpcshell/tests/toolkit/mozapps/extensions/test/xpcshell/addons/test_bootstrap1_2.xpi: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.create]"  nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)"  location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm :: SIO_rollback :: line 572"  data: no] Stack trace: SIO_rollback()@resource://gre/modules/addons/XPIProvider.jsm:572 < SIO_move()@resource://gre/modules/addons/XPIProvider.jsm:512 < DirInstallLocation_installAddon()@resource://gre/modules/addons/XPIProvider.jsm:7601 < AI_startInstall/<()@resource://gre/modules/addons/XPIProvider.jsm:5949 < TaskImpl_run()@resource://gre/modules/Task.jsm:330 < Handler.prototype.process()@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:934 < this.PromiseWalker.walkerLoop()@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:813
13:24:50     INFO -  PROCESS | 11472 | 1448573090454	addons.xpi	WARN	removeActiveInstall: could not find active install for file:///C:/slave/test/build/tests/xpcshell/tests/toolkit/mozapps/extensions/test/xpcshell/addons/test_bootstrap1_2.xpi
13:24:50     INFO -  "Got onOperationCancelled event for bootstrap1@tests.mozilla.org"
13:24:50  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell-unpack.ini:toolkit/mozapps/extensions/test/xpcshell/test_bootstrap.js | AddonListener.onOperationCancelled - [AddonListener.onOperationCancelled : 1357] "onOperationCancelled" == "onInstalled"
Flags: needinfo?(dtownsend)
Flags: needinfo?(dtownsend)
Attachment #8692624 - Flags: approval-mozilla-beta?
Attachment #8692624 - Flags: approval-mozilla-aurora?
Comment on attachment 8692624 [details]
MozReview Request: Bug 1228359: Allow experiments to register chrome. r?felipe

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/26291/diff/2-3/
Comment on attachment 8692624 [details]
MozReview Request: Bug 1228359: Allow experiments to register chrome. r?felipe

For some reason retaining references to nsIFiles in the tests was causing file locking issues on windows. That seems odd but we don't have to retain those references so this is the simple fix.
Attachment #8692624 - Flags: review+ → review?(felipc)
Attachment #8692624 - Flags: review?(felipc) → review+
Comment on attachment 8692624 [details]
MozReview Request: Bug 1228359: Allow experiments to register chrome. r?felipe

https://reviewboard.mozilla.org/r/26291/#review23813
Comment on attachment 8692624 [details]
MozReview Request: Bug 1228359: Allow experiments to register chrome. r?felipe

Approval Request Comment: See comment 7
Attachment #8692624 - Flags: approval-mozilla-beta?
Attachment #8692624 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/a5ad0e73b4bf
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Comment on attachment 8692624 [details]
MozReview Request: Bug 1228359: Allow experiments to register chrome. r?felipe

Important to keep experiments working, please uplift to aurora and beta
Attachment #8692624 - Flags: approval-mozilla-beta?
Attachment #8692624 - Flags: approval-mozilla-beta+
Attachment #8692624 - Flags: approval-mozilla-aurora?
Attachment #8692624 - Flags: approval-mozilla-aurora+
https://hg.mozilla.org/releases/mozilla-aurora/rev/e576dd92d0f2

This has conflicts on beta that'll need to be resolved.
Flags: needinfo?(dtownsend)
Mossop will try to fix this up for beta 9, which goes to build thursday morning.
Comment on attachment 8692624 [details]
MozReview Request: Bug 1228359: Allow experiments to register chrome. r?felipe

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/26291/diff/3-4/
Attached patch beta patchSplinter Review
Flags: needinfo?(dtownsend)
Attachment #8694345 - Flags: review?(felipc)
Attachment #8694345 - Flags: review?(felipc) → review+
Adding tracking flag since this was a regression - just in case it reopens.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: