Closed Bug 963401 Opened 10 years ago Closed 10 years ago

Console is flooded with javascript strict warnings

Categories

(Add-on SDK Graveyard :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: felix.shnir, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36

Steps to reproduce:

Started a new addon via cfx init.
Ran it with cfx run


Actual results:

Console is flooded with javascript strict warnings unrelated to the addon


Expected results:

Console should have been empty
Its fixed if the sdk\python-lib\cuddlefish\prefs.py "javascript.options.strict" option is set to False.

In the mean time I've added a note in the Logging section of the docs. Please remove if this is addressed in another way: https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Logging
Can we remove this pref? If not for cfx, for JPM? I know I find it annoying/difficult when debugging a page-mod and loading a page greets me with a giant dump of useless warnings about code that isn't mine.
Flags: needinfo?(rFobic)
Flags: needinfo?(jgriffiths)
Flags: needinfo?(dtownsend+bugmail)
I think we should but I'm open to Irakli saying otherwise
Flags: needinfo?(dtownsend+bugmail)
I agree, seeing the JS warnings is distracting, +1 for removing from JPM. I don't see a pull request that removes it from cfx, so I guess we're not going to do anything for 1.16.
Flags: needinfo?(jgriffiths)
(In reply to Jeff Griffiths (:canuckistani) from comment #4)
> I don't see a pull request that removes it from cfx, so I guess we're 
> not going to do anything for 1.16.

i have been responding to #jetpack questions about this regularly in the last few months, so if this is a "go", i would really like it to be in 1.16 too..
(In reply to Tomislav Jovanovic [:zombie] from comment #5)
> i have been responding to #jetpack questions about this regularly in the
> last few months, so if this is a "go", i would really like it to be in 1.16
> too..

I hear you and I think would agree, if we had a patch. Oh wait, we do!
Priority: -- → P1
Comment on attachment 8369097 [details] [review]
Link to Github pull-request: https://github.com/mozilla/addon-sdk/pull/1372

I'm r+ing Zombie's PR, but waiting for Irakli's thumbs up to merge this in. Jeff, is this too late to get in 1.16?
Attachment #8369097 - Flags: review+
Approved in meeting today
Flags: needinfo?(rFobic)
Commits pushed to master at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/319ce7bf0b13cddf9768cef1be0386940ba45065
bug 963401 - remove javascript.option.strict pref

https://github.com/mozilla/addon-sdk/commit/c88f1c2e8a28c364700270bbc3f1c92fc82be813
Merge pull request #1372 from zombie/963401-js-strict

fix bug 963401 - remove javascript.option.strict pref, r=@jsantell
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: