Commit Graph

36 Commits

Author SHA1 Message Date
minggo eb67111bbb fix potential overflow (#1795) 2019-08-13 17:59:45 +08:00
Arnold a9e182967f Prevent XMLHttpRequest from being gc incorrectly, when timeout occurs. (#1724)
* gc on response

* fix state

* add comment

* prevent multiple send

* revert bindings-generator

* rename _isSend to _isSending
2019-04-22 13:08:00 +08:00
kenshin 3b9ea184ae fix XMLHttpRequest crash, avoid HttpClient response call a released object! (#1721) 2019-04-19 10:06:40 +08:00
Jare Guo 4273ee52d8 Merge commit '90b862182c031ed638c579fd5f4c9f35e66bffcb' into v2.1-release 2019-01-15 21:34:39 +08:00
吴智明 2f6b44a2fc Change network module (#1655)
* change USE_NET_WORK to USE_SOCKET  and add xmlhttprequest default for ios platform

* change USE_NET_WORK to USE_SOCKET  and add xmlhttprequest default for android platform
2019-01-14 16:26:32 +08:00
Arnold 6916a8a3dc [httprequest] fix unsafe parser (#1629)
* [httprequest] fix unsafe parser

* simplify

* use status code

* fix response status text if missing

* allow space

* fix format
2018-12-27 17:39:55 +08:00
Arnold 01acfa4327 XMLHttpRequest fix readyState during onabort callback (#1567)
* fix http request readyState after abort()

* ignoreonreadystatechange when abort
2018-10-29 18:17:44 +08:00
Arnold 31946b642d XMLHttpRequest.abort readyStatue should be 0 (#1564) 2018-10-29 10:19:07 +08:00
Arnold 951869f9b9 [jsb] XMLHttpRequest & WebSocket API standardize (#1557)
* xmlhttprequest statusText exclude numeric code

* websocket bufferedBytes

* websocket extensions attribute

* add websocket close arguments

* responseXML

* fix ios compile

* responseType document

* getExtensions

* rollback change for responseXML

* fix arg 1005

* use const_cast instead of create tmp value
2018-10-23 11:57:23 +08:00
leda 71d8cf11ad refine native module separate (#1547)
* refine module separate -> gfx renderer

* refine module separate

* modify Application.mk, add macro

* “#if USE_GFX_RENDERER” means “#if USE_GFX_RENDERER > 0”

* improve macro define in binding code
2018-10-18 09:10:05 +08:00
Arnold c61d61682a Fix 7818 (#1370)
* fix: #7818

* fix: 7818

* add callback typecheck, should be function
2018-07-06 09:20:26 +08:00
leda 723f52a472 win32 link/default template compile and link pass, but not works when run (#1321)
* modify file changes on project config

* correct libcocos2d compile

* add win32 props back

* Revert "fix windows link template (#1138)"

This reverts commit 332d95e5b8.

* correct compile error

* many link errors need to be solved

* added part lack methods

* add empty impl for canvas rendering context 2d

* update main.cpp

* correct audio/network compile and link error

* sync win32 application logic with mac

* remove wrong change on application-win32

* correct win32 default-template compile and link error

* win32 simulator part compile error fixed

* editbox define changes
2018-06-22 10:19:31 +08:00
James Chen 26e8259389 Merge branch 'new-renderer' of git://github.com/cocos-creator/cocos2d-x-lite into new-renderer 2018-03-12 15:34:45 +08:00
James Chen fe91680060 Adds ctx.fillRect interface, JSB_get_arraybufferview_dataptr supports null or undefine converstion. 2018-03-12 15:25:47 +08:00
minggo 0d483a9b07 add back network (#1141)
* add back network

* add network back on windows
2018-03-09 16:20:48 +08:00
James Chen 1cd2166684 continue. 2018-03-06 10:41:10 +08:00
Jare Guo d9bd3d763c update license (#1089)
* updating license

* update license
2018-02-01 15:20:01 +08:00
Jare Guo a548db62d1 refactor dragonbones asset managment (#1048) 2018-01-03 14:38:16 +08:00
James Chen 4387a16096 Fixes xhr.ontimeout isn't invoked and xhr.onerror is called instead while timeout is triggered. (#1018) 2017-12-07 14:49:34 +08:00
James Chen 3617745392 Fixes xhr.send(undefined) or xhr.send(null) will not send any request to server. (#977) 2017-11-10 16:17:36 +08:00
James Chen 6a9500df10 LOGD -> SE_LOGD, LOGE -> SE_LOGE to avoid conflict with user code. 2017-11-02 11:35:53 +08:00
James Chen 2a9f8441fb Less asserts and more precondtions in jsb_xmlhttprequest.cpp. 2017-10-12 13:59:26 +08:00
James Chen 1764e440cd Comments code of listening EVENT_RESET in WebSocket-libwebsockets.cpp since it isn't needed for JSB.
Minior fix: CCLOG -> LOGD in jsb_xmlhttprequest.cpp.
2017-10-11 16:33:02 +08:00
James Chen cf935f484c fix XMLHttpRequest.open binding. 2017-09-25 10:04:10 +08:00
James Chen 8230176ccb Fixes crash while click restart button in network test. (#829)
* Sync PR(https://github.com/cocos2d/cocos2d-x/pull/17921): remove "system" usage which is removed from iOS11.

* Fixes crash while click `restart` button in network test.

* printf -> LOGD

* Memory leak fix in XMLHttpRequest binding code.
2017-09-20 01:48:15 -05:00
James Chen bcdfa40c3a Fixes potential memory leak in jsb_xmlhttprequest.cpp 2017-08-28 11:18:23 +08:00
James Chen 2f38e872c1 Action binding bug fix. 2017-08-22 16:50:41 +08:00
James Chen b398292431 Removes deprecated api for httprequest. cleanup xmlhttprequest. 2017-08-07 15:00:29 +08:00
James Chen dcadda2862 defineFinalizedFunction -> defineFinalizeFunction. 2017-08-03 17:28:40 +08:00
James Chen f80802f97e more se::HandleObject use. 2017-07-31 16:18:01 +08:00
James Chen 10710cc407 switchToRoot -> root, switchToUnroot -> unroot. 2017-07-31 10:39:32 +08:00
James Chen ceaf5a1ed0 cleanup 2017-07-20 17:49:56 +08:00
James Chen b3db0a842a add modules register 2017-07-12 11:15:46 +08:00
James Chen 2808497a88 clearException after manually registration. 2017-07-11 13:40:04 +08:00
James Chen b8c1493850 socketio bindings ok, and fix some bugs of socketio. 2017-07-10 16:40:33 +08:00
James Chen 91359f1f75 first commit 2017-06-15 17:24:30 +08:00