Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Unified Diff: sky/sdk/lib/framework/net/fetch.dart

Issue 1166953005: Make fetch work in the DOM-less world (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/net/fetch.dart
diff --git a/sky/sdk/lib/framework/net/fetch.dart b/sky/sdk/lib/framework/net/fetch.dart
index fbd3f8840022753d3fc9c8047f8f2be9985e10db..199ab79c4248b02cbd4902b6fd710aae1bdc1a1b 100644
--- a/sky/sdk/lib/framework/net/fetch.dart
+++ b/sky/sdk/lib/framework/net/fetch.dart
@@ -4,7 +4,6 @@
import '../shell.dart' as shell;
import 'dart:async';
-import 'dart:sky' as sky;
import 'dart:typed_data';
import 'package:mojo/core.dart' as core;
import 'package:mojom/mojo/network_service.mojom.dart';
@@ -22,7 +21,7 @@ class Response {
}
Future<Response> fetch(String relativeUrl) async {
- String url = new sky.URL(relativeUrl, sky.document.baseURI).href;
+ String url = Uri.base.resolve(relativeUrl).toString();
var net = new NetworkServiceProxy.unbound();
shell.requestService("mojo:network_service", net);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698