Closed
Bug 1158524
Opened 10 years ago
Closed 10 years ago
lib/ui.js, line 1918: SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: mmokrejs, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1
Build ID: 20150425185639
Steps to reproduce:
There are several Javascript errors reported right after seamonkey-2.33.1 startup.
Actual results:
(process:2313): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
[2313] WARNING: Trying to overwrite value of default pref browser.tabs.mouseScrollAdvancesTab with the wrong type!: file /var/tmp/portage/www-client/seamonkey-2.33.1/work/comm-release/mozilla/modules/libpref/prefapi.cpp, line 770
JavaScript strict warning: resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/mmokrejs/.mozilla/seamonkey/mjpwg8sv.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///home/mmokrejs/.mozilla/seamonkey/mjpwg8sv.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879
e08c5d%7D.xpi!/lib/ui.js, line 1918: SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function
JavaScript strict warning: jar:file:///home/mmokrejs/.mozilla/seamonkey/mjpwg8sv.default/extensions/%7Bf13b157f-b174-47e7-a34d-4815ddfdfeb8%7D.xpi!/components/venkman-service.js, line 207: SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function
JavaScript strict warning: jar:file:///home/mmokrejs/.mozilla/seamonkey/mjpwg8sv.default/extensions/%7Bf13b157f-b174-47e7-a34d-4815ddfdfeb8%7D.xpi!/components/venkman-service.js, line 195: ReferenceError: reference to undefined property Components.classes[JSD_CTRID]
JavaScript error: jar:file:///home/mmokrejs/.mozilla/seamonkey/mjpwg8sv.default/extensions/%7Bf13b157f-b174-47e7-a34d-4815ddfdfeb8%7D.xpi!/components/venkman-service.js, line 195: TypeError: Components.classes[JSD_CTRID] is undefined
++DOCSHELL 0x7fe75ae44100 == 1 [pid = 2313] [id = 1]
++DOMWINDOW == 1 (0x7fe75ab35800) [pid = 2313] [serial = 1] [outer = (nil)]
++DOMWINDOW == 2 (0x7fe75ab35c00) [pid = 2313] [serial = 2] [outer = 0x7fe75ab35800]
[2313] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file /var/tmp/portage/www-client/seamonkey-2.33.1/work/comm-release/mozilla/extensions/cookie/nsPermissionManager.cpp, line 1925
JavaScript strict warning: jar:file:///home/mmokrejs/.mozilla/seamonkey/mjpwg8sv.default/extensions/%7B1280606b-2510-4fe0-97ef-9b5a22eafe80%7D.xpi!/components/console2-clhandler.js, line 183: SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function
JavaScript strict warning: file:///home/mmokrejs/.mozilla/seamonkey/mjpwg8sv.default/extensions/%7B59c81df5-4b7a-477b-912d-4e0fdf64e5f2%7D/components/chatzilla-service.js, line 56: ReferenceError: reference to undefined property Components.interfaces.nsICmdLineHandler
JavaScript error: , line 0: uncaught exception: 2147942487
++DOCSHELL 0x7fe75a4b6500 == 2 [pid = 2313] [id = 2]
++DOMWINDOW == 3 (0x7fe75a469800) [pid = 2313] [serial = 3] [outer = (nil)]
++DOMWINDOW == 4 (0x7fe75a46cc00) [pid = 2313] [serial = 4] [outer = 0x7fe75a469800]
[2313] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80070057: file /var/tmp/portage/www-client/seamonkey-2.33.1/work/comm-release/mailnews/base/src/nsMsgContentPolicy.cpp, line 732
[2313] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80070057: file /var/tmp/portage/www-client/seamonkey-2.33.1/work/comm-release/mailnews/base/src/nsMsgContentPolicy.cpp, line 182
[2313] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80070057: file /var/tmp/portage/www-client/seamonkey-2.33.1/work/comm-release/mailnews/base/src/nsMsgContentPolicy.cpp, line 732
[2313] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80070057: file /var/tmp/portage/www-client/seamonkey-2.33.1/work/comm-release/mailnews/base/src/nsMsgContentPolicy.cpp, line 182
[2313] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file /var/tmp/portage/www-client/seamonkey-2.33.1/work/comm-release/mozilla/js/xpconnect/loader/mozJSComponentLoader.cpp, line 855
++DOMWINDOW == 5 (0x7fe75a470400) [pid = 2313] [serial = 5] [outer = 0x7fe75ab35800]
JavaScript strict warning: resource://gre/modules/Webapps.jsm, line 577: ReferenceError: reference to undefined property Components.classes['@mozilla.org/app-migrator;1']
++DOCSHELL 0x7fe755503500 == 3 [pid = 2313] [id = 3]
++DOMWINDOW == 6 (0x7fe755535800) [pid = 2313] [serial = 6] [outer = (nil)]
++DOCSHELL 0x7fe755503a00 == 4 [pid = 2313] [id = 4]
++DOMWINDOW == 7 (0x7fe75953e080) [pid = 2313] [serial = 7] [outer = (nil)]
Comment 1•10 years ago
|
||
> jar:file:///home/mmokrejs/.mozilla/seamonkey/mjpwg8sv.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js ->
> jar:file:///home/mmokrejs/.mozilla/seamonkey/mjpwg8sv.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/ui.js, line 1918:
> SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function
This is an error in AdBlockPlus. Please report this to the AdBlock support forums.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•10 years ago
|
||
Thanks, so I reported at https://adblockplus.org/forum/viewtopic.php?f=1&t=29872
| Reporter | ||
Comment 3•10 years ago
|
||
They do NOT agree this is a bug. Mozilla should not run 'use strict' on their code:
https://github.com/jquery/jquery/issues/2236
Please do something about this false warning. Or, please join the discussion there. Makes no sense I should be a proxy.
Comment 4•10 years ago
|
||
For reference, the Adblock Plus bug report is https://issues.adblockplus.org/ticket/2422. I couldn't find an issue in Adblock Plus - while the code isn't compliant with strict mode, it doesn't declare strict mode either. However, as long as SeaMonkey is only reporting this as a warning in debug mode I don't see any issue in SeaMonkey here, it's merely somewhat confusing.
Comment 5•10 years ago
|
||
(In reply to Martin Mokrejs from comment #3)
> They do NOT agree this is a bug. Mozilla should not run 'use strict' on
> their code:
>
> https://github.com/jquery/jquery/issues/2236
>
> Please do something about this false warning. Or, please join the discussion
> there. Makes no sense I should be a proxy.
Martin, please disable strict mode:
Go to about:config
Filter for javascript.options.strict
Set this to false
Comment 6•10 years ago
|
||
I actually did test with javascript.options.strict set to true, it doesn't produce this warning.
You need to log in
before you can comment on or make changes to this bug.
Description
•