PowerManagerService permissions

34 views
Skip to first unread message

Kasun

unread,
Aug 21, 2019, 9:58:39 AM8/21/19
to comp.mobile.nokia.8110

Hi, 

I am creating power manager application for GerdaOS. 

I want to use , 

navigator.mozPower.powerOff();

I have setup manifest "type": "certified" and "permissions": {"power": {}} , then deployed my app inside b2g webapps when I creating system image.

After deployed the system image I am getting below error, Can I get any advice to resolve this issue. 

Thanks

10-31 20:03:23.319  4979  4979 I PowerManagerService: Call to virtual nsresult mozilla::dom::power::PowerManagerService::PowerOff(). The JS stack is:

10-31 20:03:23.319  4979  4979 I PowerManagerService: 0 [4]/r.useNavigation/d(e = [object KeyboardEvent]) ["app://testapppower/js/main.467916d0fbbf769a6096.js":1]

10-31 20:03:23.319  4979  4979 I PowerManagerService:     this = [object HTMLDocument]

10-31 20:03:23.319  4979  4979 I PowerManagerService: 

10-31 20:03:23.319  4979  4979 I Gecko   : [Child 4979] ###!!! ABORT: StartForceQuitWatchdog() can't be called from sandboxed contexts.: file /work/heyongjun/Argon_gerrit/gecko/hal/sandbox/SandboxHal.cpp, line 352

10-31 20:03:23.319  4979  4979 E Gecko   : mozalloc_abort: [Child 4979] ###!!! ABORT: StartForceQuitWatchdog() can't be called from sandboxed contexts.: file /work/heyongjun/Argon_gerrit/gecko/hal/sandbox/SandboxHal.cpp, line 352

10-31 20:03:23.349   456   456 I Gonk    : bandit:KeyEventDispatcher get mData.key.keyCode 15, mData.key.scanCode 9

10-31 20:03:23.349   456   456 I GeckoConsole: Content JS LOG: kaioseiffel:hardware_button evt.key:8, evt.type:mozbrowserbeforekeyup 

10-31 20:03:23.349   456   456 I GeckoConsole:     at hb_handleEvent (app://system.gaiamobile.org/js/hardware_buttons.js:148:9)

10-31 20:03:23.349   456   456 I GeckoConsole: Content JS LOG: kaioseiffel:fxa_manager======> 8,mozbrowserbeforekeyup 

10-31 20:03:23.349   456   456 I GeckoConsole:     at FxAccountsManager._debug (app://system.gaiamobile.org/js/fxa_manager.js:1:190)

10-31 20:03:23.359   456   456 E GeckoConsole: Content JS ERROR: Wrong event 

10-31 20:03:23.359   456   456 E GeckoConsole:     at fxa_mgmt_handleEvent (app://system.gaiamobile.org/js/fxa_manager.js:11:27)

10-31 20:03:23.359   456   456 I GeckoConsole: Content JS LOG: kaioseiffel_dialeragent: evt.type=mozbrowserbeforekeyup, _dastatus=false 

10-31 20:03:23.359   456   456 I GeckoConsole:     at da_handleEvent (app://system.gaiamobile.org/js/dialer_agent.js:12:64)

10-31 20:03:23.359   456   456 I GeckoConsole: Content JS LOG: kaioseiffel:hardware_button evt.key:8, evt.type:keyup 

10-31 20:03:23.359   456   456 I GeckoConsole:     at hb_handleEvent (app://system.gaiamobile.org/js/hardware_buttons.js:148:9)

10-31 20:03:23.369   456   456 I Gecko   : [BrowserElement] event type: keyup, key: 8, target: [object HTMLIFrameElement], src: app://testapppower/index.html, id: browser6, class: browser

10-31 20:03:23.629  4979  4979 F libc    : Fatal signal 11 (SIGSEGV) in tid 4979 (testapppower)

10-31 20:03:23.629  4979  4979 F libc    : Unable to open connection to debuggerd: Permission denied

10-31 20:03:23.639   456   456 I Gecko   : 

10-31 20:03:23.639   456   456 I Gecko   : ###!!! [Parent][MessageChannel] Error: (msgtype=0x2C0084,name=PBrowser::Msg_Destroy) Channel error: cannot send/recv

10-31 20:03:23.639   456   456 I Gecko   : 



perry

unread,
Aug 21, 2019, 10:52:45 AM8/21/19
to comp.mobile.nokia.8110
Why do you not use OmmiSD to install your App ?

Farooq Karimi Zadeh

unread,
Sep 3, 2019, 7:05:12 AM9/3/19
to banana...@googlegroups.com
> --
> You received this message because you are subscribed to the Google
> Groups "comp.mobile.nokia.8110" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to bananahacker...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bananahackers/cba3fb5d-521d-4b36-9283-f4b2414a00f6%40googlegroups.com
> [1].
>
>
> Links:
> ------
> [1]
> https://groups.google.com/d/msgid/bananahackers/cba3fb5d-521d-4b36-9283-f4b2414a00f6%40googlegroups.com?utm_medium=email&utm_source=footer
Yeah. When I tried it crashed.
Reply all
Reply to author
Forward
0 new messages