Bug 1587748 - Port bug 1580962 - For extensions that can't be removed, show message and link to SUMO; rs=bustage-fix DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Sat, 12 Oct 2019 12:04:07 +1300
changeset 27901 ec8f0ff9bd9e37580aa3a9f533c7b2f952d271d4
parent 27900 080bed041a01c876b8330a87cd3dab526b1f7dc9
child 27902 0393c0d6beda736f7cc0cf340af099d8502bbc99
push id16546
push usergeoff@darktrojan.net
push dateFri, 11 Oct 2019 23:10:01 +0000
treeherdercomm-central@ec8f0ff9bd9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1587748, 1580962
Bug 1587748 - Port bug 1580962 - For extensions that can't be removed, show message and link to SUMO; rs=bustage-fix DONTBUILD
mail/components/enterprisepolicies/tests/browser/browser_policy_extensions.js
--- a/mail/components/enterprisepolicies/tests/browser/browser_policy_extensions.js
+++ b/mail/components/enterprisepolicies/tests/browser/browser_policy_extensions.js
@@ -14,17 +14,17 @@ async function isExtensionLocked(win, ad
     let doc = win.getHtmlBrowser().contentDocument;
     await win.htmlBrowserLoaded;
     return doc.querySelector(`addon-card[addon-id="${addonID}"]`);
   }, `Get addon-card for "${addonID}"`);
   let disableBtn = addonCard.querySelector(
     'panel-item[action="toggle-disabled"]'
   );
   let removeBtn = addonCard.querySelector('panel-item[action="remove"]');
-  ok(removeBtn.hidden, "Remove button should be hidden");
+  ok(removeBtn.disabled, "Remove button should be hidden");
   ok(disableBtn.hidden, "Disable button should be hidden");
 }
 
 add_task(async function test_addon_install() {
   let installPromise = wait_for_addon_install();
   await setupPolicyEngineWithJson({
     policies: {
       Extensions: {