On Sun, Apr 12, 2015 at 10:08 PM, Fabrice Desré <[email protected]>
wrote:
> You can look at this test to see what it accessible when you're
> granted the mobilnetwork permission:

According to that [test][1]:

“navigator.mozMobileConnections should be accessible for the content
that has mobilenetwork permission.”

However, that’s not the case: `navigator.mozMobileConnections` evaluates
to `undefined`.

Manifest:

    {
        "name": "Packaged App",
        "description": "Simple packaged app demo.",
        "launch_path": "/app.html",
        "icons": {
            "128": "/icon.png"
        },
        "developer": {
            "name": "Felix E. Klee"
        },
        "permissions" : {
            "mobilenetwork" : {
                "description" : "Required to obtain mobile network information."
            }
        },
        "default_locale": "en"
    }

*What am I missing?*

[1]: 
http://mxr.mozilla.org/mozilla-central/source/dom/mobileconnection/tests/mochitest/test_mobilenetwork_permission.html?force=1#4
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to