Closed Bug 1672995 Opened 4 years ago Closed 4 years ago

Port bug 1559181 to Thunderbird - Loading chrome pages blocked by about: policies never complete

Categories

(Thunderbird :: Upstream Synchronization, task, P1)

Tracking

(thunderbird_esr78 unaffected, thunderbird83 unaffected)

RESOLVED FIXED
84 Branch
Tracking Status
thunderbird_esr78 --- unaffected
thunderbird83 --- unaffected

People

(Reporter: mkmelin, Assigned: mkaply)

References

Details

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1559181 +++

This is at least making the comm/mail/components/enterprisepolicies/tests/browser/browser_policy_block_about.js test fail

Sorry about that. I have a local Thunderbird build. I'll take a look.

Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Attached patch Patch for about (obsolete) — Splinter Review

I think this will do it, but thunderbird tests aren't running locally for me.

There's a new function on nsIAboutModule that retrieves the chrome URI so we can block it in addition to the about: version.

The test itself doesn't need much change (although it can be rewritten to test the chrome URLs as well)

Attached patch thunderbird.diffSplinter Review

I did some addititions/modifications and now the test passes.

I don't quite understand why Firefox don't need to have a PromiseTestUtils.expectUncaughtRejection call for the blocked requests. But maybe it's there somewhere and I'm just not seeing it... Seems correct that it should be there though and the test doesn't pass without it.

Attachment #9183487 - Attachment is obsolete: true
Attachment #9183548 - Flags: review?(mozilla)

Comment on attachment 9183548 [details] [diff] [review]
thunderbird.diff

Thanks for correcting my mistakes

LGTM.

I wonder if one of those about pages doesn't explicitly in Thunderbird?

Either way, you're right, better safe than sorry.

Attachment #9183548 - Flags: review?(mozilla) → review+

(In reply to Mike Kaply [:mkaply] from comment #4)

Thanks for correcting my mistakes

Thanks for the initial patch! :)

I wonder if one of those about pages doesn't explicitly in Thunderbird?

I think some word is missing here? What did you mean to ask?

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ec2929c05e02
Port bug 1559181 to Thunderbird - Loading chrome pages blocked by about: policies never complete. r=mkaply

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: