Page 1 of 3
[HANG] Firefox hangs When Visiting HKTV with NoScript on
Posted: Mon Dec 29, 2014 2:03 pm
by ReporterX
(
Update: Temporary fix
Whitelist jwpcdn.com before you visit HKTV.
The site needs a better handling of the error when jwpcdn is blocked or out of service.)
1. I opened a new profile with only NoScript installed to test it, so NoScript is the culprit.
If I allow scripts to load globally (more or less essentially disable it), Firefox won't hang. Otherwise it will.
Noscript 2.6.9.10
Go to
http://www.hktvmall.com/hktv/en/
Allow:
hktvmall.com
scorecardresearch.com
Untrusted:
google-analytics.com
See if the TV in the "TV Box" section loads. If it warns you about unresponsive script, just stop it. Then refresh the page.
Keep trying. You will end up seeing Firefox hanging (memory keep rising) and you need to force close it.
(
Update: This bug is gone after the TV site update)
2. I have
RefControl installed to control what gets sent as the HTTP Referer. I set it to send "the URL that is currently being requested" for all third-party sites, like this:
NoScript is set to allow scripts globally. Other functions like XSS, ABE and HTTP cookies are enabled.
I tried to set every website as "normal" (i.e. let them send original HTTP Referer). The TV still couldn't load.
Without it, it could. Any clues what's wrong?

Re: Firefox hangs When Visiting TV Site with NoScript on
Posted: Mon Dec 29, 2014 2:54 pm
by barbaz
Hi ReporterX,
What NoScript version? If later than 2.6.9.6, does this happen also with 2.6.9.6?
(old versions at
https://addons.mozilla.org/addon/noscript/versions
*or*
http://noscript.net/feed?t=a
if this does *not* happen in 2.6.9.6, maybe
viewtopic.php?f=7&t=20420 is related?)
(You might want to update your signature to reflect your current Fx/NS versions)
When it fails, do you see anything related in the Browser Console? (Ctrl-Shift-J)
(if you don't know what's related, turn off CSS warnings and post everything else you see)
Re: Firefox hangs When Visiting TV Site with NoScript on
Posted: Mon Dec 29, 2014 4:43 pm
by therube
Confirmed.
HANG WARNING
(IOW do NOT try on your regular, running Profile.)
> 1. I opened a new profile with only NoScript installed to test it
> 2. I have RefControl installed to control what gets sent as the HTTP Referer.
So is it only 1 or 1 + 2?
Do you have only NoScript installed or NoScript + RefControl?
Not relevant.
NoScript alone, & the steps mentioned, cause the hang.
(You don't really need to mark google-analytics.com as Untrusted as it is not allowed, by default.)
If you start out with Allow Globally the site will load.
I image there are some other sets of domains if Allowed will allow the site to load correctly too [or maybe not], but that's not really the point.
During this "hang", which seems that it will not subside, FF EATS memory (& CPU), so I suppose at some point you will crash. Once initiated, doesn't look like there's much you can do except to kill FF.
Re: [HANG] Firefox hangs When Visiting TV Site with NoScript
Posted: Mon Dec 29, 2014 7:43 pm
by barbaz
@therube: can you reproduce with NS 2.6.9.6?
Re: [HANG] Firefox hangs When Visiting TV Site with NoScript
Posted: Mon Dec 29, 2014 10:13 pm
by therube
Yes.
(Truncated)
Code: Select all
Hang report for C:\WLIB\Mozilla\SeaMonkey\seamonkey.exe
Generated by using WhatIsHang on 12/29/2014 05:11:11 PM
Web site: http://www.nirsoft.net
Remarks:
* The program probably hangs because there is an infinite loop, very long loop, or recursive calls.
Strings found in the stack:
ZZZZZZZZZZZZ
ZZZZZZZZZZZZƒ‡
ZZZZZZZZÏ
ZZZZZZZZZZZZƒ‡
Infinity
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@`°@@@`@@@@@@à
getVolume
T$|RWPQ‹ÆèÞàÿÿƒÄ‹L$‹T$‰
€|$<
L$|PQQ‹ÄT$<‰‹D$x‹L$tPQVèI“ÿÿƒÄ‹L$(‹T$,_‰‹L$0‹T$4^]‰[ƒÄPÃÌÌÌÌÌÌÌÌÌÌì
E0;E@u[‹M<;MDuS@PMàèHöÿÿ‹E<@PMè;öÿÿ‹U0‹EX‹BRÿuàSPÿQ …À‰©
self-hosted
F(;F,tëI
Modules found in the stack:
C:\WLIB\Mozilla\SeaMonkey\xul.dll , Mozilla Foundation , SeaMonkey,
C:\WLIB\Mozilla\SeaMonkey\nss3.dll , Mozilla Foundation , SeaMonkey,
C:\WLIB\Mozilla\SeaMonkey\gkmedias.dll , Mozilla Foundation , SeaMonkey,
C:\WLIB\Mozilla\SeaMonkey\mozjs.dll
C:\WLIB\Mozilla\SeaMonkey\mozglue.dll , Mozilla Foundation , SeaMonkey,
C:\WLIB\Mozilla\SeaMonkey\NSLDAP32V60.dll
********************************************************************************
Snapshot number 1
********************************************************************************
ThreadID: 3408
Execute Address:
0247CEE1 xul.dll+0xe3cee1
Call Stack:
001258B4 0247E605 xul.dll+0xe3e605
00125914 024A7AB9 xul.dll+0xe67ab9
001259A0 024A8B26 xul.dll+0xe68b26
001259D0 024A8359 xul.dll+0xe68359
00125A54 00000001
Stack Data:
00125898 0F2C0160
0012589C 00000000
001258A0 024A838F xul.dll+0xe6838f
001258A4 01022000
001258A8 0F2C0160
001258AC 0D2DAC48
001258B0 0D2DAC48
001258B4 00125914
001258B8 0247E605 xul.dll+0xe3e605
001258BC 00125980
001258C0 0B782CB8
001258C4 0D2DAC70
001258C8 00000000
001258CC 073BDE60
001258D0 00000016
001258D4 00000000
001258D8 00000000
001258DC 00000000
001258E0 00125A28
001258E4 08024A20
001258E8 09D7F000
001258EC 001258F8
001258F0 00000000
001258F4 073BDE60
001258F8 0D2DAC70
001258FC 0CE61A90
00125900 00000008
00125904 0000003A
00125908 02500C9B xul.dll+0xec0c9b
0012590C 073BDE60
00125910 08024A20
00125914 001259A0
00125918 024A7AB9 xul.dll+0xe67ab9
0012591C 00125980
00125920 073BDE60
00125924 0B782CB8
00125928 08024A20
0012592C 00125A28
00125930 0FA1C9C8
00125934 00000000
00125938 80000004
0012593C 0FA1C490
00125940 0FA1C490
00125944 00000001
00125948 0FA1C3B0
0012594C 0EB0939C
00125950 00125A28
00125954 00125A28
00125958 0188FD1C xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0xa8b
0012595C 9B0D268C
00125960 00000000
00125964 09D7F078
00125968 09D7F078
0012596C 00000000
00125970 0012626C
00125974 00000000
00125978 00000400
0012597C 00000000
00125980 00125A28
00125984 073BDE60
00125988 00000000
0012598C 00000016
00125990 0B782CB8
00125994 0F2C0160
001259A4 024A8B26 xul.dll+0xe68b26
001259CC 004A834E nss3.dll+0x8834e
001259D4 024A8359 xul.dll+0xe68359
001259EC 01855092 xul.dll!NS_CycleCollectorSuspect3+0xa35
001259F4 0247E7FA xul.dll+0xe3e7fa
00125A00 0247E809 xul.dll+0xe3e809
00125AA0 024D658F xul.dll+0xe9658f
00125AB8 024A0101 xul.dll+0xe60101
00125AC8 024A8A20 xul.dll+0xe68a20
00125AE4 01125B28 gkmedias.dll+0x25b28
00125AEC 024A8B6A xul.dll+0xe68b6a
00125B0C 004A79BD nss3.dll+0x879bd
00125B14 024A79C8 xul.dll+0xe679c8
00125B98 024A8B26 xul.dll+0xe68b26
00125BC0 004A8320 nss3.dll+0x88320
00125BC8 024A832B xul.dll+0xe6832b
00125C3C 02500C9B xul.dll+0xec0c9b
00125C4C 024A7AB9 xul.dll+0xe67ab9
00125C54 024A7C44 xul.dll+0xe67c44
00125C8C 01D1AD8A xul.dll!?SupportImageWithMimeType@imgLoader@@SG_NPBD@Z+0xda3
00125C98 0188FD1C xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0xa8b
00125CBC 024A8A20 xul.dll+0xe68a20
00125CD8 01125D5C gkmedias.dll+0x25d5c
00125CE0 024A8B6A xul.dll+0xe68b6a
00125D00 004A834E nss3.dll+0x8834e
00125D08 024A8359 xul.dll+0xe68359
00125D20 01855092 xul.dll!NS_CycleCollectorSuspect3+0xa35
00125D28 0247E7FA xul.dll+0xe3e7fa
00125D34 0247E809 xul.dll+0xe3e809
00125DD4 024D658F xul.dll+0xe9658f
00125DEC 024A0101 xul.dll+0xe60101
00125DFC 024A8A20 xul.dll+0xe68a20
00125E18 01125E5C gkmedias.dll+0x25e5c
00125E20 024A8B6A xul.dll+0xe68b6a
00125E40 004A8320 nss3.dll+0x88320
00125E48 024A832B xul.dll+0xe6832b
00125F0C 01D1AD8A xul.dll!?SupportImageWithMimeType@imgLoader@@SG_NPBD@Z+0xda3
00125F18 0188FD1C xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0xa8b
00125F3C 024A8A20 xul.dll+0xe68a20
00125F58 01125FDC gkmedias.dll+0x25fdc
00125F60 024A8B6A xul.dll+0xe68b6a
00125F80 004A834E nss3.dll+0x8834e
00125F88 024A8359 xul.dll+0xe68359
00125FA0 01855092 xul.dll!NS_CycleCollectorSuspect3+0xa35
00125FA8 0247E7FA xul.dll+0xe3e7fa
00125FB4 0247E809 xul.dll+0xe3e809
00126054 024D658F xul.dll+0xe9658f
0012606C 024A0101 xul.dll+0xe60101
0012607C 024A8A20 xul.dll+0xe68a20
00126098 011260DC gkmedias.dll+0x260dc
001260A0 024A8B6A xul.dll+0xe68b6a
001260C0 004A8320 nss3.dll+0x88320
001260C8 024A832B xul.dll+0xe6832b
00126194 024D658F xul.dll+0xe9658f
001261AC 024A0101 xul.dll+0xe60101
001261BC 024A8A20 xul.dll+0xe68a20
001261D8 0112621C gkmedias.dll+0x2621c
001261E0 024A8B6A xul.dll+0xe68b6a
001261F0 024A8C2F xul.dll+0xe68c2f
00126208 024A8C3A xul.dll+0xe68c3a
00126264 02DDCC24 xul.dll+0x179cc24
001262F0 024A6FB2 xul.dll+0xe66fb2
00126300 024A8CF2 xul.dll+0xe68cf2
00126324 02DD267C xul.dll+0x179267c
00126344 02DD267C xul.dll+0x179267c
00126364 02DD267C xul.dll+0x179267c
001263A4 00EDC730 mozjs.dll+0x36c730
001263B0 02479E74 xul.dll+0xe39e74
001263BC 0247A05D xul.dll+0xe3a05d
001263C8 1000D576 mozglue.dll!jemalloc_free_dirty_pages+0x6b0
001263E8 0046D5CF nss3.dll+0x4d5cf
00126410 024A8E9E xul.dll+0xe68e9e
0012643C 024A9029 xul.dll+0xe69029
00126460 0243E16C xul.dll+0xdfe16c
00126468 0188F993 xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0x702
00126488 00B62858 NSLDAP32V60.dll+0x22858
00126490 01D8F906 xul.dll+0x74f906
00126498 0188FAF7 xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0x866
001264B0 0188FC45 xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0x9b4
001264D0 024A91B4 xul.dll+0xe691b4
001264EC 024A93B0 xul.dll+0xe693b0
0012650C 02DDCC24 xul.dll+0x179cc24
00126524 0247B93A xul.dll+0xe3b93a
00126528 0188F920 xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0x68f
00126544 024B06EC xul.dll+0xe706ec
00126548 024D2EEF xul.dll+0xe92eef
0012655C 0188FD1C xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0xa8b
00126568 016441CC xul.dll+0x41cc
00126574 016444C0 xul.dll+0x44c0
00126584 02DDCC24 xul.dll+0x179cc24
00126590 01A841F2 xul.dll+0x4441f2
001265A4 01855092 xul.dll!NS_CycleCollectorSuspect3+0xa35
001265AC 024DC1E0 xul.dll+0xe9c1e0
001265CC 0188F920 xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0x68f
001265F0 025077D2 xul.dll+0xec77d2
0012660C 016441CC xul.dll+0x41cc
00126618 016444C0 xul.dll+0x44c0
00126628 02DDCC24 xul.dll+0x179cc24
00126634 01A841F2 xul.dll+0x4441f2
00126648 01855092 xul.dll!NS_CycleCollectorSuspect3+0xa35
00126650 024B5460 xul.dll+0xe75460
00126690 02153D5E xul.dll+0xb13d5e
001266A0 0188FCEB xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0xa5a
001266A4 01D7F078 xul.dll+0x73f078
001266DC 024EF5CB xul.dll+0xeaf5cb
001266FC 0208C10C xul.dll+0xa4c10c
00126708 024EFA72 xul.dll+0xeafa72
00126718 024B547E xul.dll+0xe7547e
00126724 0188F920 xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0x68f
00126744 02153D5E xul.dll+0xb13d5e
00126758 0188FD1C xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0xa8b
00126778 027740DE xul.dll+0x11340de
00126780 024A4A49 xul.dll+0xe64a49
00126790 01A841F2 xul.dll+0x4441f2
001267A4 01855092 xul.dll!NS_CycleCollectorSuspect3+0xa35
001267AC 024989C3 xul.dll+0xe589c3
001267C8 0188F920 xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0x68f
001267E8 0248C7E6 xul.dll+0xe4c7e6
001267F0 0247D02D xul.dll+0xe3d02d
001267FC 0188FCC8 xul.dll!??0SandboxTarget@mozilla@@IAE@XZ+0xa37
0012681C 0248C898 xul.dll+0xe4c898
00126828 016B48EB xul.dll+0x748eb
00126838 016B9548 xul.dll+0x79548
00126848 1000BDDB mozglue.dll+0xbddb
00126874 1000D344 mozglue.dll!jemalloc_free_dirty_pages+0x47e
Processor Registers:
EAX: 00000000
EBX: 073BDE60
ECX: 00000000
EDX: 00125820
ESI: 0B782CB8
EDI: 0D2DAC70
EBP: 001258B4
ESP: 00125898
EIP: 0247CEE1 xul.dll+0xe3cee1
Memory Data:
0F2C0160 40 DB CC 08 40 40 CE 08 24 CC DD 02 80 88 E7 08 @...@@..$.......
0F2C0170 24 CC DD 02 24 CC DD 02 00 DE F6 06 24 CC DD 02 $...$.......$...
0F2C0180 24 CC DD 02 80 41 CE 08 C0 42 CE 08 A0 5C CF 08 $....A...B...\..
0F2C0190 E0 97 00 0F 00 00 00 00 40 03 8C 08 A0 42 CE 08 ........@....B..
0F2C01A0 A0 6C CD 08 E0 69 CD 08 24 CC DD 02 E0 8B AF 0A .l...i..$.......
0F2C01B0 30 01 8C 08 90 1A E6 0C 00 00 5A 5A 08 40 5A 5A 0.........ZZ.@ZZ
0F2C01C0 5B 00 00 00 00 52 31 10 C0 03 C7 08 C8 03 C7 08 [....R1.........
0F2C01D0 D0 03 C7 08 00 00 00 00 D8 03 C7 08 24 CC DD 02 ............$...
0F2C01E0 00 00 00 00 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A 5A ....ZZZZZZZZZZZZ
0F2C01F0 00 81 03 01 60 01 2C 0F B8 D2 AF 0A E8 1B BC 02 ....`.,.........
0F2C0200 00 00 00 00 18 00 5A 5A 08 00 00 00 9B 00 00 00 ......ZZ........
0F2C0210 00 00 00 00 0D 00 00 00 00 30 18 0B 80 36 9E 0F .........0...6..
0F2C0220 00 5A 5A 5A 00 80 DE 0A 20 F3 25 0B 20 F3 25 0B .ZZZ.... .%. .%.
0F2C0230 B8 D2 AF 0A 90 DC AF 0A 90 DE AF 0A 00 00 00 00 ................
0F2C0240 00 00 00 00 00 00 00 00 F0 27 DD 02 00 00 00 00 .........'......
0F2C0250 1D 00 5A 5A 14 00 00 00 00 00 00 00 00 00 00 00 ..ZZ............
...
Re: Firefox hangs When Visiting TV Site with NoScript on
Posted: Tue Dec 30, 2014 1:32 am
by ReporterX
barbaz wrote:Hi ReporterX,
What NoScript version? If later than 2.6.9.6, does this happen also with 2.6.9.6?
(old versions at
https://addons.mozilla.org/addon/noscript/versions
*or*
http://noscript.net/feed?t=a
if this does *not* happen in 2.6.9.6, maybe
viewtopic.php?f=7&t=20420 is related?)
(You might want to update your signature to reflect your current Fx/NS versions)
When it fails, do you see anything related in the Browser Console? (Ctrl-Shift-J)
(if you don't know what's related, turn off CSS warnings and post everything else you see)
Updated now. It is Firefox 34.0.5, Noscript 2.6.9.10
Re: Firefox hangs When Visiting TV Site with NoScript on
Posted: Tue Dec 30, 2014 1:57 am
by ReporterX
therube wrote:Confirmed.
HANG WARNING
(IOW do NOT try on your regular, running Profile.)
> 1. I opened a new profile with only NoScript installed to test it
> 2. I have RefControl installed to control what gets sent as the HTTP Referer.
So is it only 1 or 1 + 2?
Do you have only NoScript installed or NoScript + RefControl?
Not relevant.
NoScript alone, & the steps mentioned, cause the hang.
(You don't really need to mark google-analytics.com as Untrusted as it is not allowed, by default.)
If you start out with Allow Globally the site will load.
I image there are some other sets of domains if Allowed will allow the site to load correctly too [or maybe not], but that's not really the point.
During this "hang", which seems that it will not subside, FF EATS memory (& CPU), so I suppose at some point you will crash. Once initiated, doesn't look like there's much you can do except to kill FF.
(2) is another issue. You need to allow scripts globally to avoid the hang and do the test.
The TV won't load with the steps mentioned above.
Re: [HANG] Firefox hangs When Visiting TV Site with NoScript
Posted: Tue Dec 30, 2014 2:10 am
by barbaz
(To note, on Linux this is not reproducible, the TV doesn't work ever, just says please get latest Flash but latest version of Flash on Linux is v 11.2.202.425 which I've already got - so I can't investigate further, sorry, I'll leave this thread alone now)
EDIT Confirmed on OpenBSD amd64 / SeaMonkey 2.26.1 (where I don't have Flash)... SM crashes due to OOM.
Let's see if a scorecardresearch surrogate is enough to fix it.
Re: [HANG] Firefox hangs When Visiting TV Site with NoScript
Posted: Tue Dec 30, 2014 2:57 am
by barbaz
In fact looks like any site with scorecardresearch allowed does that OOM hang thing for me (reproduced also on deviantart homepage). Investigating...
Re: [HANG] Firefox hangs When Visiting TV Site with NoScript
Posted: Tue Dec 30, 2014 3:29 am
by barbaz
barbaz wrote:Let's see if a scorecardresearch surrogate is enough to fix it.
Nope, that just makes it reproducible without allowing scorecardresearch in NS.
(For the curious, here's the surrogate:)
Code: Select all
noscript.surrogate.scrbeacon.replacement : _comscore = _comscore || [];window.COMSCORE = window.COMSCORE || {__noSuchMethod__:function(){}}
noscript.surrogate.scrbeacon.sources : .scorecardresearch.com
Re: [HANG] Firefox hangs When Visiting TV Site with NoScript
Posted: Sat Jan 03, 2015 7:14 am
by ReporterX
barbaz wrote:barbaz wrote:Let's see if a scorecardresearch surrogate is enough to fix it.
Nope, that just makes it reproducible without allowing scorecardresearch in NS.
(For the curious, here's the surrogate:)
Code: Select all
noscript.surrogate.scrbeacon.replacement : _comscore = _comscore || [];window.COMSCORE = window.COMSCORE || {__noSuchMethod__:function(){}}
noscript.surrogate.scrbeacon.sources : .scorecardresearch.com
Any clues what causes the hang?
And why TV couldn't load with script globally allowed (with RefControl)?
Re: [HANG] Firefox hangs When Visiting TV Site with NoScript
Posted: Sun Jan 04, 2015 7:03 pm
by barbaz
ReporterX wrote:Any clues what causes the hang?
Will poke around in the page's scripts, see what references the things in the surrogate (the script has to get past there to run the part that hangs the browser, so I'll see what errors out and if the surrogate can be tweaked to work-around whatever's past there that's giving trouble)
ReporterX wrote:And why TV couldn't load with script globally allowed (with RefControl)?
Have you tried leaving RefControl enabled but to send real referrer for things on only that site?
Re: [HANG] Firefox hangs When Visiting TV Site with NoScript
Posted: Mon Jan 05, 2015 6:52 pm
by barbaz
barbaz wrote:Will poke around in the page's scripts, see what references the things in the surrogate (the script has to get past there to run the part that hangs the browser, so I'll see what errors out and if the surrogate can be tweaked to work-around whatever's past there that's giving trouble)
Well, I conclude that the offending code on the TV site is either in
Code: Select all
http://ott-www.hktvmall.com/assets/js/ott.js
or it's related to this code snippet in the page
Code: Select all
<!-- Begin comScore Tag -->
<script>
var _comscore = _comscore || [];
_comscore.push(
{ c1: "2", c2: "17824804" }
);
(function()
{ var s = document.createElement("script"), el = document.getEle
mentsByTagName("script")[0]; s.async = true; s.src = (document.location.protocol
== "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js";
el.parentNode.insertBefore(s, el); }
)();
</script>
<noscript>
<img src="http://b.scorecardresearch.com/p?c1=2&c2=178248
04&cv=2.0&cj=1" />
</noscript>
<!-- End comScore Tag -->
but not sure which, or how to fix.
I notice that all the scorecardresearch script tags are 'async', could that be related to this issue?
Re: [HANG] Firefox hangs When Visiting TV Site with NoScript
Posted: Thu Jan 08, 2015 11:58 am
by ReporterX
barbaz wrote:ReporterX wrote:And why TV couldn't load with script globally allowed (with RefControl)?
Have you tried leaving RefControl enabled but to send real referrer for things on only that site?
Yup! I set it to send the real referrer when I visit this site. But the TV couldn't be loaded.

Noscript still crashes Firefox. So sad!
Posted: Fri Feb 06, 2015 5:01 pm
by ReporterX
Tried the latest version 2.6.9.12
Unfortunately it still crashes Firefox when I visit
http://www.hktvmall.com/hktv/en/
If you allow hktvmall.com & scorecardresearch.com to let the site to run the TV, Firefox will crash.
Some clients want to visit this site. I have to ask them to uninstall Noscript because of that.
It is a good script and with good protection. So sad.
Any possible workaround?
Thank you.