You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "leeboo (JIRA)" <ji...@apache.org> on 2016/05/28 04:38:12 UTC

[jira] [Created] (CB-11330) handleBridgeChange infinite loop

leeboo created CB-11330:
---------------------------

             Summary: handleBridgeChange  infinite loop
                 Key: CB-11330
                 URL: https://issues.apache.org/jira/browse/CB-11330
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 6.1.1
            Reporter: leeboo


hello there

1. i upload cordova ios js file to remote severs
2. and from cdviewcontroller load remote page, it include cordova.js
3. and then i found handleBridgeChange has infinite loop:


function handleBridgeChange() {
    if (execProxy !== cordovaExec()) {
        var commandString = commandQueue.shift();
        while(commandString) {
            var command = JSON.parse(commandString);
            var callbackId = command[0];
            var service = command[1];
            var action = command[2];
            var actionArgs = command[3];
            var callbacks = cordova.callbacks[callbackId] || {};
            
            execProxy(callbacks.success, callbacks.fail, service, action, actionArgs);
            
            commandString = commandQueue.shift();
        };
        return true;
    }
    
    return false;
}

i found execProxy !== cordovaExec all time is true
and execProxy push commandString to commandQueue again
so while infinite loop



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org