Bugzilla@Mozilla へBug報告しようと思っています。
今、BugListに類似報告がないか見ていますが、良く判りませんね。
スクリプトのサイトは英語ページもありますので、そちらを指定しています。
(なお、単に日本語部分を英語に直してあるだけのスクリプトなんですが、それだけで
日本語ページでの実行とは、不具合の出方の挙動が若干異なります。これも謎ですが)
一応、下記の「下書き」を書いてみたんですが、何分、英訳ツール頼みなもので、なかなか
良い表現が出来ていない部分もあるかもしれません。
「ここは、こうした方が良い」といったアドバイスなど頂ければ助かります。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Product: Core or FireFox
Component: JavaScript Engine or General
Hardware Platform: x86
Operating System: Windows XP
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729)
URL:
http://www.h3.dion.ne.jp/~sakatsu/holid ... nglish.htm
Summary: If TraceMonkey is valid, a practice result of Script is wrong. (FireFox3.6.13)
Details:
==================================================
There is a script making a list on a holiday in Japan in my HP.
(The definition of the holiday in Japan is listed in my HP.)
http://www.h3.dion.ne.jp/~sakatsu/holid ... nglish.htm
http://www.h3.dion.ne.jp/~sakatsu/Japan ... ake_Eng.js
http://www.h3.dion.ne.jp/~sakatsu/Japan ... Chk_Eng.js
It is confirmed that this script works definitely in IE8, Opera11, Safari5(WinXP) and FireFox2(WinMe).
However, wrong data are output when I make "a holiday list" in FireFox3.6.13,
and besides, a result changes whenever a script works.
1st practice after FireFox start : Only (a)
2nd practice : (a)&(b)
3rd practice : A right result
1st practice after reloading : Only (a)
2nd practice : A right result
A wrong example : [2010-2012 years]
Loop count of example is [365+365+366=1096].
(a) 2010 Mar. 22(Mon and "Holiday in lieu") is not output.
(2010 Mar. 21(Sun) is "Vernal Equinox Day".)
(b) 2012 Mar. 12(Mon and "Holiday in lieu") is output.
(2012 Mar. 11(Sun) is the normal sunday.)
["Holiday in Lieu" ( or "Substitute Holiday" ) ]
Definition : When Sunday becomes a holiday by the law, the next day( Monday ) becomes in the holiday.
The practice result (by documents.write) of the following step to judge "Holiday in Lieu."
JapanHolidayChk_Eng.js [Line No. 73] HolidayName = prvHolidayChk(YesterDay);
(a) prvHolidayChk(YesterDay(="2010/3/21")) is a null character("").
(b) prvHolidayChk(YesterDay(="2012/3/11")) is "National Foundation Day".
These are wrong results.
When I investigated it with FireBug, malfunction does not appear.
The practice result (by console.log of Fire
Bug 1.6.2) of the step to judge "Holiday in Lieu."
(a) prvHolidayChk(YesterDay(="2010/3/21")) is "Vernal Equinox Day".
(b) prvHolidayChk(YesterDay(="2012/3/11")) is a null character("").
These are right results.
In addition, malfunction did not appear even if I did not insert console.log
when I started FireBug. Will FireBug invalidate TraceMonkey temporarily?
In addition, a right result is provided in the follows.
(1) I judge "one day" of [2010 Mar. 22] or [2012 Mar. 12].
window.alert(ktHolidayName("2010/3/22"));
(2) I change a period (2008-2012 years etc.).
---------------------------------------------------
The malfunction did not appear when I changed config to invalidate TraceMonkey.
[javascript.options.jit.content = false]
---------------------------------------------------
The malfunction did not appear when I tried it in FireFox4.0Beta11.
When I invalidated JaegerMonkey, malfunction appeared (work only in TraceMonkey).
[javascript.options.methodjit.content = false]
[javascript.options.tracejit.content = true]
1st practice after FireFox start or reloading : Only (a)
2nd practice : A right result
When I invalidated both JaegerMonkey and TraceMonkey, malfunction did not appear.
[javascript.options.methodjit.content = false]
[javascript.options.tracejit.content = false]
---------------------------------------------------
I expect a correction of the malfunction of TraceMonkey.
==============================================
Reproducibility: Happen every time
Steps to Reproduce:
1. Browse the following site.
http://www.h3.dion.ne.jp/~sakatsu/holid ... nglish.htm
2. Type the year of the period into two TextBox. [from 2010 to 2012]
3. Click [Holiday List] button.
4. "A holiday list" is output by a new window.
5. Change config to invalidate TraceMonkey and execute step-2 to 4.
Actual Results:
(a) 2010 Mar. 22(Mon and "Holiday in lieu") is not output.
(2010 Mar. 21(Sun) is "Vernal Equinox Day".)
(b) 2012 Mar. 12(Mon and "Holiday in lieu") is output.
(2012 Mar. 11(Sun) is the normal sunday.)
Note: A result changes whenever a script works.
1st practice after FireFox start : Only (a)
2nd practice : (a)&(b)
3rd practice : A right result(following "Expected Results")
1st practice after reloading : Only (a)
2nd practice : A right result(following "Expected Results")
The malfunction did not appear (following "Expected Results")
when it changed config to invalidate TraceMonkey.
Expected Results:
(a) 2010 Mar. 22(Mon and "Holiday in lieu") is output.
(2010 Mar. 21(Sun) is "Vernal Equinox Day".)
(b) 2012 Mar. 12(Mon and "Holiday in lieu") is not output.
(2012 Mar. 11(Sun) is the normal sunday.)
Additional Information:
Security: off
Severity: Normal: It's a bug that should be fixed.