TOP-CONTRIB-remove-global-dtd-useage.patch 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. # HG changeset patch
  2. # User Matt A. Tobin <email@mattatobin.com>
  3. # Date 1659988365 0
  4. # Parent dd0f9c636b2e2b7783cc81c4ec4ef478e0753c21
  5. 9999999 - Remove usage of global.dtd from about pages
  6. Suite's about:certerror is no longer used in central so it remains unchanged.
  7. diff --git a/suite/base/content/about.xhtml b/suite/base/content/about.xhtml
  8. --- a/suite/base/content/about.xhtml
  9. +++ b/suite/base/content/about.xhtml
  10. @@ -1,32 +1,30 @@
  11. <?xml version="1.0" encoding="UTF-8"?>
  12. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  13. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [
  14. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  15. %brandDTD;
  16. -<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  17. -%globalDTD;
  18. <!ENTITY % suiteAboutDTD SYSTEM "chrome://communicator/locale/about.dtd" >
  19. %suiteAboutDTD;
  20. ]>
  21. <!-- This Source Code Form is subject to the terms of the Mozilla Public
  22. - License, v. 2.0. If a copy of the MPL was not distributed with this
  23. - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
  24. <html xmlns="http://www.w3.org/1999/xhtml">
  25. <head>
  26. <title>About:</title>
  27. - <link rel="stylesheet" href="chrome://global/skin/about.css" type="text/css"/>
  28. + <link rel="stylesheet" href="chrome://communicator/skin/about.css" type="text/css"/>
  29. <script src="chrome://communicator/content/about.js"/>
  30. </head>
  31. -<body dir="&locale.dir;">
  32. +<body dir="ltr">
  33. <div id="aboutLogoContainer">
  34. <a id="vendorURL" href="http://www.seamonkey-project.org/">
  35. <img src="about:logo" alt="&brandShortName;"/>
  36. <p id="version">&about.version; </p>
  37. </a>
  38. </div>
  39. <ul id="aboutPageList">
  40. diff --git a/suite/base/content/aboutSeaMonkey.xhtml b/suite/base/content/aboutSeaMonkey.xhtml
  41. --- a/suite/base/content/aboutSeaMonkey.xhtml
  42. +++ b/suite/base/content/aboutSeaMonkey.xhtml
  43. @@ -1,14 +1,12 @@
  44. <!DOCTYPE html
  45. [
  46. <!ENTITY % seamonkeyDTD SYSTEM "chrome://communicator/locale/aboutSeaMonkey.dtd" >
  47. %seamonkeyDTD;
  48. - <!ENTITY % directionDTD SYSTEM "chrome://global/locale/global.dtd" >
  49. - %directionDTD;
  50. ]>
  51. <!-- This Source Code Form is subject to the terms of the Mozilla Public
  52. - License, v. 2.0. If a copy of the MPL was not distributed with this
  53. - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
  54. <html xmlns="http://www.w3.org/1999/xhtml">
  55. <head>
  56. @@ -45,17 +43,17 @@ em {
  57. a {
  58. text-decoration: none;
  59. color: white;
  60. }
  61. </style>
  62. </head>
  63. -<body dir="&locale.dir;">
  64. +<body dir="ltr">
  65. <section>
  66. <p id="moztext">
  67. &seamonkey.quote.1.30;
  68. </p>
  69. <p id="from">
  70. &seamonkey.from.1.30;
  71. diff --git a/suite/base/content/blockedSite.xhtml b/suite/base/content/blockedSite.xhtml
  72. --- a/suite/base/content/blockedSite.xhtml
  73. +++ b/suite/base/content/blockedSite.xhtml
  74. @@ -1,15 +1,13 @@
  75. <?xml version="1.0" encoding="UTF-8"?>
  76. <!DOCTYPE html [
  77. <!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
  78. %htmlDTD;
  79. - <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  80. - %globalDTD;
  81. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  82. %brandDTD;
  83. <!ENTITY % blockedSiteDTD SYSTEM "chrome://communicator/locale/safeBrowsing.dtd">
  84. %blockedSiteDTD;
  85. ]>
  86. <!-- This Source Code Form is subject to the terms of the Mozilla Public
  87. - License, v. 2.0. If a copy of the MPL was not distributed with this
  88. @@ -18,17 +16,17 @@
  89. <html xmlns="http://www.w3.org/1999/xhtml" class="blacklist">
  90. <head>
  91. <link rel="stylesheet" href="chrome://communicator/content/certError.css" type="text/css" media="all" />
  92. <link rel="stylesheet" href="chrome://global/skin/netError.css" type="text/css" media="all" />
  93. <link rel="stylesheet" href="chrome://communicator/skin/blockedSite.css" type="text/css" media="all" />
  94. <link rel="icon" type="image/png" id="favicon" href="chrome://global/skin/icons/blacklist_favicon.png"/>
  95. </head>
  96. - <body dir="&locale.dir;">
  97. + <body dir="ltr">
  98. <div id="errorPageContainer">
  99. <!-- Error Title -->
  100. <div id="errorTitle">
  101. <h1 id="errorTitleText_phishing">&safeb.blocked.phishingPage.title2;</h1>
  102. <h1 id="errorTitleText_malware">&safeb.blocked.malwarePage.title;</h1>
  103. <h1 id="errorTitleText_unwanted">&safeb.blocked.unwantedPage.title;</h1>
  104. <h1 id="errorTitleText_harmful">&safeb.blocked.harmfulPage.title;</h1>
  105. diff --git a/suite/components/feeds/content/subscribe.xhtml b/suite/components/feeds/content/subscribe.xhtml
  106. --- a/suite/components/feeds/content/subscribe.xhtml
  107. +++ b/suite/components/feeds/content/subscribe.xhtml
  108. @@ -4,19 +4,16 @@
  109. - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
  110. <!DOCTYPE html [
  111. <!ENTITY % htmlDTD
  112. PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  113. "DTD/xhtml1-strict.dtd">
  114. %htmlDTD;
  115. - <!ENTITY % globalDTD
  116. - SYSTEM "chrome://global/locale/global.dtd">
  117. - %globalDTD;
  118. <!ENTITY % feedDTD
  119. SYSTEM "chrome://communicator/locale/feeds/subscribe.dtd">
  120. %feedDTD;
  121. ]>
  122. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  123. <html id="feedHandler"
  124. @@ -29,17 +26,17 @@
  125. media="all"/>
  126. <link rel="stylesheet"
  127. href="chrome://communicator/skin/feed-subscribe.css"
  128. type="text/css"
  129. media="all"/>
  130. </head>
  131. <body>
  132. <div id="feedHeaderContainer">
  133. - <div id="feedHeader" dir="&locale.dir;">
  134. + <div id="feedHeader" dir="ltr">
  135. <div id="feedIntroText">
  136. <p id="feedSubscriptionInfo1" />
  137. <p id="feedSubscriptionInfo2" />
  138. </div>
  139. <div id="feedSubscribeLine" />
  140. </div>
  141. </div>
  142. diff --git a/suite/components/sessionstore/content/aboutSessionRestore.xhtml b/suite/components/sessionstore/content/aboutSessionRestore.xhtml
  143. --- a/suite/components/sessionstore/content/aboutSessionRestore.xhtml
  144. +++ b/suite/components/sessionstore/content/aboutSessionRestore.xhtml
  145. @@ -6,33 +6,31 @@
  146. -->
  147. <!DOCTYPE html [
  148. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  149. %brandDTD;
  150. <!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
  151. %htmlDTD;
  152. <!ENTITY % netErrorDTD SYSTEM "chrome://global/locale/netError.dtd">
  153. %netErrorDTD;
  154. - <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  155. - %globalDTD;
  156. <!ENTITY % restorepageDTD SYSTEM "chrome://communicator/locale/aboutSessionRestore.dtd">
  157. %restorepageDTD;
  158. ]>
  159. <html xmlns="http://www.w3.org/1999/xhtml">
  160. <head>
  161. <title>&restorepage.tabtitle;</title>
  162. <link rel="stylesheet" href="chrome://global/skin/netError.css" type="text/css" media="all"/>
  163. <link rel="stylesheet" href="chrome://communicator/skin/aboutSessionRestore.css" type="text/css" media="all"/>
  164. <link rel="icon" type="image/png" href="chrome://global/skin/icons/question-16.png"/>
  165. <script src="chrome://communicator/content/aboutSessionRestore.js"/>
  166. </head>
  167. - <body dir="&locale.dir;">
  168. + <body dir="ltr">
  169. <!-- PAGE CONTAINER (for styling purposes only) -->
  170. <div id="errorPageContainer">
  171. <!-- Error Title -->
  172. <div id="errorTitle">
  173. <h1 id="errorTitleText">&restorepage.pagetitle;</h1>
  174. </div>