summaryrefslogtreecommitdiffstats
path: root/mobile/android/components/BrowserCLH.js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-04-23 15:32:23 -0400
committerMatt A. Tobin <email@mattatobin.com>2019-04-23 15:32:23 -0400
commitabe80cc31d5a40ebed743085011fbcda0c1a9a10 (patch)
treefb3762f06b84745b182af281abb107b95a9fcf01 /mobile/android/components/BrowserCLH.js
parent63295d0087eb58a6eb34cad324c4c53d1b220491 (diff)
downloadUXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar
UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar.gz
UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar.lz
UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar.xz
UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.zip
Issue #1053 - Drop support Android and remove Fennec - Part 1a: Remove mobile/android
Diffstat (limited to 'mobile/android/components/BrowserCLH.js')
-rw-r--r--mobile/android/components/BrowserCLH.js47
1 files changed, 0 insertions, 47 deletions
diff --git a/mobile/android/components/BrowserCLH.js b/mobile/android/components/BrowserCLH.js
deleted file mode 100644
index 4cbf03554..000000000
--- a/mobile/android/components/BrowserCLH.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/* 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/. */
-
-const Cc = Components.classes;
-const Ci = Components.interfaces;
-const Cu = Components.utils;
-
-Cu.import("resource://gre/modules/XPCOMUtils.jsm");
-Cu.import("resource://gre/modules/Services.jsm");
-
-function BrowserCLH() {}
-
-BrowserCLH.prototype = {
- /**
- * Register resource://android as the APK root.
- *
- * Consumers can access Android assets using resource://android/assets/FILENAME.
- */
- setResourceSubstitutions: function () {
- let registry = Cc["@mozilla.org/chrome/chrome-registry;1"].getService(Ci["nsIChromeRegistry"]);
- // Like jar:jar:file:///data/app/org.mozilla.fennec-2.apk!/assets/omni.ja!/chrome/chrome/content/aboutHome.xhtml
- let url = registry.convertChromeURL(Services.io.newURI("chrome://browser/content/aboutHome.xhtml", null, null)).spec;
- // Like jar:file:///data/app/org.mozilla.fennec-2.apk!/
- url = url.substring(4, url.indexOf("!/") + 2);
-
- let protocolHandler = Services.io.getProtocolHandler("resource").QueryInterface(Ci.nsIResProtocolHandler);
- protocolHandler.setSubstitution("android", Services.io.newURI(url, null, null));
- },
-
- observe: function (subject, topic, data) {
- switch (topic) {
- case "app-startup":
- this.setResourceSubstitutions();
- break;
- }
- },
-
- // QI
- QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver]),
-
- // XPCOMUtils factory
- classID: Components.ID("{be623d20-d305-11de-8a39-0800200c9a66}")
-};
-
-var components = [ BrowserCLH ];
-this.NSGetFactory = XPCOMUtils.generateNSGetFactory(components);