I try to build the latest GeckoView,but it can not show the web page,just
blank.
Anyone have meet the same problem?


On Fri, Oct 18, 2013 at 5:36 AM, Mike Taylor <[email protected]> wrote:

> On 17/10/2013 16:04, Bradford Lassey wrote:
>
>> Yup, seems like this is a good thing to add to the GeckoView API.
>>
>> -Brad
>>
>> On 10/17/13 4:49 PM, Michal Lower wrote:
>>
>>> Bradford Lassey <blassey@...> writes:
>>>
>>>  If you are in fullscreen mode[1] you can lock the orientation using
>>>> window.screen.lockOrientation(**) or window.screen.**
>>>> mozLockOrientation()[2]
>>>>
>>> I've tried that but I can't get into full screen mode because it needs
>>> to be
>>> started from 'short user triggered event' and I want to host HTML5 based
>>> game
>>> inside my GeckoView and I need locked landscape orientation without user
>>> interaction.
>>>
>>> So I look for one of the following:
>>> 1) some way to trigger fullscreen mode from javascript without user
>>> interaction
>>> 2) way to disable processing of event that notifies Gecko that device
>>> changed
>>> screen orientation, I don't know where to look in the source for code
>>> handling
>>> screen rotation (native code?).
>>> 3) mozLockOrientation documentation states that locking rotation is
>>> allowed
>>> outside fullscreen in webapps so maybe there is a way of adding
>>> GeckoView as
>>> another exception. It would make sense because Android interface
>>> components
>>> doesn't rotate by themselves, their container (ie. View) handles that.
>>>
>>
> Opera Sphynx (a modded, embeddable Presto engine, née Oupeng) hacked
> together a solution for this usecase using <meta name="oupengmobile"> tags
> [1][2], where the content attribute could be "landscape", "portrait",
> "lockrotation", "fullscreen", or "game" (can't remember what that
> corresponded to).
>
> [1] 
> http://sphinx.oupeng.com/**articles/sphinx-application-**mode<http://sphinx.oupeng.com/articles/sphinx-application-mode>
> [2] 
> http://sphinx.oupeng.com/**sphinxsample<http://sphinx.oupeng.com/sphinxsample>
>
> Not sure if a JS API is better than markup/<meta> (my personal preference
> leans towards script), just pointing out how it's been done before.
>
> --
> Mike Taylor
> Web Compat, Mozilla
>
> ______________________________**_________________
> mobile-firefox-dev mailing list
> [email protected]
> https://mail.mozilla.org/**listinfo/mobile-firefox-dev<https://mail.mozilla.org/listinfo/mobile-firefox-dev>
>



-- 
http://pjq.me
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to