Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

My app is not fully embedding, being denied permission

  • 5 답장
  • 1 이 문제를 만남
  • 19 보기
  • 최종 답변자: mobilemod

more options

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>?

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: <pre><nowiki>{ "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" }</nowiki></pre> How do I extend the size of the &lt;iframe&gt;?

글쓴이 cor-el 수정일시

선택된 해결법

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

문맥에 따라 이 답변을 읽어주세요 👍 0

모든 댓글 (5)

more options

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)

글쓴이 Joshua Smith 수정일시

more options

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.

more options

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

more options

선택된 해결법

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

more options

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