On 25/04/2012 09:37, JOSE MANUEL CANTERA FONSECA wrote:
> El 25/04/12 09:19, "Tim Guan-tin Chien" <
timd...@mozilla.com> escribió:
>
>> So in Gecko we got Visibility API to tell pages to stop burning CPUs if
>> the user had switched to other tabs:
>>
>>
https://developer.mozilla.org/en/DOM/Using_the_Page_Visibility_API
>>
>> In Gaia we need to do similar notification to apps; since all Gaia apps
>> are in <iframe mozbrowser>, their visibility states is in sync with the
>> parent document, and display:none does not trigger visibilitychange.
> I think in the future <iframe mozapp> contexts should be totally decoupled
> from the Top Level Browsing Context. Thus, We shouldn't have such a
> problem ...
>
>> So that leave us few choices:
>>
>> A) extend mozbrowser for it to update visibility status when the
>> window_manager.js request it
>> B) talk to w3c, modify the behavior of Page Visibility API, decouple the
>> visibility status of iframes with its parent document all together, and
>> update the status as the iframe being hidden in CSS
>> C) invent some kind of Window Manager Notification API (worse choice!)
>>
>> I think we need to get some ideas first which option is easier to
>> implement in Gecko. Maybe determining the visibility of a child iframe
>> is really hard?
>>
by the past. Since <iframe mozbrowser> are different this will be a
different subject now. But I guess <iframe mozbrowser> needs to be