Responding to review comments.

This commit is contained in:
Alan Jeffrey 2017-05-26 12:42:45 -05:00
parent 79743b5358
commit 3f761bed53
4 changed files with 5 additions and 5 deletions

View file

@ -498,7 +498,7 @@ unsafe fn build_mozbrowser_event_detail(event: MozBrowserEvent,
}
MozBrowserEvent::LocationChange(url, can_go_back, can_go_forward) => {
BrowserElementLocationChangeEventDetail {
url: Some(DOMString::from(url.as_str())),
url: Some(DOMString::from(url)),
canGoBack: Some(can_go_back),
canGoForward: Some(can_go_forward),
}.to_jsval(cx, rval);