pandamicro
80dac85639
Fix network crashing issue during restart
2017-08-07 18:30:51 +08:00
pandamicro
02db3adf58
Fix XMLHttpRequest timeout setter issue
2017-08-07 12:09:42 +08:00
pandamicro
f35d7c8246
Replace JSString with JS::RootedString
2017-07-24 15:06:50 +08:00
James Chen
68be4dbbaf
Fix potential crash after WebSocket.close.
...
Since the finalize function will get a invalid pointer of WebSocket, invoking ws->closeAysnc() will generate unknown result, probably crash.
HOW TO FIX:
WebSocket and JSB_WebSocketDelegate inhert from Ref. After websocket is initialized successfully, retain websocket instance and delegate, they will both have 2 reference count.
release their reference both in onClose callback and finalize function. The reason is that the order of invoking onClose and finalize function will be unpredictable, ref count technique help to handle this.
Another fix is sending onclose event after onerror is received.
2017-07-20 16:43:24 +08:00
pandamicro
0768865461
Fix non ref finalize crash during app close
2017-06-30 18:02:05 +08:00
pandamicro
ecafdac39a
Fix network new proxy fail issue
2017-06-30 18:02:04 +08:00
pandamicro
959ac50c4d
Secure basic type conversions
2017-06-30 18:02:04 +08:00
pandamicro
27536dad4c
Fix critical issues in bindings code
2017-06-30 18:02:01 +08:00
pandamicro
f72d66db24
Refactor JSFunctionWrapper & Use MutableHandleValue for conversion’s return value
...
Upgrade to Spidermonkey v52. pass 8
2017-06-30 18:01:58 +08:00
pandamicro
b1e9d01da9
Upgrade to Spidermonkey v52. pass 7: Remove auto compartment
2017-06-30 18:01:56 +08:00
pandamicro
024451216f
Upgrade to Spidermonkey v52. pass 5: Compilation passed on v52
2017-06-30 18:01:56 +08:00
pandamicro
52c393c354
Upgrade to Spidermonkey v52. pass 5: Remove js_native_proxy
2017-06-30 18:01:56 +08:00
pandamicro
40248c0c73
Upgrade to Spidermonkey v52. pass 4
2017-06-30 18:01:54 +08:00
pandamicro
27d681a1a8
Upgrade to Spidermonkey v52. pass 3: Compilation pass
2017-06-30 18:01:54 +08:00
pandamicro
9f321538cf
Upgrade to Spidermonkey v52. pass 2
2017-06-30 18:01:53 +08:00
pandamicro
17c5e5d779
Upgrade to spider monkey 52, pass 1
2017-06-30 18:01:51 +08:00
pandamicro
f3e354b850
Sync serious XMLHTTP leak fix
2017-05-22 14:09:06 +08:00
James Chen
fc98b4bdc0
Sync with cocos2d-x v3 branch ddb4dc8 commit.
2017-04-24 10:49:02 +08:00
Wang Nan
42ca41c5f0
Merge pull request #589 from cocos-creator/v1.4
...
merge V1.4
2017-04-12 16:23:16 +08:00
pandamicro
5970b7839b
Support xhr.send(null)
2017-04-12 14:33:57 +08:00
James Chen
779cc28217
Sync from https://github.com/cocos2d/cocos2d-x/pull/17381
2017-02-20 10:46:28 +08:00
James Chen
a9b35750cf
Updates JSBindings to support pass a CA file through ‘new WebSocket(url, [protocols], caFilePath)’ API.
2017-02-16 11:15:45 +08:00
pandamicro
1da6a0e5ae
Revert Network modifications
2017-02-06 12:37:44 +08:00
pandamicro
cec9760bd0
Fix websocket cycling destructor issue
2017-01-22 18:43:32 +08:00
pandamicro
bc915ddc44
Add Downloader bindings
2017-01-16 13:57:10 +08:00
pandamicro
c47a770877
Adapt websocket to new memory model
2017-01-06 16:59:40 +08:00
knoxHuang
a9f67c46fa
fix errorBuffer error for XMLHTTPRequest
2016-12-29 14:49:18 +08:00
knoxHuang
ced6f3690b
update XMLHTTPRequest code
2016-12-28 10:54:12 +08:00
knoxHuang
f9ce7d0e5f
fix XMLHTTPRequest onerror no callback for fireball/issues/4582
2016-12-27 15:04:24 +08:00
pandamicro
178fbe03cb
Separate FinalizeHook for ref objects and non ref objects
2016-12-17 17:19:10 +08:00
pandamicro
ba33766602
Upgrade scripting/js-bindings/script to v3.13
2016-08-25 17:25:51 +08:00
pandamicro
6713fd2d11
Fix js-bindings project compilation issues
2016-08-15 19:08:58 +08:00
pandamicro
f05b67e287
Upgrade cocos/scripting to v3.13
2016-08-09 18:17:42 +08:00
Wenhai Lin
cdbd28ce43
[JSB]Fixed crash when WebSocket is closed.
2016-04-27 13:54:25 +08:00
Wenhai Lin
a50b000b17
Fixed memory leak and warns
2016-04-21 23:47:26 +08:00
Wenhai Lin
83fc6fd1a8
Bug fix:
...
1.Fixed crash in win for rich text
2.Fixed crash when custom SSL certificate is set on iOS
3.Fixed SocketIO crash on reconnect
4.Fixed ActionManager memory leak
5.Fixed crash in MenuItem::activate
6.Fixed crash on exit game
7.Fixed crash in TableView::updateCellAtIndex
8.Fixed crash in RichText on window
2016-04-21 15:19:47 +08:00
Wenhai Lin
e572df8a55
Fixed memory leak
2016-04-14 23:41:46 +08:00
Wenhai Lin
7399218a5e
Close web socket on exit may cause crash.
2016-04-11 15:52:40 +08:00
Wenhai Lin
e4b8db424a
Withespaces does matter.
2016-04-07 21:56:30 +08:00
Wenhai Lin
b3a6312d88
Fixes wrong usage of std::vector's constructor in EventDispatcher::removeAllEventListener
2016-04-07 16:22:53 +08:00
Wenhai Lin
0e7cb5da16
no more uthash
2016-04-07 11:33:04 +08:00
Wenhai Lin
94c95d5838
Withespaces does matter.
2016-03-31 23:50:02 +08:00
Wenhai Lin
a6dbf31dcf
cocos 2d lite version
2016-03-29 17:55:48 +08:00