Browse Source

about:seamonkey

Bill Gianopoulos 6 months ago
parent
commit
b5383dad11

+ 137 - 0
comm-release/patches/WIP-NOBUG-implement-about-seamonkey-comm.patch

@@ -0,0 +1,137 @@
+# HG changeset patch
+# User Bill Gianopoulos <wgianopoulos@gmail.com>
+# Date 1712503368 0
+NOBUG - Implement about:seamonkey.
+
+diff --git a/suite/base/content/aboutSeaMonkey.xhtml b/suite/base/content/aboutSeaMonkey.xhtml
+new file mode 100644
+--- /dev/null
++++ b/suite/base/content/aboutSeaMonkey.xhtml
+@@ -0,0 +1,66 @@
++<!DOCTYPE html
++[
++  <!ENTITY % seamonkeyDTD SYSTEM "chrome://communicator/locale/aboutSeaMonkey.dtd" >
++  %seamonkeyDTD;
++  <!ENTITY % directionDTD SYSTEM "chrome://global/locale/global.dtd" >
++  %directionDTD;
++]>
++
++<!-- 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/. -->
++
++<html xmlns="http://www.w3.org/1999/xhtml">
++  <head>
++    <meta charset='utf-8' />
++    <title>&seamonkey.title.1.30;</title>
++
++<style>
++html {
++  background-color: #33CC99;
++  color: white;
++  font-style: italic;
++  text-rendering: optimizeLegibility;
++  min-height: 100%;
++}
++
++#moztext {
++  margin-top: 15%;
++  font-size: 1.1em;
++  font-family: serif;
++  text-align: center;
++  line-height: 1.5;
++}
++
++#from {
++  font-size: 1.95em;
++  font-family: serif;
++  text-align: right;
++}
++
++em {
++  font-size: 1.3em;
++  line-height: 0;
++}
++
++a {
++  text-decoration: none;
++  color: white;
++}
++</style>
++</head>
++
++<body dir="&locale.dir;">
++
++<section>
++  <p id="moztext">
++  &seamonkey.quote.1.30;
++  </p>
++
++  <p id="from">
++  &seamonkey.from.1.30;
++  </p>
++</section>
++
++</body>
++</html>
+diff --git a/suite/base/jar.mn b/suite/base/jar.mn
+--- a/suite/base/jar.mn
++++ b/suite/base/jar.mn
+@@ -51,16 +51,17 @@ comm.jar:
+ % style about:addons chrome://communicator/content/extensionsOverlay.css
+ % style chrome://mozapps/content/extensions/extensions.xul chrome://communicator/content/extensionsOverlay.css
+    content/communicator/about.js                                    (content/about.js)
+    content/communicator/about.xhtml                                 (content/about.xhtml)
+    content/communicator/aboutLife.xhtml                             (content/aboutLife.xhtml)
+    content/communicator/aboutPrivateBrowsing.css                    (content/aboutPrivateBrowsing.css)
+    content/communicator/aboutPrivateBrowsing.js                     (content/aboutPrivateBrowsing.js)
+    content/communicator/aboutPrivateBrowsing.xul                    (content/aboutPrivateBrowsing.xul)
++   ../../chrome/toolkit/content/global/aboutSeaMonkey.xhtml         (content/aboutSeaMonkey.xhtml)
+    content/communicator/askViewZoom.js                              (content/askViewZoom.js)
+    content/communicator/askViewZoom.xul                             (content/askViewZoom.xul)
+    content/communicator/blockedSite.js                              (content/blockedSite.js)
+    content/communicator/blockedSite.xhtml                           (content/blockedSite.xhtml)
+    content/communicator/buildconfig.css                             (content/buildconfig.css)
+ *  content/communicator/buildconfig.html                            (content/buildconfig.html)
+    content/communicator/certError.css                               (content/certError.css)
+    content/communicator/certError.js                                (content/certError.js)
+diff --git a/suite/locales/en-US/chrome/common/aboutSeaMonkey.dtd b/suite/locales/en-US/chrome/common/aboutSeaMonkey.dtd
+new file mode 100644
+--- /dev/null
++++ b/suite/locales/en-US/chrome/common/aboutSeaMonkey.dtd
+@@ -0,0 +1,14 @@
++<!-- 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/. -->
++
++<!ENTITY seamonkey.title.1.30
++'The Book of Mozilla, 1.30'>
++
++<!ENTITY seamonkey.quote.1.30
++'And the meek shall be made <em>legion</em>, their numbers shall be increased.
++<br/>The din of many keyboards like unto a great <em>storm</em> shall cover the earth and the
++followers of the beasteand Mammon shall <em>tremble</em>.'>
++
++<!ENTITY seamonkey.from.1.30
++'from <strong>The Book of SeaMonkey</strong>, 1:30'>
+diff --git a/suite/locales/jar.mn b/suite/locales/jar.mn
+--- a/suite/locales/jar.mn
++++ b/suite/locales/jar.mn
+@@ -44,16 +44,17 @@
+   locale/@AB_CD@/communicator/utilityOverlay.dtd                            (%chrome/common/utilityOverlay.dtd)
+   locale/@AB_CD@/communicator/utilityOverlay.properties                     (%chrome/common/utilityOverlay.properties)
+   locale/@AB_CD@/communicator/viewApplyThemeOverlay.dtd                     (%chrome/common/viewApplyThemeOverlay.dtd)
+   locale/@AB_CD@/communicator/viewApplyThemeOverlay.properties              (%chrome/common/viewApplyThemeOverlay.properties)
+   locale/@AB_CD@/communicator/viewZoomOverlay.dtd                           (%chrome/common/viewZoomOverlay.dtd)
+   locale/@AB_CD@/communicator/viewZoomOverlay.properties                    (%chrome/common/viewZoomOverlay.properties)
+   locale/@AB_CD@/communicator/about.dtd                                     (%chrome/common/about.dtd)
+   locale/@AB_CD@/communicator/aboutPrivateBrowsing.dtd                      (%chrome/common/aboutPrivateBrowsing.dtd)
++  locale/@AB_CD@/communicator/aboutSeaMonkey.dtd                            (%chrome/common/aboutSeaMonkey.dtd)
+   locale/@AB_CD@/communicator/aboutSessionRestore.dtd                       (%chrome/common/aboutSessionRestore.dtd)
+   locale/@AB_CD@/communicator/console/console.dtd                           (%chrome/common/console/console.dtd)
+   locale/@AB_CD@/communicator/console/console.properties                    (%chrome/common/console/console.properties)
+   locale/@AB_CD@/communicator/dataman/dataman.dtd                           (%chrome/common/dataman/dataman.dtd)
+   locale/@AB_CD@/communicator/dataman/dataman.properties                    (%chrome/common/dataman/dataman.properties)
+   locale/@AB_CD@/communicator/downloads/downloadmanager.dtd                 (%chrome/common/downloads/downloadmanager.dtd)
+   locale/@AB_CD@/communicator/downloads/downloadmanager.properties          (%chrome/common/downloads/downloadmanager.properties)
+   locale/@AB_CD@/communicator/downloads/progressDialog.dtd                  (%chrome/common/downloads/progressDialog.dtd)

+ 1 - 0
comm-release/patches/series

@@ -2151,3 +2151,4 @@ TOP-1872623-cancelbookmark-25319.patch
 815638-125a1.patch
 1885748-brokentab-25319.patch
 1446050-2-61a1.patch
+WIP-NOBUG-implement-about-seamonkey-comm.patch

+ 54 - 0
mozilla-release/patches/WIP-NOBUG-implement-about-seamonkey-mozilla.patch

@@ -0,0 +1,54 @@
+# HG changeset patch
+# User Bill Gianopoulos <wgianopoulos@gmail.com>
+# Date 1712676522 0
+NOBUG - Implement about:seamonkey.
+
+diff --git a/docshell/base/nsAboutRedirector.cpp b/docshell/base/nsAboutRedirector.cpp
+--- a/docshell/base/nsAboutRedirector.cpp
++++ b/docshell/base/nsAboutRedirector.cpp
+@@ -93,16 +97,22 @@ static const RedirEntry kRedirMap[] = {
+   {
+     "performance", "chrome://global/content/aboutPerformance.xhtml",
+     nsIAboutModule::ALLOW_SCRIPT
+   },
+   {
+     "plugins", "chrome://global/content/plugins.html",
+     nsIAboutModule::URI_MUST_LOAD_IN_CHILD
+   },
++#ifdef MOZ_SUITE
++  {
++    "seamonkey", "chrome://global/content/aboutSeaMonkey.xhtml",
++    nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT
++  },
++#endif
+   {
+     "serviceworkers", "chrome://global/content/aboutServiceWorkers.xhtml",
+     nsIAboutModule::URI_CAN_LOAD_IN_CHILD |
+     nsIAboutModule::URI_MUST_LOAD_IN_CHILD |
+     nsIAboutModule::ALLOW_SCRIPT
+   },
+ #ifndef ANDROID
+   {
+diff --git a/docshell/build/nsDocShellModule.cpp b/docshell/build/nsDocShellModule.cpp
+--- a/docshell/build/nsDocShellModule.cpp
++++ b/docshell/build/nsDocShellModule.cpp
+@@ -189,16 +189,19 @@ const mozilla::Module::ContractIDEntry k
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "logo", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "memory", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "mozilla", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "neterror", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "networking", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "newaddon", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "performance", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "plugins", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
++#ifdef MOZ_SUITE
++  { NS_ABOUT_MODULE_CONTRACTID_PREFIX "seamonkey", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
++#endif
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "serviceworkers", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+ #ifndef ANDROID
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "profiles", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+ #endif
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "srcdoc", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "support", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "telemetry", &kNS_ABOUT_REDIRECTOR_MODULE_CID },
+   { NS_ABOUT_MODULE_CONTRACTID_PREFIX "webrtc", &kNS_ABOUT_REDIRECTOR_MODULE_CID },

+ 1 - 0
mozilla-release/patches/series

@@ -6688,3 +6688,4 @@ TOP-NOBUG-REGEXP-44-irregexp-25318.patch
 TOP-NOBUG-REGEXP-45-final-25318.patch
 TOP-NOBUG-REGEXP-46-fixes-25318.patch
 WIP-NOBUG-seamonkey-credits.patch
+WIP-NOBUG-implement-about-seamonkey-mozilla.patch