Bug 956484 - Move inline js from /mobile/android/chrome/content/aboutPrivateBrowsing.xhtml into separate js file. r=mbrubeck

This commit is contained in:
Neil Bleasdale 2014-01-15 09:35:54 -05:00
Родитель 0925e712bf
Коммит f9ef00541a
3 изменённых файлов: 20 добавлений и 13 удалений

Просмотреть файл

@ -0,0 +1,16 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const Ci = Components.interfaces;
const Cu = Components.utils;
Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
if (!PrivateBrowsingUtils.isWindowPrivate(window)) {
document.addEventListener("DOMContentLoaded", function () {
document.body.setAttribute("class", "normal");
}, false);
}

Просмотреть файл

@ -21,18 +21,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1; user-scalable=no"/>
<link rel="stylesheet" href="chrome://browser/skin/aboutPrivateBrowsing.css" type="text/css" media="all"/>
<link rel="icon" type="image/png" href="chrome://branding/content/favicon32.png" />
<script type="application/javascript;version=1.7"><![CDATA[
const Ci = Components.interfaces;
const Cu = Components.utils;
Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
if (!PrivateBrowsingUtils.isWindowPrivate(window)) {
document.addEventListener("DOMContentLoaded", function () {
document.body.setAttribute("class", "normal");
}, false);
}
]]></script>
</head>
<body class="private">
@ -46,5 +34,7 @@
<p>&privatebrowsingpage.moreInfo;</p>
</div>
<script type="application/javascript;version=1.8" src="chrome://browser/content/aboutPrivateBrowsing.js"></script>
</body>
</html>

Просмотреть файл

@ -16,8 +16,9 @@ chrome.jar:
content/aboutDownloads.xhtml (content/aboutDownloads.xhtml)
content/aboutDownloads.js (content/aboutDownloads.js)
content/aboutFeedback.xhtml (content/aboutFeedback.xhtml)
content/aboutFeedback.js (content/aboutFeedback.js)
content/aboutFeedback.js (content/aboutFeedback.js)
content/aboutPrivateBrowsing.xhtml (content/aboutPrivateBrowsing.xhtml)
content/aboutPrivateBrowsing.js (content/aboutPrivateBrowsing.js)
content/aboutReader.html (content/aboutReader.html)
content/aboutReader.js (content/aboutReader.js)
content/Readability.js (content/Readability.js)