Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
michael@0 | 2 | <!-- |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | --> |
michael@0 | 7 | <!DOCTYPE html [ |
michael@0 | 8 | <!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> |
michael@0 | 9 | %htmlDTD; |
michael@0 | 10 | <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> |
michael@0 | 11 | %globalDTD; |
michael@0 | 12 | <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> |
michael@0 | 13 | %brandDTD; |
michael@0 | 14 | <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd"> |
michael@0 | 15 | %browserDTD; |
michael@0 | 16 | <!ENTITY % privatebrowsingpageDTD SYSTEM "chrome://browser/locale/aboutPrivateBrowsing.dtd"> |
michael@0 | 17 | %privatebrowsingpageDTD; |
michael@0 | 18 | ]> |
michael@0 | 19 | |
michael@0 | 20 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 21 | <head> |
michael@0 | 22 | <link rel="stylesheet" href="chrome://global/skin/netError.css" type="text/css" media="all"/> |
michael@0 | 23 | <link rel="stylesheet" href="chrome://browser/skin/aboutPrivateBrowsing.css" type="text/css" media="all"/> |
michael@0 | 24 | <style type="text/css"><![CDATA[ |
michael@0 | 25 | body.normal .showPrivate, |
michael@0 | 26 | body.private .showNormal { |
michael@0 | 27 | display: none; |
michael@0 | 28 | } |
michael@0 | 29 | ]]></style> |
michael@0 | 30 | <script type="application/javascript;version=1.7"><![CDATA[ |
michael@0 | 31 | const Cc = Components.classes; |
michael@0 | 32 | const Ci = Components.interfaces; |
michael@0 | 33 | |
michael@0 | 34 | Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm"); |
michael@0 | 35 | |
michael@0 | 36 | if (!PrivateBrowsingUtils.isWindowPrivate(window)) { |
michael@0 | 37 | document.title = "]]>&privatebrowsingpage.title.normal;<![CDATA["; |
michael@0 | 38 | setFavIcon("chrome://global/skin/icons/question-16.png"); |
michael@0 | 39 | } else { |
michael@0 | 40 | #ifndef XP_MACOSX |
michael@0 | 41 | document.title = "]]>&privatebrowsingpage.title;<![CDATA["; |
michael@0 | 42 | #endif |
michael@0 | 43 | setFavIcon("chrome://browser/skin/Privacy-16.png"); |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | var mainWindow = window.QueryInterface(Ci.nsIInterfaceRequestor) |
michael@0 | 47 | .getInterface(Ci.nsIWebNavigation) |
michael@0 | 48 | .QueryInterface(Ci.nsIDocShellTreeItem) |
michael@0 | 49 | .rootTreeItem |
michael@0 | 50 | .QueryInterface(Ci.nsIInterfaceRequestor) |
michael@0 | 51 | .getInterface(Ci.nsIDOMWindow); |
michael@0 | 52 | |
michael@0 | 53 | function setFavIcon(url) { |
michael@0 | 54 | var icon = document.createElement("link"); |
michael@0 | 55 | icon.setAttribute("rel", "icon"); |
michael@0 | 56 | icon.setAttribute("type", "image/png"); |
michael@0 | 57 | icon.setAttribute("href", url); |
michael@0 | 58 | var head = document.getElementsByTagName("head")[0]; |
michael@0 | 59 | head.insertBefore(icon, head.firstChild); |
michael@0 | 60 | } |
michael@0 | 61 | |
michael@0 | 62 | document.addEventListener("DOMContentLoaded", function () { |
michael@0 | 63 | if (!PrivateBrowsingUtils.isWindowPrivate(window)) { |
michael@0 | 64 | document.body.setAttribute("class", "normal"); |
michael@0 | 65 | } |
michael@0 | 66 | |
michael@0 | 67 | // Set up the help link |
michael@0 | 68 | let moreInfoURL = Cc["@mozilla.org/toolkit/URLFormatterService;1"]. |
michael@0 | 69 | getService(Ci.nsIURLFormatter). |
michael@0 | 70 | formatURLPref("app.support.baseURL"); |
michael@0 | 71 | let moreInfoLink = document.getElementById("moreInfoLink"); |
michael@0 | 72 | if (moreInfoLink) |
michael@0 | 73 | moreInfoLink.setAttribute("href", moreInfoURL + "private-browsing"); |
michael@0 | 74 | }, false); |
michael@0 | 75 | |
michael@0 | 76 | function openPrivateWindow() { |
michael@0 | 77 | mainWindow.OpenBrowserWindow({private: true}); |
michael@0 | 78 | } |
michael@0 | 79 | ]]></script> |
michael@0 | 80 | </head> |
michael@0 | 81 | |
michael@0 | 82 | <body dir="&locale.dir;" |
michael@0 | 83 | class="private"> |
michael@0 | 84 | |
michael@0 | 85 | <!-- PAGE CONTAINER (for styling purposes only) --> |
michael@0 | 86 | <div id="errorPageContainer"> |
michael@0 | 87 | |
michael@0 | 88 | <!-- Error Title --> |
michael@0 | 89 | <div id="errorTitle"> |
michael@0 | 90 | <h1 id="errorTitleText" class="showPrivate">&privatebrowsingpage.title;</h1> |
michael@0 | 91 | <h1 id="errorTitleTextNormal" class="showNormal">&privatebrowsingpage.title.normal;</h1> |
michael@0 | 92 | </div> |
michael@0 | 93 | |
michael@0 | 94 | <!-- LONG CONTENT (the section most likely to require scrolling) --> |
michael@0 | 95 | <div id="errorLongContent"> |
michael@0 | 96 | |
michael@0 | 97 | <!-- Short Description --> |
michael@0 | 98 | <div id="errorShortDesc"> |
michael@0 | 99 | <p id="errorShortDescText" class="showPrivate">&privatebrowsingpage.perwindow.issueDesc;</p> |
michael@0 | 100 | <p id="errorShortDescTextNormal" class="showNormal">&privatebrowsingpage.perwindow.issueDesc.normal;</p> |
michael@0 | 101 | </div> |
michael@0 | 102 | |
michael@0 | 103 | <!-- Long Description --> |
michael@0 | 104 | <div id="errorLongDesc"> |
michael@0 | 105 | <p id="errorLongDescText">&privatebrowsingpage.perwindow.description;</p> |
michael@0 | 106 | </div> |
michael@0 | 107 | |
michael@0 | 108 | <!-- Start Private Browsing --> |
michael@0 | 109 | <div id="startPrivateBrowsingDesc" class="showNormal"> |
michael@0 | 110 | <button xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 111 | id="startPrivateBrowsing" label="&privatebrowsingpage.openPrivateWindow.label;" |
michael@0 | 112 | accesskey="&privatebrowsingpage.openPrivateWindow.accesskey;" |
michael@0 | 113 | oncommand="openPrivateWindow();"/> |
michael@0 | 114 | </div> |
michael@0 | 115 | |
michael@0 | 116 | <!-- Footer --> |
michael@0 | 117 | <div id="footerDesc"> |
michael@0 | 118 | <p id="footerText" class="showPrivate">&privatebrowsingpage.howToStop3;</p> |
michael@0 | 119 | <p id="footerTextNormal" class="showNormal">&privatebrowsingpage.howToStart4;</p> |
michael@0 | 120 | </div> |
michael@0 | 121 | |
michael@0 | 122 | <!-- More Info --> |
michael@0 | 123 | <div id="moreInfo" class="showPrivate"> |
michael@0 | 124 | <p id="moreInfoText"> |
michael@0 | 125 | &privatebrowsingpage.moreInfo; |
michael@0 | 126 | </p> |
michael@0 | 127 | <p id="moreInfoLinkContainer"> |
michael@0 | 128 | <a id="moreInfoLink" target="_blank">&privatebrowsingpage.learnMore;</a> |
michael@0 | 129 | </p> |
michael@0 | 130 | </div> |
michael@0 | 131 | </div> |
michael@0 | 132 | </div> |
michael@0 | 133 | |
michael@0 | 134 | </body> |
michael@0 | 135 | </html> |