Closed Bug 602212 Opened 14 years ago Closed 13 years ago

Use js.msg when CSP blocks eval

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: jorendorff, Assigned: evilpie)

Details

Attachments

(2 files)

      No description provided.
I'll fix this in bug 592664 after all.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Sorry. No coffee yet. Will fix.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Attached patch v1Splinter Review
Assignee: general → jorendorff
Attachment #481245 - Flags: review?(brendan)
Comment on attachment 481245 [details] [diff] [review]
v1

r=me with a double-check that caps isn't double-reporting.

/be
Attachment #481245 - Flags: review?(brendan) → review+
Do you mean a JS_ASSERT or an actual "if (!cx->throwing)" around the JS_ReportErrorNumber calls?
(In reply to comment #5)
> Do you mean a JS_ASSERT or an actual "if (!cx->throwing)" around the
> JS_ReportErrorNumber calls?

Or just inspect the caps code (I tried a grep and saw some Report matches, so was not sure). But asserting is better, if JS_ReportErrorNumber doesn't already.

/be
Attached patch refreshedSplinter Review
Attachment #571782 - Flags: review?(jorendorff)
Comment on attachment 571782 [details] [diff] [review]
refreshed

Confirmed, the hook for this in CAPS (nsScriptSecurityManager::ContentSecurityPolicyPermitsJSAction) does not report an error.

Thanks for digging this one up, evilpie.
Attachment #571782 - Flags: review?(jorendorff) → review+
Assignee: jorendorff → evilpies
https://hg.mozilla.org/mozilla-central/rev/fec0c7e1b84c
Status: REOPENED → RESOLVED
Closed: 14 years ago13 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Version: Other Branch → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: