mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Introduce GlobalScope::get_url
This commit is contained in:
parent
092504b4e3
commit
f38159b7d3
10 changed files with 39 additions and 39 deletions
|
@ -239,10 +239,11 @@ impl WebSocket {
|
|||
}
|
||||
|
||||
// Step 6: Origin.
|
||||
let origin = UrlHelper::Origin(&global.get_url()).0;
|
||||
let global_scope = global.as_global_scope();
|
||||
let origin = UrlHelper::Origin(&global_scope.get_url()).0;
|
||||
|
||||
// Step 7.
|
||||
let ws = WebSocket::new(global.as_global_scope(), resource_url.clone());
|
||||
let ws = WebSocket::new(global_scope, resource_url.clone());
|
||||
let address = Trusted::new(ws.r());
|
||||
|
||||
let connect_data = WebSocketConnectData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue