Closed Bug 1058836 Opened 12 years ago Closed 12 years ago

nsMixedContentBlocker.cpp doens't always set the content policy Decision when returning

Categories

(Core :: Security, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: tanvi, Assigned: tanvi)

Details

Attachments

(1 file, 1 obsolete file)

Assignee: nobody → tanvi
Attached patch Set aDecision parameter in MCB (obsolete) — — Splinter Review
(In reply to Tanvi Vyas [:tanvi] from comment #1) > Created attachment 8479312 [details] [diff] [review] > Set aDecision parameter in MCB Probably set it to ACCEPT here as well: http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsMixedContentBlocker.cpp#592
Comment on attachment 8479312 [details] [diff] [review] Set aDecision parameter in MCB Compiles and passes mixed content mochitests. Asking for review and then will push to try afterwards.
Attachment #8479312 - Flags: review?(bugs)
Comment on attachment 8479312 [details] [diff] [review] Set aDecision parameter in MCB The code is a bit error prone. I wonder if we could somehow ensure that the out param is set to some value, maybe using a stack variable.
Attachment #8479312 - Flags: review?(bugs) → review+
Revised patch to address smaug's comment - now we set a default aDecision of REJECT_REQUEST or block at the beginning of ShouldLoad(). Carrying over r+ and I pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=255cfe85898e
Attachment #8479312 - Attachment is obsolete: true
Attachment #8480778 - Flags: review+
Try looks good. This is ready to push but inbound is closed, so marking as checkin-needed.
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: