Frank-Rainer Grahl 1 week ago
parent
commit
fca33184b3

+ 0 - 65
comm-release/patches/1911830-helpInfo-25320.patch

@@ -1,65 +0,0 @@
-# HG changeset patch
-# User Ian Neal <iann_cvs@blueyonder.co.uk>
-# Date 1722958008 -3600
-# Parent  fa4d9d4f6f3df3fc545d7409fb9819fae7de93bd
-Bug 1911830 - helpInfo should reflect correct name of Preferences or Options for platform. r=frg a=frg
-
-diff --git a/suite/browser/nsBrowserContentHandler.js b/suite/browser/nsBrowserContentHandler.js
---- a/suite/browser/nsBrowserContentHandler.js
-+++ b/suite/browser/nsBrowserContentHandler.js
-@@ -1,13 +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/. */
- 
- ChromeUtils.import("resource://gre/modules/Services.jsm");
-+ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
- 
- const nsISupports             = Ci.nsISupports;
- const nsIBrowserDOMWindow     = Ci.nsIBrowserDOMWindow;
- const nsIBrowserHistory       = Ci.nsIBrowserHistory;
- const nsIBrowserSearchService = Ci.nsIBrowserSearchService;
- const nsIChannel              = Ci.nsIChannel;
- const nsICommandLine          = Ci.nsICommandLine;
- const nsICommandLineHandler   = Ci.nsICommandLineHandler;
-@@ -524,24 +525,32 @@ var nsBrowserContentHandler = {
-         if (cmdLine.length != flagIdx + 2 ||
-             testExpr.test(cmdLine.getArgument(flagIdx + 1)))
-           throw Cr.NS_ERROR_ABORT;
-         cmdLine.handleFlag("osint", false);
-       }
-     });
-   },
- 
--  helpInfo: "  -browser <url>     Open a browser window.\n" +
--            "  -private <url>     Open a private window.\n" +
--            "  -new-window <url>  Open <url> in a new browser window.\n" +
--            "  -new-tab <url>     Open <url> in a new browser tab.\n" +
--            "  -url <url>         Open the specified url.\n" +
--            "  -chrome <url>      Open the specified chrome.\n" +
--            "  -search <term>     Search <term> with your default search engine.\n" +
--            "  -preferences       Open Preferences dialog.\n",
-+  get helpInfo() {
-+    let info =
-+              "  -browser <url>     Open a browser window.\n" +
-+              "  -private <url>     Open a private window.\n" +
-+              "  -new-window <url>  Open <url> in a new browser window.\n" +
-+              "  -new-tab <url>     Open <url> in a new browser tab.\n" +
-+              "  -url <url>         Open the specified url.\n" +
-+              "  -chrome <url>      Open the specified chrome.\n" +
-+              "  -search <term>     Search <term> with your default search engine.\n";
-+    if (AppConstants.platform == "win") {
-+      info += "  --preferences      Open Options dialog.\n";
-+    } else {
-+      info += "  --preferences      Open Preferences dialog.\n";
-+    }
-+    return info;
-+  },
- 
-   /* nsICommandLine */
-   length: 1,
- 
-   getArgument: function getArgument(index) {
-     if (index == 0)
-       return this.currentArgument;
- 

+ 38 - 5
comm-release/patches/1911841-browserChromeURL-25320.patch → comm-release/patches/1911841-browserChromeURL-1_1-25320.patch

@@ -1,7 +1,7 @@
 # HG changeset patch
 # User Ian Neal <iann_cvs@blueyonder.co.uk>
 # Date 1722958930 -3600
-# Parent  10570b925d980dda342217912d387f232748e153
+# Parent  5d3bb4ba92fc8c0972f812828bbc589d29541dbd
 Bug 1911841 - Port changes needed from |Bug 1476333 - Consolidate the ways that we reference "browser.xul" across the tree| to SeaMonkey. r=frg a=frg
 
 diff --git a/suite/app/profile/suite-prefs.js b/suite/app/profile/suite-prefs.js
@@ -28,7 +28,25 @@ diff --git a/suite/app/profile/suite-prefs.js b/suite/app/profile/suite-prefs.js
 diff --git a/suite/base/content/utilityOverlay.js b/suite/base/content/utilityOverlay.js
 --- a/suite/base/content/utilityOverlay.js
 +++ b/suite/base/content/utilityOverlay.js
-@@ -209,24 +209,17 @@ function setOfflineUI(offline)
+@@ -5,16 +5,17 @@
+ 
+ /**
+  * Communicator Shared Utility Library
+  * for shared application glue for the Communicator suite of applications
+  **/
+ 
+ ChromeUtils.import("resource://gre/modules/Services.jsm");
+ ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
++ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
+ 
+ XPCOMUtils.defineLazyModuleGetters(this, {
+   BrowserUtils: "resource://gre/modules/BrowserUtils.jsm",
+   PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.jsm",
+   RecentWindow: "resource:///modules/RecentWindow.jsm",
+ });
+ 
+ // XPCOMUtils.defineLazyGetter(this, "Weave", function() {
+@@ -209,24 +210,17 @@ function setOfflineUI(offline)
        broadcaster.removeAttribute("offline");
        broadcaster.removeAttribute("checked");
        panel.setAttribute("context", "networkProperties");
@@ -57,7 +75,22 @@ diff --git a/suite/base/content/utilityOverlay.js b/suite/base/content/utilityOv
 diff --git a/suite/browser/nsBrowserContentHandler.js b/suite/browser/nsBrowserContentHandler.js
 --- a/suite/browser/nsBrowserContentHandler.js
 +++ b/suite/browser/nsBrowserContentHandler.js
-@@ -165,21 +165,17 @@ function openPreferences()
+@@ -1,13 +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/. */
+ 
+ ChromeUtils.import("resource://gre/modules/Services.jsm");
++ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
+ 
+ const nsISupports             = Ci.nsISupports;
+ const nsIBrowserDOMWindow     = Ci.nsIBrowserDOMWindow;
+ const nsIBrowserHistory       = Ci.nsIBrowserHistory;
+ const nsIBrowserSearchService = Ci.nsIBrowserSearchService;
+ const nsIChannel              = Ci.nsIChannel;
+ const nsICommandLine          = Ci.nsICommandLine;
+ const nsICommandLineHandler   = Ci.nsICommandLineHandler;
+@@ -164,21 +165,17 @@ function openPreferences()
      win.focus();
    else
      openWindow(null, "chrome://communicator/content/pref/preferences.xul",
@@ -133,7 +166,7 @@ diff --git a/suite/components/nsSuiteGlue.js b/suite/components/nsSuiteGlue.js
 diff --git a/suite/components/places/PlacesUIUtils.jsm b/suite/components/places/PlacesUIUtils.jsm
 --- a/suite/components/places/PlacesUIUtils.jsm
 +++ b/suite/components/places/PlacesUIUtils.jsm
-@@ -914,17 +914,17 @@ var PlacesUIUtils = {
+@@ -916,17 +916,17 @@ var PlacesUIUtils = {
                  browserWindow.whereToOpenLink(aEvent, false, true) : "window";
      if (where == "window") {
        // There is no browser window open, thus open a new one.
@@ -241,7 +274,7 @@ diff --git a/suite/components/sidebar/content/sidebarOverlay.js b/suite/componen
 diff --git a/suite/confvars.sh b/suite/confvars.sh
 --- a/suite/confvars.sh
 +++ b/suite/confvars.sh
-@@ -7,16 +7,18 @@ MOZ_APP_BASENAME=SeaMonkey
+@@ -6,16 +6,18 @@
  MOZ_APP_VENDOR=Mozilla
  MOZ_APP_NAME=seamonkey
  MOZ_APP_DISPLAYNAME=SeaMonkey

+ 1 - 2
comm-release/patches/series

@@ -2179,8 +2179,7 @@ WIP-521861-Account_Creation.patch
 WIP-9999999-lintglobals.patch
 WIP-1687385-mozconfigs-v2_0-253.patch
 WIP-1070492-composer-findbar-v3-25319.patch
-1911830-helpInfo-25320.patch
-1911841-browserChromeURL-25320.patch
+1911841-browserChromeURL-1_1-25320.patch
 1911844-boxObject-utilityOverlay-25320.patch
 1911845-tabbrowser-dragOver-25320.patch
 1911847-tabbrowser-boxObject-25320.patch

+ 114 - 0
mozilla-release/patches/1476333-fix-25320.patch

@@ -0,0 +1,114 @@
+# HG changeset patch
+# User Frank-Rainer Grahl <frgrahl@gmx.net>
+# Date 1729014988 -7200
+# Parent  6090841a4d33cd38ebeba5c6a6888fe02d0d1812
+Bug 1911841 - To be added to 2.53 Bug 1476333 patch after brief testing. r=none a=none
+
+diff --git a/addon-sdk/source/lib/sdk/window/utils.js b/addon-sdk/source/lib/sdk/window/utils.js
+--- a/addon-sdk/source/lib/sdk/window/utils.js
++++ b/addon-sdk/source/lib/sdk/window/utils.js
+@@ -6,35 +6,36 @@
+ module.metadata = {
+   'stability': 'unstable'
+ };
+ 
+ const { Cc, Ci } = require('chrome');
+ lazyRequireModule(this, "../util/array", "array");
+ const { defer } = require('sdk/core/promise');
+ const { dispatcher } = require("../util/dispatcher");
++const { AppConstants } = require("resource://gre/modules/AppConstants.jsm");
+ 
+ const windowWatcher = Cc['@mozilla.org/embedcomp/window-watcher;1'].
+                        getService(Ci.nsIWindowWatcher);
+ const appShellService = Cc['@mozilla.org/appshell/appShellService;1'].
+                         getService(Ci.nsIAppShellService);
+ const WM = Cc['@mozilla.org/appshell/window-mediator;1'].
+            getService(Ci.nsIWindowMediator);
+ const io = Cc['@mozilla.org/network/io-service;1'].
+            getService(Ci.nsIIOService);
+ const FM = Cc["@mozilla.org/focus-manager;1"].
+               getService(Ci.nsIFocusManager);
+ 
+ const XUL_NS = 'http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul';
+ 
+ const prefs = require("../preferences/service");
+-const BROWSER = 'navigator:browser',
+-      URI_BROWSER = prefs.get('browser.chromeURL', null),
+-      NAME = '_blank',
+-      FEATURES = 'chrome,all,dialog=no,non-private';
++const BROWSER = 'navigator:browser';
++const URI_BROWSER = AppConstants.BROWSER_CHROME_URL;
++const NAME = '_blank':
++const FEATURES = 'chrome,all,dialog=no,non-private';
+ 
+ function isWindowPrivate(win) {
+   if (!win)
+     return false;
+ 
+   // if the pbService is undefined, the PrivateBrowsingUtils.jsm is available,
+   // and the app is Firefox, then assume per-window private browsing is
+   // enabled.
+diff --git a/toolkit/components/xulstore/tests/xpcshell/test_XULStore.js b/toolkit/components/xulstore/tests/xpcshell/test_XULStore.js
+--- a/toolkit/components/xulstore/tests/xpcshell/test_XULStore.js
++++ b/toolkit/components/xulstore/tests/xpcshell/test_XULStore.js
+@@ -1,19 +1,20 @@
+ /* Any copyright is dedicated to the Public Domain.
+    http://creativecommons.org/publicdomain/zero/1.0/◦
+ */
+ 
+ "use strict"
+ 
+ ChromeUtils.import("resource://gre/modules/Services.jsm");
+-ChromeUtils.import("resource://gre/modules/osfile.jsm")
++ChromeUtils.import("resource://gre/modules/osfile.jsm");
++ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
+ 
+ var XULStore = null;
+-var browserURI = "chrome://browser/content/browser.xul";
++var browserURI = AppConstants.BROWSER_CHROME_URL;
+ var aboutURI = "about:config";
+ 
+ function run_test() {
+   do_get_profile();
+   run_next_test();
+ }
+ 
+ function checkValue(uri, id, attr, reference) {
+diff --git a/toolkit/mozapps/extensions/test/browser/browser_openDialog.js b/toolkit/mozapps/extensions/test/browser/browser_openDialog.js
+--- a/toolkit/mozapps/extensions/test/browser/browser_openDialog.js
++++ b/toolkit/mozapps/extensions/test/browser/browser_openDialog.js
+@@ -1,14 +1,15 @@
+ /* Any copyright is dedicated to the Public Domain.
+  * http://creativecommons.org/publicdomain/zero/1.0/
+  */
+ 
+ // Tests the dialog open by the Options button for addons that provide a
+ // custom chrome-like protocol for optionsURL.
++ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
+ 
+ var CustomChromeProtocol = {
+   scheme: "khrome",
+   defaultPort: -1,
+   protocolFlags: Ci.nsIProtocolHandler.URI_DANGEROUS_TO_LOAD |
+                  Ci.nsIProtocolHandler.URI_IS_LOCAL_RESOURCE |
+                  Ci.nsIProtocolHandler.URI_NORELATIVE |
+                  Ci.nsIProtocolHandler.URI_NOAUTH,
+@@ -121,17 +122,17 @@ function test() {
+           });
+           break;
+         case "domwindowopened":
+           let win = aSubject.QueryInterface(Ci.nsIDOMEventTarget);
+           waitForFocus(function() {
+             // If the openDialog privileges are wrong a new browser window
+             // will open, let the test proceed (and fail) rather than timeout.
+             if (win.location != currentAddon.optionsURL &&
+-                win.location != "chrome://browser/content/browser.xul")
++                win.location != AppConstants.BROWSER_CHROME_URL)
+               return;
+ 
+             is(win.location, currentAddon.optionsURL,
+                "The correct addon pref window should have opened");
+ 
+             let chromeFlags = win.QueryInterface(Ci.nsIInterfaceRequestor).
+                                   getInterface(Ci.nsIWebNavigation).
+                                   QueryInterface(Ci.nsIDocShellTreeItem).treeOwner.

+ 1 - 0
mozilla-release/patches/series

@@ -7688,3 +7688,4 @@ TOP-NOBUG-1712804fix-25320.patch
 1862395-incorrect-version-resistfingerprinting-v2-25320.patch
 1737436-use-mozilla-compat-version-define-25320.patch
 9999999-removebinary-25320.patch
+1476333-fix-25320.patch