Closed
Bug 980558
Opened 10 years ago
Closed 10 years ago
Enable extraWarnings on safe JS context
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
WONTFIX
mozilla30
People
(Reporter: billm, Assigned: billm)
Details
Attachments
(1 file)
1.01 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
We use the safe JS context to run content scripts. We're not getting extraWarnings for these scripts. These warnings are often very useful since they tell you when you've used a property that doesn't exist (one of the most common JS errors in my experience). Setting this option generates a few extra warnings at startup about "function does not always return a value", but it's not too severe. I'll file additional bugs to fix the return value stuff.
Attachment #8387111 -
Flags: review?(bobbyholley)
Comment 1•10 years ago
|
||
Comment on attachment 8387111 [details] [diff] [review] extra-warnings r+ for now, but the semantics here will need to change when this flag moves from the JSContext to the JSRuntime (with a per-compartment override) in bug 940305. So I'm not promising to maintain the behavior here, but I don't want to get in your way in the mean time.
Attachment #8387111 -
Flags: review?(bobbyholley) → review+
Assignee | ||
Comment 2•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/263b6c86c1be
Backed out in http://hg.mozilla.org/integration/mozilla-inbound/rev/d8015367ac9b for build bustage: https://tbpl.mozilla.org/php/getParsedLog.php?id=35762956&tree=Mozilla-Inbound
Flags: needinfo?(wmccloskey)
Assignee | ||
Comment 4•10 years ago
|
||
Thanks Wes. Somehow an extra + character snuck in there when I fixed a conflict. https://hg.mozilla.org/integration/mozilla-inbound/rev/fd36c14f0153
Flags: needinfo?(wmccloskey)
Comment 5•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/fd36c14f0153
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Comment 6•10 years ago
|
||
Bill backed this out: https://hg.mozilla.org/integration/mozilla-inbound/rev/7fec954d58b6
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 7•10 years ago
|
||
Hopefully we'll end up with some better system for setting this flag only for chrome code.
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → WONTFIX
Comment 8•10 years ago
|
||
(In reply to Bill McCloskey (:billm) from comment #7) > Hopefully we'll end up with some better system for setting this flag only > for chrome code. I implemented such a system in my patch for bug 940305. It's just waiting on Kyle's review.
You need to log in
before you can comment on or make changes to this bug.
Description
•