Closed Bug 335586 Opened 18 years ago Closed 18 years ago

Content may prevent infobar to show up when a popup is blocked

Categories

(Toolkit :: Safe Browsing, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 1 open bug)

Details

(Keywords: fixed1.8.1, Whiteboard: [sg:dos])

Attachments

(3 files)

Content may listen DOMPopupBlocked event and call event.stopPropagation(). That prevents infobar to show.
Testcase and patch coming.

(Not sure if this is actually security sensitive, 
and what should be the component?)
Attached file testcase
Attached patch proposed patchSplinter Review
Attachment #219929 - Flags: review?(mconnor)
Attachment #219929 - Flags: approval-branch-1.8.1?(mconnor)
Comment on attachment 219929 [details] [diff] [review]
proposed patch

asking second review from Neil, for the xpfe part.
Attachment #219929 - Flags: superreview?(neil)
Attachment #219929 - Flags: superreview?(neil) → superreview+
Do you want to do this for the other undocument DOM events our chrome relies on too?  See https://bugzilla.mozilla.org/show_bug.cgi?id=286013#c0
Attachment #219929 - Flags: review?(mconnor)
Attachment #219929 - Flags: review+
Attachment #219929 - Flags: approval-branch-1.8.1?(mconnor)
Attachment #219929 - Flags: approval-branch-1.8.1+
Ok, I'll go through all those events and their event listeners.
I'd propose to make those events to not bubbling. That would force chrome
to use right phase for event listeners.
Comment on attachment 219929 [details] [diff] [review]
proposed patch

checked in to trunk
Comment on attachment 219929 [details] [diff] [review]
proposed patch

and branch too
Similar patch for other events.
I'd like to get this to 1.8 too, but after it has been on trunk few days.
Attachment #220014 - Flags: superreview?(neil)
Attachment #220014 - Flags: review?(mconnor)
Attachment #220014 - Flags: superreview?(neil) → superreview+
mconnor, any chance to get a review? ;)
Comment on attachment 220014 [details] [diff] [review]
Make chrome to listen capture phase

Always possible, direct poking works if I'm a bottleneck.
Attachment #220014 - Flags: review?(mconnor) → review+
Checked in to trunk. Will ask for an approval for branch within next few days.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Attachment #220014 - Flags: approval-branch-1.8.1?(mconnor)
Attachment #220014 - Flags: approval-branch-1.8.1?(mconnor) → approval-branch-1.8.1+
Keywords: fixed1.8.1
Whiteboard: [sg:dos]
Flags: blocking1.8.0.8-
Group: security
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: