Closed Bug 494940 Opened 16 years ago Closed 16 years ago

Open mixed content dialog asynchronously

Categories

(Core Graveyard :: Security: UI, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: johnath, Assigned: smaug)

References

(Blocks 1 open bug)

Details

(Keywords: fixed1.9.1)

Attachments

(2 files)

+++ This bug was initially created as a clone of Bug #494590 +++ We should still fix bug 494590 for real, but in the meantime, the suggestion came up to launch this particular dialog asynchronously, to avoid getting hung up in a synchronous load that results in the dialog not having any content.
Attached patch async alert (deleted) — Splinter Review
Assignee: kaie → Olli.Pettay
Attachment #379739 - Flags: review?(bzbarsky)
Flags: blocking1.9.1?
Attachment #379739 - Flags: review?(bzbarsky) → review+
Comment on attachment 379739 [details] [diff] [review] async alert Looks fine, but I'd rather not use the optional arg. Just make it required and fix callers, ok? Also, get kai to review (at least post-landing)?
Attachment #379739 - Flags: review?(kaie)
Attached patch +comments (deleted) — Splinter Review
Flags: blocking1.9.1? → blocking1.9.1+
As per comment 2, can we get this on mozilla-central at least and wait for Kaie's post-facto review before mozilla-1.9.1?
Ok, landing ASAP
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment on attachment 379835 [details] [diff] [review] +comments r=kaie I assume NS_DispatchToCurrentThread will AddRef and the event dispatcher will Release, so the allocated nsAsyncAlert object will get freed properly.
Attachment #379835 - Flags: review+
Attachment #379739 - Flags: review?(kaie)
(In reply to comment #7) > I assume NS_DispatchToCurrentThread > will AddRef and the event dispatcher will Release, so the allocated > nsAsyncAlert object will get freed properly. Yup.
Right now this fix is fine, because we aren't able to cancel the load anyway (which is offered by the dialog, but the warning comes too late). We still need to work on bug 62178 in order to notify prior to loading or block-or-allow mixed content by default.
Blocks: 62178
Right. By the time we can cancel from this dialog, we hope to have made all the necko access in Gecko happen at safe times. This fix is strictly a for-now fix.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: