nw.js: win.cookies.remove() crash on Maverick [$25]
Try to open the nodewebkit app and run the following in the console :
var gui = require('nw.gui');
var win = gui.Window.get();
win.cookies.remove();
the app crash instantanely.
Here’s the log :
http://hastebin.com/teragituqa.avrasm
<bountysource-plugin>
There is a $25 open bounty on this issue. Add to the bounty at Bountysource. </bountysource-plugin>
About this issue
- Original URL
- State: closed
- Created 13 years ago
- Comments: 25 (4 by maintainers)
Minor modification’s i have done, please let me know if it works for you. It passes my test cases.
function removeCookie(cookie) { var lurl = “http” + (cookie.secure ? “s” : “”) + “😕/” + cookie.domain + cookie.path; nwWin.cookies.remove({ url: lurl, name: cookie.name }, function(result) { if (result) { if (!result.name) { result = result[0]; } // in devTools it looked like the result was an array console.log('cookie remove callback: ’ + result.name + ’ ’ + result.url); } else { console.log(‘cookie removal failed’); } }); }
Thanks
On Fri, Sep 12, 2014 at 4:38 AM, amHammock notifications@github.com wrote: