Closed
Bug 1087637
Opened 11 years ago
Closed 11 years ago
Make Cross domain XHR easier for panels inside SDK addons
Categories
(Add-on SDK Graveyard :: General, defect)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: ntim, Unassigned)
Details
(Whiteboard: [status:backlog])
I'm quite surprised that panels by SDK addons have the same level of privilege as a simple webpage. Cross domain XHR should be available without the hassle of using contentScripts inside the panels. Of course, the cross domain XHRs would be limited to what's specified in the manifest.
This would make porting Chrome addons to Firefox much easier.
Comment 1•11 years ago
|
||
You can, using the permissions property:
https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/package_json#permissions
if this doesn't work for you, it's a bug. There is a separate argument wrt whether it should be the default.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Whiteboard: [status:backlog]
| Reporter | ||
Comment 2•11 years ago
|
||
You still need a content script to do this. In the bug description, I mentioned : "without the hassle of using contentScripts inside the panels". I'm fine with setting permissions in package.json. But what I'm requesting is the ability to get cross-domain XHR from the panel script themselves.
Flags: needinfo?(jgriffiths)
Comment 3•11 years ago
|
||
(In reply to Tim Nguyen [:ntim] from comment #2)
> You still need a content script to do this. In the bug description, I
> mentioned : "without the hassle of using contentScripts inside the panels".
> I'm fine with setting permissions in package.json. But what I'm requesting
> is the ability to get cross-domain XHR from the panel script themselves.
I think the best way to approach panel development is to do as much scripting in content scripts as possible, for exactly this reason.
One of the issues is, it is difficult to separate remote panel content from 'local' panel content loaded from ./data, so we restrict any scripts in panel html code.
Flags: needinfo?(jgriffiths)
You need to log in
before you can comment on or make changes to this bug.
Description
•