Closed Bug 821611 Opened 9 years ago Closed 9 years ago

Gaia apps returns setting permission failure error when opened using Marionette::navigate

Categories

(Testing :: Marionette, defect, P1)

All
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: poojas, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.04 (lucid) Firefox/3.6.24
Build ID: 20111107172717

Steps to reproduce:

Open any gaia apps like browser(whoever needs setting permissions)using Marionette.
Plz find the test scripts to reproduce this issue for browser app at below path:
https://www.codeaurora.org/patches/quic/lf/SAMPLE_20071_Marionette_Browser_Launch_20121213.tar.gz

This script will open browser app and try to load URL(google)
Command to run script : python browser.py


Actual results:

App gets opened with below error code and blocked to perform further functionality.
E/GeckoConsole(  124): [JavaScript Error: "NO SETTINGS PERMISSION FOR: app://browser.example.com

So,Browser app will get open but will not load URL likewise Camera app will get open with black preview screen(cannot take photos)


Expected results:

App should get open successfully without failure of setting permissions and should be able to perform expected behavior (in case of browser ,should load url successfully)
Component: General → Gaia
OS: All → Gonk (Firefox OS)
Priority: -- → P1
Status: UNCONFIRMED → NEW
blocking-basecamp: --- → ?
Ever confirmed: true
Sounds like a marionette framework issue.  moving this over to marionette component
Component: Gaia → Marionette
Product: Boot2Gecko → Testing
We don't support loading Gaia apps using navigate.  See https://github.com/mozilla/gaia-ui-tests for a supported method.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
When did this change?   It worked before...
I'm not sure, but loading apps this way bypasses Gaia's window manager, and I wouldn't really expect it to work.  In particular, it would cause whatever app you're loading to be loaded in the system app's iframe, which doesn't have any special permissions.
blocking-basecamp: ? → ---
Blocks: 935401
No longer blocks: 935401
You need to log in before you can comment on or make changes to this bug.