cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frederico Costa Galvão (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CB-3621) Overriding Back Button behavior can lead to inconsistent state
Date Wed, 19 Jun 2013 10:08:20 GMT

    [ https://issues.apache.org/jira/browse/CB-3621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13687827#comment-13687827
] 

Frederico Costa Galvão commented on CB-3621:
--------------------------------------------

This does not affect only WP7+WP8. Can it be done for all(or main) platforms?
                
> Overriding Back Button behavior can lead to inconsistent state 
> ---------------------------------------------------------------
>
>                 Key: CB-3621
>                 URL: https://issues.apache.org/jira/browse/CB-3621
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP7, WP8
>    Affects Versions: 2.8.0
>            Reporter: Jesse MacFadyen
>            Assignee: Jesse MacFadyen
>             Fix For: 2.9.0
>
>
> The current implementation does the following:
> - if the app has overridden the back button, by using document.addEventListener, then
the backbutton event is passed to the page, and discarded.
> - else, the library will call window.history.back and if the page changes, discard the
event.
> In all other cases the event will be passed to the OS and the app will exit.
> It is possible that an app is overriding the backbutton, but still needs the ability
to exit at some point ( in response to a backbutton event ).
> If the page history has changed, then the framework would swallow the event, so it is
impossible to get this behavior.
> We need to either add a programmatic way to exit the app in response to a back-button
press, or find a way to signal the framework that even though I am overriding the backbutton,
the app should still pass the event on to the OS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message