Bug 1644930 - Fix failure in browser_policy_disable_developer_tools.js on Windows. r+a=mkmelin THUNDERBIRD_78_0b2_BUILD1 THUNDERBIRD_78_0b2_RELEASE
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 16 Jun 2020 18:31:30 +1200
changeset 39404 dae8830af25a8a0a0879e5e5a82a4128999a2be6
parent 39403 c8d94a2edc42e0e8d552f2a71b2cde469dc10f87
child 39405 d4b19baadf1788d0332e38e7f44942de594f3955
push id402
push userclokep@gmail.com
push dateMon, 29 Jun 2020 20:48:04 +0000
bugs1644930
Bug 1644930 - Fix failure in browser_policy_disable_developer_tools.js on Windows. r+a=mkmelin
mail/components/enterprisepolicies/Policies.jsm
--- a/mail/components/enterprisepolicies/Policies.jsm
+++ b/mail/components/enterprisepolicies/Policies.jsm
@@ -936,16 +936,18 @@ function blockAboutPage(manager, feature
 
 let ChromeURLBlockPolicy = {
   shouldLoad(contentLocation, loadInfo, mimeTypeGuess) {
     let contentType = loadInfo.externalContentPolicyType;
     if (
       contentLocation.scheme == "chrome" &&
       contentType == Ci.nsIContentPolicy.TYPE_DOCUMENT &&
       loadInfo.loadingContext &&
+      loadInfo.loadingContext.baseURI ==
+        "chrome://messenger/content/messenger.xhtml" &&
       contentLocation.host != "mochitests" &&
       contentLocation.host != "devtools"
     ) {
       return Ci.nsIContentPolicy.REJECT_REQUEST;
     }
     return Ci.nsIContentPolicy.ACCEPT;
   },
   shouldProcess(contentLocation, loadInfo, mimeTypeGuess) {