incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1576) XHR_OPTIONAL_PAYLOAD is causes messages to be dispatched multiple times
Date Wed, 03 Oct 2012 17:42:07 GMT

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

Andrew Grieve commented on CB-1576:
-----------------------------------

Fixed in commit: https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=a07ed8dad7360b3f995a376f36710ca9396a057f

The main way I've fixed this is changing the default mode to XHR_NO_PAYLOAD, and made XHR_OPTIONAL_PAYLOAD
go back to using failing XHRs.
                
> XHR_OPTIONAL_PAYLOAD is causes messages to be dispatched multiple times
> -----------------------------------------------------------------------
>
>                 Key: CB-1576
>                 URL: https://issues.apache.org/jira/browse/CB-1576
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>
> It looks like my recent change to return YES in canInitWithRequest: cause it to be called
multiple times.
> I think the best fix would be to uses a queue to store the messages instead of bundling
them within performSelectorOnMainThread.

--
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