mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Teach window.location.href setter to handle relative urls.
Also fixed display of text in touch-demo.sky R=ianh@google.com Review URL: https://codereview.chromium.org/1059743004
This commit is contained in:
parent
0e24ccd944
commit
9fa6ca170a
@ -703,7 +703,7 @@ void LocalDOMWindow::setLocation(const String& urlString, SetLocationLocking loc
|
||||
if (!host)
|
||||
return;
|
||||
mojo::URLRequestPtr request = mojo::URLRequest::New();
|
||||
request->url = urlString.toUTF8();
|
||||
request->url = document()->completeURL(urlString).string().toUTF8();
|
||||
host->services()->NavigatorHost()->RequestNavigate(
|
||||
mojo::TARGET_SOURCE_NODE, request.Pass());
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ dot {
|
||||
}
|
||||
|
||||
log {
|
||||
display: paragraph;
|
||||
margin-top: 50px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user