mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 13:45:27 +00:00
(Lost push race)
This commit is contained in:
commit
607932ab74
@ -51,10 +51,10 @@ interface nsPIDOMWindow;
|
||||
* http://dev.w3.org/html5/websockets/
|
||||
*
|
||||
*/
|
||||
[scriptable, uuid(af0d293a-d18c-43e6-84ed-d1de5e85b885)]
|
||||
[scriptable, uuid(4403cd57-07fc-477f-a062-d6ba7dd0781b)]
|
||||
interface nsIWebSocket : nsISupports
|
||||
{
|
||||
readonly attribute DOMString URL;
|
||||
readonly attribute DOMString url;
|
||||
|
||||
//ready state
|
||||
const unsigned short CONNECTING = 0;
|
||||
|
@ -3215,7 +3215,7 @@ nsWebSocket::SetProtocol(const nsString& aProtocol)
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWebSocket::GetURL(nsAString& aURL)
|
||||
nsWebSocket::GetUrl(nsAString& aURL)
|
||||
{
|
||||
aURL = mOriginalURL;
|
||||
return NS_OK;
|
||||
|
@ -30,7 +30,9 @@ function forcegc(){
|
||||
}
|
||||
|
||||
function testWebSocket () {
|
||||
var url = "ws://mochi.test:8888/tests/content/base/test/file_ws_basic_tests";
|
||||
ws = new WebSocket("ws://mochi.test:8888/tests/content/base/test/file_ws_basic_tests", "test");
|
||||
is(ws.url, url, "Wrong Websocket.url!");
|
||||
ws.onopen = function(e) {
|
||||
for (var i = 0; i < params.length; ++i) {
|
||||
document.getElementById('log').textContent += "sending " + params[i] + "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user