Closed
Bug 956227
Opened 11 years ago
Closed 10 years ago
Using chrome content in a panel does not work
Categories
(Add-on SDK Graveyard :: General, defect, P3)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: evold, Assigned: evold)
References
Details
Attachments
(1 file)
This code:
Panel({
focus: false,
contentURL: 'chrome://fantasticbar/content/fantasticBar.html',
contentScriptWhen: 'ready',
contentScriptFile: data.url('fantasticBar.js'),
position: {
top: 0,
left: 0
}
});
Produced this error:
Error: System principal is not allowed in an expanded principal
Stack trace:
sandbox@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/loader/sandbox.js:26
WorkerSandbox@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/content/worker.js:144
Trait@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/deprecated/traits.js:114
Worker<._attach@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/content/worker.js:528
LegacyWorker<.attach@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/worker/utils.js:48
attach@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/worker/utils.js:95
@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://fantastic-bar-at-erikvold-dot-com/fantastic-bar/lib/panel.js:264
emit@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/core.js:94
next@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/utils.js:36
filter/<@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/utils.js:51
transform/<@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/utils.js:42
emit@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/core.js:94
next@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/utils.js:36
filter/<@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/utils.js:51
transform/<@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/utils.js:42
emit@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/event/core.js:94
forward@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/panel/events.js:20
Observer<.observe@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/events.js:74
emit@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/system/events.js:50
onContentReady@resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/v2/pq4lfnjx0nj43h97ppl6dtcm0000gn/T/tmp6bdiLN.mozrunner/extensions/fantastic-bar@erikvold.com.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/panel/utils.js:257
Assignee | ||
Comment 1•11 years ago
|
||
I feel like this should work, but I have a feeling you will disagree Irakli.
Flags: needinfo?(rFobic)
Comment 2•11 years ago
|
||
(In reply to Erik Vold [:erikvold] [:ztatic] from comment #1)
> I feel like this should work, but I have a feeling you will disagree Irakli.
I think that expectation it to work is reasonable, although I do not think this bug is a high priority,
since given use case isn't idiomatic SDK way to make panels.
Flags: needinfo?(rFobic)
Priority: -- → P3
Assignee | ||
Comment 3•11 years ago
|
||
This is working now, so we should just need a test.
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8413411 -
Flags: review?(rFobic)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → evold
Updated•11 years ago
|
Attachment #8413411 -
Flags: review?(rFobic) → review+
Comment 5•11 years ago
|
||
Commits pushed to master at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/b6c8647c568df583d2079d7bad5e1c769cc3e494
Bug 956227 - Adding test that using chrome content in a panel does work
https://github.com/mozilla/addon-sdk/commit/5ea96ee3aa847c469a04987ae31ea471bc1cfe1c
Merge pull request #1478 from erikvold/956227
Bug 956227 - Adding test that using chrome content in a panel does work r=@gozala
Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•