forked from mirrors/gecko-dev
30 lines
687 B
HTML
30 lines
687 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>fxa_oauth_test</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
window.onload = function() {
|
|
var event = new window.CustomEvent("WebChannelMessageToChrome", {
|
|
// Note: This intentionally sends an object instead of a string, to ensure both work
|
|
// (see browser_fxa_oauth_with_keys.html for the other test)
|
|
detail: {
|
|
id: "oauth_client_id",
|
|
message: {
|
|
command: "oauth_complete",
|
|
data: {
|
|
state: "state",
|
|
code: "code1",
|
|
closeWindow: "signin",
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|
|
window.dispatchEvent(event);
|
|
};
|
|
</script>
|
|
</body>
|
|
</html>
|