Skip to content

Commit

Permalink
Bug 1361578 - Remove SelfSupport, since it is obsoleted by shield-rec…
Browse files Browse the repository at this point in the history
…ipe-client. r=Gijs

MozReview-Commit-ID: 1FCqNa5wxZk
  • Loading branch information
Mike Cooper committed May 19, 2017
1 parent 52ca217 commit 579c117
Show file tree
Hide file tree
Showing 17 changed files with 3 additions and 591 deletions.
1 change: 0 additions & 1 deletion addon-sdk/source/python-lib/cuddlefish/prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
'browser.safebrowsing.provider.google.gethashURL': 'http://localhost/safebrowsing-dummy/gethash',
'browser.safebrowsing.provider.google4.updateURL': 'http://localhost/safebrowsing4-dummy/update',
'browser.safebrowsing.provider.google4.gethashURL': 'http://localhost/safebrowsing4-dummy/gethash',
'browser.selfsupport.url': 'https://localhost/selfsupport-dummy',
'browser.safebrowsing.provider.mozilla.gethashURL': 'http://localhost/safebrowsing-dummy/gethash',
'browser.safebrowsing.provider.mozilla.updateURL': 'http://localhost/safebrowsing-dummy/update',

Expand Down
6 changes: 0 additions & 6 deletions addon-sdk/source/test/leak/leak-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

const { Cu, Ci } = require("chrome");
const { Services } = Cu.import("resource://gre/modules/Services.jsm", {});
const { SelfSupportBackend } = Cu.import("resource:///modules/SelfSupportBackend.jsm", {});
const Startup = Cu.import("resource://gre/modules/sdk/system/Startup.js", {}).exports;

// Adapted from the SpecialPowers.exactGC() code. We don't have a
Expand Down Expand Up @@ -38,11 +37,6 @@ function gc() {
// object then it will be unloaded after the memory measurements.
exports.asyncWindowLeakTest = function*(assert, asyncTestFunc) {

// SelfSupportBackend periodically tries to open windows. This can
// mess up our window leak detection below, so turn it off.
if (SelfSupportBackend._log)
SelfSupportBackend.uninit();

// Wait for the browser to finish loading.
yield Startup.onceInitialized;

Expand Down
1 change: 0 additions & 1 deletion addon-sdk/source/test/preferences/no-connections.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"browser.safebrowsing.provider.google4.updateURL": "http://localhost/safebrowsing4-dummy/update",
"browser.safebrowsing.provider.google4.gethashURL": "http://localhost/safebrowsing4-dummy/gethash",
"browser.safebrowsing.provider.google4.reportURL": "http://localhost/safebrowsing4-dummy/malwarereport",
"browser.selfsupport.url": "https://localhost/selfsupport-dummy",
"browser.safebrowsing.provider.mozilla.gethashURL": "http://localhost/safebrowsing-dummy/gethash",
"browser.safebrowsing.provider.mozilla.updateURL": "http://localhost/safebrowsing-dummy/update",
"browser.newtabpage.directory.source": "data:application/json,{'jetpack':1}",
Expand Down
1 change: 0 additions & 1 deletion browser/app/permissions
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

# UITour
origin uitour 1 https://www.mozilla.org
origin uitour 1 https://self-repair.mozilla.org
origin uitour 1 https://support.mozilla.org
origin uitour 1 https://addons.mozilla.org
origin uitour 1 https://discovery.addons.mozilla.org
Expand Down
2 changes: 0 additions & 2 deletions browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,6 @@ pref("browser.rights.3.shown", false);
pref("browser.rights.override", true);
#endif

pref("browser.selfsupport.url", "https://self-repair.mozilla.org/%LOCALE%/repair");

pref("browser.sessionstore.resume_from_crash", true);
pref("browser.sessionstore.resume_session_once", false);

Expand Down
21 changes: 1 addition & 20 deletions browser/components/nsBrowserGlue.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ XPCOMUtils.defineLazyGetter(this, "WeaveService", () =>
PageThumbs:false, PdfJs:false, PermissionUI:false, PlacesBackups:false,
PlacesUtils:false, PluralForm:false, PrivateBrowsingUtils:false,
ProcessHangMonitor:false, ReaderParent:false, RecentWindow:false,
RemotePrompt:false, SelfSupportBackend:false, SessionStore:false,
RemotePrompt:false, SessionStore:false,
ShellService:false, SimpleServiceDiscovery:false, TabCrashHandler:false,
Task:false, UITour:false, WebChannel:false,
WindowsRegistry:false, webrtcUI:false, UserAgentOverrides: false */
Expand Down Expand Up @@ -83,7 +83,6 @@ let initializedModules = {};
["ReaderParent", "resource:///modules/ReaderParent.jsm"],
["RecentWindow", "resource:///modules/RecentWindow.jsm"],
["RemotePrompt", "resource:///modules/RemotePrompt.jsm"],
["SelfSupportBackend", "resource:///modules/SelfSupportBackend.jsm", "init"],
["SessionStore", "resource:///modules/sessionstore/SessionStore.jsm"],
["ShellService", "resource:///modules/ShellService.jsm"],
["SimpleServiceDiscovery", "resource://gre/modules/SimpleServiceDiscovery.jsm"],
Expand Down Expand Up @@ -126,10 +125,6 @@ XPCOMUtils.defineLazyGetter(this, "gBrowserBundle", function() {
const global = this;

const listeners = {
observers: {
"sessionstore-windows-restored": ["SelfSupportBackend"],
},

ppmm: {
// PLEASE KEEP THIS LIST IN SYNC WITH THE LISTENERS ADDED IN ContentPrefServiceParent.init
"ContentPrefs:FunctionCall": ["ContentPrefServiceParent"],
Expand Down Expand Up @@ -171,16 +166,6 @@ const listeners = {
"webrtc:UpdateBrowserIndicators": ["webrtcUI"],
},

observe(subject, topic, data) {
for (let module of this.observers[topic]) {
try {
this[module].observe(subject, topic, data);
} catch (e) {
Cu.reportError(e);
}
}
},

receiveMessage(modules, data) {
let val;
for (let module of modules[data.name]) {
Expand All @@ -194,10 +179,6 @@ const listeners = {
},

init() {
for (let observer of Object.keys(this.observers)) {
Services.obs.addObserver(this, observer);
}

let receiveMessageMM = this.receiveMessage.bind(this, this.mm);
for (let message of Object.keys(this.mm)) {
Services.mm.addMessageListener(message, receiveMessageMM);
Expand Down
Loading

0 comments on commit 579c117

Please sign in to comment.