aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/websocket.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Auto merge of #7871 - psdh:sendReason, r=jdmbors-servo2015-10-131-1/+4
|\ | | | | | | | | | | | | | | | | | | Send reason in the Websocket close handshake Fixes #7862 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7871) <!-- Reviewable:end -->
| * Send reason in the Websocket close handshakePrabhjyot Singh Sodhi2015-10-051-1/+4
| |
* | Auto merge of #7885 - jimberlage:7858/null-message, r=Ms2gerbors-servo2015-10-091-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Creates empty string when passed null This should fix #7858. An empty `USVString` is now used when `data` is `None`. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7885) <!-- Reviewable:end -->
| * | Require the argument to WebSocket#send() (fixes #7858).Jim Berlage2015-10-081-2/+2
| | |
* | | make blacklist as const arrayvectorijk2015-10-061-65/+65
| | |
* | | Fix #7855 Implement port blockingvectorijk2015-10-061-0/+69
| | | | | | | | | | | | For WebSocket connection algorithm
* | | Refactor Error enum usage to consistently be qualifiedAnthony Urena2015-10-061-4/+3
|/ /
* / remove data field from websocketsRoman Klauke2015-10-051-2/+0
|/ | | | | | | The data field is currently not used (no reads/ writes). This commit removes this field. Ref.-Issue: #7859
* fixed the 'as_slice' deprecated warningRavi Shankar2015-09-261-3/+4
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-7/+6
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-12/+9
| | | | This merges import blocks that were reported by tidy as unmerged.
* Move EventTargetTypeId/NodeTypeId to DOMClassMichael Wu2015-09-121-2/+2
|
* Enforce linking to spec for method implementations via macrosCorey Farwell2015-08-311-0/+7
|
* Time distribution across script event categories.benshu2015-08-281-4/+5
|
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-7/+7
|
* Remove helper traitsAnthony Ramine2015-08-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-1/+0
| | | | closes #7357
* sort all usesJohann Tuffe2015-08-201-9/+9
|
* Cleanup WebGLRenderingContext, Websocker, WorkerGlobalScopeManish Goregaokar2015-08-181-1/+1
|
* Fix existing syntactics nits.Josh Matthews2015-08-161-1/+1
|
* Auto merge of #7214 - tomjakubowski:websocket-binaryType, r=Ms2gerbors-servo2015-08-151-3/+33
|\ | | | | | | | | | | | | | | | | | | Implement WebSocket#binaryType Closes #7098 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7214) <!-- Reviewable:end -->
| * WebSocket: Implement WebSocket#binaryTypeTom Jakubowski2015-08-151-3/+33
| |
* | Splitting ScriptMsg into various enums; r=jdmRavi Shankar2015-08-151-6/+5
| |
* | Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-1/+4
|/
* Implement WebSocket#onmessage.Ms2ger2015-08-081-0/+1
|
* Dispatch message events for WebSocket.Ms2ger2015-08-071-13/+88
|
* Use hosts-replaced URL only when loading resourcesJames Graham2015-08-051-7/+20
|
* Add spec linksBogdan Cuza2015-07-281-0/+4
|
* Move the WebSocket constructor logic out of WebSocket::new.Ms2ger2015-07-231-15/+11
|
* Spawn a thread for WebSocket messages.Ms2ger2015-07-221-44/+35
|
* Set the WebSocket's Sender from the ConnectionEstablishedTask.Ms2ger2015-07-221-2/+4
| | | | | | | | This needs to happen off a task because we won't be able to access the WebSocket object directly once this code moves to a background thread. There is no behaviour change, because we make sure that self.ready_state is not Connecting in Send().
* Remove the receiver field from WebSocket.Ms2ger2015-07-221-5/+1
| | | | | The receiver will be used from another thread than the WebSocket object in the future.
* Split up WebSocketTaskHandler.Ms2ger2015-07-221-37/+17
| | | | | There's no real reason to have internal dynamic dispatch inside a trait object.
* Reject websocket protocol requests that don't match ↵Josh Matthews2015-07-221-3/+29
| | | | https://tools.ietf.org/html/rfc6455#section-4.1 .
* Don't try to send a message in WebSocket#close if the sender isn't present.Ms2ger2015-07-161-1/+3
|
* Handle Send correctly if readyState is not Open.Ms2ger2015-07-161-2/+9
|
* Remove WebSocket::sendCloseFrame.Ms2ger2015-07-161-17/+11
| | | | | | It is a field that is used a function argument. Given that the control flow is not quite the same, and we can't add an argument to Send, I opted for a separate function.
* Remove parse_web_socket_url in favour of functions in rust-websocket.Ms2ger2015-07-151-44/+6
|
* Throw an InvalidStateError from WebSocket#send when it is called too early.Ms2ger2015-07-141-1/+5
|
* Stop panicking while establishing a WebSocket connection.Ms2ger2015-07-141-9/+19
|
* Fix #6379Bogdan Cuza2015-07-131-1/+3
|
* Replace WebSocketTask::Open by ConnectionEstablished.Ms2ger2015-07-131-14/+22
|
* Remove some dead code from WebSockets.Ms2ger2015-07-131-8/+0
|
* Return the parsed URL from WebSocket#url.Ms2ger2015-07-131-10/+10
|
* Refactor #[jstraceable] to #[derive(JSTraceable)]David Winslow2015-07-011-2/+1
| | | | fixes #6524
* Upgrade to SM 39Michael Wu2015-06-191-33/+30
|
* WebSocket constructor should not panicJinwoo Song2015-06-161-1/+10
| | | | | | | | Make an early return when the WebSocket connection fails in the constructor. Also let the WebSocket connection to be closed when the connection could not be established. Fixes #6082.
* Revert "WebSocket constructor should not panic"Ms2ger2015-06-121-10/+1
| | | | This reverts commit 877c369e0bc5db4286457be36d015eeb1f0ae2f2.
* WebSocket constructor should not panicJinwoo Song2015-06-111-1/+10
| | | | | | | | Make an early return when the WebSocket connection fails in the constructor. Also let the WebSockect connection to be closed when the connection could not be established. Fixes #6082.
* Auto merge of #6174 - frewsxcv:cleanup-long-lines, r=SimonSapinbors-servo2015-05-241-5/+10
|\ | | | | | | | | | | | | | | Part of https://github.com/servo/servo/issues/6041 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6174) <!-- Reviewable:end -->