aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/websocket.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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 -->
| * Reduce max line length from 150 to 120 charactersCorey Farwell2015-05-241-5/+10
| | | | | | | | Part of https://github.com/servo/servo/issues/6041
* | fixes 6111: WebSocket close event shouldn't be CancelableAlexander Putilin2015-05-241-1/+1
|/
* Adding in a missed algorithm step number in the comments.Paul Faria2015-05-201-1/+1
|
* Auto merge of #6127 - Nashenas88:websockets-invalid-urls, r=Ms2gerbors-servo2015-05-201-9/+54
|\ | | | | | | | | | | | | | | Fix #6061. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6127) <!-- Reviewable:end -->
| * Responded to more code review comments. Simplified code a lot.Paul Faria2015-05-191-64/+12
| |
| * Responded to code review comments, general cleanupPaul Faria2015-05-191-51/+29
| |
| * Fixing one missed trailing whitespace, and fixed urlPaul Faria2015-05-191-2/+2
| |
| * Removing trailing whitespacePaul Faria2015-05-191-4/+4
| |
| * Initial work on #6061.Paul Faria2015-05-191-8/+127
| |
* | Fixed definition of Close and Send in WebSocket.webidl and updated ↵Paul Faria2015-05-191-5/+6
|/ | | | implementation in websocket.rs.
* Made open event in WebScoket not cancelable (fixes #6101)Keith Yeung2015-05-181-1/+1
|
* Fix some overlong lines.Ms2ger2015-05-141-1/+2
|