Julien Wajsberg 於 2013/9/6 上午12:00 寫道: > What about other things ? For example I can think of when we receive a > SMS. There are Wakelocks in Gaia and in Gecko, but we still have a > problem sometimes (we have a bug for this, I don't remember the number) > and as a result we don't get the notification.
AFAIK, this shall not be the same case. Get sms -> Fire System Message -> sms app's mozSetMessageHandler -> sms requireWakeLock Before system message is dispatched, it would acquire a 30s cpu wake lock. (http://mxr.mozilla.org/mozilla-central/source/dom/messages/SystemMessageInternal.js#120) And then sms app on getting the message, it would acquire another 30s cpu wake lock and do the notification. Unless we're so unlucky to get all thing done in 30s + 30s… For macro's use case, what if we do the same thing from gecko: acquire a wake lock before power button event is dispatching? And release the wake lock when 'sizemodechange' is notified? > So I think this problem is more general and can't be solved (generally, > I mean) by moving things from gaia to gecko. (even if in the power case > this could fix the problem). > > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g Alive C. Kuo, Front end engineer, Mozilla Taiwan [email protected] _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
