Bug 706830 - pressing 'back' doesn't return user to about:home [r=mbrubeck]

This commit is contained in:
Mark Finkle 2011-12-01 15:12:45 -05:00
parent b196b19f2b
commit c42843fef8

View File

@ -49,15 +49,16 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&homepage.default;</title>
<link rel="icon" type="image/png"
href="chrome://branding/content/favicon32.png" />
<link rel="icon" type="image/png" href="chrome://branding/content/favicon32.png" />
</head>
<body onload="init();" >
<body>
<script type="application/javascript;version=1.8"><![CDATA[
let Cc = Components.classes;
let Ci = Components.interfaces;
function init() {
window.addEventListener("pageshow", onPageshow, false);
function onPageshow() {
let bridge = Cc["@mozilla.org/android/bridge;1"].getService(Ci.nsIAndroidBridge);
let obj = { gecko: {
type: "AboutHome:Show"
@ -65,7 +66,6 @@
};
bridge.handleGeckoMessage(JSON.stringify(obj));
}
]]></script>
]]></script>
</body>
</html>