Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URI to URL #11782

Closed
wants to merge 2 commits into from
Closed

URI to URL #11782

Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

URI to URL #11450

  • Loading branch information
Coder206 committed Jun 18, 2016
commit 7fd08aebc39dd86bc2ae89fdb20a8e9503f996f2
@@ -379,9 +379,9 @@ impl MozBrowserEventDetailBuilder for HTMLIFrameElement {
MozBrowserEvent::TitleChange(ref string) => {
string.to_jsval(cx, rval);
}
MozBrowserEvent::LocationChange(uri, can_go_back, can_go_forward) => {
MozBrowserEvent::LocationChange(url, can_go_back, can_go_forward) => {
BrowserElementLocationChangeEventDetail {
uri: Some(DOMString::from(uri)),
url: Some(DOMString::from(url)),
canGoBack: Some(can_go_back),
canGoForward: Some(can_go_forward),
}.to_jsval(cx, rval);
@@ -64,7 +64,7 @@ dictionary BrowserElementErrorEventDetail {
};

dictionary BrowserElementLocationChangeEventDetail {
DOMString uri;
DOMString url;
boolean canGoBack;
boolean canGoForward;
};
@@ -39,7 +39,7 @@
var action_idx = 0;

iframe.addEventListener("mozbrowserlocationchange", e => {
received_events.push(e.detail.uri);
received_events.push(e.detail.url);
received_events.push(e.detail.canGoBack);
received_events.push(e.detail.canGoForward);

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.