зеркало из https://github.com/mozilla/gecko-dev.git
Bug 956484 - Move inline js from /mobile/android/chrome/content/aboutPrivateBrowsing.xhtml into separate js file. r=mbrubeck
This commit is contained in:
Родитель
0925e712bf
Коммит
f9ef00541a
|
@ -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"/>
|
<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="stylesheet" href="chrome://browser/skin/aboutPrivateBrowsing.css" type="text/css" media="all"/>
|
||||||
<link rel="icon" type="image/png" href="chrome://branding/content/favicon32.png" />
|
<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>
|
</head>
|
||||||
|
|
||||||
<body class="private">
|
<body class="private">
|
||||||
|
@ -46,5 +34,7 @@
|
||||||
|
|
||||||
<p>&privatebrowsingpage.moreInfo;</p>
|
<p>&privatebrowsingpage.moreInfo;</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script type="application/javascript;version=1.8" src="chrome://browser/content/aboutPrivateBrowsing.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -16,8 +16,9 @@ chrome.jar:
|
||||||
content/aboutDownloads.xhtml (content/aboutDownloads.xhtml)
|
content/aboutDownloads.xhtml (content/aboutDownloads.xhtml)
|
||||||
content/aboutDownloads.js (content/aboutDownloads.js)
|
content/aboutDownloads.js (content/aboutDownloads.js)
|
||||||
content/aboutFeedback.xhtml (content/aboutFeedback.xhtml)
|
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.xhtml (content/aboutPrivateBrowsing.xhtml)
|
||||||
|
content/aboutPrivateBrowsing.js (content/aboutPrivateBrowsing.js)
|
||||||
content/aboutReader.html (content/aboutReader.html)
|
content/aboutReader.html (content/aboutReader.html)
|
||||||
content/aboutReader.js (content/aboutReader.js)
|
content/aboutReader.js (content/aboutReader.js)
|
||||||
content/Readability.js (content/Readability.js)
|
content/Readability.js (content/Readability.js)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче