So when I try this in the browser I get [16:07:03.512] Scripts may not
close windows that were not opened by script. It seems like apps/pages
should not be able to do this anyway (normatively speaking).


On Mon, Oct 21, 2013 at 4:04 PM, James Lal <[email protected]> wrote:

> Yes- you can use window.close (internally this is how we close stuff from
> our integration tests and in the email app we do this in normal "content"
> mode)
>
>
> On Mon, Oct 21, 2013 at 12:21 PM, Gareth Aye <[email protected]> wrote:
>
>> And from within the app?
>>
>>
>> On Mon, Oct 21, 2013 at 3:20 PM, Gareth Aye <[email protected]> wrote:
>>
>> > Can you do that in content mode?
>> >
>> >
>> > On Mon, Oct 21, 2013 at 3:07 PM, Vivien Nicolas <[email protected]
>> >wrote:
>> >
>> >> window.close() likely.
>> >>
>> >>
>> >> On 21/10/2013 21:05, Elvis Pfutzenreuter wrote:
>> >>
>> >>> Is there any way for an app to close itself? I found things like
>> >>> attributing a new URL to location.href, but this keeps the new
>> >>> URL opened under app's "shell".
>> >>>
>> >>> Context: if app receipt validation fails, the user needs to make
>> >>> some action (e.g. enabling network, installing from Marketplace)
>> >>> and then restart the app. It would be best if the app closes instead
>> >>> of forcing the user of using the long-press on Home button.
>> >>> ______________________________**_________________
>> >>> dev-b2g mailing list
>> >>> [email protected]
>> >>> https://lists.mozilla.org/**listinfo/dev-b2g<
>> https://lists.mozilla.org/listinfo/dev-b2g>
>> >>>
>> >>>  ______________________________**_________________
>> >> dev-b2g mailing list
>> >> [email protected]
>> >> https://lists.mozilla.org/**listinfo/dev-b2g<
>> https://lists.mozilla.org/listinfo/dev-b2g>
>>
>> >>
>> >
>> >
>> >
>> > --
>> > Best,
>> > Gareth
>> >
>> >
>>
>>
>> --
>> Best,
>> Gareth
>> _______________________________________________
>> dev-b2g mailing list
>> [email protected]
>> https://lists.mozilla.org/listinfo/dev-b2g
>>
>
>


-- 
Best,
Gareth
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to