Closed
Bug 896526
Opened 11 years ago
Closed 11 years ago
Permissions should work for apps launched directly in Firefox tabs
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 930104
People
(Reporter: kgrandon, Unassigned)
References
Details
Attachments
(1 obsolete file)
When we run gaia inside of a browser we install permissions, but these permissions only work if you launch the app from the system app. Ideally we would be able to launch apps inside of tabs and the permissions would take effect.
Reporter | ||
Comment 1•11 years ago
|
||
Some possible options: 1 - Replace the xul browser with a mozbrowser dynamically if we detect that we're loading an app. Seems like this would be fairly tricky to implement. 2 - Proxy the app by loading an <iframe mozbrowser> in an empty page. This raises questions about if we should support app loading by opening new tabs. 3 - Give out permissions to domains as well as apps. At this time the giving permissions to the domains as well as apps seems like the easiest solution.
Reporter | ||
Comment 2•11 years ago
|
||
This is probably the easiest fix for the time being. This will make it so that we also install permissions for manifests. I feel that the more correct fix would be to swap out the xul browser for a mozbrowser on the fly.
Assignee: nobody → kgrandon
Status: NEW → ASSIGNED
Reporter | ||
Comment 3•11 years ago
|
||
After chatting on IRC with Fabrice, a better approach might be to load a <mozbrowser> over a custom gaia protocol. We should take a look at that, but I won't have time to investigate this week.
Assignee: kgrandon → nobody
Comment 4•11 years ago
|
||
I tried to load the iframe using a simple data: uri, like: data:text/html;charset=utf-8,<iframe style="width: 320px; height:480px" mozapp="http://settings.gaiamobile.org:8080/manifest.webapp" src="http://settings.gaiamobile.org:8080/index.html"></iframe> The app is displayed as expected, but no permissions are set :(
Reporter | ||
Comment 5•11 years ago
|
||
Hi Fabrice, perhaps you also need to add mozbrowser="true"?
Flags: needinfo?(fabrice)
Comment 6•11 years ago
|
||
(In reply to Kevin Grandon :kgrandon from comment #5) > Hi Fabrice, perhaps you also need to add mozbrowser="true"? That doesn't work either with mozborwser :(
Flags: needinfo?(fabrice)
Reporter | ||
Updated•11 years ago
|
Blocks: gaia-devtools
Reporter | ||
Comment 7•11 years ago
|
||
Comment on attachment 779248 [details]
github-pull-request-pointer.html
Hi Fabrice -
Getting time to work on a better solution for the time-being is tough. I'd personally like to land this patch as-is for now, and we can keep a bug open to find a better replacement in the near future.
Attachment #779248 -
Flags: review?(fabrice)
Reporter | ||
Comment 8•11 years ago
|
||
Comment on attachment 779248 [details]
github-pull-request-pointer.html
Webapps have changed recently and I think a new approach is needed. Also we should try to simplify the approach if possible.
Attachment #779248 -
Attachment is obsolete: true
Attachment #779248 -
Flags: review?(fabrice)
Reporter | ||
Comment 9•11 years ago
|
||
Very excited for ochameau's fix in bug 930104.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•