X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

My app is not fully embedding, being denied permission

Posted

Hi. So I am making a Firefox OS webapp. I'm using the <iframe> function to display a web page. The problem is that only about a 3rd of the screen is displaying the web space. Here is a screenshot: http://i.imgur.com/POJU3lL.png

Here are the 2 errors in my firefox os simulator:

  Denied permission 'browser' for app type 'web'.
   Denied permission 'embed-apps' for app type 'web'.

Here is my manifest.webapp:

{ "name": "Forum", 

"description": "testing, testing!",

"permissions": {
    "browser": {},
    "embed-apps": {}
  },
"launch_path": "/index.html", 
"developer": { "name": "Mobile Mod",
"url": "http://mobilemod.net" }, 
"icons": { 
"16": "/img/icon16.png",
"32": "/img/icon32.png", 
"48": "/img/icon48.png", 
"64": "/img/icon64.png", 
"128": "/img/icon128.png" }, 
"default_locale": "en" }

How do I extend the size of the <iframe>?

Modified by cor-el

Chosen solution

Nothing to be sorry about!

So you just want to display your page. That will make it a lot easier... All you need is a manifest in your site's root directory.

I can't help anymore tonight (very late here). Please email me (joshua-smith@verizon.net) the rest of your questions, and I will work with you to get everything working =)

- iNerd

Read this answer in context 0

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Firefox/24.0

More Information

Joshua Smith 22 solutions 139 answers

Hello,

The iframe issue is because iframes are sized differently than other elements like divs. Some styles like height: 100%; probably won't work. You may want to use the css calc property instead.

As for the manifest issue, you need to specify the "Description" property for each permission according to MDN. Anyway, you don't need the embed-apps permission if your app doesn't need to install other apps. Also, the Browser API is only needed if you need advanced browsing functions. The more permissions your app needs, the harder it is to get it approved on the Marketplace.

Hope this helps!
Joshua Smith (iNerd)

Modified by Joshua Smith

Question owner

Okay, so I am still a bit confused. Essentially what I wanted this app to do was display my forum. I wanted to put buttons on the bottom of the screen for back/forward, forum home, and private messages. I don't quite understand the css calc properties since I am not trying to create a webpage, only trying to display it.

Question owner

Also, just wanted to clarify that I am quite the noob when it comes to this stuff. Sorry about that.

Joshua Smith 22 solutions 139 answers

Chosen Solution

Nothing to be sorry about!

So you just want to display your page. That will make it a lot easier... All you need is a manifest in your site's root directory.

I can't help anymore tonight (very late here). Please email me (joshua-smith@verizon.net) the rest of your questions, and I will work with you to get everything working =)

- iNerd

Question owner

Thanks for the help. I will email you. :)