WIP-1650630-2-port-1603712-suite.patch 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # HG changeset patch
  2. # User Frank-Rainer Grahl <frgrahl@gmx.net>
  3. # Date 1593949764 -7200
  4. # Parent 5796e1ee890dbfe596df945ae2370580fc015596
  5. Bug 1650630 - Part 2: Remove usage of intl.charset.detector.ng.enabled from SeaMonkey. r=IanN
  6. diff --git a/suite/base/content/charsetOverlay.xhtml b/suite/base/content/charsetOverlay.xhtml
  7. --- a/suite/base/content/charsetOverlay.xhtml
  8. +++ b/suite/base/content/charsetOverlay.xhtml
  9. @@ -1,22 +1,21 @@
  10. <?xml version="1.0"?>
  11. <!-- This Source Code Form is subject to the terms of the Mozilla Public
  12. - License, v. 2.0. If a copy of the MPL was not distributed with this
  13. - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
  14. <!DOCTYPE overlay SYSTEM "chrome://global/locale/charsetMenu.dtd">
  15. <overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  16. <script>
  17. - ChromeUtils.import("resource://gre/modules/CharsetMenu.jsm");
  18. + var {CharsetMenu} =
  19. + ChromeUtils.import("resource://gre/modules/CharsetMenu.jsm");
  20. - function UpdateCharsetMenu(aCharset, aNode)
  21. - {
  22. - var bundle = document.getElementById("charsetBundle");
  23. - CharsetMenu.update(aNode, bundle.getString(aCharset.toLowerCase()));
  24. + function UpdateCharsetMenu(aCharset, aNode) {
  25. + CharsetMenu.update(aNode, aCharset);
  26. }
  27. </script>
  28. <menu id="charsetMenu"
  29. label="&charsetMenu2.label;"
  30. accesskey="&charsetMenu2.accesskey;">
  31. <menupopup id="charsetPopup"
  32. onpopupshowing="CharsetMenu.build(this, true, this.getAttribute('detectors') != 'false');"/>
  33. diff --git a/suite/mailnews/components/prefs/content/pref-character_encoding.js b/suite/mailnews/components/prefs/content/pref-character_encoding.js
  34. --- a/suite/mailnews/components/prefs/content/pref-character_encoding.js
  35. +++ b/suite/mailnews/components/prefs/content/pref-character_encoding.js
  36. @@ -18,16 +18,18 @@ function PrefChanged(aPref)
  37. if (updatingPref)
  38. return;
  39. var id = aPref.id.substr(9, 4) + "DefaultCharsetList";
  40. var menulist = document.getElementById(id);
  41. if (!aPref.hasUserValue)
  42. menulist.selectedIndex = 0;
  43. else {
  44. + // FIX ME
  45. + // charsetBundle does no longer exists as of bug 1650630
  46. var bundle = document.getElementById("charsetBundle");
  47. menulist.value = bundle.getString(aPref.value.toLowerCase());
  48. }
  49. }
  50. function UpdatePref(aMenulist)
  51. {
  52. updatingPref = true;