mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 856479 remove dead code missed in addon manager work. r=markh
This commit is contained in:
parent
4d65fb268e
commit
b378be51ed
@ -317,26 +317,6 @@ SocialUI = {
|
||||
}
|
||||
},
|
||||
|
||||
disableWithConfirmation: function SocialUI_disableWithConfirmation() {
|
||||
let brandShortName = document.getElementById("bundle_brand").getString("brandShortName");
|
||||
let dialogTitle = gNavigatorBundle.getFormattedString("social.remove.confirmationOK",
|
||||
[Social.provider.name]);
|
||||
let text = gNavigatorBundle.getFormattedString("social.remove.confirmationLabel",
|
||||
[Social.provider.name, brandShortName]);
|
||||
let okButtonText = dialogTitle;
|
||||
|
||||
let ps = Services.prompt;
|
||||
let flags = ps.BUTTON_TITLE_IS_STRING * ps.BUTTON_POS_0 +
|
||||
ps.BUTTON_TITLE_CANCEL * ps.BUTTON_POS_1 +
|
||||
ps.BUTTON_POS_0_DEFAULT;
|
||||
|
||||
let confirmationIndex = ps.confirmEx(null, dialogTitle, text, flags,
|
||||
okButtonText, null, null, null, {});
|
||||
if (confirmationIndex == 0) {
|
||||
Social.deactivateFromOrigin(Social.provider.origin);
|
||||
}
|
||||
},
|
||||
|
||||
get _chromeless() {
|
||||
// Is this a popup window that doesn't want chrome shown?
|
||||
let docElem = document.documentElement;
|
||||
|
Loading…
Reference in New Issue
Block a user