Compare commits

..

2507 Commits

Author SHA1 Message Date
rrelyea%redhat.com
2bcc1c0e46 use the pid file
git-svn-id: svn://10.0.0.236/branches/RELYEA@258846 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-02 21:08:50 +00:00
rrelyea%redhat.com
4437aa7197 Give more info on type of Linux builds.
git-svn-id: svn://10.0.0.236/branches/RELYEA@258842 18797224-902f-48f8-a5cc-f745e15eee43
2009-11-02 17:02:30 +00:00
rrelyea%redhat.com
afd14cd696 Add automatic port setting
git-svn-id: svn://10.0.0.236/branches/RELYEA@258831 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-31 18:46:50 +00:00
rrelyea%redhat.com
ca0e0dc7db Add some extra flags for Linux builds.
git-svn-id: svn://10.0.0.236/branches/RELYEA@258830 18797224-902f-48f8-a5cc-f745e15eee43
2009-10-31 18:44:37 +00:00
(no author)
f808be9e30 This commit was manufactured by cvs2svn to create branch 'RELYEA'.
git-svn-id: svn://10.0.0.236/branches/RELYEA@258059 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 11:29:34 +00:00
slavomir.katuscak%sun.com
83fad67ad2 Bug 504774: Patch to remove domainname command usage to detect domain. r=christophe
git-svn-id: svn://10.0.0.236/trunk@258058 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 11:29:33 +00:00
lpsolit%gmail.com
5a156183bb Bug 349336: Automatically log in the user when he chooses his password to create his new account - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@258057 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 07:25:44 +00:00
mkanat%bugzilla.org
45b60e7361 Bug 430011: Disabled extensions are still included in template include path
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@258056 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 04:41:10 +00:00
mkanat%bugzilla.org
05db2cdcb8 Bug 498634: hook for global/messages.html.tmpl
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@258055 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 04:36:21 +00:00
mkanat%bugzilla.org
992afafa72 Bug 509045: Make "use_keywords" a global template variable instead of having to pass it to templates all the time
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@258054 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 04:34:22 +00:00
nelson%bolyard.com
23d4707323 Bug 367664: Miscellaneous RISC OS support
Patch contributed by Peter Naulls <peter@chocky.org>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@258053 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 03:23:39 +00:00
nelson%bolyard.com
a15fc11b3f Bug 366194: RISC OS nspr support refinement
Patch contributed by Peter Naulls <peter@chocky.org>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@258052 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 03:12:21 +00:00
mrbkap%gmail.com
dc33c4cbdd Bug 505305. r=gal a=dveditz
git-svn-id: svn://10.0.0.236/trunk@258051 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 00:54:10 +00:00
mrbkap%gmail.com
88fe26d64b Bug 506567 - Better initialize the pseudo-frame. r=igor a=ss
git-svn-id: svn://10.0.0.236/trunk@258050 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 00:48:18 +00:00
mrbkap%gmail.com
8bc644e9d7 Bug 500931 - Ensure that weak reference wrappers return the right object when called upon. r=bent sr=jst a=ss
git-svn-id: svn://10.0.0.236/trunk@258049 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 00:41:49 +00:00
mrbkap%gmail.com
5815f2cfd0 Bug 501577 - Add a missing call to Release in nsXPCWrappedJS::GetNewOrUsed. r+sr=peterv a=dveditz
git-svn-id: svn://10.0.0.236/trunk@258048 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 00:14:21 +00:00
mrbkap%gmail.com
9f99912404 Bug 441714 - Protect caps against SJOWs. r+sr=dveditz a=dveditz
git-svn-id: svn://10.0.0.236/trunk@258047 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 00:12:48 +00:00
dholbert%cs.stanford.edu
fa4bd491ee Bug 437565: In space manager, broaden the conditions under which we clear cached pointer before deleting a bandrect. r=dbaron a=ss
git-svn-id: svn://10.0.0.236/trunk@258046 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-11 00:04:38 +00:00
aaronr%us.ibm.com
c2770b5338 [XForms] NPOTDB output element doesn't show external images. Bug 507621, p=philipp r=surkov+aaronr
git-svn-id: svn://10.0.0.236/trunk@258045 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 23:38:14 +00:00
alqahira%ardisson.org
8261ef1f0b Bug 436968 - Expose safe browsing preferences in UI (and turn it on). UI patch by Sean Murphy <murph@seanmurph.com>, r=smorgan, sr=pink; nib by Sean and me, r=me, sr=smorgan; prefs change by me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@258044 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 22:39:09 +00:00
julien.pierre.boogz%sun.com
17c03a2785 Fix for bug 506635 . Switch to pre-allocating data buffer in arena. r=nelson
git-svn-id: svn://10.0.0.236/trunk@258043 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 22:25:44 +00:00
alqahira%ardisson.org
40022bf264 Bug 504980 - Blocker bar can fail to appear after dismissing safebrowsing overlay if too much time has passed since displaying overlay. Patch by Sean Murphy <murph@seanmurph.com>, r=kreeger, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@258042 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 22:19:00 +00:00
julien.pierre.boogz%sun.com
d3dc664f9b Fix for bug 508259 . Automatically disable fork check in Linux 2.4 build . r=christophe
git-svn-id: svn://10.0.0.236/trunk@258041 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 22:08:45 +00:00
glen.beasley%sun.com
024bcfa29c 509512 update version to NSS 3.12.4.5 beta r=christophe
git-svn-id: svn://10.0.0.236/trunk@258039 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 20:35:25 +00:00
lpsolit%gmail.com
1e4aaee2be Bug 503980: show_bug.cgi doesn't properly escape <!-- inside bug summary - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@258038 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 20:22:38 +00:00
alqahira%ardisson.org
a390eb7e42 Bug 480207 - Improve the UI of the safebrowsing blocked site overlay. Patch by me, with JS from hendy and CSS help from philippe; r=philippe, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@258037 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 18:09:01 +00:00
dbaron%dbaron.org
5a130abdc8 Correctly handle a style change reflow on a subtree that has placeholders with out of flows outside that subtree. (Bug 363247) r+sr=bzbarsky a1.9.0.14=ss
git-svn-id: svn://10.0.0.236/trunk@258035 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 17:30:01 +00:00
lpsolit%gmail.com
5cbf1a7f64 Bug 507957: Bugzilla admins should not create templates in the "default" directory on customization - Patch by A.A. Shimono (himorin) <shimono@mozilla.gr.jp> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@258034 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 11:25:42 +00:00
lpsolit%gmail.com
30a1793e2f Bug 507959: Fix typo - Patch by A.A. Shimono (himorin) <shimono@mozilla.gr.jp> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@258033 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 11:11:36 +00:00
lpsolit%gmail.com
78f9c94425 Fix POD for bug 471620, r=dkl
git-svn-id: svn://10.0.0.236/trunk@258032 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-10 11:06:32 +00:00
lpsolit%gmail.com
b43e2eeec3 Bug 365259: The "Product" select menu in request.cgi doesn't group products by classifications - Patch by Frédéric Buclin <LpSolit@gmail.com> r=dkl a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@258030 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-09 20:17:45 +00:00
lpsolit%gmail.com
98ef3ac616 Bug 471620: USER_PASSWORD_MAX_LENGTH is no longer needed - Patch by Frédéric Buclin <LpSolit@gmail.com> r=dkl a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@258029 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-09 19:51:46 +00:00
mkanat%bugzilla.org
f713922fdc Bug 509328: Make jobqueue.pl respond to the TERM signal
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@258028 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-09 19:11:34 +00:00
nboyd%atg.com
08cad95296 Fix bug 508547 - delete statements should evaluate functions before attempting to delete the result
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@258026 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-09 13:52:48 +00:00
dbaron%dbaron.org
d1de88441e Call InvalidateColumns more often. (Bug 506871) r=roc a=ss
git-svn-id: svn://10.0.0.236/trunk@258025 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-09 03:20:10 +00:00
nboyd%atg.com
27b9544d78 Make Object.defineProperty work for builtin properties such as Math.pow, or JSON.stringify
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@258024 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-09 02:57:40 +00:00
psychoticwolf%carolina.rr.com
391c665102 Bug 489866 - Quiz Module doesn't work after loading questions. Patch by: Dan Wierenga <dwierenga@gmail.com>, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@258021 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 22:20:03 +00:00
psychoticwolf%carolina.rr.com
71acd3c442 Bug 503591 - Mozbot badly parses extended characters in search results. Patch by: Cww <cwwmozilla@gmail.com>, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@258020 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 22:17:19 +00:00
psychoticwolf%carolina.rr.com
27bd0ea9d6 Bug 125747 - [FTP] FTP module search-output is ugly. Patch by: Tanner M. Young <mozilla.bugs@alyoung.com>, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@258019 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 22:15:08 +00:00
psychoticwolf%carolina.rr.com
be08d4031a Bug 489916 - Quiz Module repeats Questions over and over again. Patch by: god@in-heaven.org and Tanner M. Young <mozilla.bugs@alyoung.com>, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@258018 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 22:12:10 +00:00
psychoticwolf%carolina.rr.com
5a6e33a7b0 Bug 497262 - Mozbot Quiz.bm cites documentation that has moved. Patch by: Tanner M. Young <mozilla.bugs@alyoung.com>, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@258017 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 22:08:28 +00:00
nboyd%atg.com
eea8cc1e97 Made getOwnPropertDescriptor use the actual attributes for builtins, rather
than the isMethod heuristic.

Patch from Raphael Speyer.


git-svn-id: svn://10.0.0.236/trunk@258016 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 20:56:57 +00:00
nelson%bolyard.com
46753e3326 Bug 509243: MOZ_DEBUG_SYMBOLS=1 fails under WinCE
Patch contributed by Vladimir Vukicevic <vladimir@pobox.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@258015 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 20:43:08 +00:00
Olli.Pettay%helsinki.fi
44c77fd01e Bug 501900, r+sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@258014 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 18:54:47 +00:00
Olli.Pettay%helsinki.fi
95d6857323 Bug 490196, r+sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@258009 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 14:12:11 +00:00
Olli.Pettay%helsinki.fi
1c847f195e bug 495444, r=enndeakin, sr=neil, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@258008 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 14:06:22 +00:00
despotdaemon
e3bc52d5ec Pseudo-automatic update of changes made by justdave@bugzilla.org.
git-svn-id: svn://10.0.0.236/trunk@258004 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-08 04:03:12 +00:00
bclary%bclary.com
bb7154e955 JavaScript Test - Bug 495907: use more reliable code to get outermost tree script nest level, by David Mandelin, r=gal
git-svn-id: svn://10.0.0.236/trunk@258003 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 23:57:59 +00:00
bclary%bclary.com
53f0bb85fa JavaScript Tests - bug 463782, bug 476192 - fix summaries to not include string 'Assertion fail', npotb.
git-svn-id: svn://10.0.0.236/trunk@258002 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 23:53:51 +00:00
bclary%bclary.com
eb1a9ff174 bug 473096 - JavaScript Test - adjust test for new decompilation pattern.
git-svn-id: svn://10.0.0.236/trunk@258001 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 23:51:47 +00:00
bclary%bclary.com
0fb490d7e1 bug 476049 - JavaScript Test by Igor Bukanov.
git-svn-id: svn://10.0.0.236/trunk@258000 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 23:49:58 +00:00
bclary%bclary.com
879122b580 bug 475971 - JavaScript Test by Igor Bukanov.
git-svn-id: svn://10.0.0.236/trunk@257999 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 23:47:56 +00:00
bclary%bclary.com
982920e14c bug 355829 - JavaScript Tests by Jesse Ruderman, Igor Bukanov.
git-svn-id: svn://10.0.0.236/trunk@257998 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 23:45:05 +00:00
bclary%bclary.com
f0e455fd5c bug 479110 - JavaScript Tests - disable jitstats for math-trace-tests, Andreas Gal.
git-svn-id: svn://10.0.0.236/trunk@257997 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 23:42:17 +00:00
mkanat%bugzilla.org
26a607d1c0 The original patch for bug 508186 actually broke utf-8 conversion--the tables were converted, but the columns were not. This fixes it.
git-svn-id: svn://10.0.0.236/trunk@257995 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 21:45:31 +00:00
bclary%bclary.com
c08c16ad09 JavaScript Tests - bug 452598, bug 458838, bug 469347, bug 473117, bug 473271, bug 479198, bug 482349, bug 482594, bug 482783, bug 483103, bug 483103, bug 483723, bug 483962, bug 484104, bug 484151, bug 484332, bug 484334, bug 484495, bug 484599, bug 484693, bug 484751, bug 485790, bug 485889, bug 486578, bug 487134, bug 487845, bug 487845, bug 491965, bug 491989, bug 492124, bug 492599, bug 493255 by Andreas Gal, Jeff Walden, David Mandelin, Jacob Bramley, Graydon Hoare, Jason Orendorff, Brendan Eich, Ben Turner, Vladimir Vukicevic, Blake Kaplan.
git-svn-id: svn://10.0.0.236/trunk@257994 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 21:33:31 +00:00
bclary%bclary.com
202d912e4a bug 462734 - JavaScript Tests by Gary Kwong, Igor Bukanov, Brendan Eich.
git-svn-id: svn://10.0.0.236/trunk@257993 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 21:28:28 +00:00
bclary%bclary.com
e132ae8634 bug 455981 - JavaScript Tests by Jesse Ruderman, Gary Kwong.
git-svn-id: svn://10.0.0.236/trunk@257992 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 21:20:59 +00:00
bclary%bclary.com
e857af7aac bug 453492 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@257991 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 21:17:12 +00:00
bclary%bclary.com
4178047610 bug 452498 - JavaScript Tests by Gary Kwong, Jesse Ruderman, Brendan Eich.
git-svn-id: svn://10.0.0.236/trunk@257990 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 21:09:07 +00:00
bclary%bclary.com
a4d3383300 bug 436700 - JavaScript Test by Sylvain Pasche.
git-svn-id: svn://10.0.0.236/trunk@257989 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 20:40:34 +00:00
bclary%bclary.com
43994bfe73 bug 426827 - JavaScript Test by Jan Darmochwal.
git-svn-id: svn://10.0.0.236/trunk@257988 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 20:38:01 +00:00
bclary%bclary.com
e55fd9589b bug 416737 - JavaScript Tests by Jesse Ruderman, Igor Bukanov.
git-svn-id: svn://10.0.0.236/trunk@257986 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 20:32:08 +00:00
bclary%bclary.com
8d946d4195 bug 375406 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@257985 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 20:29:14 +00:00
bhearsum%mozilla.com
c0d132dc7a bug 506401: Tracking bug for build and release of Firefox 3.6 alpha1 - version bumps to 1.9.2a2pre/3.6a2pre. r=bhearsum, patch=joduinn
git-svn-id: svn://10.0.0.236/trunk@257984 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 20:14:11 +00:00
bclary%bclary.com
f7d42470d9 Bug 493875 - Sisyphus - remove use of -install-global-extension
git-svn-id: svn://10.0.0.236/trunk@257983 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 20:10:57 +00:00
bclary%bclary.com
9b2cdab99d bug 493871 - Sisyphus - incorporate NT debug log output into Sisyphus log.
git-svn-id: svn://10.0.0.236/trunk@257982 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 20:05:15 +00:00
bclary%bclary.com
3a874f9ae8 bug 495307 - JavaScript Tests - update slow-n-*.tests.
git-svn-id: svn://10.0.0.236/trunk@257981 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 20:00:54 +00:00
bclary%bclary.com
abe3e20ee6 bug 480680 - update comments regarding need to hg update -C to work around in tree changes.
git-svn-id: svn://10.0.0.236/trunk@257980 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 19:54:09 +00:00
bclary%bclary.com
1ff364f4dd bug 493870 - force usage of mozilla build's python to prevent build failures due to use of cygwin's.
git-svn-id: svn://10.0.0.236/trunk@257979 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 19:50:10 +00:00
nelson%bolyard.com
12aa3080a2 Bug 493364: can't build with --disable-dbm option when not cross-compiling
Patch contributed by Kouhei Sutou <kou@clear-code.com>
and by Hiroyuki Ikezoe <ikezoe@clear-code.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@257978 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 19:06:37 +00:00
sgautherie.bz%free.fr
ac4fd31217 Bug 433790 - Win16 support should be deleted from NSPR; (Jv2a) prlink.c: a s/_WIN32/XP_OS2/ rewrite; r=(wtc + mozilla%Weilbacher.org)
git-svn-id: svn://10.0.0.236/trunk@257977 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 18:53:16 +00:00
alqahira%ardisson.org
df52bd7958 Bug 509066 - Switch to googpub-phish-shavar. Patch by Sean Murphy <murph@seanmurph.com>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257976 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 18:45:43 +00:00
alqahira%ardisson.org
80ee7642ae Bug 508629 - Remove Carbon font name-based menus and associated code from the Advanced sheet in Appearance preferences. Patch by Stuart Morgan <stuart.morgan+bugzilla@gmail.com>, r=murph, r=me
git-svn-id: svn://10.0.0.236/trunk@257975 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 18:02:23 +00:00
alqahira%ardisson.org
a48c244796 Bug 499829 - Make lastfm.de player actually play when ad-blocking is enabled. Patch by Philippe Wittenbergh, r=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257974 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 17:51:52 +00:00
despotdaemon
16e8540c3b Pseudo-automatic update of changes made by benjamin@smedbergs.us.
git-svn-id: svn://10.0.0.236/trunk@257973 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 17:27:54 +00:00
mkanat%bugzilla.org
64edf00d7e Bug 509054: Internationalize feature descriptions in checksetup.pl
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257972 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 17:12:26 +00:00
smichaud%pobox.com
9a052228a4 Changes to public NPAPI headers matching those on trunk. b=191046 sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257971 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 15:20:50 +00:00
silver%warwickcompsoc.co.uk
32d5946bfd Bug 499200 - Explicitly check for object properties to avoid collisions with prototype properties like "eval" and "watch" in older versions.
ChatZilla only.
r=gijs


git-svn-id: svn://10.0.0.236/trunk@257970 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 14:24:23 +00:00
nboyd%atg.com
6d18c3d6df For getters and setters of accessor propeties, make being absent equivalent
to having value undefined

As per 8.6.1 Table 3.

Patch from Raphael Speyer.


git-svn-id: svn://10.0.0.236/trunk@257969 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 14:04:34 +00:00
alqahira%ardisson.org
b76dee1ec7 Bug 452557 - Add a 'Text Zoom Only' menu item. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=ilya, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257968 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-07 01:30:30 +00:00
gijskruitbosch%gmail.com
08517fc8ab Don't display stuff on startup! rs=Silver on IRC. No bug, was tested before commit. NPOTFFB.
git-svn-id: svn://10.0.0.236/trunk@257967 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 23:26:29 +00:00
jwalden%mit.edu
2f4e226ab1 Bug 507758 - Update nsWildCard.cpp with fixes already made on trunk. r=nelsonb, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257966 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 22:24:44 +00:00
bzbarsky%mit.edu
4b30b90a2d Bug 494283. Clean up placeholders better. r=dbaron, a=samuelsidler
git-svn-id: svn://10.0.0.236/trunk@257965 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 21:31:52 +00:00
rrelyea%redhat.com
502c17c124 patch by nicolas.justin@opentrust.com
r= relyea
 Bug 446592 -  Changing a token password with a PIN reader


git-svn-id: svn://10.0.0.236/trunk@257964 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 17:29:45 +00:00
lpsolit%gmail.com
e6d24416a6 Bug 508713: Remove duplicated code in flag/list.html.tmpl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257963 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 16:08:36 +00:00
mkanat%bugzilla.org
0e073977b2 Bug 508199: A hook for page.cgi
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257961 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 15:14:55 +00:00
mkanat%bugzilla.org
26408df70e Bug 508737: Allow Bugzilla::Template::get_bug_link to take a Bugzilla::Bug object if one is available
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257960 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 15:02:59 +00:00
mkanat%bugzilla.org
6766f544e8 Bug 508729: Cache Bugzilla::Status::BUG_STATE_OPEN
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257959 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 14:59:37 +00:00
mkanat%bugzilla.org
e2c4da13f9 Bug 508186: Speed up UTF-8 table conversion in checksetup
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257958 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 14:56:44 +00:00
mkanat%bugzilla.org
722cbcaa84 Bug 508181: UTF-8 table conversion was failing when there were FKs on the column or on related columns
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257957 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 14:54:22 +00:00
honzab.moz%firemni.cz
0a14e3a08a Bug 427715 - nsCryptoHash apparently being called while NSS is in shutdown state [@ NSSRWLock_LockRead_Util], r=kaie, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257956 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 14:03:54 +00:00
lpsolit%gmail.com
300f2f05d6 Bug 305993: The requestee field may be omitted even when a requestee is already set - Patch by Frédéric Buclin <LpSolit@gmail.com> a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257955 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-06 02:18:51 +00:00
alexei.volkov.bugs%sun.com
6d92b1b007 508467 - libpkix ocsp checker should use "date" argument to obtain the time for cert validity verification. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257952 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-05 22:19:44 +00:00
christophe.ravel.bugs%sun.com
ce4e4e6748 Bug 508259 - Pk11mode crashed on Linux2.4
r=julien.


git-svn-id: svn://10.0.0.236/trunk@257951 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-05 21:31:28 +00:00
lpsolit%gmail.com
8872215623 Bug 415541: Implement $bug->set_flags() and $attachment->set_flags() - Patch by Frédéric Buclin <LpSolit@gmail.com> a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257948 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-05 12:36:22 +00:00
nrthomas%gmail.com
5f53277f4c Bug 507961, Disable partner repack in 3.0.x release automation, r=ccooper
git-svn-id: svn://10.0.0.236/trunk@257946 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-05 03:44:00 +00:00
lpsolit%gmail.com
27ab2437a1 Bug 508416: Bug flags are always displayed in the XML view of bugs - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257945 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-05 01:28:54 +00:00
sgautherie.bz%free.fr
686ecd3c69 Bug 506502 - Remove "MOZ_BITS == 16" parts (in dbm and nsprpub); (Cv1) Remove "MOZ_BITS == 16" blocks; r=wtc
git-svn-id: svn://10.0.0.236/trunk@257942 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-04 18:07:35 +00:00
ghendricks%novell.com
8c1b4ec607 Context menu deletion of tags is broken
git-svn-id: svn://10.0.0.236/trunk@257941 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-04 17:57:24 +00:00
anodelman%mozilla.com
f318f9ede9 Bug 492120 (remove talos code that sends data to old graph server)
p=anodelman, r=catlee


git-svn-id: svn://10.0.0.236/trunk@257940 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-04 16:01:06 +00:00
despotdaemon
f2f7746093 Pseudo-automatic update of changes made by wtc@google.com.
git-svn-id: svn://10.0.0.236/trunk@257938 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 23:25:43 +00:00
despotdaemon
345a929502 Pseudo-automatic update of changes made by wtc@google.com.
git-svn-id: svn://10.0.0.236/trunk@257937 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 23:24:22 +00:00
nrthomas%gmail.com
07fc925f6c Bug 507633, unthrottle 3.0.12 updates on all channels so users see 3.0.13 at general release, p=bhearsum, r=morgamic
git-svn-id: svn://10.0.0.236/trunk@257936 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 20:40:17 +00:00
smichaud%pobox.com
79af5904a0 [Mac 10.4] Crash in [@ nsViewManager::IsViewInserted(nsView*)] using Google Toolbar. b=503391 r=josh
a=dveditz


git-svn-id: svn://10.0.0.236/trunk@257935 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 20:07:14 +00:00
mkanat%bugzilla.org
f8e8a1694a Additional fix for bug 508023, to make upgrades from 3.1.4 succeed.
git-svn-id: svn://10.0.0.236/trunk@257934 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 18:08:09 +00:00
ghendricks%novell.com
7fd79e550d Tag cases with bugs that are fixed when the bug is updated.
git-svn-id: svn://10.0.0.236/trunk@257933 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 17:47:04 +00:00
alqahira%ardisson.org
5958400da0 Bug 401340 - Update Bookmark Bar and Tab bar for 10.5. Patch and images by Philippe Wittenbergh <phiw@l-c-n.com>, r-ish=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257932 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 17:42:21 +00:00
christophe.ravel.bugs%sun.com
ad13f0a9b4 Bug 507482 - NSS 3.12.3 (and later) doesn't build on AIX 5.1
r=nelson
sr=glen - change approved for FIPS by the lab.


git-svn-id: svn://10.0.0.236/trunk@257931 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 16:58:28 +00:00
despotdaemon
0682ba714a Pseudo-automatic update of changes made by bzbarsky@mit.edu.
git-svn-id: svn://10.0.0.236/trunk@257930 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 15:35:14 +00:00
mkanat%bugzilla.org
3336db1a8c Bug 508032: Speed up initializing of email_setting values
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257929 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 15:13:50 +00:00
mkanat%bugzilla.org
1757223aec Bug 508023: Speed up MySQL's bz_alter_column for when we're just adding or removing a DEFAULT
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257928 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 14:44:00 +00:00
mkanat%bugzilla.org
d8d7450b05 Bug 508018: Speed up _fix_defaults for MySQL checksetup upgrades
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257927 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 14:10:50 +00:00
slavomir.katuscak%sun.com
8d0be5cb20 Bug 495934 - Patch adding requireFreshInfo flag. r=alexei
git-svn-id: svn://10.0.0.236/trunk@257926 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 12:44:27 +00:00
nelson%bolyard.com
4b574959fa Add ability to decode unencrypted wallet password files.
git-svn-id: svn://10.0.0.236/trunk@257925 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 07:07:13 +00:00
mkanat%bugzilla.org
0cc37ffe86 Bug 405970: Make checksetup.pl not rederive regex groups every time it runs (this was significantly slowing down checksetup.pl on large installations when there was nothing to do)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257924 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 05:14:41 +00:00
nboyd%atg.com
33a9f4cdcf Fix Bug 506940 - Correct arity of array methods
Patch from Raphel Speyer


git-svn-id: svn://10.0.0.236/trunk@257923 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-03 02:16:33 +00:00
nelson%bolyard.com
f5cecb85ff Bug 507937: pwdecrypt program problems
git-svn-id: svn://10.0.0.236/trunk@257922 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-02 22:40:17 +00:00
aaronr%us.ibm.com
3e4d732230 [XForms] NPOTDB xforms utility function for elements that can specify parameters through attributes or child elements. Bug 497237, p=dion r=olli+aaronr
git-svn-id: svn://10.0.0.236/trunk@257921 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-02 05:24:35 +00:00
nboyd%atg.com
16a73576ee See bug 489329 #52:
Make defineProperty throw a TypeError when attributes is both data and accessor descriptor.  As per 8.10.5 step 9 of the spec.
Patch from Raphel Speyer.


git-svn-id: svn://10.0.0.236/trunk@257920 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-02 01:40:42 +00:00
nboyd%atg.com
29d9a51d58 Fix Bug 507104 - Make RegExp.prototype.constructor non-enumerable
ES5Conform tests expect RegExp.prototype.constructor to have descriptor
{writable:true, enumerable:false, configurable:true}
Patch from Raphel Speyer


git-svn-id: svn://10.0.0.236/trunk@257919 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-02 01:37:59 +00:00
nboyd%atg.com
c7b17a31cf See comment #4 from bug 456389:
reduce and reduceRight throw a TypeError when array empty and no initVal
As per 15.4.4.21 step 5, and 15.4.4.22 step 5 of the spec.
Patch from Raphael Speyer.


git-svn-id: svn://10.0.0.236/trunk@257918 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-02 01:36:01 +00:00
nrthomas%gmail.com
a03800f324 Bug 507633, unthrottle 3.0.12 updates on beta so users see 3.0.13, p=bhearsum, r=morgamic
git-svn-id: svn://10.0.0.236/trunk@257917 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-01 23:21:37 +00:00
lpsolit%gmail.com
9745f7bf95 The previous fix for bug 507389 was bogus, this one is fine, r=mkanat
git-svn-id: svn://10.0.0.236/trunk@257913 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-01 14:01:29 +00:00
lpsolit%gmail.com
a82386898b Bug 507389: [SECURITY] Users can see all products when editing bugs - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257912 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-01 12:37:51 +00:00
mkanat%bugzilla.org
2b1e883e31 Bug 507802: Release Notes for Bugzilla 3.4.1
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257911 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-01 11:37:36 +00:00
mkanat%bugzilla.org
79069dde72 Bug 507326: Make it so that the header template doesn't overwrite any template var named "target".
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257910 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-01 11:33:35 +00:00
nelson%bolyard.com
2eeb28a0e8 Bug 507506: ntmisc.c _MD_WindowsGetSysInfo needs to handle Windows CE
Incorporate Wan-Teh's suggestion for an ifdef.
Patch by Robert Strong. r=nelson


git-svn-id: svn://10.0.0.236/trunk@257908 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-01 02:43:22 +00:00
nrthomas%gmail.com
de091d4b78 Bug 506708, bump nightly version to 3.0.14pre/1.9.0.14pre, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257907 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-01 00:07:38 +00:00
ghendricks%novell.com
8c9c907f7b Notes are getting truncated
git-svn-id: svn://10.0.0.236/trunk@257906 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 21:50:15 +00:00
bhearsum%mozilla.com
77e5b26746 bug 506780: create throttled MU for FF3.0.13->FF3.5.2 - update verify config updates. r=bhearsum, patch=nthomas
git-svn-id: svn://10.0.0.236/trunk@257905 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 20:10:31 +00:00
glen.beasley%sun.com
cf193f967c 507538 allow selection of token to provide the signature verification r=glen b patch provided by Christina Fu
git-svn-id: svn://10.0.0.236/trunk@257904 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 20:03:58 +00:00
glen.beasley%sun.com
93d815e02c 507534 fix missing param in javadoc patch provided by Mattew Harmsen
git-svn-id: svn://10.0.0.236/trunk@257903 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 19:58:21 +00:00
bhearsum%mozilla.com
651b036587 bug 507633: update AUS throttling for Firefox 3.0.13 release - enable 3.0.13 throttling. r=morgamic
git-svn-id: svn://10.0.0.236/trunk@257902 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 19:26:07 +00:00
christophe.ravel.bugs%sun.com
18255f226b Bug 507482 - NSS 3.12.3 (and later) doesn't build on AIX 5.1
r=nelson


git-svn-id: svn://10.0.0.236/trunk@257901 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 18:35:44 +00:00
lpsolit%gmail.com
e822f5b1f7 Bug 341539: Component list not filtered when a product selected on Request Queue or Edit Flag Types - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257894 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 15:59:42 +00:00
ted.mielczarek%gmail.com
f6ac1818d3 bug 507506 - ntmisc.c _MD_WindowsGetSysInfo needs to handle Windows CE. Patch by Robert Strong <robert.bugzilla@gmail.com>, r=wtc
git-svn-id: svn://10.0.0.236/trunk@257893 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 15:51:37 +00:00
cltbld
4622f0d0b0 "Automated configuration bump: moz19-branch-patcher2.cfg, for firefox 3.0.13 build1"
git-svn-id: svn://10.0.0.236/trunk@257892 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 11:51:12 +00:00
alqahira%ardisson.org
d26ff67af4 Bug 507539 - white-space clean-up in ad_blocking.css. Patch by Philippe Wittenbergh <phiw@l-c-n.com>, r=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257889 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 03:55:35 +00:00
catlee%mozilla.com
3086d1fe7d Bug 506708: Tracking bug for build and relesae of firefox 3.0.13 -
bootstrap bumps for xulrunner 3.0.13, build1. r=nthomas


git-svn-id: svn://10.0.0.236/trunk@257887 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 03:20:49 +00:00
catlee%mozilla.com
6419d6dcbd Bug 506708: Tracking bug for build and relesae of firefox 3.0.13 -
bootstrap bumps for 3.0.13, build1. r=bhearsum,patch=nthomas

pulldates by catlee


git-svn-id: svn://10.0.0.236/trunk@257886 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-31 02:59:48 +00:00
nelson%bolyard.com
28aa6d6dff Bug 507422: crash [@ PORT_FreeArena - lg_mkSecretKeyRep] when PORT_NewArena fails
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@257884 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 23:28:21 +00:00
rrelyea%redhat.com
75c61bf74f Bug 505559 - Need function to identify the one and only default internal private key slot.
r=nelson


git-svn-id: svn://10.0.0.236/trunk@257883 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 22:43:32 +00:00
aaronr%us.ibm.com
207d1377d4 [XForms] NPOTDB Output with mediatype and SVG doesn't work properly. Bug 506915, p=philipp r=surkov+aaronr
git-svn-id: svn://10.0.0.236/trunk@257882 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 22:21:56 +00:00
glen.beasley%sun.com
1ea657bdf8 498509 produce debuggable optimize builds for mozilla on Mac OS X r=nelson
git-svn-id: svn://10.0.0.236/trunk@257881 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 21:36:02 +00:00
ghendricks%novell.com
ad82661a98 Bug 476024 - Include the test plan name in the Product dashboard Test case tab. patch by maparent@miranda.com; r=ghendricks
git-svn-id: svn://10.0.0.236/trunk@257877 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 20:44:47 +00:00
bhearsum%mozilla.com
88497320a8 bug tracking bug for build and release of firefox 3.5.2 - 3.5.3pre/1.9.1.3pre bumps. r=nthomas
git-svn-id: svn://10.0.0.236/trunk@257875 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 18:46:52 +00:00
alqahira%ardisson.org
ea1e579040 Bug 507197 - Camino no longer sending the accept-charset header. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257873 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 17:26:41 +00:00
honzab.moz%firemni.cz
23d25d270b Bug 483440 - PSM doesn't detect invalid OID encodings in Cert Viewer Details tab, r=nelson+johnath, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257872 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 13:42:07 +00:00
honzab.moz%firemni.cz
179e89883a Bug 483437 - PSM doesn't properly escape AVA Values in Cert Viewer Details tab, r=nelson+benjamin, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257871 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 13:38:45 +00:00
cltbld
66f8aa7583 Automated configuration bump: moz191-branch-patcher2.cfg, from 3.5.1 to 3.5.2 build 1
git-svn-id: svn://10.0.0.236/trunk@257870 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 13:24:49 +00:00
honzab.moz%firemni.cz
67c1f31b0b Backing out patch for bug 483437, breaks build
git-svn-id: svn://10.0.0.236/trunk@257869 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 11:13:01 +00:00
honzab.moz%firemni.cz
83739e327d Bug 483437 - PSM doesn't properly escape AVA Values in Cert Viewer Details tab, r=benjamin+nelson
git-svn-id: svn://10.0.0.236/trunk@257868 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 10:59:07 +00:00
dveditz%cruzio.com
0ac134b2bf bug 485052 add default OCSP responders for some CA's. patch by wtc, r=kaie, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257867 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 08:21:57 +00:00
stuart.morgan%alumni.case.edu
7be68ff658 Camino only - Update Info.plist for Breakpad changes
git-svn-id: svn://10.0.0.236/trunk@257866 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 04:24:24 +00:00
stuart.morgan%alumni.case.edu
ba0e89265f Camino only - Update breakpad to r366 (no bug)
git-svn-id: svn://10.0.0.236/trunk@257865 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 04:22:58 +00:00
nelson%bolyard.com
05172d497c Bug 504456: Exploitable heap overflow in NSS shell expression parsing
Patch contributed by Jeff Walden <jwalden+bmo@mit.edu>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@257864 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 01:46:42 +00:00
rrelyea%redhat.com
54b03892a0 Bug 505559 - Need function to identify the one and only default internal private key slot.
r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@257863 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 00:37:29 +00:00
rrelyea%redhat.com
a4a30049a7 r=nelsonb
Bug 505561 -  Need a generic function a la SECMOD_OpenUserDB() that can be used on non-softoken modules.


git-svn-id: svn://10.0.0.236/trunk@257862 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 00:29:35 +00:00
jwalden%mit.edu
fbed0daa48 Bug 332173 - Problems with regexp parsing of '~' in nsIZipReader.findEntries (and other nsWildCard uses). Patch by Nelson Bolyard <nelson@bolyard.me>, r=jwalden, a=ss
git-svn-id: svn://10.0.0.236/trunk@257860 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-30 00:07:29 +00:00
julien.pierre.boogz%sun.com
3ee423e2b0 Fix for bug 498511 . Add optional debug info to optimized builds on Linux . r=nelson
git-svn-id: svn://10.0.0.236/trunk@257859 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 23:43:41 +00:00
jdrew%mozilla.com
7de7ad7e91 Bug 479950 - Update LCMS to 1.18a. p=jrmuizel r=bholley a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257858 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 22:43:28 +00:00
wtc%google.com
b643743a95 Bug 507228: coreconf.dep doesn't need to contain the NSS version number.
r=christophe.ravel.


git-svn-id: svn://10.0.0.236/trunk@257856 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 21:50:47 +00:00
jwalden%mit.edu
f5e98d0588 Backing out bug 332173 changes until I can figure out the orange
git-svn-id: svn://10.0.0.236/trunk@257855 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 21:50:21 +00:00
nelson%bolyard.com
ed1126d939 Bug 485690: LDAP SSL connections with clientauth sometimes use wrong credentials
r=Mark Smith


git-svn-id: svn://10.0.0.236/trunk@257854 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 21:43:27 +00:00
bzbarsky%mit.edu
ea3a86ed4b Bug 451898. When stopping an error page load, make sure to null out mLSHE. r=biesi, a=samuelsidler
git-svn-id: svn://10.0.0.236/trunk@257853 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 21:26:29 +00:00
jwalden%mit.edu
15334bed7b Bug 332173 - Problems with regexp parsing of '~' in nsIZipReader.findEntries (and other nsWildCard uses). Patch by Nelson Bolyard <nelson@bolyard.me>, r=jwalden, a=ss
git-svn-id: svn://10.0.0.236/trunk@257851 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 21:12:47 +00:00
wtc%google.com
ea17f6ca1a Bug 405297: Fix MingW GCC build errors. r=rrelyea.
Modified Files:
	Makefile cobject.c


git-svn-id: svn://10.0.0.236/trunk@257850 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 20:15:19 +00:00
gozer%mozillamessaging.com
61e2558103 Bug 506230. Patcher configuration for Thunderbird 3.0 Beta 3. r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257849 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 19:45:23 +00:00
wtc%google.com
e513e19bb4 Bug 505889: PR_SetTraceOption PRTraceUnLockHandles should call PR_Unlock
instead of PR_Lock.  The patch is contributed by timeless
<timeless@mozdev.org>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@257848 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 19:42:06 +00:00
wtc%google.com
ae0e484a8a Bug 504379: Build NSPR with optimization flag -O2 instead of -O for Windows
Mobile because -O is deprecated.  The patch is contributed by Doug Turner
<doug.turner@gmail.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@257847 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 19:22:40 +00:00
alqahira%ardisson.org
ff51f5db21 Bug 502536 - Omnibus ad-blocking bug for July 2009 (also fixes bug 503742, bug 503745, and bug 503786). Patch by me, with some CSS rules from Philippe Wittenbergh; r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257846 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 18:10:32 +00:00
stuart.morgan%alumni.case.edu
82c9431b42 Camino only - Bug 436012: Use OS folder icons on 10.5+. r=hendy sr=pink
git-svn-id: svn://10.0.0.236/trunk@257845 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 17:13:32 +00:00
lpsolit%gmail.com
3d97b4a0a4 Bug 367343: Doc imprecision concerning the "usetargetmilestone" parameter - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks
git-svn-id: svn://10.0.0.236/trunk@257844 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 15:24:08 +00:00
lpsolit%gmail.com
64cfd2be83 Bug 423963: OS-specific installation notes should be clearer in how to use ScriptInterpreterSource - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap
git-svn-id: svn://10.0.0.236/trunk@257843 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 12:34:55 +00:00
lpsolit%gmail.com
6efa6d8d98 Bug 503543: Merge README, QUICKSTART, UPGRADING - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257841 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 08:18:53 +00:00
wtc%google.com
968560c672 Bug 500495: Update NSS to NSS_3_12_3_1_RTM. r=kaie.
Approved for 1.9.0.13. a=ss for release-drivers.


git-svn-id: svn://10.0.0.236/trunk@257838 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 01:54:54 +00:00
julien.pierre.boogz%sun.com
0f6198fcd1 Fix for bug 507041 . Correct detection of VC6 . r=nelson
git-svn-id: svn://10.0.0.236/trunk@257837 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-29 00:15:46 +00:00
nelson%bolyard.com
dd033b61ea Bug 506407: NULs in cert SAN email addresses are not properly escaped
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@257836 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 23:47:27 +00:00
lpsolit%gmail.com
6638f606ad Bug 233400: The "3rd-party integration" section should point to Bugzilla:Addons on wiki - Patch by Frédéric Buclin <LpSolit@gmail.com> r=justdave
git-svn-id: svn://10.0.0.236/trunk@257835 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 22:02:05 +00:00
lpsolit%gmail.com
95953d73f8 Bug 380267: Release notes for 3.0 don't flag new MySQL version requirement as changed from 2.22 - Patch by Frédéric Buclin <LpSolit@gmail.com> r=dkl
git-svn-id: svn://10.0.0.236/trunk@257833 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 21:28:55 +00:00
ghendricks%novell.com
69393d8f67 Use new timezone preference in Testopia time fields.
git-svn-id: svn://10.0.0.236/trunk@257832 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 18:47:44 +00:00
lpsolit%gmail.com
f6ff881989 Bug 201415: Remove the Introduction (Chapter 2) chapter - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks
git-svn-id: svn://10.0.0.236/trunk@257831 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 18:16:30 +00:00
lpsolit%gmail.com
13dd51c090 Bug 450570: Installation docs don't mention install-modules.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat
git-svn-id: svn://10.0.0.236/trunk@257830 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 18:00:53 +00:00
lpsolit%gmail.com
b99c0cdd87 Remove unused file - r=wicked on IRC
git-svn-id: svn://10.0.0.236/trunk@257829 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 17:04:14 +00:00
despotdaemon
61d244a020 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@257828 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 16:54:13 +00:00
ghendricks%novell.com
32a441f106 Bugs are not showing up in history tab of caseruns
git-svn-id: svn://10.0.0.236/trunk@257824 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 16:10:59 +00:00
despotdaemon
4248e1bed9 Pseudo-automatic update of changes made by LpSolit@gmail.com.
git-svn-id: svn://10.0.0.236/trunk@257823 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 13:30:52 +00:00
despotdaemon
12130bf62c Pseudo-automatic update of changes made by LpSolit@gmail.com.
git-svn-id: svn://10.0.0.236/trunk@257822 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 13:30:29 +00:00
nboyd%atg.com
d2f8df3446 Fix Bug 506859 - Add name and constructor properties to each of the Error constructors
Patch from Raphel Speyer


git-svn-id: svn://10.0.0.236/trunk@257821 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 12:41:36 +00:00
nboyd%atg.com
5146e4334f Set the prototype of bound functions to Function.prototype
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257820 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 12:22:17 +00:00
nboyd%atg.com
929d1b5bcd Fix Bug 506436 - Implement Function.bind
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257816 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 02:49:17 +00:00
mkanat%bugzilla.org
830f80ca03 Bug 506500: Complete Release Notes for Bugzilla 3.4
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257815 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 02:49:07 +00:00
nboyd%atg.com
1d48eb38a0 Allow getOwnPropertyDescriptor to be called for objects with no scope, e.g. functions returned from Function.bind
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257814 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 02:22:39 +00:00
nboyd%atg.com
81c1d523fc corrected the descriptor properties of built-ins
See https://bugzilla.mozilla.org/show_bug.cgi?id=489329#c49


git-svn-id: svn://10.0.0.236/trunk@257813 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 01:59:41 +00:00
nelson%bolyard.com
3eedbe340a [Bug 504456] Exploitable heap overflow in NSS shell expression parsing
r=Alexei.Volkov.  This patch is almost identical to the one committed for
[Bug 332173] Problems with regexp parsing of '~' in nsIZipReader.findEntries
r=Jeff Walden <jwalden+bmo@mit.edu>


git-svn-id: svn://10.0.0.236/trunk@257812 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-28 01:23:29 +00:00
christophe.ravel.bugs%sun.com
eb7690c9df Bug 323196: NSS 3.12 does not build on RHEL21
r=julien.


git-svn-id: svn://10.0.0.236/trunk@257809 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-27 20:33:02 +00:00
julien.pierre.boogz%sun.com
e1c8324c96 Fix for bug 323196 . pk11mode does not build on RHEL 2.1 . r=christophe
git-svn-id: svn://10.0.0.236/trunk@257808 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-27 19:59:52 +00:00
alqahira%ardisson.org
92840006de Bug 483360 - config.css/netError.css need a transparent Camino logo. Updated image by Philippe Wittenbergh, r=me; supporting CSS changes by me, r=philippe; sr=smorgan on everything
git-svn-id: svn://10.0.0.236/trunk@257806 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-27 17:49:09 +00:00
nboyd%atg.com
2834b2b86d Ensure that getters/setters defined through defineProperty are actually used
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257805 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-27 14:59:56 +00:00
alqahira%ardisson.org
b53938fd82 Bug 506420 - Upgrade to Flashblock 1.5.11. r/sr=smorgan (final dummy checkin to get cvs to check this file in)
git-svn-id: svn://10.0.0.236/trunk@257804 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-27 03:21:56 +00:00
alqahira%ardisson.org
363c416175 Bug 506420 - Upgrade to Flashblock 1.5.11. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257803 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-27 03:20:32 +00:00
alqahira%ardisson.org
ddea33c47d Bug 506420 - Upgrade to Flashblock 1.5.11. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257802 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-27 03:13:04 +00:00
nboyd%atg.com
f4d3d29393 Fix Bug 505524 - Implement Date.toJSON
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257801 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-27 02:04:23 +00:00
alqahira%ardisson.org
419de542c8 Bug 504425 - Pages with no <title> look odd in new autocomplete window. Patch by Dan Weber <dan.j.weber@gmail.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257800 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-27 02:02:27 +00:00
alqahira%ardisson.org
794bfbf504 Bug 162450 - Search names/titles of bookmarks and history items in location bar autocomplete. Patch by Dan Weber <dan.j.weber@gmail.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257799 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-26 02:46:04 +00:00
nboyd%atg.com
5aa3abe357 Fix Bug 505463 - Implement Date.toISOString
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257798 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-26 02:35:38 +00:00
inonit%inonit.com
b1e0e1750f Allow user to specify JUnit URL to use; allow testsrc compile task to be executed without lib/ directory existing or without JUnit being already downloaded
git-svn-id: svn://10.0.0.236/trunk@257797 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-25 15:12:13 +00:00
nboyd%atg.com
0c8a93379b Fix Bug 505890 - Implement String.trim
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257796 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-25 12:29:03 +00:00
mkanat%bugzilla.org
126855667f Bug 506036: Fix typo in install-module.pl POD: --all-upgrade -> --upgrade-all
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257795 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-25 02:07:55 +00:00
alqahira%ardisson.org
bdf0c0fc6c Bug 501246 - Disable certain menu items on blocked phishing and malware pages. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=murph, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257794 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-24 23:50:53 +00:00
alqahira%ardisson.org
4b69e3502b Bug 391076 - CJK font-names not correctly recognised/understood in the Fonts tab of the Appearance prefpane. Also fixes bug 502535 and bug 502538. Patch by Sean Murphy <murph@seanmurph.com>, r=philippe, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257793 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-24 21:33:06 +00:00
lpsolit%gmail.com
cb7683d271 Bug 457524: Reports don't calculate totals correctly if one of the axes contain utf-8 data
and

Bug 469794: On windows, export bug list to CSV breaks because of extra line breaks

Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257791 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-24 18:58:46 +00:00
nboyd%atg.com
3731d530df Remove unused variable.
git-svn-id: svn://10.0.0.236/trunk@257790 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-24 13:58:30 +00:00
nboyd%atg.com
2f4c9e82e4 Remove unused imports.
git-svn-id: svn://10.0.0.236/trunk@257789 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-24 13:57:40 +00:00
slavomir.katuscak%sun.com
cea42614de Bug 484360: Backed out part of previous patch, because Tinderboxes went orange. Disabling CRLDP tests.
git-svn-id: svn://10.0.0.236/trunk@257788 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-24 12:19:51 +00:00
slavomir.katuscak%sun.com
2516d95dce Bug 484360: CRLDP tests + some small fixes. r=alexei
git-svn-id: svn://10.0.0.236/trunk@257787 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-24 09:10:54 +00:00
alqahira%ardisson.org
fb20d081ca Bug 505946 - Add a border around the cert exception overrride box on the missing/invalid certificate error page to improve behavior with 'Always use my colors' checked. Patch by Philippe Wittenbergh, r=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257786 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-24 04:31:09 +00:00
nrthomas%gmail.com
bb25f97306 Bug 496491 - [Bootstrap] Move update verify bumping to Updates step, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257785 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-24 02:27:37 +00:00
nboyd%atg.com
cdfa99a296 Fix Bug 505862 - Implement Array.isArray
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257784 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-24 01:26:14 +00:00
wurblzap%gmail.com
e0b96c5c54 Bug 506056 - Status and Resolution in Search description not localizable.
Patch by Marc Schumann <wurblzap@gmail.com>;
r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257783 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 22:01:08 +00:00
lpsolit%gmail.com
b288157040 Bug 504944: Use of uninitialized value in hash element at Bugzilla/Field/Choice.pm line 253 - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257782 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 21:35:59 +00:00
despotdaemon
60a88cf026 Pseudo-automatic update of changes made by benjamin@smedbergs.us.
git-svn-id: svn://10.0.0.236/trunk@257781 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 17:59:04 +00:00
despotdaemon
d2fee18dd1 Pseudo-automatic update of changes made by toddw@activestate.com.
git-svn-id: svn://10.0.0.236/trunk@257780 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 17:21:41 +00:00
despotdaemon
f314964006 Pseudo-automatic update of changes made by benjamin@smedbergs.us.
git-svn-id: svn://10.0.0.236/trunk@257779 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 17:15:22 +00:00
kairo%kairo.at
0480a68935 make the correct builds watched for SeaMonkey
git-svn-id: svn://10.0.0.236/trunk@257778 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 15:37:43 +00:00
bhearsum%mozilla.com
006efa33c9 bug 500755: RelEng tasks to set up an Electrolysis project branch - Nagios monitoring file for electrolysis. r=bhearsum, patch=lsblakk
git-svn-id: svn://10.0.0.236/trunk@257777 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 13:25:01 +00:00
nboyd%atg.com
28a9737eea Patch from Robert Bowdidge:
Improve position accuracy in Rhino parser.

These changes continue to improve position accuracy in the
older Node parse tree nodes, primarily for expressions.  The
changes do the following:

* Set the line number of infix operations to the line where
the operator appears, not where the overall expression begins.

* Fix memberExprTail to mark function calls on the line where
the left paren enclosing the expressions appears, rather than
where the name appears.

* Ensure that position information is gathered for
objectLiteral property lists, and that the key and value both
get accurate line information.

* Mark all string literal nodes with the line where the string appears.

These changes should help anyone reporting error messages
based on the lineno field of a Node or doing any other
position-sensitive operations with nodes.

Background:

Before the 11/2008 submission of the new AstNode parse tree,
line numbers were recorded only for statements, not for
expressions.  Steve Yegge's new changes added line number
information for many nodes, and also added more precise
information to the new ASTnodes based on absolute offset in the
text stream.

One drawback of the line number information for plain Nodes is
that it follows the AstNode's convention of having the
position mark the start of the expression.  This matches the
behavior of positions in AstNode where intermediate points of
interest (the operator in an infix binary expression, or the
parentheses in a function call) are also remembered as offsets from
the beginning of the overall expression.

However, this causes problems for anyone using the older Node parse
tree because naive code generating errors or source mappings
only have access to the stored line number, and might point at code
multiple lines away from the actual source of the problem.  An
error in a multi-line condition would point to the beginning
of the condition, or a caller trying to show the location of a
function call would point at the beginning of the name
representing the function, even if that name were a few lines
away.  We see a bunch of these multi-line expressions in our
own source code, and an unchanged Rhino would direct programmers
at the wrong line for the error.

Following the convention that the line number always
represents the line of the most representative "token" not
only helps understanding, but gives better information.  We
can still find the entire range of the expression by looking
at the lines of all sub-expressions, and we can find the line
and column of an arbitrary interesting Node quickly by
assuming the line number is correct, then looking at the file
at the absolute position given by the AstNode, and searching
backwards in the text for a carriage return.

I searched a bit in the Rhino sources for clients of getLineno()
who might be affected by these changes, and didn't see any obvious
cases where these changes might cause problems.


git-svn-id: svn://10.0.0.236/trunk@257776 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 12:04:14 +00:00
reed%reedloden.com
fc221f0340 Bug 505640 - "Linkify bug numbers when displaying bug summary at the top of a bug" [p=reed r=LpSolit a=LpSolit]
git-svn-id: svn://10.0.0.236/trunk@257775 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 06:36:10 +00:00
rob_strong%exchangecode.com
0d6c01ba3f Bug 502723 - updater checks the wrong MAX_PATH define. patch=nick.kreeger@park.edu r=rstrong, approval1.9.0.13=dveditz
git-svn-id: svn://10.0.0.236/trunk@257774 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 02:34:38 +00:00
mkanat%bugzilla.org
322b8aa06c Bug 505592: Make add_see_also and remove_see_also call check_can_change_field
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257773 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 02:16:57 +00:00
nelson%bolyard.com
cedb969a3b Bug 505858: NSS_RegisterShutdown can return without unlocking nssShutdownList.lock
r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@257772 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 01:56:40 +00:00
nrthomas%gmail.com
59229bb087 Bug 502608, version bump to 3.0.13pre/1.9.013pre following Fx3.0.12 release, p=lsblakk, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257771 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-23 00:16:15 +00:00
mkanat%bugzilla.org
e973a59255 Bug 505484: Fix the return value of Bug.history to be more like the return value of Bug.get
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257770 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 21:35:46 +00:00
cltbld
3787cdfc05 Automated update from host egg.build.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@257769 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 20:42:01 +00:00
dkl%redhat.com
28fa8f2d44 Bug 505796 - Bugzilla::Group::grant_direct has refers to $self->{members_direct} instead of $self->{grant_direct}
Patch by Dave Lawrence <dkl@redhat.com> - r/a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257767 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 19:33:29 +00:00
stuart.morgan%alumni.case.edu
65520f5e99 Camino only - Bug 505601: Remove SharedMenusCocoa source from the tree. sr=pink
git-svn-id: svn://10.0.0.236/trunk@257766 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 19:17:48 +00:00
stuart.morgan%alumni.case.edu
270e9d125c Camino only - Bug 505601: Stop building SharedMenusCocoa. sr=pink
git-svn-id: svn://10.0.0.236/trunk@257765 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 17:39:53 +00:00
nboyd%atg.com
5c0eb81bd7 Fix javadoc.
git-svn-id: svn://10.0.0.236/trunk@257764 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 14:01:07 +00:00
nboyd%atg.com
9a43759f3c Don't depend on Locale.ROOT, which requires JDK 1.6.
git-svn-id: svn://10.0.0.236/trunk@257763 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 12:31:57 +00:00
nboyd%atg.com
d2c1b16b8b Remove unused imports.
git-svn-id: svn://10.0.0.236/trunk@257762 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 12:18:05 +00:00
nboyd%atg.com
75614c3f18 Adds the JSON built-in object
See bug 505211
Contributed by Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257761 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 12:15:22 +00:00
nrthomas%gmail.com
455967ab76 Bump xulrunner watcher for gecko version change to 1.9.1.2pre (after Fx3.5.1 release)
git-svn-id: svn://10.0.0.236/trunk@257760 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 09:45:05 +00:00
nrthomas%gmail.com
7f763bb436 Bump filenames for Thunderbird version change to 3.0b4pre
git-svn-id: svn://10.0.0.236/trunk@257759 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 09:36:21 +00:00
alqahira%ardisson.org
8c981b4125 Bug 505334 - Clean up netError.css and config.css and remove alert-exclam.gif. warning.png by Jon Hicks back in '06 (bug 303193), patch by me, r=philippe, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257758 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 05:16:37 +00:00
stuart.morgan%alumni.case.edu
151349fa54 Camino only - Turn off GCC_ENABLE_SYMBOL_SEPARATION for SMC and Growl as well to fix the build
git-svn-id: svn://10.0.0.236/trunk@257757 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 04:42:44 +00:00
stuart.morgan%alumni.case.edu
7c65b7e24f Camino only - Turn off separate PCH for Sparkle, since it's incompatible with dwarf
git-svn-id: svn://10.0.0.236/trunk@257755 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 04:09:18 +00:00
stuart.morgan%alumni.case.edu
5a1e190d5d Camino only - Bug 495513: Generate full symbols for third-party frameworks. r=ardissone
git-svn-id: svn://10.0.0.236/trunk@257754 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 03:26:39 +00:00
rob_strong%exchangecode.com
b394ca6d22 Bug 499770 - um.activeUpdate is null in onStopRequest for some edgecases (updated tests as well). r=dtownsend, approval1.9.0.13=dveditz
git-svn-id: svn://10.0.0.236/trunk@257753 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-22 00:33:45 +00:00
bhearsum%mozilla.com
e4b720f992 bug 505540: remove Firefox 3.0.11 throttling after 3.0.12 is shipped. r=morgamic.
git-svn-id: svn://10.0.0.236/trunk@257752 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 22:13:40 +00:00
morgamic%mozilla.com
f6b209fb03 Checking in fix for bug 505540.
git-svn-id: svn://10.0.0.236/trunk@257750 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 21:05:00 +00:00
mkanat%bugzilla.org
04f21fbc05 Bug 505490: Make Bug.comments and Bug.attachments take an "ids" argument instead of a "bug_ids" argument
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257748 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 18:36:40 +00:00
nboyd%atg.com
6417de6103 Actually disable this test.
git-svn-id: svn://10.0.0.236/trunk@257747 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 17:39:05 +00:00
mkanat%bugzilla.org
4ec9dae731 The POD for Bug.history was incorrectly indented.
git-svn-id: svn://10.0.0.236/trunk@257746 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 17:37:33 +00:00
nboyd%atg.com
372933aa9e Add credit for the fix of 505299.
git-svn-id: svn://10.0.0.236/trunk@257745 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 16:58:06 +00:00
nboyd%atg.com
6890620543 Fix Bug 505299 - String.to{Upper,Lower}Case broken in Turkish locale
git-svn-id: svn://10.0.0.236/trunk@257744 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 16:55:11 +00:00
mkanat%bugzilla.org
87599a62d8 Bug 505390: Make Bugzilla (and thus the WebService) throw an error when you try to add a private comment but aren't an insider.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257743 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 16:08:47 +00:00
bhearsum%mozilla.com
d8e691c4c3 bug 502608: tracking bug for build and release of firefox 3.0.12 - last update of MU patcher config (use nightly paths for all MARs).
git-svn-id: svn://10.0.0.236/trunk@257742 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 11:52:51 +00:00
nboyd%atg.com
f1e52444c0 Make Object.getOwnPropertyDescriptor work for members of builtin objects
Previously Object.getOwnPropertyDescriptor(Math, "PI") returned undefined.

This patch makes the members of builtin objects have descriptors with
Writable=true, Enumerable=false, Configurable=true for function properties, and
Writable=false, Enumerable=false, Configurable=false for non-function
properties

See https://bugzilla.mozilla.org/show_bug.cgi?id=489329


git-svn-id: svn://10.0.0.236/trunk@257741 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 00:42:06 +00:00
nboyd%atg.com
dde158ec11 Allow Object.create to accept null as a first argument
git-svn-id: svn://10.0.0.236/trunk@257740 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 00:35:28 +00:00
nboyd%atg.com
3249bb3c87 Fix warnings.
git-svn-id: svn://10.0.0.236/trunk@257739 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 00:27:59 +00:00
lpsolit%gmail.com
e39de6f55c Bug 504522: The search field on index.cgi is not cleared automatically when entering the field (IE 7 and older only) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=pyrzak r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257738 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-21 00:23:36 +00:00
alqahira%ardisson.org
1592d9937e Bug 479554 - Update anti-phishing error page to use Camino's blocked icon as the badge. Image and patch by Philippe Wittenbergh <phiw@l-c-n.com>, r=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257737 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-20 23:03:38 +00:00
smichaud%pobox.com
dd30fb16b2 Stop nsMenuItemIconX object from possibly outliving its nsMenuObjectX owner. b=499600 r=josh a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257736 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-20 22:59:18 +00:00
bhearsum%mozilla.com
8c343e907a bug 505333: enable 3.0.12 throttling in AUS configuration. r=morgamic
git-svn-id: svn://10.0.0.236/trunk@257735 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-20 22:33:56 +00:00
bhearsum%mozilla.com
9690951ef9 bug 502608: tracking bug for build and release of firefox 3.0.12 - update the MU patcher config for 3.0.12 -> 3.5.1. r=catlee
git-svn-id: svn://10.0.0.236/trunk@257734 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-20 21:00:09 +00:00
nelson%bolyard.com
0c451edb50 Update version strings to 3.12.4.4 for RC4 of softoken.
Note that NSS and UTIL still say Beta. Softoken does not say Beta.
Modified Files: nss/nss.h softoken/softkver.h util/nssutil.h


git-svn-id: svn://10.0.0.236/trunk@257732 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-20 20:07:00 +00:00
bhearsum%mozilla.com
bf9048cd9a bug 504094: tracking bug for build and release of Firefox 3.5.1 - bump nightly builds to 3.5.2pre. r=catlee
git-svn-id: svn://10.0.0.236/trunk@257731 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-20 16:29:36 +00:00
mkanat%bugzilla.org
8217af0f55 Bug 490928: Use a clearer word than "Commit" for filing and updating bugs.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=pyrzak, r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257730 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-20 04:20:45 +00:00
mkanat%bugzilla.org
f3ab5590b8 Bug 490783: UI should use "Search" everywhere instead of "Find"
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=pyrzak, r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257729 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-20 04:17:44 +00:00
mkanat%bugzilla.org
57e88fa6fc Bug 488943: Clarify the text of the "Private" checkbox for comments and attachments
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=pyrzak, r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257728 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-20 04:14:18 +00:00
mkanat%bugzilla.org
72f7ffea5f Bug 314364: Make QuickSearch use "matches" for comment searches instead of "substring"
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257727 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-20 04:10:57 +00:00
kairo%kairo.at
bf440fd32d backout the backout of the SeaMonkey patcher config bump, the updates re-run did everything needed even with a bump failure (backout was slightly too late)
git-svn-id: svn://10.0.0.236/trunk@257726 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-19 12:57:21 +00:00
lpsolit%gmail.com
8e7c180c19 Bug 503821: Link in "Delete Tag?" user error triggers "Suspicious action" prompt - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257725 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-19 12:03:39 +00:00
kairo%kairo.at
743eea0a6f revert patch config for a re-run
git-svn-id: svn://10.0.0.236/trunk@257724 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-18 21:23:20 +00:00
seabld
bda1cc9ab8 Automated configuration bump: moz191-seamonkey-branch-patcher2.cfg, from 2.0a3 to 2.0b1 build 1
git-svn-id: svn://10.0.0.236/trunk@257723 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-18 19:25:29 +00:00
lpsolit%gmail.com
041ff6686c Bug 323606: sanitycheck.cgi should offer a link to fix everconfirmed - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257721 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-18 17:05:09 +00:00
ghendricks%novell.com
86e5e98f29 Bug 456743 - Add the ability to disable field values (mark them as inactive)
patch by ghendricks@novell.com r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257720 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-17 22:40:19 +00:00
wicked%sci.fi
c91442a306 Bug 472274: Solid black line on the timetracking summary row of buglist looks too heavy, use lighter approach suggested by Aaron Larson - Patch by Teemu Mannermaa <wicked@sci.fi> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257719 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-17 14:54:59 +00:00
lpsolit%gmail.com
ff7b3a51f4 Bug 503290: Email::Send 2.196 has a bug in the SMTP module - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257718 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-17 01:07:24 +00:00
nboyd%atg.com
660a561dfc Changes necessary to get "ant junit-all" to run successfully.
git-svn-id: svn://10.0.0.236/trunk@257717 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-16 15:17:49 +00:00
bhearsum%mozilla.com
8e869538d4 bug 504094: tracking bug for build and release of Firefox 3.5.1 - patcher config fix to fix beta channel update snippets. r=3.5.1
git-svn-id: svn://10.0.0.236/trunk@257716 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-16 06:05:24 +00:00
cltbld
8ea921185d Automated configuration bump: moz191-branch-patcher2.cfg, from 3.5rc3 to 3.5.1 build 1
git-svn-id: svn://10.0.0.236/trunk@257715 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-16 03:30:36 +00:00
lpsolit%gmail.com
2158ba3c3b Bug 476305: Clean up and merge HTML filtering code - Patch by Vitaly Fedrushkov <vitaly.fedrushkov@gmail.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257714 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-16 01:30:52 +00:00
lpsolit%gmail.com
986f2b7766 Bug 504418: mod_perl CGI requirement no longer newer than base CGI requirement - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257713 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-16 01:19:55 +00:00
nelson%bolyard.com
35ecd691af Bug 504405: pkix_pl_CrlDp_Create will fail on alloc success because of a missing !
Bug 504408: pkix_pl_CrlDp_Create will always fail if dp->distPointType != generalName
Bugs found by Coverity.  Patches by Timeless <timeless@bemail.org>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@257712 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-15 22:38:23 +00:00
nelson%bolyard.com
2bafc7f497 Bug 504398: pkix_pl_AIAMgr_GetHTTPCerts could crash if SEC_GetRegisteredHttpClient fails
Bugs found by Coverity.  Patch by Timeless <timeless@bemail.org>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@257711 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-15 22:36:45 +00:00
nboyd%atg.com
f7fa4192c3 Add two more line number tests.
git-svn-id: svn://10.0.0.236/trunk@257710 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-15 20:26:01 +00:00
gijskruitbosch%gmail.com
9f11fabc29 Bug 504229 - SM 2.1a1pre comes with "incompatible" CZ, rs=silver@warwickcompsoc.co.uk (on IRC), NPOTFFB.
git-svn-id: svn://10.0.0.236/trunk@257707 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-15 19:10:31 +00:00
stuart.morgan%alumni.case.edu
5ba317e9b4 Camino only - Bug 166288: Autocomplete from bookmark URLs in addition to history. Patch by Dan Weber <dan.j.weber@gmail.com>. r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257706 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-15 18:41:46 +00:00
stuart.morgan%alumni.case.edu
c9c1ad08b1 Camino only - Fix build bustage from incorrect file paths
git-svn-id: svn://10.0.0.236/trunk@257705 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-15 18:12:55 +00:00
stuart.morgan%alumni.case.edu
c551be4c4a Camino only - Bug 495496: Change the appearance of the autocomplete popup window (missing files from last checkin). Patch by Dan Weber <dan.j.weber@gmail.com>. r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257704 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-15 17:34:18 +00:00
stuart.morgan%alumni.case.edu
b02fcc853e Camino only - Bug 495496: Change the appearance of the autocomplete popup window. Patch by Dan Weber <dan.j.weber@gmail.com>. r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257703 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-15 17:19:24 +00:00
nboyd%atg.com
4ae1785e0c Make getOwnPropertyDescriptor and defineProperty work property for arrays.
Allows getting and setting attributes on index properties when the array is in
dense mode.


git-svn-id: svn://10.0.0.236/trunk@257702 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-15 15:47:58 +00:00
nelson%bolyard.com
6d54681c8c Bug 338601: ReadSystemFiles is slow
Bug 501605: slow startup due to accessing IE Temporary Internet Files and Temp
Don't call ReadSystemFiles if PRNG is seeded from Windows' PRNG.
Limit the number of files and directories that we will count/traverse in a
directory.  Only convert file names from UTF16 to UTF8 when necessary.
r=Julien Pierre, SR=Wan-Teh Chang


git-svn-id: svn://10.0.0.236/trunk@257701 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-15 03:34:04 +00:00
glen.beasley%sun.com
fdc380bee6 500138 fix typos patch from timeless
git-svn-id: svn://10.0.0.236/trunk@257700 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-14 22:31:16 +00:00
julien.pierre.boogz%sun.com
37f5e01ddc Fix for bug 502965 . add documentation for PK11SDR_Encrypt. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257699 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-14 21:45:19 +00:00
alqahira%ardisson.org
baec638ec4 Numbers and tinder-configs for Camino '2.1a1pre'
git-svn-id: svn://10.0.0.236/trunk@257698 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-14 19:13:19 +00:00
morgamic%mozilla.com
720c85055e Changes for throttling exceptions. Bug 503148, r=bhearsum.
git-svn-id: svn://10.0.0.236/trunk@257695 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-14 17:37:08 +00:00
marco.zehe%googlemail.com
cc0f5bed5b bug 497304 - Crash [@ nsAccessibleWrap::get_accParent(IDispatch**) ], r=davidb, a1.9.0.13=dveditz
git-svn-id: svn://10.0.0.236/trunk@257694 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-14 16:21:45 +00:00
wicked%sci.fi
f4002e6abc Bug 448690: Changing columns after editing a saved search forgets edits - Patch by Teemu Mannermaa <wicked@sci.fi> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257693 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-14 04:01:28 +00:00
wicked%sci.fi
872b7ef30b Bug 369139: Add titles to creating and updating a tag messages - Patch by Teemu Mannermaa <wicked@sci.fi> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257692 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-14 03:34:16 +00:00
stuart.morgan%alumni.case.edu
2ac0b5b5ab Camino only, NPOB - Bug 499730: Fix detection of non-stable builds. r=ardissone
git-svn-id: svn://10.0.0.236/trunk@257690 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-14 03:18:30 +00:00
smontagu%smontagu.org
9c19a94faf Replace timeouts by event listeners in test cases for bug 92473 and bug 134911. Test-only change
git-svn-id: svn://10.0.0.236/trunk@257689 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-13 10:50:40 +00:00
dholbert%cs.stanford.edu
5e970e7388 Bug 502017: In block reflow, make sure to return an incomplete reflow status whenever we skip pulling from our next-in-flow. (Re-landing after test_bug343416.xul test failure was cleared) original_patch=bz backport=me r=roc a1.9.0.13=dveditz
git-svn-id: svn://10.0.0.236/trunk@257688 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-13 05:25:54 +00:00
alqahira%ardisson.org
785be94dda Bug 495620 - License updates for Camino for cvs trunk. r=gerv, a/1.9.0.13=dveditz
git-svn-id: svn://10.0.0.236/trunk@257687 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-13 01:26:13 +00:00
bzbarsky%mit.edu
a7f11bd265 Bug 493649. Make sure that we never end up incomplete when our available height is unconstrained. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@257686 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-11 06:07:07 +00:00
bzbarsky%mit.edu
48798e4465 Bug 488210. Stop returning non-listitems' frames from GetNextItemBox. Patch by Timothy Nikkel <tnikkel@gmail.com>, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@257685 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-11 06:04:00 +00:00
dholbert%cs.stanford.edu
5333242595 Backing out Bug 502017 -- appears to have caused failure in test_bug343416.xul on mac tinderbox
git-svn-id: svn://10.0.0.236/trunk@257684 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-10 22:57:26 +00:00
dholbert%cs.stanford.edu
497f1cd118 Bug 502017: In block reflow, make sure to return an incomplete reflow status whenever we skip pulling from our next-in-flow. original_patch=bz backport=me r=roc a1.9.0.13=dveditz
git-svn-id: svn://10.0.0.236/trunk@257683 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-10 19:53:24 +00:00
dholbert%cs.stanford.edu
ab9530997a Bug 465651: Move ReflowOverflowContainerChildren earlier in nsBlockFrame::Reflow. r+sr=roc a1.9.0.13=dveditz
git-svn-id: svn://10.0.0.236/trunk@257682 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-10 18:56:34 +00:00
nboyd%atg.com
4c9c1ecf9f This is a set of changes to Rhino to correctly add line number
information to more nodes.
Patch from Robert Bowdidge.


git-svn-id: svn://10.0.0.236/trunk@257681 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-09 18:46:53 +00:00
lpsolit%gmail.com
8cad438498 Bug 352615: Group empty cells together to reduce the size of the diff page - Patch by Frédéric Buclin <LpSolit@gmail.com> a=LpSolit (module owner)
git-svn-id: svn://10.0.0.236/trunk@257678 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-09 15:46:56 +00:00
bhearsum%mozilla.com
4384a43f3b bug 499594: Release updates tools (patcher, config bumps) need a brand option. r=bhearsum, patch=kairo
git-svn-id: svn://10.0.0.236/trunk@257677 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-09 12:34:19 +00:00
jdennis%redhat.com
c6949ba1d4 fix bug #510343 client_auth_data_callback seg faults if False
is returned from callback


git-svn-id: svn://10.0.0.236/trunk@257676 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-09 12:05:56 +00:00
julien.pierre.boogz%sun.com
079ea2175c Fix for bug 502961. Fix allocator mismatch in pk11mode. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257674 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-09 00:00:50 +00:00
julien.pierre.boogz%sun.com
e876bc6307 Fix for bug 502965. Add comment for PK11SDR_Decrypt . r=nelson
git-svn-id: svn://10.0.0.236/trunk@257673 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-09 00:00:14 +00:00
ghendricks%novell.com
ae6220d539 Add a label to the append note field
git-svn-id: svn://10.0.0.236/trunk@257672 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-08 22:52:57 +00:00
julien.pierre.boogz%sun.com
84910534a5 Fix for bug 502972 . Allocator mismatches in sdrtest. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257671 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-08 21:37:43 +00:00
julien.pierre.boogz%sun.com
4ab2f6b2d6 Fix for bug 502965 . Allocator mismatch in sdrtest . r=nelson
git-svn-id: svn://10.0.0.236/trunk@257670 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-08 21:13:44 +00:00
nelson%bolyard.com
1ecd00af51 Bug 435923: change BUILD_OFFICIAL to NSS_BUILD_CONTINUE_ON_ERROR
r=Christophe.ravel


git-svn-id: svn://10.0.0.236/trunk@257669 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-08 18:15:21 +00:00
nboyd%atg.com
3660af1e0c Move cheaper tests earlier to improve efficiency.
git-svn-id: svn://10.0.0.236/trunk@257668 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-08 16:55:54 +00:00
mkanat%bugzilla.org
d7e81ffaf7 Bug 495257: [SECURITY] Make check_can_change_field enforce permissions on confirming a bug and on which bug statuses a user can set
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257663 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-08 13:56:51 +00:00
mkanat%bugzilla.org
582baa8c4b Bug 494037: Release Notes for Bugzilla 3.4rc1
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257661 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-08 10:09:29 +00:00
mkanat%bugzilla.org
8d07048b8b Bug 502975: cf-js.html.tmpl was missing [% USE Bugzilla %], breaking the visibility-controller field settings.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257660 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-08 09:22:39 +00:00
despotdaemon
fc19a68cef Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@257659 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-07 23:37:23 +00:00
ghendricks%novell.com
096ef45ed3 Cloning runs with a plan does not use the new product version.
git-svn-id: svn://10.0.0.236/trunk@257653 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-07 23:07:48 +00:00
lpsolit%gmail.com
68f0b16f8b Bug 502950: Unconfirming a bug doesn't reset everconfirmed to 0 - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257652 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-07 22:47:49 +00:00
mkanat%bugzilla.org
f4881d04d6 Bug 502807: Rename Bug.get_history to Bug.history
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257651 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-07 22:42:06 +00:00
mkanat%bugzilla.org
2a3075aafb Bug 502698: jsonrpc.cgi was missing "use Bugzilla::Error"
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=Lpsolit


git-svn-id: svn://10.0.0.236/trunk@257650 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-07 22:39:31 +00:00
mkanat%bugzilla.org
9228ac1a1d Bug 491467: Make Search.pm and buglist.cgi consistently take column ids for the "fields" and "order" arguments, to prevent problems with using SQL fragments in the order and columnlist.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257649 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-07 18:20:16 +00:00
cltbld
aa602aac53 "Automated configuration bump: moz19-branch-patcher2.cfg, from 3.0.11 to 3.0.12"
git-svn-id: svn://10.0.0.236/trunk@257648 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-07 13:07:37 +00:00
mkanat%bugzilla.org
df52cc6ee7 Bug 502641: Fix various problems that would occur when you would log in from buglist.cgi
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257647 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-07 11:54:22 +00:00
lpsolit%gmail.com
fa71595a01 Bug 502682: CheckIfVotedConfirmed fails to confirm a bug if you don't have the permissions to set status/everconfirmed - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257646 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-07 11:11:24 +00:00
alqahira%ardisson.org
c666adadd9 Bug 502697 - Can't tab into the safe browsing blocker bar (or the content area) when the bar is visible. Patch by Sean Murphy <murph@seanmurph.com>, r=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257645 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-07 03:04:41 +00:00
alqahira%ardisson.org
0a6f1b63c7 Bug 441733 - Display a warning bar while browsing an unsafe site after dismissing the 'site blocked' page. Patch by Sean Murphy <murph@seanmurph.com>, r=smorgan, r=me on the nib, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257644 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-06 20:33:23 +00:00
kairo%kairo.at
25ed12d03c bug 493451 - Get automated release harness to work for SeaMonkey - initial patcher config for SeaMonkey, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257643 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-06 18:47:58 +00:00
aaronr%us.ibm.com
3814ddd718 [XForms] NPOTDB Remove unnecessary angle brackets from preferences dialog. Bug 501987, p=philipp r=doronr+aaronr
git-svn-id: svn://10.0.0.236/trunk@257642 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-06 18:00:28 +00:00
bhearsum%mozilla.com
2c8891ebb4 bug 502608: Tracking bug for build and relesae of firefox 3.0.12 - bootstrap bumps for 3.0.12, build1. r=bhearsum, patch=lsblakk
git-svn-id: svn://10.0.0.236/trunk@257638 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-06 15:01:24 +00:00
szegedia%freemail.hu
c3b6d2f5d1 Upgraded to Retrotranslator 1.2.8
git-svn-id: svn://10.0.0.236/trunk@257637 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-06 13:57:13 +00:00
mrbkap%gmail.com
3beff105d6 Bug 455633 - Protect against the weird Sandbox global object case when creating XPCNativeWrappers. r+sr=bzbarsky a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257634 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-06 05:57:37 +00:00
alqahira%ardisson.org
f2b960ade7 Bug 485865 - Omnibus ad-blocking bug for April/May/June 2009. CSS rules by Philippe Wittenbergh and me, patch by me, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257633 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-06 04:30:56 +00:00
nrthomas%gmail.com
d161ffa952 Bug 491077, enable all platforms
git-svn-id: svn://10.0.0.236/trunk@257632 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-06 03:42:19 +00:00
lpsolit%gmail.com
96873e288a Bug 502498: Use of uninitialized value in string eq at Bugzilla/CGI.pm line 289 - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257631 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-05 23:01:15 +00:00
Olli.Pettay%helsinki.fi
7a4fc3118c Bug 482578, r=bzbarsky, sr=sicking
git-svn-id: svn://10.0.0.236/trunk@257630 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-04 15:40:59 +00:00
mkanat%bugzilla.org
467db45d31 Bug 501538: Make $cgi->param() also check GET variables during a POST, so that POST forms with query-string variables in the target (like the login form) work correctly.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257629 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-04 12:16:28 +00:00
nboyd%atg.com
60d4dfa119 Fix Bug 492367 - Some function calls cause lots of execution stack information in interpreted mode
Patch from Marc Guillemot.


git-svn-id: svn://10.0.0.236/trunk@257628 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-04 12:14:53 +00:00
mkanat%bugzilla.org
9266ce97d8 Bug 494427: Instead of sending <nil> for undef elements in the WebService, just strip the items from the return value.
Patch by Rosie Clarkson <rosie.clarkson@planningportal.gov.uk> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257627 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-04 12:06:59 +00:00
stuart.morgan%alumni.case.edu
a9bd20110d Camino only - Bug 429937: Support pinch gesture for zooming. sr=pink
git-svn-id: svn://10.0.0.236/trunk@257626 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-03 17:31:02 +00:00
slavomir.katuscak%sun.com
76401e8ee6 Bug 476969: Patch to support KU/EKU/NS. r=alexei
git-svn-id: svn://10.0.0.236/trunk@257625 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-03 11:08:04 +00:00
nboyd%atg.com
d17c8291af Fix Bug 487599 - NativeArray: improve performance of sort([fn]) using java's Arrays.sort(..)
Patch from Marc Guillemot.


git-svn-id: svn://10.0.0.236/trunk@257624 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-03 02:10:37 +00:00
nboyd%atg.com
e8b6804508 Fix Bug 501972 - parseFloat doesn't correctly trim leading white spaces
Patch from Marc Guillemot


git-svn-id: svn://10.0.0.236/trunk@257623 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-03 01:21:21 +00:00
despotdaemon
6b916f28c0 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@257622 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-02 23:47:13 +00:00
reed%reedloden.com
6084f3cbf5 Bug 501710 - "Turn on Nagios monitoring for new Places branch"
git-svn-id: svn://10.0.0.236/trunk@257621 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-02 23:27:43 +00:00
nelson%bolyard.com
8578197efd Bug 501864: Symbian emulator should defines as i386, not ARM
Patch contributed by Makoto Kato <m_kato@ga2.so-net.ne.jp>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@257620 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-02 21:32:21 +00:00
mrbkap%gmail.com
38e969842e Bug 501270 - Make pseudo-frames have call objects if they're around a heaveyweight function to preserve engine invariants. r=brendan a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257619 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-01 20:18:31 +00:00
jdennis%redhat.com
25f00cded3 restore ssl.nss_init and ssl.nss_shutdown but make them deprecated
add __version__ string to nss module


git-svn-id: svn://10.0.0.236/trunk@257618 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-01 19:40:22 +00:00
anodelman%mozilla.com
5eec368041 Bug 473821 - create new tp pageset that is newer and smaller
p=anodelman r=catlee, use installed pageset for tp3 instead of downloaded


git-svn-id: svn://10.0.0.236/trunk@257617 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-01 19:06:45 +00:00
alqahira%ardisson.org
eeac796c7c Bug 469250 - Fix erratic and incorrect capitalization of 'Flashblock' in Camino code/comments. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257616 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-01 18:27:57 +00:00
despotdaemon
dfd5ab2529 Pseudo-automatic update of changes made by jscott@mozilla.com.
git-svn-id: svn://10.0.0.236/trunk@257615 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-01 18:14:07 +00:00
alqahira%ardisson.org
69ed21f559 Bug 498708 - 'Open URL in Camino' service name not localizable. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257614 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-01 18:00:10 +00:00
mkanat%bugzilla.org
9ac473c28e Bug 490333: Implement a method to get all attachment information from a given bug (Bug.attachments)
Patch by Tiago Mello <timello@gmail.com> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257613 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-01 11:32:28 +00:00
lpsolit%gmail.com
03cbd960b2 Bug 500900: Confirming bugs requires NEW state to exist - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257612 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-01 11:06:37 +00:00
anodelman%mozilla.com
e20a07f616 Bug 473821 - create new tp pageset that is newer and smaller
p=anodelman, r=catlee add tp4 test to talos code base


git-svn-id: svn://10.0.0.236/trunk@257611 18797224-902f-48f8-a5cc-f745e15eee43
2009-07-01 01:04:11 +00:00
jdennis%redhat.com
2928c416b8 add binding for NSS_NoDB_Init(), bug #509002
move nss_init and nss_shutdown from ssl module to nss module


git-svn-id: svn://10.0.0.236/trunk@257610 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-30 21:43:30 +00:00
lpsolit%gmail.com
38f985a9cd Bug 500350: [Oracle] Use of uninitialized value in pattern match (m//) at Bugzilla/DB/Schema/Oracle.pm line 149 - Patch by Xiaoou <xiaoou.wu@oracle.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257609 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-29 20:38:18 +00:00
bhearsum%mozilla.com
6d67b55a94 bug 500442: tracking bug for release of firefox 3.5 final - version bumps to 1.9.1.1pre/3.5.1pre
git-svn-id: svn://10.0.0.236/trunk@257608 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-29 20:33:28 +00:00
nboyd%atg.com
60a72c03b0 Don't let JSDoc attachments spill outside a function.
Patch from Nada Amin.


git-svn-id: svn://10.0.0.236/trunk@257607 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-29 12:23:33 +00:00
bbaetz%acm.org
8075eaed2f Bug 499103 - page_requires_login check uses undefined variable
r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257605 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-29 09:10:21 +00:00
alexei.volkov.bugs%sun.com
0e386bae16 476979 - Add cert chain tests that will do cert validation for different ku/eku. Patch 385144. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257604 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-29 08:50:44 +00:00
alqahira%ardisson.org
6d56d4208a Commit the tinderbox configs that cb-minibinus01 has been using in the '-perf' configuration
git-svn-id: svn://10.0.0.236/trunk@257603 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-29 03:41:22 +00:00
nrthomas%gmail.com
1e835b7387 Bug 491077, update nagios monitor for Tb2 nightlies moving
git-svn-id: svn://10.0.0.236/trunk@257602 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-29 03:15:50 +00:00
despotdaemon
add2f42327 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@257600 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-28 02:24:14 +00:00
despotdaemon
9c5990e452 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@257599 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-27 20:26:10 +00:00
morgamic%mozilla.com
6b98f3eb34 Checking in patch from bug 500794. r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257597 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-26 23:37:04 +00:00
morgamic%mozilla.com
965f21dbc6 Checking in partners to throttle config from bug 500567. r=bhearsum.
git-svn-id: svn://10.0.0.236/trunk@257596 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-26 22:03:08 +00:00
bhearsum%mozilla.com
6c2ce5dd07 bug 500642: Ensure to not ship manual major update snippets for 3.0.x to 3.5 for tr and mn - remove mn and tr from MU patcher config. r=nthomas
git-svn-id: svn://10.0.0.236/trunk@257595 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-26 20:12:06 +00:00
morgamic%mozilla.com
dbe2aa8b58 Removing trailing , from bug 500567 patch.
git-svn-id: svn://10.0.0.236/trunk@257594 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-26 17:55:31 +00:00
morgamic%mozilla.com
e5e7eb6616 Checking in patch from bug 500567.
git-svn-id: svn://10.0.0.236/trunk@257592 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-26 17:45:31 +00:00
anodelman%mozilla.com
4670a329f2 Bug 483968 - talos should be able to get a stack trace from browser hangs
fix for linux only, p=anodelman r=catlee


git-svn-id: svn://10.0.0.236/trunk@257591 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-26 16:27:47 +00:00
reed%reedloden.com
1aedc330c3 Bug 481313 - "Give aus2 users a unique cookie" (Fix cookie name) [p=oremj r=reed]
git-svn-id: svn://10.0.0.236/trunk@257589 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-26 06:56:34 +00:00
nrthomas%gmail.com
0f0dfe86ae Bug 500442, generate major update from Fx 3.0.11 to 3.5rc3build2, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257588 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-26 00:16:44 +00:00
dveditz%cruzio.com
58c6af228e Bug 459524 - Interpret SOCKS5 DNS reply more accurately, patch by nelsonb, r=biesi, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257587 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 21:25:23 +00:00
dveditz%cruzio.com
9722e8e709 bug 440982 only get script hook if we're going to call it, to avoid possible calls back into script under JS_GC's notification. r/sr=brendan, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257586 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 21:14:03 +00:00
nboyd%atg.com
db4b7134da Remove comment suggesting a nonstandard change
git-svn-id: svn://10.0.0.236/trunk@257585 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 19:47:26 +00:00
dveditz%cruzio.com
7d43a2799d bug 498132 bandaide for topcrash with java deployment toolkit. patch by honzab, r=joshmoz, sr=jst, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257584 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 08:41:29 +00:00
mrbkap%gmail.com
407a1f1f43 Bug 481434 - Fix up the logic a bit. r+sr=bzbarsky a=ss
git-svn-id: svn://10.0.0.236/trunk@257583 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 06:58:18 +00:00
dveditz%cruzio.com
a9aa341f5f bug 480134: apply 500 char limit to all OSX versions; patch by vlad, r=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257582 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 06:24:24 +00:00
dveditz%cruzio.com
0b7ef24a6b bug 463350 fix crash @GetLastSpecialSibling, patch by roc, r/sr=dbaron, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257581 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 06:03:53 +00:00
dveditz%cruzio.com
aa2154d5b2 bug 434035 fix null deref crash in nsGlobalWindow::FindInternal, patch by Martijn, r/sr=jst, a=ss
git-svn-id: svn://10.0.0.236/trunk@257579 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 05:37:06 +00:00
dveditz%cruzio.com
a8152abd6b Bug 493601 Fix crash involving Flash module unloading. Patch by jmathies, r=emaijala,joshmoz,bent sr=brendan, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257578 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 05:18:20 +00:00
julien.pierre.boogz%sun.com
a4fdf8c867 Fix for bug 499825 . utilrename.h is missing from Solaris packages. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257575 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 01:29:18 +00:00
lpsolit%gmail.com
9204dd0132 Bug 304267: Large lists in admin pages fail to display (they take too much time) - Patch by Michael Thomas <mockodin@gmail.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257574 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 01:04:57 +00:00
dveditz%cruzio.com
5889c42c53 bug 442227 fix for null deref crash in mathml with DOMAttrModified events.
patch by Arno Renevier, r=smaug,enndeakin, sr=neil@parkwaycc, a=dveditz


git-svn-id: svn://10.0.0.236/trunk@257573 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-25 01:03:49 +00:00
edward.lee%engineering.uiuc.edu
7a6b75d3b7 Bug 489443 - Places depends on a buggy behavior of SQLite's GROUP_CONCAT. r=dietrich, a19012=dveditz
Don't bother GROUP_CONCATing tag titles that are empty. Restructure the BOOK_TAG_SQL #define to be somewhat more readable. Test by adding tags to a uri then renaming the tag to empty and making sure they don't show up in autocomplete results.


git-svn-id: svn://10.0.0.236/trunk@257572 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-24 23:50:36 +00:00
ghendricks%novell.com
c8a3074da6 Sort by modification date is returning error.
git-svn-id: svn://10.0.0.236/trunk@257571 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-24 22:52:05 +00:00
bhearsum%mozilla.com
a7d1e122db bug 499687: tracking bug for 3.5rc3 - use extv=3.5rc3 in patcher config, so we get snippets that work despite bug 498379
git-svn-id: svn://10.0.0.236/trunk@257570 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-24 20:41:07 +00:00
cltbld
9bc02411ca Automated configuration bump: moz191-branch-patcher2.cfg, from 3.5rc2 to 3.5rc3 build 2
git-svn-id: svn://10.0.0.236/trunk@257569 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-24 20:40:00 +00:00
nrthomas%gmail.com
73e4420425 Bug 491077, followup fix to log location in tb2.0.0.x nightly bootstrap config
git-svn-id: svn://10.0.0.236/trunk@257567 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-24 04:43:26 +00:00
mrbkap%gmail.com
b65432c382 Bug 497102 - Add missing call. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@257566 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-24 03:15:18 +00:00
nrthomas%gmail.com
079059fa21 Bug 491007, master config for driving Tb2.0.0.x nightlies with buildbot & bootstrap (only mac enabled for now), r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257565 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-24 02:55:26 +00:00
nrthomas%gmail.com
65d65e3ce0 Bug 491077, add bootstrap config for tb2.0.0.x nightlies, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257563 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-24 02:48:29 +00:00
mrbkap%gmail.com
a3d3acbb16 Bug 460882. r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@257562 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-24 02:30:25 +00:00
igor%mir2.org
1f68049513 bug 488995, r=mrbkap,sr=jst,a1.9.0.12=ss
git-svn-id: svn://10.0.0.236/trunk@257561 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-23 20:27:33 +00:00
igor%mir2.org
2a15b89ffd bug 454704 - patch from Jim Blandy, r=myself, a1.9.0.12=ss
git-svn-id: svn://10.0.0.236/trunk@257560 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-23 20:24:11 +00:00
igor%mir2.org
a8e486f0d8 backing out the patch for bug 488995 due to build failure on windows
git-svn-id: svn://10.0.0.236/trunk@257559 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-23 18:56:41 +00:00
seabld
d2cd4c13d6 add a message to tell that development is on hg nowdays and test seabld cvs account for bug 496367
git-svn-id: svn://10.0.0.236/trunk@257558 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-23 18:12:56 +00:00
igor%mir2.org
63a8fd8863 bug 488995, r=mrbkap,sr=jst,a1.9.0.12=dveditz
git-svn-id: svn://10.0.0.236/trunk@257557 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-23 14:46:14 +00:00
lpsolit%gmail.com
41221f5d42 Bug 477464: Move JS code out of attachment/edit.html.tmpl - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257556 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-22 23:44:34 +00:00
reed%reedloden.com
e40eb3562d Grant seabld read/write access to CVS.
git-svn-id: svn://10.0.0.236/trunk@257555 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-22 23:40:14 +00:00
stuart.morgan%alumni.case.edu
2996c6392e Camino only - Whitespace fixes for update-check
git-svn-id: svn://10.0.0.236/trunk@257554 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-22 18:11:31 +00:00
bbaetz%acm.org
bb75d27ee4 Bug 491748 - fix copyright
(r/a=mkanat on original)


git-svn-id: svn://10.0.0.236/trunk@257553 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-22 08:50:12 +00:00
bbaetz%acm.org
50f3cf433f Bug 491748 - Hook for bug creation
git-svn-id: svn://10.0.0.236/trunk@257551 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-22 08:37:14 +00:00
nrthomas%gmail.com
c892f90d74 Enable force builds interface on 1.9 staging master, the only Bootstrap not to have it already
git-svn-id: svn://10.0.0.236/trunk@257550 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-22 04:50:42 +00:00
nrthomas%gmail.com
f94cf764ea Update staging config for fx3.0.x releases by syncing values from release config
git-svn-id: svn://10.0.0.236/trunk@257549 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-22 04:12:46 +00:00
nboyd%atg.com
812bc9fd45 Implement ES5 seal, isSealed, freeze and isFrozen
git-svn-id: svn://10.0.0.236/trunk@257548 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-22 01:08:22 +00:00
nrthomas%gmail.com
1bc3ca8133 Fix Thunderbird nightly monitoring for directory rename
git-svn-id: svn://10.0.0.236/trunk@257547 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-21 22:46:14 +00:00
mkanat%bugzilla.org
ddf954b551 Bug 498318: Speed up field-descs.none.tmpl
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=bbaetz, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257545 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-21 19:37:19 +00:00
mkanat%bugzilla.org
5727162765 Bug 463598: Improve the performance of the JavaScript that adjusts field values based on the value of another field
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257543 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-21 19:33:49 +00:00
rrelyea%redhat.com
3a763787ba Bug 497223 - NSS failures with ECC hardware tokens
r=nelson


git-svn-id: svn://10.0.0.236/trunk@257542 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-20 00:38:53 +00:00
rrelyea%redhat.com
3623df413c Bug 499385 - DRBG Reseed function needs to be tested on POST
r= nelson


git-svn-id: svn://10.0.0.236/trunk@257540 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-19 23:05:48 +00:00
aaronr%us.ibm.com
793b5b3215 [XForms] NPOTDB crash on complex xpath binding expression. Bug 466712, p=dion r=jonas+aaronr
git-svn-id: svn://10.0.0.236/trunk@257539 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-19 17:14:41 +00:00
aaronr%us.ibm.com
84cf0d834b [XForms] NPOTDB support the case child element of toggle. Bug 494848, p=dion r=olli+aaronr
git-svn-id: svn://10.0.0.236/trunk@257538 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-19 06:02:43 +00:00
aaronr%us.ibm.com
ee8b253e1e [XForms] NPOTDB schema validation: fpml and fixml dont load in xforms extension. Bug 384950, p=dion r=doronr+aaronr
git-svn-id: svn://10.0.0.236/trunk@257537 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-19 05:49:37 +00:00
aaronr%us.ibm.com
5b4d79b98b [XForms] NPOTDB schema validation: qualified type names cause parsing to fail. Bug 494337, p=dion r=doronr+aaronr
git-svn-id: svn://10.0.0.236/trunk@257536 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-19 05:35:56 +00:00
aaronr%us.ibm.com
0dc297022e [XForms] NPOTDB xforms range controls do not work on ff 3. Bug 467815, p=dion r=surkov+aaronr
git-svn-id: svn://10.0.0.236/trunk@257535 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-19 05:19:51 +00:00
bbaetz%acm.org
0fa3bb6b97 Bug 499121 - Cache user objects for Bug::GetComments
r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257534 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-19 02:08:41 +00:00
rrelyea%redhat.com
74618d8edc back out change so tree will go green.
git-svn-id: svn://10.0.0.236/trunk@257533 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-19 01:15:22 +00:00
nrthomas%gmail.com
d4461c97c8 Bug 459878, patcher config for for 3.0.11 --> 3.5rc2 build2 test MU, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257532 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-18 23:51:38 +00:00
nboyd%atg.com
2343b22891 Fix bug in line numbers for captured comments
Patch from Nada Amin


git-svn-id: svn://10.0.0.236/trunk@257531 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-18 20:43:57 +00:00
rrelyea%redhat.com
c72c6b1fba Bug 497223 - NSS failures with ECC hardware tokens
r=nelson


git-svn-id: svn://10.0.0.236/trunk@257530 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-18 17:33:54 +00:00
silver%warwickcompsoc.co.uk
bac5db9aea ChatZilla version number updates for release.
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@257529 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-18 16:46:45 +00:00
silver%warwickcompsoc.co.uk
825a76807c No Bug - Fix incorrect substitution codes in 401/402/403 error messages.
ChatZilla only.
rs=gijs


git-svn-id: svn://10.0.0.236/trunk@257528 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-18 16:26:31 +00:00
kaie%kuix.de
5eed378a9f Bug 496446, Deliver new roots for Firefox 3.0.x (NSS_3_12_2_WITH_CKBI_1_75_RTM)
r=nelson
a1.9.0.12=samuel.sidler


git-svn-id: svn://10.0.0.236/trunk@257527 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 23:26:41 +00:00
nelson%bolyard.com
1f90505480 Bug 483653: unable to build certutil.exe for fennec/wince
Patch by Hiroyuki Ikezoe <ikezoe@clear-code.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@257525 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 23:01:52 +00:00
jwalden%mit.edu
a7f507ad90 Bug 465980 - Some array methods don't work right on ginormous arrays. r=jorendorff, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257524 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 22:59:55 +00:00
alqahira%ardisson.org
afa1a47562 Fix a typo in the last commit for bug 497663 to make the .strings.in use a valid comment format
git-svn-id: svn://10.0.0.236/trunk@257523 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 19:11:13 +00:00
alqahira%ardisson.org
021ff33476 Bug 497663 - Insert reminder note into embed-replacements locale files with strings.in counterparts and remove ones that do not need to be both places. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257522 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 19:09:23 +00:00
sdwilsh%shawnwilsher.com
cbe8af62a5 Bug 478297 - Upgrade to SQLite 3.6.10. r=asuth Note: this checkin is to fix bug 497792)
git-svn-id: svn://10.0.0.236/trunk@257521 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 17:55:50 +00:00
bhearsum%mozilla.com
032aafafdb bug 498701: tracking bug for 3.5rc2 - use extv=3.5rc2 in patcher config, so we get snippets that work despite bug 498379
git-svn-id: svn://10.0.0.236/trunk@257520 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 16:32:56 +00:00
cltbld
7c2e2a4ed5 Automated configuration bump: moz191-branch-patcher2.cfg, from 3.5rc1 to 3.5rc2 build 2
git-svn-id: svn://10.0.0.236/trunk@257519 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 16:31:24 +00:00
smichaud%pobox.com
1c438ab175 nsCocoaWindow_NSWindow_sendEvent should not assume |self| will remain valid. b=496582 r=josh sr=roc
a=dveditz


git-svn-id: svn://10.0.0.236/trunk@257518 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 14:24:00 +00:00
Olli.Pettay%helsinki.fi
332123f443 Bug 496308 - Crash [@ nsDOMPopupBlockedEvent::GetRequestingWindow], r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257517 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 07:22:42 +00:00
Olli.Pettay%helsinki.fi
8f68608d14 Bug 495098 - [@ nsXMLHttpRequest::StreamReaderFunc ], r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257516 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 07:18:48 +00:00
bzbarsky%mit.edu
c0cd260b34 Bug 495798. Drop native theming for controls styled with transparent backgrounds, even if the user said to not use the page colors. r+sr=dbaron, a=ss
git-svn-id: svn://10.0.0.236/trunk@257515 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 00:36:23 +00:00
rob_strong%exchangecode.com
163498bfc4 Bug 498379 - Checking that we aren't updating to an older version of the application fails in certain cases. p=dtownsend, r=rstrong, approval1.9.0.12=dveditz
git-svn-id: svn://10.0.0.236/trunk@257514 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 00:06:47 +00:00
rob_strong%exchangecode.com
bcd928b793 Followup to Bug 485624 - Downloads in progress for previous releases should be canceled on startup instead of resumed. Fixes bug 496917 for 1.9.0.12. r=dtownsend, approval1.9.0.12=dveditz
git-svn-id: svn://10.0.0.236/trunk@257513 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-17 00:06:39 +00:00
nrthomas%gmail.com
3d162e49d8 Bug 498701, add release to list of active channels ahead of 3.5 rc2, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257512 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-16 22:54:33 +00:00
joshmoz%gmail.com
2310597d9d Make Objective-C exception guards non-fatal. b=486574 r=roc sr=bz
git-svn-id: svn://10.0.0.236/trunk@257511 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-16 20:57:37 +00:00
joshmoz%gmail.com
1a1442925b Applescript curl & ptit query worked in FF2 fails in FF3. Patch by Luis de la Rosa. b=427448 r=josh sr=roc
git-svn-id: svn://10.0.0.236/trunk@257510 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-16 18:57:41 +00:00
gijskruitbosch%gmail.com
e21c8ed614 Bug 471459 - Fix munger to left-recurse if necessary, adjust inline-button priority.
r=silver@warwikcompsoc.co.uk (James Ross)
ChatZilla Only.


git-svn-id: svn://10.0.0.236/trunk@257509 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-16 18:45:52 +00:00
m_kato%ga2.so-net.ne.jp
6d9e860e97 Bug 478843 - /toolkit/xre/nsAppRunner.cpp:1424:6: error: #elif with no expression. r=bsmedberg, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257508 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-16 13:27:45 +00:00
bhearsum%mozilla.com
c8c51de271 bug 497721: tracking bug for 3.5rc1 - use extv=3.5rc1 in patcher config, so we get snippets that work despite bug 498379
git-svn-id: svn://10.0.0.236/trunk@257507 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-16 10:42:54 +00:00
cltbld
4d8b6cff44 Automated configuration bump: moz191-branch-patcher2.cfg, from 3.5b99 to 3.5rc1 build 2
git-svn-id: svn://10.0.0.236/trunk@257506 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-16 10:40:57 +00:00
slavomir.katuscak%sun.com
cd80bdf809 Bug 496305: Patch to report results from dbtest.sh to output.log. r=christophe
git-svn-id: svn://10.0.0.236/trunk@257505 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-16 10:20:25 +00:00
nelson%bolyard.com
079ddf9967 Bug 470500. Detect attempts to use NSS slots and modules when NSS is not
initialized.  r=rrelyea.


git-svn-id: svn://10.0.0.236/trunk@257504 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-16 06:15:23 +00:00
nrthomas%gmail.com
480512ae6e Bug 497721, fixed patcher config for 3.5rc1 build1 (but then bug 498379 was discovered and we respun), r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257500 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-16 01:45:59 +00:00
nelson%bolyard.com
fa923d381b Bug 498163. MSVC 9's RTL asserts in isspace unless 0 <= argument <= 255
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@257499 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-15 22:27:03 +00:00
wtc%google.com
6f8be28603 Bug 494107: Mozilla clients don't need -rpath $ORIGIN. r=julien.pierre.
git-svn-id: svn://10.0.0.236/trunk@257498 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-15 21:09:55 +00:00
wtc%google.com
f9cfd9ffbc Bug 494107: added 'else' after the BUILD_SUN_PKG case so that we don't add
redundant -rpath flags in that case.  r=glen.beasley.


git-svn-id: svn://10.0.0.236/trunk@257497 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-15 16:50:19 +00:00
silver%warwickcompsoc.co.uk
2c7a75fe2a Bug 417931 - Change how "plain text" is processed into HTML, so we don't stick <wbr/> in the middle of words we didn't intend to.
ChatZilla only.
r=gijs


git-svn-id: svn://10.0.0.236/trunk@257496 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-15 15:01:10 +00:00
silver%warwickcompsoc.co.uk
37f6cf4d7e Bug 478462 - Add selected locale (for global and chatzilla), timezone and host app name/version/build details to CEIP log.
ChatZilla only.
r=gijs


git-svn-id: svn://10.0.0.236/trunk@257495 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-15 13:30:40 +00:00
Olli.Pettay%helsinki.fi
6077a5ab1e Bug 445177, r+sr=bzbarsky, a=ss
git-svn-id: svn://10.0.0.236/trunk@257494 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-15 07:28:51 +00:00
cltbld
6600eb7b9c Automated configuration bump: moz191-branch-patcher2.cfg, from 3.5b99 to 3.5rc1 build 1
git-svn-id: svn://10.0.0.236/trunk@257493 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-14 23:01:11 +00:00
Olli.Pettay%helsinki.fi
4a323c8168 Backout bug 445177
git-svn-id: svn://10.0.0.236/trunk@257492 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-14 15:54:27 +00:00
Olli.Pettay%helsinki.fi
d5327d59a8 Bug 445177, r+sr=bz, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257491 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-14 15:12:44 +00:00
Olli.Pettay%helsinki.fi
e0860f9cc0 Bug 461861, r+sr=mrbkap, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257490 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-14 14:31:37 +00:00
wtc%google.com
550a1ea5e5 Bug 492779: updated NSPR from NSPR_4_7_3_RTM to NSPR_4_7_5_RTM.
blocking1.9.0.12+ by dveditz.


git-svn-id: svn://10.0.0.236/trunk@257489 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-13 14:13:25 +00:00
bzbarsky%mit.edu
150af55a49 Adding tests
git-svn-id: svn://10.0.0.236/trunk@257482 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-13 02:10:07 +00:00
rrelyea%redhat.com
187deda4f1 Fix crash problem in previous patch: found by slavo.
r=relyea


git-svn-id: svn://10.0.0.236/trunk@257481 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-13 00:09:49 +00:00
stuart.morgan%alumni.case.edu
1e698d8e78 Camino only - Bug 497591: Don't crash when showing tabs in extremely small windows. sr=pink
git-svn-id: svn://10.0.0.236/trunk@257480 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-12 22:59:07 +00:00
catlee%mozilla.com
7eabcf8f27 Bustage fix. r=anodelman
git-svn-id: svn://10.0.0.236/trunk@257479 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-12 21:16:41 +00:00
catlee%mozilla.com
575d60708b Bug 448047 - Output which slave the test is running on. r=anodelman
git-svn-id: svn://10.0.0.236/trunk@257478 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-12 21:05:58 +00:00
dholbert%cs.stanford.edu
7cd0d3940c Bug 468491. When removing the continuations of a text frame, remove them starting at the end to avoid disrupting frame invariants by removing frames from the middle of the flow. Patch by Robert O'Callahan <robert@ocallahan.org> r=dbaron a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257477 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-12 19:31:20 +00:00
dholbert%cs.stanford.edu
1f3b317691 Bug 466763: Delete all text frame continuations when deleting first letter frame. Patch by Simon Montagu <smontagu@smontagu.org> r+sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257476 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-12 19:28:39 +00:00
nboyd%atg.com
e28c614fba ES5: create, defineProperty and defineProperties
Patch from Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257475 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-12 11:47:23 +00:00
bbaetz%acm.org
2a93772679 496856 - correct patch
(original patch r/a=mkanat)


git-svn-id: svn://10.0.0.236/trunk@257474 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-12 06:18:39 +00:00
roc+%cs.cmu.edu
ffd384d773 Bug 472950. Only do the lazy-set-parent-pointer optimization if we have no children and no next-in-flow. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@257473 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-12 03:06:13 +00:00
rrelyea%redhat.com
ff93bb4fc7 Bug 496997 - NSPR-free freebl needs to hang onto library references.
Free the library references when the shared library gets unloaded.
r=nelson


git-svn-id: svn://10.0.0.236/trunk@257472 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-11 23:11:22 +00:00
jdrew%mozilla.com
51a059e7cd Bug 488901 - Don't use a push group on Quartz surfaces in nsThebesImage::Draw(), since Quartz doesn't seem to have any practical limits on translation. r=vlad a=dveditz for checkin to 1.9.0.12. Patch by jmuizelaar@mozilla.com.
git-svn-id: svn://10.0.0.236/trunk@257471 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-11 21:54:44 +00:00
jdrew%mozilla.com
13fb52b608 Back out bug 488901, which broke the tree.
git-svn-id: svn://10.0.0.236/trunk@257470 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-11 19:22:51 +00:00
jdrew%mozilla.com
1896a19265 Bug 488901 - Don't use a push group on Quartz surfaces in nsThebesImage::Draw(), since Quartz doesn't seem to have any practical limits on translation. r=vlad a=dveditz for checkin to 1.9.0.12. Patch by jmuizelaar@mozilla.com.
git-svn-id: svn://10.0.0.236/trunk@257469 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-11 18:39:22 +00:00
slavomir.katuscak%sun.com
ea7ee02256 Bug 484360: Adding CRLDP support to chains.sh. r=alexei
git-svn-id: svn://10.0.0.236/trunk@257468 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-11 18:07:51 +00:00
smontagu%smontagu.org
26f06b61fd Reftest should show progress in titlebar. Bug 420324, 448932; p=ted.mielczarek, Bernd; r=dbaron; a=ted.mielczarek on IRC
git-svn-id: svn://10.0.0.236/trunk@257467 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-11 16:41:21 +00:00
smontagu%smontagu.org
594d1b97d5 Bug 493652: First-line style applies to two lines when first-letter style also used. r+sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257466 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-11 15:26:21 +00:00
nelson%bolyard.com
0ac9fd3d80 Bug 469588: Coverity errors reported for softoken, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257465 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-11 06:28:07 +00:00
julien.pierre.boogz%sun.com
b0b9a5cab2 Fix for bug 494107 . Fix rpath in coreconf. r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257464 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-11 00:55:53 +00:00
julien.pierre.boogz%sun.com
591bf980ef Fix build. Problem caused by checkin for bug 493912.
git-svn-id: svn://10.0.0.236/trunk@257463 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 23:27:49 +00:00
cltbld
d2b474c8f5 "Automated configuration bump: moz18-branch-patcher2.cfg, from 2.0.0.21 to 2.0.0.22"
git-svn-id: svn://10.0.0.236/trunk@257462 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 23:08:55 +00:00
julien.pierre.boogz%sun.com
9803c6a30e Fix for bug 489694 . Fix logging in OCSP processing . r=nelson
git-svn-id: svn://10.0.0.236/trunk@257461 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 22:59:09 +00:00
enndeakin%gmail.com
abb71c2fa8 Bug 492037, 441785, crash opening rdf files that change the datasource, call EndUpdateBatch properly, patch by me and smaug, r=neil,sr=smaug
git-svn-id: svn://10.0.0.236/trunk@257460 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 19:07:31 +00:00
rrelyea%redhat.com
39a32f1c0a Bug 493912 - sqlite3_reset should be invoked in sdb_FindObjectsInit when error occurs
patch by Hiroyuki Ikezoe
reviewed by rrelyea


git-svn-id: svn://10.0.0.236/trunk@257459 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 18:14:22 +00:00
anodelman%mozilla.com
879fc6a2ed Bug 483188 - talos needs to eat stderr when running minidump_stackwalk to process crashes
p=anodelman, r=catlee


git-svn-id: svn://10.0.0.236/trunk@257458 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 16:14:10 +00:00
smontagu%smontagu.org
153d04befe add crashtest
git-svn-id: svn://10.0.0.236/trunk@257457 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 10:38:01 +00:00
bbaetz%acm.org
aed90f4528 Bug 496856 - Fix token.cgi transaction handling
git-svn-id: svn://10.0.0.236/trunk@257455 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 06:18:16 +00:00
rrelyea%redhat.com
accfa803ec Bug 497217 - The first random value ever generated by the RNG should be discarded
r= nelson


git-svn-id: svn://10.0.0.236/trunk@257454 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 03:24:01 +00:00
nboyd%atg.com
5b406e7024 Fix bug: "in" operator in the midst of for inititalizer confused parser
Patch from Nada Amin


git-svn-id: svn://10.0.0.236/trunk@257453 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 01:09:18 +00:00
nelson%bolyard.com
95af4c9421 Bug 491044: Remove support for VMS (a.k.a., OpenVMS) from NSS, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257452 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 00:42:17 +00:00
psychoticwolf%carolina.rr.com
95c0ce4b17 Bug 493464 - Expand Google Module for site-specific search - Fix regression in return handling, r=Cww
git-svn-id: svn://10.0.0.236/trunk@257451 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-10 00:27:17 +00:00
rrelyea%redhat.com
f4d8f9168c Bug 496997 - NSPR-free freebl needs to hang onto library references.
r=wtc.


git-svn-id: svn://10.0.0.236/trunk@257450 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 23:36:39 +00:00
rrelyea%redhat.com
939f35b831 Bug 497002 - Lab required nspr-free freebl changes.
nspr-free freebl needs a way to:
1) retry the POST at a later time under application control.
2) disable the token if the post fails.

r= glen beasley


git-svn-id: svn://10.0.0.236/trunk@257449 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 23:34:06 +00:00
rrelyea%redhat.com
c79683ffaa Bug 495097 - sdb_mapSQLError returns signed int, causing sign extension on 64-bit platforms
patch with test
author wtc
reviwer rrelyea


git-svn-id: svn://10.0.0.236/trunk@257448 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 22:19:55 +00:00
rrelyea%redhat.com
bacbde5332 Bug 495656 - NSS_InitReadWrite("sql:<configdir>") leaves behind a pkcs11.txu file if libnssckbi.so is in <configdir>.
patch by wtc
r rrelyea


git-svn-id: svn://10.0.0.236/trunk@257447 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 22:16:50 +00:00
marco.zehe%googlemail.com
792da77549 Bug 481720 - Don't load remote images in mochitests, r=davidb
git-svn-id: svn://10.0.0.236/trunk@257446 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 19:36:47 +00:00
nboyd%atg.com
b6b5ad46e3 Fix for bug 496585 "Regression in overload resolution"
git-svn-id: svn://10.0.0.236/trunk@257445 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 17:43:47 +00:00
ghendricks%novell.com
cb4d13e210 Bug 497030 - Products are created closed for bug entry
patch by ghendricks@novell.com r=LpSolit a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257444 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 17:24:43 +00:00
silver%warwickcompsoc.co.uk
cff87b44fb Bug 486979 - Don't let half-ops think they can grant/revoke half-op status on others.
ChatZilla only.
p=glenjamin+bmo@gmail.com (Glen Mailer)
r=silver


git-svn-id: svn://10.0.0.236/trunk@257443 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 14:10:04 +00:00
silver%warwickcompsoc.co.uk
4bd615d446 Bug 444997 - Make /leave work on joined channels while disconnect.
ChatZilla only.
p=glenjamin+bmo@gmail.com (Glen Mailer)
r=silver


git-svn-id: svn://10.0.0.236/trunk@257442 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 14:06:51 +00:00
silver%warwickcompsoc.co.uk
5b869d7344 Bug 494846 - Add timezone offset to log rotation calculation so we correctly rotate on the *local* hour.
ChatZilla only.
r=gijs


git-svn-id: svn://10.0.0.236/trunk@257441 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 13:37:10 +00:00
silver%warwickcompsoc.co.uk
1e3af2eb28 Bug 486746 - Process IRC numerics 401/402/403 to display a useful error message.
ChatZilla only.
r=gijs


git-svn-id: svn://10.0.0.236/trunk@257440 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 13:33:58 +00:00
nboyd%atg.com
c16b7533b5 Set lineno when parsing assignments. Patch from Nada Amin.
git-svn-id: svn://10.0.0.236/trunk@257439 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 13:00:44 +00:00
glen.beasley%sun.com
7ecd1a7c09 496961 provide truncated HMAC support r=bobR
git-svn-id: svn://10.0.0.236/trunk@257438 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-09 02:29:38 +00:00
alexei.volkov.bugs%sun.com
17a51c6b07 491174 - CERT_PKIXVerifyCert reports wrong error code when EE cert is expired. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257437 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-08 21:13:07 +00:00
gerv%gerv.net
8db82dcfd6 Bug 492583 - fix public suffix list for .pw. Patch by kbrosnan; r=gerv, a=dveditz.
git-svn-id: svn://10.0.0.236/trunk@257436 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-08 16:05:50 +00:00
cltbld
8d9cfdc647 Automated configuration bump: moz191-branch-patcher2.cfg, from 3.5b4 to 3.5b99 build 2
git-svn-id: svn://10.0.0.236/trunk@257435 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-08 03:16:05 +00:00
stuart.morgan%alumni.case.edu
21c0a0e360 Camino only - Bug 492903 part 2: Add a script to generate full dependency lists programatically, and switch to using that for the 10.5 list. r=ardissone
git-svn-id: svn://10.0.0.236/trunk@257434 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-07 20:11:14 +00:00
stuart.morgan%alumni.case.edu
62ea686305 Camino only - Bug 492903 part one: split library lists into separate files. r=ardissone
git-svn-id: svn://10.0.0.236/trunk@257433 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-07 18:37:09 +00:00
stuart.morgan%alumni.case.edu
004e207c2d Camino only (and NPOB) - Move generate_macosx_symbols.rb into a subfolder in preparation for the changes in bug 496752
git-svn-id: svn://10.0.0.236/trunk@257432 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-07 17:34:24 +00:00
jdaggett%mozilla.com
b1a4e247ea Bug 489948. Handle errors returned by ATSFontGetHorizontalMetrics. r=vlad, a1.9.0.12=dveditz
git-svn-id: svn://10.0.0.236/trunk@257431 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-07 08:32:11 +00:00
alqahira%ardisson.org
616de73e0d Bug 496757 - Support encoding the OS build into symbol manifest filename and symbol output dirname in the OS symbol generation script. sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257430 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-07 06:12:07 +00:00
alqahira%ardisson.org
e6b4d918a0 Bug 496689 - Closing all windows with one multitab window might not give warning. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r=hendy, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257429 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-07 03:37:24 +00:00
szegedia%freemail.hu
c528b0d288 Fix for #494665: Memory leak when using Java reflection & shared scopes
git-svn-id: svn://10.0.0.236/trunk@257428 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-06 14:11:24 +00:00
smichaud%pobox.com
062eba8145 Upgrade bundled Java Embedding Plugin to version 0.9.7.2. b=496187 r=josh a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257427 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 19:08:20 +00:00
glen.beasley%sun.com
1d02f00a97 494073 update rsa KAT to 2048 bit key pair r=bobR
git-svn-id: svn://10.0.0.236/trunk@257425 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 17:01:57 +00:00
mats.palmgren%bredband.net
28f745b4d6 Bug 412610 - "MAXPATHLEN too small for glibc's realpath()". author=Dmitry Potapov <dpotapov@gmail.com> r=bsmedberg a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257424 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 14:45:57 +00:00
nboyd%atg.com
95aabea269 Bug 489329 - implement new Object constructor methods from ecmascript 5 spec
git-svn-id: svn://10.0.0.236/trunk@257419 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 12:08:59 +00:00
nelson%bolyard.com
58e414d2d3 Bug 489811: RNG_SystemInfoForRNG called twice by nsc_CommonInitialize
Thanks to neil@parkwaycc.co.uk for finding this bug.


git-svn-id: svn://10.0.0.236/trunk@257410 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 03:17:58 +00:00
nrthomas%gmail.com
4b605bdf17 Bug 496271, automation config for Tb2.0.0.22 build1, p=joduinn, r=me
git-svn-id: svn://10.0.0.236/trunk@257409 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 02:42:51 +00:00
nelson%bolyard.com
d75e071b87 Bug 491044: Remove support for VMS (a.k.a., OpenVMS) from NSS, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257408 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 02:34:15 +00:00
nelson%bolyard.com
009591c814 Bug 491044: Remove support for VMS (a.k.a., OpenVMS) from NSS, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257407 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 02:22:17 +00:00
nelson%bolyard.com
04cd7180c8 Bug 491044: Remove support for VMS (a.k.a., OpenVMS) from coreconf, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257406 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 02:15:15 +00:00
nelson%bolyard.com
9b3e46906b Bug 495634: write overflow in nss_ckmdSessionObject_SetAttribute, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257405 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 00:22:04 +00:00
nelson%bolyard.com
68ffb7a839 Bug 492131: A failure to import a cert from a P12 file leaves error code set to zero
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@257404 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-05 00:18:51 +00:00
julien.pierre.boogz%sun.com
7694714396 Fix for bug 493693 . Add SSE2 optimizations on OS/2. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257403 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 23:53:42 +00:00
julien.pierre.boogz%sun.com
7a7c2518e8 Fix for bug 488992. Remove unused variable. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257402 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 23:50:59 +00:00
julien.pierre.boogz%sun.com
c490e82bf5 Fix for bug 489710 . byteswap optimize for MSVC++. Contributed by Makoto Kato. r=julien
git-svn-id: svn://10.0.0.236/trunk@257401 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 23:49:26 +00:00
nelson%bolyard.com
3b98c374d6 Bug 489010: stop exporting mktemp and dbopen (again) , r=wtc
git-svn-id: svn://10.0.0.236/trunk@257400 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 23:19:31 +00:00
mkanat%bugzilla.org
9b1b262564 Bug 493642: Never include hidden_fields in the header/footer login form, and when a REQUIRE_LOGIN page shows a login form, hide the header/footer login form.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257399 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 22:55:11 +00:00
aaronr%us.ibm.com
94f3739bd9 [XForms] NPOTDB [1.1]Support control element under setfocus action. Bug 399567, p=dion.sole r=olli+aaronr
git-svn-id: svn://10.0.0.236/trunk@257398 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 22:43:04 +00:00
rob_strong%exchangecode.com
10bdc0c95d Tests for Bug 485624 - Downloads in progress for previous releases should be canceled on startup instead of resumed.
git-svn-id: svn://10.0.0.236/trunk@257397 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 20:29:44 +00:00
rob_strong%exchangecode.com
14cfcdae45 Bug 485624 - Downloads in progress for previous releases should be canceled on startup instead of resumed. r=dtownsend, approval1.9.0.12=dveditz
git-svn-id: svn://10.0.0.236/trunk@257396 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 20:29:27 +00:00
rob_strong%exchangecode.com
d6a2d4c1d4 Bug 313057 - Automatic updater downgrades/overwrites browser version when an older/identical version is in the queue. r=bsmedberg, approval1.9.0.12=dveditz
git-svn-id: svn://10.0.0.236/trunk@257395 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 20:28:45 +00:00
jdennis%redhat.com
aa3835990e Initial import of python NSS binding
git-svn-id: svn://10.0.0.236/trunk@257394 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 18:49:50 +00:00
jdennis%redhat.com
84adbd5aad Initial import of python NSS binding code
git-svn-id: svn://10.0.0.236/trunk@257393 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 18:48:45 +00:00
jdennis%redhat.com
d2b9456f33 Begin import of python nss binding, create initial root directory.
Add only initial build script to verify newly assigned CVS commit privs work.


git-svn-id: svn://10.0.0.236/trunk@257392 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 15:52:25 +00:00
alqahira%ardisson.org
1819dd7a20 Bug 495738 - Release Notes for Camino 1.6.8 (and kick installer Makefile to use them). r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257391 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 01:43:48 +00:00
glen.beasley%sun.com
fd5ce61f68 494107 update rpath ORIGIN for solaris and linux r=julien
git-svn-id: svn://10.0.0.236/trunk@257390 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-04 01:29:41 +00:00
richm%stanfordalumni.org
6bb8457a24 added support for MozillaBuild using msys
git-svn-id: svn://10.0.0.236/trunk@257389 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 22:38:24 +00:00
lpsolit%gmail.com
0ecf4db87c Bug 495865: Buttons to change columns are rendered incorrectly in Internet Explorer 8 - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257388 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 21:26:14 +00:00
rob_strong%exchangecode.com
96c346e998 Tests backported to 1.9.0 from Bug 485624
git-svn-id: svn://10.0.0.236/trunk@257382 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 19:46:08 +00:00
rob_strong%exchangecode.com
1b232e053d Updated tests from Bug 485624
git-svn-id: svn://10.0.0.236/trunk@257381 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 19:30:10 +00:00
hannes%helma.at
ea75ea7104 Workaround fix for bug 492036 - New AST code throws codebug on certain forms of destructuring assignment
git-svn-id: svn://10.0.0.236/trunk@257378 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 14:47:13 +00:00
nboyd%atg.com
f6f233adf0 Fix NPE in parsing comments if source is coming from a Reader instead of
a String.


git-svn-id: svn://10.0.0.236/trunk@257377 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 12:51:43 +00:00
cltbld
bd00751b8a "Automated configuration bump: moz19-branch-patcher2.cfg, from 3.0.10 to 3.0.11"
git-svn-id: svn://10.0.0.236/trunk@257376 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 12:36:23 +00:00
lpsolit%gmail.com
a3c086a05a Bug 494072: editvalues.cgi lets you edit product names - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257375 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 10:53:22 +00:00
alqahira%ardisson.org
87fc35711e Next release from here will be 2.0b4
git-svn-id: svn://10.0.0.236/trunk@257374 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 02:20:13 +00:00
stuart.morgan%alumni.case.edu
cec8daa8cb Camino only - Missed file from bug 489411 landing
git-svn-id: svn://10.0.0.236/trunk@257371 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-03 00:32:32 +00:00
wurblzap%gmail.com
a9b9f7e578 Bug 457657 – Make e-mail comment header localizable.
Patch by Marc Schumann <wurblzap@gmail.com>,
r/a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257367 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 22:04:19 +00:00
alqahira%ardisson.org
6d811dcaa8 Bug 493061 - Release Notes for Camino 2.0b3 (and kick installer/Makefile to use them). r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257366 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 21:54:31 +00:00
bzbarsky%mit.edu
89f58e8fcc Fixing bug 475299. Reflow if we're about to instantiate a plugin whose frame
has not been reflown yet. This fixes a problem where the WMP plugin doesn't
work right if its initial size is 0x0. patch by jst, r+sr=bzbarsky@mit.edu


git-svn-id: svn://10.0.0.236/trunk@257364 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 21:21:40 +00:00
dtownsend%oxymoronical.com
f87d3128eb Bug 481406: Ignore TEST-INFO lines when generating the brief log. r=cls
git-svn-id: svn://10.0.0.236/trunk@257361 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 20:32:53 +00:00
catlee%mozilla.com
c829e5e4c1 Bug 493725: tracking bug for build and release of firefox 3.0.11, build 2 - bootstrap bumps. r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257360 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 20:14:33 +00:00
dveditz%cruzio.com
7ad5b772a1 bug 493664 off-by-ones, r=dougt, a=ss
git-svn-id: svn://10.0.0.236/trunk@257358 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 18:30:56 +00:00
dveditz%cruzio.com
e635cb06d9 bug 495648 unbreak scrolling in xul listboxes with rdf datasources.
patch by bz, r=enndeakin, sr=roc, a=ss


git-svn-id: svn://10.0.0.236/trunk@257355 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 17:24:02 +00:00
alqahira%ardisson.org
23b3d930b2 Bug 407883 - Fix Downloads window opening and focusing prefs logic (and names). Switches to toolkit pref names and values (where available) and splits opening and focusing the Downloads window into two prefs. Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=ilya, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257353 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 03:58:15 +00:00
stuart.morgan%alumni.case.edu
1f8b654dde Camino only - Bug 405629: Delete keychain entries if they collide when trying to update them. sr=pink
git-svn-id: svn://10.0.0.236/trunk@257352 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 03:57:54 +00:00
stuart.morgan%alumni.case.edu
f55b966f46 Camino only - Bug 489411: Don't enable breakpad in unofficial builds. Includes patch to fix breakpad teardown (bug 493587) by Ilya Sherman <ishermandom+bugs@gmail.com>. sr=pink
git-svn-id: svn://10.0.0.236/trunk@257351 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 03:51:39 +00:00
mkanat%bugzilla.org
63a3c651d3 Bug 194272: Provide a way to browse bugs instead of searching for them
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=pyrzak, r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257350 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 03:49:22 +00:00
mkanat%bugzilla.org
48e04ed56d Bug 491630: Make sure DateTime never gets fractional "seconds" in new()
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257349 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 03:47:44 +00:00
stuart.morgan%alumni.case.edu
bc0a5ca773 Camino only - Bug 453084: Mark mismatched domain certificates as such when adding certificate overrides. sr=pink
git-svn-id: svn://10.0.0.236/trunk@257348 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 03:44:49 +00:00
stuart.morgan%alumni.case.edu
7ae9f508e7 Camino only - Bug 386455: Shorten the toolbar label for the bookmark manager. sr=pink
git-svn-id: svn://10.0.0.236/trunk@257347 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 03:41:55 +00:00
stuart.morgan%alumni.case.edu
cdefc6e27c Camino only - Bug 400748: Fix type-to-select in selects with optgroups. sr=pink
git-svn-id: svn://10.0.0.236/trunk@257346 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 03:36:11 +00:00
stuart.morgan%alumni.case.edu
c54d25ed9e Camino only - Bug 495729: Handle minimized windows + Spaces correctly. sr=pink
git-svn-id: svn://10.0.0.236/trunk@257345 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 03:33:59 +00:00
vladimir%pobox.com
9b0ae3f535 b=380359; fix up content check; r=roc
git-svn-id: svn://10.0.0.236/trunk@257344 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 03:14:59 +00:00
alqahira%ardisson.org
c0399b9251 Bug 493044 - Opening an empty Downloads window for the first time shows Resume, not Pause. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257343 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 02:27:39 +00:00
alqahira%ardisson.org
419cbf04f3 Bug 428333 - Make Camino/xpfe use toolkit's license and build an appropriate app-specific copy for Camino. Fighting license.html proliferation since 2008! r=mento, sr=pinkerton ('rs=hyatt'), a/1.9.0.12=ss
git-svn-id: svn://10.0.0.236/trunk@257342 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 02:15:04 +00:00
nboyd%atg.com
5a3ba2964d Fix bug 495785 - Rhino interpreter shell crashes with NullPointerException
git-svn-id: svn://10.0.0.236/trunk@257341 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 01:44:15 +00:00
despotdaemon
32ff1e021b Pseudo-automatic update of changes made by brendan@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@257340 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 01:16:23 +00:00
mkanat%bugzilla.org
861c90836f Bug 495783: Create the default Classification before setting up foreign keys, so that the products.classification_id -> classifications.id FK doesn't fail during upgrades that add the classification_id column.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257337 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-02 00:10:09 +00:00
mrbkap%gmail.com
cfe18fe4f6 Bug 493281 - Find our object. r+sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257336 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-01 23:35:03 +00:00
rob_strong%exchangecode.com
040f7ac372 Bug 478266 - Remove additional Firefox 3.5 files on downgrade. r=mconnor, approval1.9.0.12=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@257333 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-01 20:16:01 +00:00
alqahira%ardisson.org
4ffcc62db9 Bug 495741 - Upgrade to Flashblock 1.5.10. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257331 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-01 19:12:21 +00:00
bzbarsky%mit.edu
acb05ef3d9 Bug 410486. Make sure to be in a request when reporting a pending
exception. patch by timeless, r=dveditz, sr=mrbkap.


git-svn-id: svn://10.0.0.236/trunk@257330 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-01 16:18:53 +00:00
bzbarsky%mit.edu
9111c8e1e2 Allow top-level, non-POST 3xx redirects from proxy server: bug 491818, patch by Jason Duell <jduell.mcbugs@gmail.com>. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@257329 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-01 16:15:29 +00:00
bzbarsky%mit.edu
73deb4e727 Bug 489050. Make sure to not notify on our content once we've disconnected from the document. r=bent, sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257328 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-01 16:11:01 +00:00
ghendricks%novell.com
e0d8ae73d8 Bug 494628 - Crash when trying to file a bug in a closed product r=LpSolit patch by ghendricks@novell.com
git-svn-id: svn://10.0.0.236/trunk@257327 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-01 14:43:19 +00:00
nelson%bolyard.com
870db9b39e Bug 495717: Unable to compile nss/cmd/cerutil/keystuff.c on WinCE
Patch contributed by Hiroyuki Ikezoe <ikezoe@clear-code.com>


git-svn-id: svn://10.0.0.236/trunk@257326 18797224-902f-48f8-a5cc-f745e15eee43
2009-06-01 03:30:19 +00:00
longsonr%gmail.com
ce16f9d2c2 Bug 466576 - Null deref [@ nsSVGTransformList::GetValueString] after failed appendItem. r+sr=roc a1.9.0.12=dveditz
git-svn-id: svn://10.0.0.236/trunk@257323 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-30 20:03:13 +00:00
stuart.morgan%alumni.case.edu
f7d78a4cf0 Camino only - Update Sparkle to r349
git-svn-id: svn://10.0.0.236/trunk@257322 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-30 14:50:47 +00:00
lpsolit%gmail.com
544b785542 Bug 311973: Create admin/classifications/footer.html.tmpl to avoid code duplication - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257321 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-30 13:26:12 +00:00
lpsolit%gmail.com
e3e8f81c55 Bug 462073: Add FK constraints to the profile_setting table - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257320 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-30 11:58:04 +00:00
lpsolit%gmail.com
00a23b1ecc Bug 462072: Add FK constraints to the products table - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257319 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-30 11:54:23 +00:00
lpsolit%gmail.com
327f61a264 Bug 462070: Add FK constraints to the status_workflow table - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257318 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-30 11:49:49 +00:00
alqahira%ardisson.org
f07c6f63ae Bug 493173 - Downloads window gets stuck in customize toolbar mode when auto-closed while the customize sheet is showing, so don't close the window while the sheet is showing. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257312 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 23:38:35 +00:00
alqahira%ardisson.org
bf2613e234 Bug 437327 - Manually insert safe browsing test pages into the local blacklist database. Patch by Sean Murphy <murph@seanmurph.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257311 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 23:20:12 +00:00
alqahira%ardisson.org
e93d8a78e5 Bug 493168 - Wasting CPU cycles with refreshing download info for non-active downloads. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257310 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 22:52:03 +00:00
alqahira%ardisson.org
872bd89b78 Bug 472771 - Improve performance of tab dragging by reordering the BrowserTabView's items only once when finished. Patch by Sean Murphy <murph@seanmurph.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257309 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 22:35:26 +00:00
alqahira%ardisson.org
693cb36e91 Bug 493905 - Catch exceptions and don't crash when NSXMLDocument raises an exception during bookmarks import. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r/sr-smorgan
git-svn-id: svn://10.0.0.236/trunk@257308 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 19:47:01 +00:00
stuart.morgan%alumni.case.edu
cf84523a57 Camino only - Bug 493790: Supress the OS X crash reporter. r=ardissone
git-svn-id: svn://10.0.0.236/trunk@257307 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 19:33:09 +00:00
stuart.morgan%alumni.case.edu
24099f5a5a Camino only - Update breakpad to r344 (fixes bug 490670)
git-svn-id: svn://10.0.0.236/trunk@257305 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 19:29:29 +00:00
wtc%google.com
56d9e3d0af Bug 495103: nss_Init should strip the "sql:" prefix from the pathname
passed to nss_FindExternalRoot.  r=rrelyea.


git-svn-id: svn://10.0.0.236/trunk@257304 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 19:23:30 +00:00
wtc%google.com
712dfe7374 Bug 495365: The 'nickname' parameter of SEC_CertNicknameConflict should be
a const char *.  r=nelson.
Modified Files:
	certdb.h stanpcertdb.c


git-svn-id: svn://10.0.0.236/trunk@257303 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 19:16:54 +00:00
jst%mozilla.org
789a01e817 Fixing bug 492706. Make sure to reset global variables in error cases too. r+sr=mrbkap@gmail.com, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257302 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 18:31:57 +00:00
alqahira%ardisson.org
3adc82a99a Bug 494740 - All shell script build phases should echo what they're doing (also fixes a typo in the dependencies of the 'Force Copy Before Link' script phase). r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257301 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 18:22:36 +00:00
alqahira%ardisson.org
b3e2008c92 Bug 409640 - Turn off fix-and-continue to make Xcode enable hidden-visibility support in Camino build's Development configuration in order to fix most remaining ld visibility warnings in debug builds. Patch originally by mento, refreshed for 2009 by me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257300 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 18:14:10 +00:00
alexei.volkov.bugs%sun.com
fe3dcd05dd 494087 - Passing NULL as the value of cert_pi_trustAnchors causes a crash in cert_pkixSetParam. r=wtc.
git-svn-id: svn://10.0.0.236/trunk@257299 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 18:10:39 +00:00
alqahira%ardisson.org
3fb9e58dbb Relanding bug 475201 - Add 'Allow Flash From This Site' to context menu for Flashblocked items. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=cl, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257298 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 17:29:38 +00:00
bbaetz%acm.org
46b028bd4c Bug 494751 - Toggling Add/Don't add attachment doesn't reset JS state
r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257296 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-29 00:59:42 +00:00
nboyd%atg.com
f66bd9dff3 enable calling of new JUnit tests
git-svn-id: svn://10.0.0.236/trunk@257295 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-28 12:10:42 +00:00
nboyd%atg.com
7564ea8146 Miscellaneous AST bug fixes:
Fixed incorrect node positions for labeled statements and finally blocks.

Labels: when parsing a labeled loop, we set the loop's parent to the
LabeledStatement before parsing the loop's children, which messes up
their offsets. Worked around the problem by temporarily adjusting the
loop's position while parsing the children.

Try statements had two bugs:
  - the parser was setting the 'finally' keyword's position incorrectly
    (wasn't setting it relative to parent)
  - the toSource() method threw a NullPointerException for a
    try/finally block with no catch clauses.

Also fixed AstNode.setParent() to un-relativize the node's position if
the node already had a parent. This doesn't happen in Rhino's parser, but
if users are doing tree rewrites they could have run into bad offsets.

Patch from Steve Yegge


git-svn-id: svn://10.0.0.236/trunk@257294 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-27 17:29:06 +00:00
nboyd%atg.com
a45aee6384 Implement new Object constructor methods from ecmascript 5
Fixes bug 489329
Patch by Raphael Speyer


git-svn-id: svn://10.0.0.236/trunk@257293 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-27 16:47:16 +00:00
Olli.Pettay%helsinki.fi
e5dda52751 Bug 491134, r+sr=jst, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257292 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-27 13:31:05 +00:00
nboyd%atg.com
d226378e09 Remove obsolete assertion as underlying problem has been resolved. Add
tests back.


git-svn-id: svn://10.0.0.236/trunk@257291 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-27 12:24:48 +00:00
stuart.morgan%alumni.case.edu
81b2f3e289 Camino only - Fix strip-headers.sh so that it doesn't fail if there's a .h file in the srcroot
git-svn-id: svn://10.0.0.236/trunk@257289 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-27 00:09:19 +00:00
dkl%redhat.com
a1fe6e476c Bug 462067 - Add FK constraints to the bugs table for user, product, and component int fields
Patch by David Lawrence <dkl@redhat.com> - r=mkanat a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257288 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-26 21:17:43 +00:00
smichaud%pobox.com
76be7aa3c4 Upgrade bundled Java Embedding Plugin to version 0.9.7.1. b=493629 r=josh a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257287 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-26 19:33:21 +00:00
lpsolit%gmail.com
8563d51c18 Bug 494643: Do not pass the same columns twice to the SQL query - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257284 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-25 17:02:59 +00:00
lpsolit%gmail.com
fef7af0306 Bug 494369: Do not throw an error if the 'order' parameter contains invalid columns for buglists - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257283 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-25 16:59:23 +00:00
nrthomas%gmail.com
516e9e3790 Bug 472790, default to sha512 hashes for release updates, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257279 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-25 04:57:36 +00:00
stuart.morgan%alumni.case.edu
86e69d8c3a Camino only - Make generate_macosx_symbols less broken. Third time's the charm?
git-svn-id: svn://10.0.0.236/trunk@257278 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-25 04:20:15 +00:00
nrthomas%gmail.com
1e613528e1 Bug 494324, actually fix the config
git-svn-id: svn://10.0.0.236/trunk@257277 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-24 06:26:21 +00:00
nrthomas%gmail.com
08a1c58d02 Bug 494324, update tree watching config after debug build moved from bm-xserve11 to 08
git-svn-id: svn://10.0.0.236/trunk@257276 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-24 06:14:44 +00:00
despotdaemon
efec3bddf0 Pseudo-automatic update of changes made by myk@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@257275 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-24 02:25:17 +00:00
lpsolit%gmail.com
0b38b8a03b Bug 487330: Links in comments pointing to patches should go to the 'diff' view rather than the plain text view, by default - Patch by uokrent@gmail.com r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257274 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-23 18:19:08 +00:00
lpsolit%gmail.com
5201e6f0cd Bug 487443: MS-SQL requires a different use of SUBSTRING in Bugzilla::User - Patch by Michael Thomas <m.thomas@valueclick.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257273 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-23 17:39:22 +00:00
nboyd%atg.com
47ad2eccc2 Add V8 benchmarks.
Adapted from patch by Raphael Speyer.
Fixes Bug 492538.


git-svn-id: svn://10.0.0.236/trunk@257272 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 20:19:47 +00:00
psychoticwolf%carolina.rr.com
4e14f368f1 Bug 493464 - Expand Google Module for site-specific search. Patch by Cww <cwwmozilla@gmail.com>, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@257271 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 16:49:31 +00:00
bhearsum%mozilla.com
8f5ed4030e bug 494055: Automatically do XULRunner releases with Firefox ones - add xulrunner dep scheduler to 1.9 master.cfg's. r=nthomas, patch=lsblakk
git-svn-id: svn://10.0.0.236/trunk@257270 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 14:58:57 +00:00
lpsolit%gmail.com
a4c626ece9 Back out bug 441496: it breaks Safari and Google Chrome
git-svn-id: svn://10.0.0.236/trunk@257269 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 08:31:30 +00:00
nrthomas%gmail.com
98f8cb2a91 Bug 494313 - Stop hiding Fx3.0 shark builds in nightly/experimental, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257267 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 08:05:17 +00:00
wtc%google.com
6cd5127792 Bug 403543: Document that cert_pi_useAIACertFetch was added in NSS 3.12.1.
r=alexei.volkov.


git-svn-id: svn://10.0.0.236/trunk@257266 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 04:29:55 +00:00
psychoticwolf%carolina.rr.com
e9cf44c0b2 Bug 142376 - [KARMA] Karma.bm spams the user when you ask for a 'rank'. Patch by Jesper Hansen <jesper@heroes-addon.dk>, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@257265 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 04:20:58 +00:00
wtc%google.com
d9880dcf9a Bug 492779: Added comments to plbase64.h to explain how to avoid PRUint32
overflow when calculating destination buffer sizes.  Call strlen instead of
PL_strlen so we can detect size_t to PRUint32 truncations.  Changed
PL_Base64Decode to use the exact same formula documented in the header.
r=nelson.
Modified Files: plbase64.h base64.c


git-svn-id: svn://10.0.0.236/trunk@257264 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 04:17:38 +00:00
wtc%google.com
cd42121f73 Bug 492779: assert that PL_strlen's return value doesn't overflow PRInt32
in optimized builds as well.  r=nelson.


git-svn-id: svn://10.0.0.236/trunk@257263 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 04:13:11 +00:00
psychoticwolf%carolina.rr.com
56e32e0149 Bump version on trunk to 2.7
git-svn-id: svn://10.0.0.236/trunk@257262 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 04:03:28 +00:00
wtc%google.com
79f47c4bfd Set NSPR version to 4.8.1 Beta.
Modified Files: configure.in configure repackage.sh prinit.h vercheck.c


git-svn-id: svn://10.0.0.236/trunk@257261 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 04:02:12 +00:00
nelson%bolyard.com
70f4f1ff73 Bug 494302: Stop building CAPI module in Firefox builds, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257259 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 01:03:30 +00:00
mkanat%bugzilla.org
8df46dc105 Bug 482556: Put "Forgot Password" in the header and footer so people can still f
ind it
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257258 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 00:17:23 +00:00
nboyd%atg.com
f930e0385d Fix bug from newsgroup:
I'm trying to implement a custom iterator and want to return different
  values depending on the method of iteration (for..in or for each..in).
  The problem is that my __iterator__ function receives the "onlyKeys"
  parameter as being always true regardless of the for loop used.
  So in Rhino 1.7 release 2 2009 03 22 on Windoes XP SP3 with Java
  1.6.0_13, I have this test case:
      var foo = {
          __iterator__ : function(onlyKeys) {
              print(keys);
              yield [0, "a"];
          }
      };
      for each (let f in foo) {}
      for (let f in foo) {}


git-svn-id: svn://10.0.0.236/trunk@257257 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-21 20:30:58 +00:00
nelson%bolyard.com
63fd9131e9 Bug 493660: add latest group of new root CAs to NSS for FF 3.5, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257250 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-21 19:50:29 +00:00
nboyd%atg.com
052161f648 Fix warning.
git-svn-id: svn://10.0.0.236/trunk@257249 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-21 13:14:04 +00:00
lpsolit%gmail.com
740060abe9 Bug 339679: describecomponents.cgi doesn't show components of closed products, even when there are bugs in these products - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257248 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-21 08:47:20 +00:00
lpsolit%gmail.com
448a4de85d Bug 493826: Disabled products show up in the pick list for existing bugs - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@257247 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-21 08:37:19 +00:00
stuart.morgan%alumni.case.edu
1cc8152c9c Camino only - Bug 494155: Don't print the names of empty symbol files (or keep them around)
git-svn-id: svn://10.0.0.236/trunk@257246 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-21 05:18:05 +00:00
ghendricks%novell.com
85f515c346 Bug 493090 - Product disallownew should be converted to isactive
patch by ghendricks r=mkanat a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257245 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-20 23:10:23 +00:00
nrthomas%gmail.com
bc5c8abee3 Bug 493957, monitoring changes for version bump to 3.5pre
git-svn-id: svn://10.0.0.236/trunk@257244 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-20 22:57:54 +00:00
mkanat%bugzilla.org
ca12f45dad Bug 302511: Remove QuickSearch's dependency on default priority values
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=wurblzap, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257243 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-20 20:55:08 +00:00
nboyd%atg.com
1067c3af61 Fix Bug 492525 - NativeArray.getAllIds does not return array indices
git-svn-id: svn://10.0.0.236/trunk@257242 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-20 12:26:37 +00:00
nboyd%atg.com
adac11f6bf Update to unit test
git-svn-id: svn://10.0.0.236/trunk@257241 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-20 11:55:49 +00:00
nboyd%atg.com
161b4d3d80 Purge more long-running or flaky tests.
git-svn-id: svn://10.0.0.236/trunk@257240 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-20 11:55:10 +00:00
cltbld
3af1b07672 "Automated configuration bump: moz19-branch-patcher2.cfg, from 3.0.10 to 3.0.11"
git-svn-id: svn://10.0.0.236/trunk@257239 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-20 05:15:43 +00:00
wtc%google.com
924e560074 Bug 493378: include <sys/types.h> on OS/2 for the uint typedef. The patch
is contributed by Peter Weilbacher <mozilla@Weilbacher.org>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@257237 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 22:18:18 +00:00
bclary%bclary.com
9c12b95ec8 JavaScript Tests - revert last checkin. I inadvertently reverted to the unfixed versions
git-svn-id: svn://10.0.0.236/trunk@257236 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 21:46:39 +00:00
bclary%bclary.com
f0b30f2a97 JavaScript Tests - fix typos, by Jeff Walden
git-svn-id: svn://10.0.0.236/trunk@257235 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 21:20:30 +00:00
catlee%mozilla.com
5fac64dedf Bug 493725 - Bump versions to 3.0.12 r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257234 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 21:01:31 +00:00
nboyd%atg.com
b35603d5e3 Successful run of all JUnit tests, including MozillaSuiteTest.
git-svn-id: svn://10.0.0.236/trunk@257233 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 20:31:32 +00:00
stuart.morgan%alumni.case.edu
782d4b6186 Add a --no-dsym option to symbolstore.py for OS symbol generation, switch the OS symbol generation script to use it and (hopefully) really fix the OS symbol script wedging issue.
git-svn-id: svn://10.0.0.236/trunk@257232 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 18:50:08 +00:00
stuart.morgan%alumni.case.edu
a2aeccce80 Fix the way output is read from symbolstore.py so we don't wedge if there is significant output to stderr
git-svn-id: svn://10.0.0.236/trunk@257231 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 18:06:00 +00:00
nboyd%atg.com
811f8dd148 Make sure that we exit the Context in tests.
git-svn-id: svn://10.0.0.236/trunk@257230 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 17:26:04 +00:00
wtc%google.com
0cddeee642 Set NSPR version to 4.8 (RTM).
git-svn-id: svn://10.0.0.236/trunk@257224 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 14:15:50 +00:00
wtc%google.com
c5a3862fbd Bug 493378: reordered the ifdef test for uint so that !defined(XP_UNIX) is
next to defined(NTO) because NSPR treats Neutrino as a Unix variant.


git-svn-id: svn://10.0.0.236/trunk@257223 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 14:13:44 +00:00
catlee%mozilla.com
f3a3d5a764 Bug 493725: tracking bug for build and release of firefox 3.0.11 - bootstrap bumps. r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257222 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 13:28:54 +00:00
catlee%mozilla.com
fbe70c13bb Bug 493725: bump to RELEASE_AUTOMATION_M14 for Firefox 3.0.11 release.
r=bhearsum


git-svn-id: svn://10.0.0.236/trunk@257221 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 13:25:14 +00:00
julien.pierre.boogz%sun.com
5e8ee4605f Fix for bug 493378 . Fix warning on OS/2. Patch contributed by Peter Weilbacher. r=julien
git-svn-id: svn://10.0.0.236/trunk@257220 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-19 01:00:32 +00:00
dveditz%cruzio.com
7d5e1a6895 backing out bug 325392 (a=ss)
commenting out failing reftests due to bug 429968


git-svn-id: svn://10.0.0.236/trunk@257218 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-18 22:47:46 +00:00
stuart.morgan%alumni.case.edu
193b8ddb42 Camino only - Remove an import of a module that doesn't exist on Tiger and we don't (currently) use
git-svn-id: svn://10.0.0.236/trunk@257217 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-18 22:09:02 +00:00
nelson%bolyard.com
2b5660c040 Bug 493405: 1 byte overflow in cert_GetDNSPatternsFromGeneralNames
r=julien, patch suggested by Brian Hackett <bhackett1024@gmail.com>


git-svn-id: svn://10.0.0.236/trunk@257216 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-18 21:33:25 +00:00
mkanat%bugzilla.org
c719f31db0 Bug 477593: Make the WebService send <nil/> for undef values
Patch by Rosie Clarkson <rosie.clarkson@planningportal.gov.uk> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257214 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-18 21:25:15 +00:00
stuart.morgan%alumni.case.edu
60f9304933 Camino only - Add a comment to the new symbolstore.py explaining the fork.
git-svn-id: svn://10.0.0.236/trunk@257213 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-18 20:39:17 +00:00
stuart.morgan%alumni.case.edu
d343583d44 Camino only - Bug 491035: Update our symbolstore.py to one based on the mozilla-central version and don't strip on copy in release, in preparation for switching tinderboxen to DWARF
git-svn-id: svn://10.0.0.236/trunk@257212 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-18 20:27:16 +00:00
alqahira%ardisson.org
edb1ae5668 Switching release/universal/static tinderboxen to DWARF symbols for Core; part of bug 491035
git-svn-id: svn://10.0.0.236/trunk@257211 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-18 20:26:24 +00:00
dveditz%cruzio.com
d9d844937d bug 491801 the no_auth URLparser needs to enforce no_auth, r=jduell, sr=biesi, a=ss
git-svn-id: svn://10.0.0.236/trunk@257210 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-16 19:59:59 +00:00
dveditz%cruzio.com
e26895f495 Bug 429968. Handle situations where first-letter text detects first-letter style should not be applied, by creating a zero-length 'first letter'. patch by roc, r+sr=dbaron, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257209 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-16 19:37:37 +00:00
julien.pierre.boogz%sun.com
e52f9bb32d Fix for bug 399700 . Don't use gcc -W flag on OS/2 . r=peter.weilbacher
git-svn-id: svn://10.0.0.236/trunk@257208 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-16 00:31:47 +00:00
julien.pierre.boogz%sun.com
f1a61ae816 Fix for bug 493135 . bltest crashes if it can't open the input file. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257207 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-16 00:29:17 +00:00
alqahira%ardisson.org
24152b386e Bug 476596 - Malware 'why is this site blocked' button does not take me to safebrowsing diagnostic page. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=murph, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257206 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 18:21:18 +00:00
alqahira%ardisson.org
73222995ae Bug 493162 - Set default downloads pivot before loading saved downloads. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257205 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 17:57:53 +00:00
alqahira%ardisson.org
9564a7c8a6 Follow-up to bug 493047: Also makes sure we don't try to scroll to a non-existent download. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257204 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 17:20:25 +00:00
wtc%google.com
46b49ff85b Bug 492779: In PL_Base64Encode and PL_Base64Decode, ensure that all
PRUint32 values stay within range.  In PL_strlen, replaced the magic
constant 2147483647 by PR_INT32_MAX.  r=nelson.
Modified Files: base64.c strlen.c


git-svn-id: svn://10.0.0.236/trunk@257203 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 16:00:59 +00:00
nboyd%atg.com
919abd8bed New JUnit-based test runner for the Mozilla suite tests.
git-svn-id: svn://10.0.0.236/trunk@257202 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 12:30:45 +00:00
nboyd%atg.com
769c0bced7 Clean up test to allow for multiple invocations
git-svn-id: svn://10.0.0.236/trunk@257201 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 12:11:46 +00:00
nboyd%atg.com
1414cd9c01 Clean up test to handle multiple invocations
git-svn-id: svn://10.0.0.236/trunk@257200 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 12:11:19 +00:00
nboyd%atg.com
868f37b44a Generalize the "set once" paradigm to allow for a single setter.
git-svn-id: svn://10.0.0.236/trunk@257199 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 12:09:55 +00:00
alqahira%ardisson.org
ebe39a3a3c Bug 489918 - Enable Cmd-A to select all downloads in the Downloads window. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257198 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 05:03:26 +00:00
alqahira%ardisson.org
087782bf12 Bug 493047 - Opening the Downloads window for the first time selects a download, even if none was selected before. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257197 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 01:19:10 +00:00
stuart.morgan%alumni.case.edu
4dc9b12b7a Camino only - Fix Security.nib to reflect the objects.nib->keyedobjects.nib change
git-svn-id: svn://10.0.0.236/trunk@257196 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 01:10:05 +00:00
hannes%helma.at
0d216d4e34 Forward calls to Map.get() to Scriptable.get() instead of ScriptableObject.getImp() so it will actually work in subclasses that override ScriptableObject.get().
git-svn-id: svn://10.0.0.236/trunk@257195 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 21:10:04 +00:00
alqahira%ardisson.org
2a9f832965 Bug 472709 - Use Cmd-down arrow to provide a keyboard shortcut for opening selected files in the Downloads window. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257194 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 20:05:14 +00:00
alqahira%ardisson.org
2a5952372a Bug 490892 - Downloads toolbar customization sheet should always show pause (not resume) button. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@257193 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 19:59:34 +00:00
alqahira%ardisson.org
e59e183a52 Part of bug 491035 -Switch static universal release tinderboxen to use better flags for breakpad symbol export and change the optimization flag to match Core changes in bug 407794. r=smorgan
git-svn-id: svn://10.0.0.236/trunk@257192 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 19:18:41 +00:00
stuart.morgan%alumni.case.edu
51c936db0c Camino only - Work around linking issue on the Tiger toolchain. Again.
git-svn-id: svn://10.0.0.236/trunk@257191 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 19:05:51 +00:00
stuart.morgan%alumni.case.edu
159212114d Camino only - Bug 453076: Add UI to see and remove certificate exceptions. r=hendy sr=pink
git-svn-id: svn://10.0.0.236/trunk@257190 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 18:46:50 +00:00
stuart.morgan%alumni.case.edu
453f281e98 Camino only - Fix core source paths in the Camino symbol file (part of bug 491035). r=ardissone
git-svn-id: svn://10.0.0.236/trunk@257189 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 18:38:15 +00:00
alqahira%ardisson.org
b56ac34b3e Bug 491101 - Support for 'archiving' symbols along with builds and for allowing easy symbol re-upload in case of failure during the actual build cycle (restores parity with Talkback). r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257188 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 17:55:10 +00:00
stuart.morgan%alumni.case.edu
272cd710db Camino only - Fix sed step in symbol generation so we aren't accidentally duplicating symbol files.
git-svn-id: svn://10.0.0.236/trunk@257187 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 13:43:01 +00:00
bbaetz%acm.org
4d9a004f15 Bug 290631 - iCalendar export should include priority
r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257186 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 11:34:37 +00:00
julien.pierre.boogz%sun.com
040ba95c04 Fix for bug 491919 . Add void argument to prototypes. r=alexei
git-svn-id: svn://10.0.0.236/trunk@257185 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-14 01:33:36 +00:00
emaldona%redhat.com
731a6e7915 [449332, r=nelson] SECU_ParseCommandLine checks input for duplicate options and fixed such duplicate in pk12util
git-svn-id: svn://10.0.0.236/trunk@257184 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-13 23:51:54 +00:00
julien.pierre.boogz%sun.com
503a10244f Fix for bug 492385 . Stop crash freeing named CRL entry on shudown. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257183 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-13 22:47:28 +00:00
stuart.morgan%alumni.case.edu
0f0829b37e Camino only - Fix usage message in the OS symbol generation script
git-svn-id: svn://10.0.0.236/trunk@257182 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-13 22:30:47 +00:00
alqahira%ardisson.org
71a1802ac9 Script to facilitate generating Breakpad symbols for OS libraries (see bug 492238). Script by Stuart Morgan <stuart.morgan+bugzilla@gmail.com> and me, Ruby port by Stuart; r=me, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257181 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-13 21:55:41 +00:00
stuart.morgan%alumni.case.edu
2fd4b2a137 Camino only - Bug 492776: Land and use a modified version of symbolstore.py that supports files and paths with spaces. r=ardissone
git-svn-id: svn://10.0.0.236/trunk@257180 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-13 21:47:32 +00:00
despotdaemon
8a17f9a6d4 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@257179 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-12 22:23:49 +00:00
wtc%google.com
eb9e817744 Dummy whitespace change to force the Tinderboxes to rebuild.
git-svn-id: svn://10.0.0.236/trunk@257177 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-12 20:45:16 +00:00
wtc%google.com
e92f33556c Bug 86396: Changed the special log module name "__timestamp" to "timestamp".
git-svn-id: svn://10.0.0.236/trunk@257176 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-12 20:43:10 +00:00
aaronr%us.ibm.com
e260951136 [XForms] NPOTB The URI protocol 'mailto:' is not supported when submitting xforms results. Bug 488330, r=doronr+olli
git-svn-id: svn://10.0.0.236/trunk@257175 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-12 18:06:01 +00:00
dtownsend%oxymoronical.com
533141ddff Bug 492549: Do XULRunner 1.9.0.10 release. r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257168 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-12 15:46:43 +00:00
hannes%helma.at
ef46a2d0d9 New fix for bug 351664 - Rethrown JavaScriptException's toString() returns "[object Error]"
git-svn-id: svn://10.0.0.236/trunk@257167 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-12 13:02:59 +00:00
wtc%google.com
cd140f15a2 Bug 492303: fixed build errors on WINCE, which doesn't have _tzset and
_putenv_s.  The patch is contributed by Hiroyuki Ikezoe
<ikezoe@clear-code.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@257166 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 22:23:19 +00:00
wtc%google.com
0af2a41fdb Bug 492305: declare DllMain with the correct prototype. The patch is
contributed by Hiroyuki Ikezoe <ikezoe@clear-code.com>.  r=blassey,wtc.


git-svn-id: svn://10.0.0.236/trunk@257165 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 20:27:37 +00:00
wtc%google.com
b4bcc994d2 Bug 491441: fixed copyright notice.
git-svn-id: svn://10.0.0.236/trunk@257164 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 18:09:26 +00:00
alqahira%ardisson.org
511a805803 Backing out bug 475201 again; we know what's wrong on boxset now, but not how to fix it.
git-svn-id: svn://10.0.0.236/trunk@257163 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 17:37:29 +00:00
hannes%helma.at
ac6556707c Commit patch for bug 454505 - Implement JS 1.8 destructuring assignment shorthand for Rhino
git-svn-id: svn://10.0.0.236/trunk@257162 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 15:44:05 +00:00
hannes%helma.at
64402ef6cd Commit patch for bug 456357 - Implement JS 1.8 expression closures in Rhino
git-svn-id: svn://10.0.0.236/trunk@257161 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 15:34:11 +00:00
hannes%helma.at
78ea26d961 Commit patch for bug 492359 - Calling generic String and Array functions without arguments causes ArrayIndexOutOfBoundsException.
Rhino now follows spidermonkey in using the this-object if a generic String or Array function is called without argument.


git-svn-id: svn://10.0.0.236/trunk@257160 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 15:26:10 +00:00
gerv%gerv.net
fc3ca7d5ad Bug 491578 - move warning above button.
git-svn-id: svn://10.0.0.236/trunk@257159 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 14:08:08 +00:00
bugzilla%standard8.plus.com
3333d9a5c5 Bustage fix for some compilers caused by bug 491545
git-svn-id: svn://10.0.0.236/trunk@257155 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 12:35:05 +00:00
hannes%helma.at
eb22974326 Commit patch for bug 436731 - multiple destructuring forms in function param list
git-svn-id: svn://10.0.0.236/trunk@257154 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 10:02:15 +00:00
alqahira%ardisson.org
820eba390f Backing out, as it did not seem to work/help with the bug 475201 issue.
git-svn-id: svn://10.0.0.236/trunk@257153 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 05:24:02 +00:00
alqahira%ardisson.org
dc6c5888f9 Try to see if I can have boxset email me while we're working on the bug 475201 issue.
git-svn-id: svn://10.0.0.236/trunk@257152 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 03:30:36 +00:00
alqahira%ardisson.org
b85b7fad2d Clobber to see if doing so fixes the ICE related to bug 475201.
git-svn-id: svn://10.0.0.236/trunk@257151 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 03:02:32 +00:00
alqahira%ardisson.org
8e762ea300 Test recommit to figure out boxset failure for bug 475201 - Add 'Allow Flash From This Site' to context menu for Flashblocked items. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=cl, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257150 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-11 01:31:04 +00:00
alqahira%ardisson.org
1328cda961 Bug 468236 - Remove extraneous linebreaks in Privacy preference pane's Keychain hint text. New nib by Christopher Henderson <trendyhendy2000@gmail.com>, r=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257149 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-10 21:07:37 +00:00
wtc%google.com
6185b5e85b Bug 86396: changed the timestamp format from local time to UTC and include
a microsecond component.  The patch is contributed by Hiroyuki Ikezoe
<ikezoe@clear-code.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@257148 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-10 04:36:36 +00:00
wtc%google.com
d250af5488 Bug 492170: fixed a bug in pt_hpux_sendfile_cont caused by a typo
("iov_len" should be "iov_base").  r=nelson.


git-svn-id: svn://10.0.0.236/trunk@257147 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-10 03:07:02 +00:00
wtc%google.com
4a77065e75 Bug 491441: Documented why _md_iovector._open64 needs to be initialized
statically, and added a regression test.  r=nelson.
Modified Files:
	pr/src/md/unix/unix.c pr/tests/Makefile.in
	pr/tests/runtests.pl pr/tests/runtests.sh
Added Files:
	pr/tests/logfile.c


git-svn-id: svn://10.0.0.236/trunk@257146 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-09 21:30:55 +00:00
alqahira%ardisson.org
e54d09e039 Bug 489512 - Move the rest of the strings in about:crashes from Gecko l10n to Cocoa l10n. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257145 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-09 21:13:54 +00:00
mkanat%bugzilla.org
8398e87cdb Bug 490673: WebServices's datetime_format method was in the wrong module
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, r=ghendricks, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257144 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-09 17:47:31 +00:00
wtc%google.com
c2ce4c40f9 Bug 491045: Remove the remaining VMS (OpenVMS) code. r=nelson.
git-svn-id: svn://10.0.0.236/trunk@257143 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-09 13:54:14 +00:00
wtc%google.com
9a45e69da1 Set NSPR version to 4.8 Beta 2.
git-svn-id: svn://10.0.0.236/trunk@257142 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-09 07:19:19 +00:00
glen.beasley%sun.com
be9e3a1a8c 492117 allow pthread_condattr_init on Mac OS X patch from jHuddleston r=wan-teh
git-svn-id: svn://10.0.0.236/trunk@257141 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-09 00:16:52 +00:00
alqahira%ardisson.org
215b45ca4b Bug 483140 - Make the pop-up blocker's text field more visible in the nib. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, sanity-check=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257140 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-08 18:45:34 +00:00
wtc%google.com
5a4e65a5cf Set NSPR version to 4.8 Beta 1.
git-svn-id: svn://10.0.0.236/trunk@257138 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-08 13:16:59 +00:00
wtc%google.com
1cf60eb41c Bug 491045: regenerated from configure.in using autoconf (2.13).
git-svn-id: svn://10.0.0.236/trunk@257137 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-08 13:12:31 +00:00
bugzilla%standard8.plus.com
ad0007b8be Bug 491545 Allow initial DLLFLAGS to be specified on configure command line for Windows builds and fix setting of PDB:NONE. r=mcs,richm
git-svn-id: svn://10.0.0.236/trunk@257135 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-08 09:41:52 +00:00
wtc%google.com
5858049b83 Bug 485318: added a test program to verify we can clean up and reinitialize
NSPR.  The patch is contributed by Ludovico Cavedon
<ludovico.cavedon@gmail.com>.  r=wtc,nelson.
Modified Files: Makefile.in runtests.pl runtests.sh
Added Files: reinit.c


git-svn-id: svn://10.0.0.236/trunk@257134 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-08 01:45:48 +00:00
wtc%google.com
850a9bfd92 Bug 485374: ensure that the buffer passed to GetTokenInformation is aligned
on pointer boundary, otherwise GetTokenInformation fails with error 998
(ERROR_NOACCESS).  The patch is contributed by Tor Lillqvist <tml@iki.fi>.
r=wtc,nelson.


git-svn-id: svn://10.0.0.236/trunk@257133 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-08 01:28:25 +00:00
wtc%google.com
43c770c9b3 Bug 485318: PR_Cleanup should decrement the user or system thread count
attributed to the primordial thread.  The bug is tracked down and part of
the patch is contributed by Ludovico Cavedon <ludovico.cavedon@gmail.com>.
r=nelson.
Modified Files: prinit.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@257132 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-08 01:01:11 +00:00
dveditz%cruzio.com
242a46cbc8 bug 490425 fix for RedHat topcrash, patch by Martin Stransky, r/sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257131 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 21:06:00 +00:00
hannes%helma.at
08030ef360 Commit patch for bug 456389: Implement JS 1.8 reduce/reduceRight array methods
git-svn-id: svn://10.0.0.236/trunk@257130 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 14:27:00 +00:00
dveditz%cruzio.com
03806b0642 bug 480582 fix mouse hover pointer style for contentedititable. patch by Zack Weinberg, r/sr=peterv, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257129 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 08:23:06 +00:00
dveditz%cruzio.com
9da589d5a8 bug 477979 add content-policy check for XUL scripts. patch by Wladimir Palant, r=jst, sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257128 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 08:04:54 +00:00
nrthomas%gmail.com
2b459a3880 Bug 459878, patcher config for 3.0.10 --> 3.5b4 test major update, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257127 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 03:46:58 +00:00
stuart.morgan%alumni.case.edu
e77ee61e54 Bug 491642: Add custom symbol build and upload steps for Camino. r=nthomas
git-svn-id: svn://10.0.0.236/trunk@257126 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 02:33:18 +00:00
wtc%google.com
c52df798d3 Bug 485318: set logFile to NULL in _PR_LogCleanup because PR_LogPrint
tests logFile to determine if the logging subsystem has been initialized.
The patch is contributed by Ludovico Cavedon <ludovico.cavedon@gmail.com>.
r=wtc.


git-svn-id: svn://10.0.0.236/trunk@257125 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 02:20:50 +00:00
dbaron%dbaron.org
e1c82bc6fb Bug 421576 - Unpaired surrogate handled wrongly (Acid3 #68). acid3++ r=dbaron a1.9.0.11=dveditz Patch from Jeff Walden <jwalden@mit.edu>.
git-svn-id: svn://10.0.0.236/trunk@257124 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 01:33:03 +00:00
wtc%google.com
5c861cdb73 Bug 427136: added super-H(sh3,4) architecture support. The patch is
forwarded to us from http://www.sh-linux.org/ by CHIKAMA Masaki.  r=wtc.
Modified Files: _linux.cfg _linux.h


git-svn-id: svn://10.0.0.236/trunk@257123 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 01:19:37 +00:00
wtc%google.com
e4d817cc6d Bug 86396: added timestamps to PR_LOG. Timestamps are enabled by the
special log module "__timestamp".  We use calendar times in the local
timezone.  The patch is contributed by Hiroyuki Ikezoe
<ikezoe@clear-code.com>.  r=wtc.
Modified Files: prlog.c prinit.c


git-svn-id: svn://10.0.0.236/trunk@257122 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-07 01:00:47 +00:00
nrthomas%gmail.com
d3be8f90fc Bug 487521, update patcher config for 2.0.0.20 --> 3.0.10 major update, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@257121 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-06 23:58:09 +00:00
nrthomas%gmail.com
b989ac8f2d Bug 486459, followup for Fx3.5 patcher config to get releasetest for old releases too
git-svn-id: svn://10.0.0.236/trunk@257120 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-06 23:39:53 +00:00
wtc%google.com
27b3b6479a Bug 476996: Updated comments so that either they don't mention "Mac" (which
meant Mac OS Classic) or they say "Mac OS Classic".  r=nelson.
Modified Files: prinet.h prlink.h prtime.c


git-svn-id: svn://10.0.0.236/trunk@257119 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-06 22:50:53 +00:00
bent.mozilla%gmail.com
c6f29415a2 Bug 468538 - 'Crash [@ nsParser::ParseFragment] setting innerHTML in mixed-content document'. r+sr=mrbkap, a=ss.
git-svn-id: svn://10.0.0.236/trunk@257118 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-06 22:37:58 +00:00
joshmoz%gmail.com
5794ae4c31 Fix crash in OJI. Patch by timeless. b=325392 r=josh a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257117 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-06 20:08:44 +00:00
lpsolit%gmail.com
50d9509009 Bug 491679: Do not store the buglist sort order of shared saved searches in cookies - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257116 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-06 19:36:58 +00:00
wtc%google.com
e921477bf3 Bug 476996: removed obsolete XP_MAC code for Mac OS Classic.
git-svn-id: svn://10.0.0.236/trunk@257115 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-06 14:15:29 +00:00
wtc%google.com
18ddd5daa8 Bug 476996: removed the remaining XP_MAC code. The patch is contributed by
Zack Weinberg <zweinberg@mozilla.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@257114 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-06 05:40:39 +00:00
bhearsum%mozilla.com
08d4968c3a Bustage fixes for l10n - remove non-existant parameters
git-svn-id: svn://10.0.0.236/trunk@257113 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-05 19:37:36 +00:00
Olli.Pettay%helsinki.fi
f0a37dde87 Bug 486398, r=mw22,r+sr=jst,a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257112 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-05 19:37:28 +00:00
Olli.Pettay%helsinki.fi
b64c537c97 ug 489988 - Java Applets reload when print is called, r+sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257111 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-05 19:16:29 +00:00
wtc%google.com
cf9294fd23 Bug 491205: provide correct endianness macro definitions for big-endian
ARM/Linux systems.  The patch is contributed by Mikael Pettersson
<mikpe@it.uu.se>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@257110 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-05 18:33:17 +00:00
ccooper%deadsquid.com
3a7561a247 b=489482
r=lukasblakk
- Land local changes from 1.9-unittest master


git-svn-id: svn://10.0.0.236/trunk@257109 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-05 18:13:52 +00:00
bclary%bclary.com
7bd0468d80 bug 487546 - updating the tests to reflect the new restriction on the maximum string length. npotb, patch by Igor Bukanov, r=bclary
git-svn-id: svn://10.0.0.236/trunk@257108 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-05 12:04:01 +00:00
nelson%bolyard.com
0daea61c65 Effectively revert revision 3.54's change to the definition of _md_iovector
on all platforms except SYMBIAN, to fix bug 491441 on all platforms except
Symbian.  Patch tested by timeless <timeless@bemail.org> (Thanks!).


git-svn-id: svn://10.0.0.236/trunk@257106 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-05 06:51:44 +00:00
christophe.ravel.bugs%sun.com
bf89147ad2 Bug 491076 - OCSP tests are not run on HP-UX.
r=nelson.


git-svn-id: svn://10.0.0.236/trunk@257105 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-04 19:48:43 +00:00
nelson%bolyard.com
dfe0b53d1a Replace expired test cert for www.paypal.com
git-svn-id: svn://10.0.0.236/trunk@257104 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-03 02:33:34 +00:00
dholbert%cs.stanford.edu
5e5bacba35 Bug 472776. Don't accidentally clear TEXT_IN_TEXTRUN_USER_DATA after we just set it. Patch by Robert O'Callahan <robert@ocallahan.org> r=smontagu a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257103 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-02 23:54:33 +00:00
nelson%bolyard.com
a4f1b5ead2 Bug 488621: PR_Now() resolution on Windows Mobile is 1 second.
Patch by Brad Lassey <bugmail@lassey.us>, r=nelson,wtc


git-svn-id: svn://10.0.0.236/trunk@257102 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-02 23:27:06 +00:00
alqahira%ardisson.org
345198e0ee Commit local changes bumping Ts timeout to 50s to cb-minibinus's tinder-config.
git-svn-id: svn://10.0.0.236/trunk@257101 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-02 00:14:04 +00:00
nelson%bolyard.com
8b6e3007e7 Bug 491045: Remove support for VMS (a.k.a., OpenVMS) from NSPR, r=wtc
git-svn-id: svn://10.0.0.236/trunk@257100 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-01 23:08:06 +00:00
stuart.morgan%alumni.case.edu
89b8af016b Camino only - Follow-up for bug 489019: fix the path we give to upload_symbols.sh
git-svn-id: svn://10.0.0.236/trunk@257099 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-01 22:34:38 +00:00
nelson%bolyard.com
da818ac495 Bug 427135: Add super-H(sh3,4) architecture support. r=christophe.ravel
git-svn-id: svn://10.0.0.236/trunk@257098 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-01 22:14:48 +00:00
alqahira%ardisson.org
fc2bae3064 Bug 489019 - Upload symbols to Socorro. Turn on tinderbox symbol upload variables (note upload currently depends on a local change to post-mozilla-rel.pl)
git-svn-id: svn://10.0.0.236/trunk@257097 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-01 21:29:21 +00:00
stuart.morgan%alumni.case.edu
2e5b75b5a6 Camino only - Bug 489019: Change the way we control building and uploading symbols to make tinderbox integration easier. r=ardissone
git-svn-id: svn://10.0.0.236/trunk@257096 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-01 19:52:49 +00:00
dietrich%mozilla.com
c77f302c48 Bug 464486 - lots of bookmark corruption reported via user support (r=sdwilsh, r=mak77, a=dveditz)
git-svn-id: svn://10.0.0.236/trunk@257095 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-01 18:03:37 +00:00
wtc%google.com
ab206d9db8 Bug 481580: Assemble assembly language files with -x assembler-with-cpp.
This flag is apparently used implicitly by Apple GCC, but is necessary
when using standard GCC to assemble os_Darwin.s.  r=ted.mielczarek.


git-svn-id: svn://10.0.0.236/trunk@257093 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-01 04:08:14 +00:00
wtc%google.com
9f2ce1398e Bug 487537: fixed a possible unintialized variable use in pt_RecvFrom
reported by Valgrind.  The patch is contributed by Daniel Franke
<df@dfranke.us>.  r=nelson,wtc.


git-svn-id: svn://10.0.0.236/trunk@257092 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-01 02:07:02 +00:00
wtc%google.com
fa1f9be4ad Bug 489231: The definitions of LL_ constants such as LL_MAXUINT in prlong.h
need to be kept in sync with the definitions of the PRInt64/PRUint64 types
in prtypes.h.  The patch is contributed by Josh Aas <joshmoz@gmail.com>.
r=wtc.
Modified Files: prlong.h prtypes.h


git-svn-id: svn://10.0.0.236/trunk@257091 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-01 00:59:01 +00:00
stuart.morgan%alumni.case.edu
68d074bea8 Camino only - Bug 488512 follow-up; add PrintPDE to symbols
git-svn-id: svn://10.0.0.236/trunk@257090 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-30 23:08:51 +00:00
stuart.morgan%alumni.case.edu
cd443f5f5c Camino only - Bug 488512: Generate breakpad symbols with build. sr=mento
git-svn-id: svn://10.0.0.236/trunk@257089 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-30 22:19:48 +00:00
stuart.morgan%alumni.case.edu
4199e9b5e4 Camino only - Bug 487234: Strip headers from packaged frameworks
git-svn-id: svn://10.0.0.236/trunk@257088 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-30 21:33:27 +00:00
nelson%bolyard.com
876bc98f97 Bug 485145: Miscellaneous crashes in signtool on Windows. r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@257087 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-30 18:37:05 +00:00
kaie%kuix.de
732830e13b Changing version number to 3.12.4.1 beta
r=relyea (by phone)


git-svn-id: svn://10.0.0.236/trunk@257085 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-30 18:16:09 +00:00
alqahira%ardisson.org
e3a1204572 Bug 490635 - Pause button in the Downloads window never gets enabled. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r=kreeger, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257084 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-30 17:35:20 +00:00
dholbert%cs.stanford.edu
e281cd7dfc bug 431260: check in crashtests
git-svn-id: svn://10.0.0.236/trunk@257083 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-30 17:01:22 +00:00
anodelman%mozilla.com
063fc7b413 Bug 480413 - design test to monitor browser shut down time
very minor bustage fix for typo (p/r=anodelman)


git-svn-id: svn://10.0.0.236/trunk@257082 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-29 23:47:20 +00:00
anodelman%mozilla.com
4abdedc982 Bug 480413 - design test to monitor browser shut down time
fix for bad test naming on nochrome talos (p/r=anodelman)


git-svn-id: svn://10.0.0.236/trunk@257081 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-29 19:02:04 +00:00
despotdaemon
99d5bf72f5 Pseudo-automatic update of changes made by joshmoz@gmail.com.
git-svn-id: svn://10.0.0.236/trunk@257080 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-29 18:39:26 +00:00
stuart.morgan%alumni.case.edu
9712cea8d4 Camino only - Bug 488513: Update breakpad to 335, and tweak our integration to account for the changes to the framework.
git-svn-id: svn://10.0.0.236/trunk@257079 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-29 18:14:57 +00:00
anodelman%mozilla.com
d065a53813 Bug 480413 - design test to monitor browser shut down time
bustage fix for increase in ts numbers (p/r = anodelman)


git-svn-id: svn://10.0.0.236/trunk@257078 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-29 17:29:37 +00:00
anodelman%mozilla.com
bb0054012e Bug 480413 - design test to monitor browser shut down time
p=anodelman, r=catlee


git-svn-id: svn://10.0.0.236/trunk@257077 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-29 15:03:21 +00:00
mkanat%bugzilla.org
04d4c6e8ce Bug 490562: QuickSearch "+" operator adds $qsword over and over for @subWords
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257076 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-29 00:32:28 +00:00
emaldona%redhat.com
c8f36257d1 Bug 490154, r=rrelyea, Fixed mechanism test in nssCKFWMechanism_GenerateKeyPair
git-svn-id: svn://10.0.0.236/trunk@257075 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-29 00:25:32 +00:00
nelson%bolyard.com
8921cd3b5c Bug 487007: Make lib/jar conform to NSS coding style, eliminate Win16 hacks,
and fix gross bugs  r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@257074 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-28 23:46:11 +00:00
glen.beasley%sun.com
303e2a761e 490043 don't enforce thread cleanup r=nelson
git-svn-id: svn://10.0.0.236/trunk@257073 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-28 21:07:13 +00:00
mkanat%bugzilla.org
a1469b8d46 Bug 418672: Make email_in.pl chdir to the abs_path to avoid working from /etc/smrsh with Sendmail
Patch by Marques Johansson <bugzilla@displague.com> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257072 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-28 20:28:05 +00:00
mkanat%bugzilla.org
a0263c6b8b Bug 483150: Fix Bugzilla JS/CSS for IE8
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=glob, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257071 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-28 20:18:43 +00:00
mkanat%bugzilla.org
8df6f86023 Bug 103523: Don't split buglist table every 100 bugs for new browsers
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@257070 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-28 20:16:49 +00:00
mkanat%bugzilla.org
766d8af55e Bug 474897: Give Bug.search sensible default search types for its fields
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=ghendricks, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@257069 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-28 20:14:29 +00:00
nelson%bolyard.com
6db0754df3 Bug 487007: Make lib/jar conform to NSS coding style, eliminate Win16 hacks,
and fix gross bugs, r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@257068 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-28 04:25:03 +00:00
alqahira%ardisson.org
456e8acbb2 Follow-on to bug 488861 - attempt to outsmart Xcode's desire to skip copy phases (thereby leaving unify with non-matching files) by switching to a shell script phase for copying the InfoPlist.strings override. sr=smorgan on irc
git-svn-id: svn://10.0.0.236/trunk@257067 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-28 02:37:22 +00:00
nelson%bolyard.com
87133eb772 Bug 487007: Make lib/jar conform to NSS coding style, eliminate Win16 hacks,
and fix gross bugs, r=julien


git-svn-id: svn://10.0.0.236/trunk@257066 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-28 02:29:30 +00:00
nelson%bolyard.com
9a80553798 Bug 487007: Make lib/jar conform to NSS coding style, eliminate Win16 hacks,
and fix gross bugs. r=Julien.pierre


git-svn-id: svn://10.0.0.236/trunk@257065 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-28 02:26:56 +00:00
alqahira%ardisson.org
56597831b0 Bug 488861 - Rebrand the Breakpad 'Crash Reporter' as 'Camino Crash Reporter'. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257064 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-28 00:59:52 +00:00
glen.beasley%sun.com
81072444c1 485745 modify fipstest.c to support CAVS 7.1 DRBG testing r=bob
git-svn-id: svn://10.0.0.236/trunk@257063 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-27 20:14:13 +00:00
alqahira%ardisson.org
83fcf75646 Back out bug 475201 again (existing files with changes only this time) to see if it solves missing boxset perf (bug 490278)
git-svn-id: svn://10.0.0.236/trunk@257062 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-27 18:14:25 +00:00
alqahira%ardisson.org
82bdd5e8d3 Bug 475201 - Add 'Allow Flash From This Site' to context menu for Flashblocked items (now with less Xcode 2.x ld suck). Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=cl, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257060 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-26 23:11:43 +00:00
szegedia%freemail.hu
9ca3b8441f Make sure we can lazily load our standard objects even when invoked from code that wouldn't have privilege to access those classes
git-svn-id: svn://10.0.0.236/trunk@257059 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-26 10:11:51 +00:00
szegedia%freemail.hu
ecf548eeab Pathch for [#463996]: customizable typeOf for ScriptableObjects (contributed by Marc Guillemot)
git-svn-id: svn://10.0.0.236/trunk@257058 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-26 10:09:44 +00:00
alqahira%ardisson.org
30672decae Back out bug 475201 due to the Xcode 2.x ld suckage
git-svn-id: svn://10.0.0.236/trunk@257057 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-26 06:09:09 +00:00
alqahira%ardisson.org
d5c9f57eb1 Bug 475201 - Add 'Allow Flash From This Site' to context menu for Flashblocked items. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=cl, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257056 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-26 04:15:40 +00:00
cltbld
20cf59b35d Automated configuration bump: moz191-branch-patcher2.cfg, from 3.1b3 to 3.5b4 build 1
git-svn-id: svn://10.0.0.236/trunk@257055 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 23:56:36 +00:00
nelson%bolyard.com
f870c89765 Bug 489287: Resolve a few remaining issues with NSS's new revocation flags
git-svn-id: svn://10.0.0.236/trunk@257054 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 19:18:32 +00:00
nelson%bolyard.com
22bb9d235c Bug 489287: Resolve a few remaining issues with NSS's new revocation flags
sr=rrelyea


git-svn-id: svn://10.0.0.236/trunk@257053 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 19:13:51 +00:00
bhearsum%mozilla.com
8213f380e9 Bustage fix for partner repacks.
git-svn-id: svn://10.0.0.236/trunk@257052 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 16:47:30 +00:00
bhearsum%mozilla.com
97332175c3 bug 483232: Create script to automate partner repacks - attempt #1 to fix partner repacks in bootstrap. r=catlee
git-svn-id: svn://10.0.0.236/trunk@257051 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 16:41:39 +00:00
bhearsum%mozilla.com
739dd51318 bug 489826: tracking bug for build and release of firefox 3.0.10 - version bumps to 3.0.11 for trunk. r=catlee
git-svn-id: svn://10.0.0.236/trunk@257050 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 14:50:48 +00:00
cltbld
ccafe90b4c "Automated configuration bump: moz19-branch-patcher2.cfg, from 3.0.9 to 3.0.10"
git-svn-id: svn://10.0.0.236/trunk@257049 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 13:04:36 +00:00
silver%warwickcompsoc.co.uk
de10375cac Bug 485818 - Add ChatZilla toolbar button to SeaMonkey 2's toolbar palette.
r=silver
p=philip.chee@gmail.com (Philip Chee)
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@257048 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 12:24:57 +00:00
silver%warwickcompsoc.co.uk
e6b6baf8d6 Bug 480630 - Put user's channel mode into table row attribute, for motifs.
r=silver
p=glenjamin+bmo@gmail.com (Glen Mailer)
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@257047 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 12:21:24 +00:00
silver%warwickcompsoc.co.uk
0811bc4132 Bug 483879 - Default to allowing sending of colour codes.
r=silver
p=glenjamin+bmo@gmail.com (Glen Mailer)
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@257046 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 12:18:37 +00:00
silver%warwickcompsoc.co.uk
2d0a39f3aa Bug 482142 - Make window splash properly fill the window vertically.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@257045 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 12:14:26 +00:00
slavomir.katuscak%sun.com
fbecd587f1 Bug 489165: Added IOPR and PKITS variables to final report. r=christophe
git-svn-id: svn://10.0.0.236/trunk@257044 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 08:39:51 +00:00
slavomir.katuscak%sun.com
78da062cfb Bug 488646: added test whether OCSP server is accessible. r=alexei
git-svn-id: svn://10.0.0.236/trunk@257043 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 08:37:03 +00:00
morgamic%mozilla.com
bd8eee6574 Adding test config file from bug 475145. r=oremj,clouserw.
git-svn-id: svn://10.0.0.236/trunk@257041 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 02:24:54 +00:00
morgamic%mozilla.com
69297dc5fd Introducing per-product/version/channel throttling from bug 475145. r=clouserw,
r=oremj.


git-svn-id: svn://10.0.0.236/trunk@257040 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 02:16:47 +00:00
nrthomas%gmail.com
0b0b0a21a2 Bug 486459, bump version to 3.5b5pre (monitoring part), p=bhearsum, r=ccooper
git-svn-id: svn://10.0.0.236/trunk@257039 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 02:01:27 +00:00
despotdaemon
95383b05e6 Pseudo-automatic update of changes made by surkov.alexander@gmail.com.
git-svn-id: svn://10.0.0.236/trunk@257038 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-24 01:56:39 +00:00
bhearsum%mozilla.com
f09e4a4b9f bug 489826: tracking bug for build and release of firefox 3.0.10 - bootstrap bumps. r=catlee
git-svn-id: svn://10.0.0.236/trunk@257034 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 19:59:17 +00:00
bzbarsky%mit.edu
081c5c8e1e Bug 479880. Prevent failed SSL tunnel replies from being interpreted: replace with boilerplate error pages. Patch by Jason Duell <jduell.mcbugs@gmail.com>, r=jwalden, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@257033 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 19:45:18 +00:00
dholbert%cs.stanford.edu
ade300bff5 Bug 489647: Update to revised patch from bug 467150. r=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257030 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 17:18:43 +00:00
sdwilsh%shawnwilsher.com
8de8d3fab0 Bug 484063 - safeb request format wrong for tables with no existing data. Patch by Dave Camp <dcamp@campd.org>. r=tony, a=ss
git-svn-id: svn://10.0.0.236/trunk@257029 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 16:47:41 +00:00
despotdaemon
d8f5da4124 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@257028 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 14:43:02 +00:00
despotdaemon
69d1674168 Pseudo-automatic update of changes made by dbolter@mozilla.com.
git-svn-id: svn://10.0.0.236/trunk@257027 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 13:54:13 +00:00
bzbarsky%mit.edu
cc5477e87b Bug 479943. Pass in the right owner for link clicks and form submissions and stop inheriting from the document. r=dveditz, sr=jst, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257026 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 13:01:43 +00:00
bzbarsky%mit.edu
8496b3458c Bug 481647. Give the document created via CreateAboutBlankContentViewer the right base URI too. r+sr=jst, a=dveditz.
git-svn-id: svn://10.0.0.236/trunk@257024 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 12:59:30 +00:00
jonas%sicking.cc
6a9d426ab7 Forgot to add new file. Stupid CVS
git-svn-id: svn://10.0.0.236/trunk@257023 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 08:05:53 +00:00
Olli.Pettay%helsinki.fi
f3e13c004d Bug 489131, r+sr=jst, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257022 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 07:55:17 +00:00
jonas%sicking.cc
7647002619 Don't keep a separate count of currently running scripts in the parser since all sorts of badness happens if there's running scripts when we create a new parser. r/sr=mrbkap
git-svn-id: svn://10.0.0.236/trunk@257021 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 06:54:35 +00:00
vladimir%pobox.com
75a63f26d2 b=380359; add some null checks; r=roc,a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257020 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-23 04:40:05 +00:00
sdwilsh%shawnwilsher.com
4f5e073b6a Bug 489455 - Update URLClassifier to follow Safebrowsing spec. r=tony, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@257019 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 23:20:12 +00:00
dtownsend%oxymoronical.com
e08fbaaad1 Bug 475347: Crash after closing tab that initiated an install and
included a callback function. r+sr=dveditz, a=ss


git-svn-id: svn://10.0.0.236/trunk@257018 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 20:36:51 +00:00
dtownsend%oxymoronical.com
48f96fc920 Re-enable xpinstall tests
git-svn-id: svn://10.0.0.236/trunk@257016 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 18:25:18 +00:00
dtownsend%oxymoronical.com
868001eac9 Fix test leak and later bustage by reregistering the original prompt service
after removing the mock object


git-svn-id: svn://10.0.0.236/trunk@257015 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 18:24:48 +00:00
dtownsend%oxymoronical.com
b57ffa8f02 Bug 462654 - New browser chrome test UI doesn't handle XML entities in
messages; r=gavin, p=ehsan.akhgari@gmail.com


git-svn-id: svn://10.0.0.236/trunk@257014 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 16:47:28 +00:00
smontagu%smontagu.org
01b8bcfbe3 Fix some issues found with valgrind. Bug 479759, r=Masatoshi Kimura <VYV03354@nifty.ne.jp>, a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@257013 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 11:31:34 +00:00
igor%mir2.org
b25ffed1fe bug 478336 - fixing rt->state/rt->contextList mutation race, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@257012 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 07:53:06 +00:00
wicked%sci.fi
8d2952cf81 Bug 488027: Fix "Argument isn't numeric in numeric lt (<)" errors from summarize_time.cgi - Patch by Teemu Mannermaa <wicked@sci.fi> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@257011 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 07:42:15 +00:00
stuart.morgan%alumni.case.edu
eb843aac0f Camino only - Rev Breakpad to r330 (no bug)
git-svn-id: svn://10.0.0.236/trunk@257010 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 04:53:28 +00:00
alqahira%ardisson.org
4fa1629a7c Bug 488949 - Implement about:crashes for Camino (and hook the .properties file up to Cocoa l10n). r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@257009 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 04:28:20 +00:00
dtownsend%oxymoronical.com
f68cacd2bf Disabling tests to investigate failures
git-svn-id: svn://10.0.0.236/trunk@257008 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-22 00:13:42 +00:00
julien.pierre.boogz%sun.com
f0d1b588eb Fix for bug 321755. Plug leak. r=nelson
git-svn-id: svn://10.0.0.236/trunk@257007 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 22:53:58 +00:00
dtownsend%oxymoronical.com
8459dcce9e Bug 474763: Add automated tests for xpinstall. r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@257006 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 22:19:56 +00:00
nrthomas%gmail.com
dd10f29ed3 Clobber mac Fx3.0 unit
git-svn-id: svn://10.0.0.236/trunk@257005 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 21:29:12 +00:00
dtownsend%oxymoronical.com
023dfcfa05 Bug 475526: Move assertion to somewhere it makes sense. r+sr=dveditz, a=ss
git-svn-id: svn://10.0.0.236/trunk@257004 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 21:19:32 +00:00
dtownsend%oxymoronical.com
3f49cb076a Bug 475532: nsXPInstallManager needs threadsafe addref/release.
r+sr=bsmedberg, a=ss


git-svn-id: svn://10.0.0.236/trunk@257003 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 21:18:26 +00:00
dtownsend%oxymoronical.com
2836c9a582 Bug 435788: Plugin finder service can't install plugins using
installerLocation. r=robstrong, a=dveditz


git-svn-id: svn://10.0.0.236/trunk@257002 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 21:12:00 +00:00
bent.mozilla%gmail.com
b7da17e8f0 Bug 460437 - 'innerHtml doesn't update DOM when HTML markup goes from Invalid to Valid'. r+sr=mrbkap, a1.9.0.10=ss
git-svn-id: svn://10.0.0.236/trunk@257001 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 18:16:35 +00:00
igor%mir2.org
7651dd6dce bug 477021 - make sure that js_(New|Destroy)Context() do not race against the GC, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@257000 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 16:05:11 +00:00
sdwilsh%shawnwilsher.com
a77374a40d Bug 487660 - Places depends on buggy behavior of SQLite's SUBSTR. r=dietrich, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256999 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 15:44:09 +00:00
igor%mir2.org
71fa6dd59a bug 476934 - JS_(Set|Clear)ContextThread() must wait for the GC, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@256998 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 13:01:45 +00:00
igor%mir2.org
566246d749 bug 426520, r=brendan a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@256997 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 10:27:31 +00:00
igor%mir2.org
973f2f4d31 bug 487204, r=brendan a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@256996 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 10:07:20 +00:00
nelson%bolyard.com
fae221ad02 [Bug 489205] Add chains test for "explicit policy" feature of libPKIX
r=slavo


git-svn-id: svn://10.0.0.236/trunk@256995 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 08:45:41 +00:00
mozilla%weilbacher.org
4ee88a55b3 [OS/2] Bug 487302: make menus look more like native ones, p=wuno@lsvw, r=me
git-svn-id: svn://10.0.0.236/trunk@256994 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 06:23:25 +00:00
alqahira%ardisson.org
013cbff34f Don't supress the Mac OS X crash reporter until we have real symbols with Breakpad. No bug, sr=smorgan on irc
git-svn-id: svn://10.0.0.236/trunk@256993 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 02:10:43 +00:00
alqahira%ardisson.org
4c9ef7b6aa Bug 488570 - Provide localization note for InfoPlist.strings's BreakpadVendor. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256992 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 01:26:53 +00:00
dietrich%mozilla.com
42951db312 Bug 445704 - JSON bookmarks backup has localized filename (and can't be easily restored) (r=mano, a=dveditz)
git-svn-id: svn://10.0.0.236/trunk@256991 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-21 00:49:05 +00:00
alexei.volkov.bugs%sun.com
c1d79e7842 489188 - object/memory leak in libpkix.r=nelson
git-svn-id: svn://10.0.0.236/trunk@256989 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-20 21:19:41 +00:00
rob_strong%exchangecode.com
8ecce97ccc Win32 Installer only - Bug 483688 - Modify Firefox Installer to Incorporate Feedback Form. r=jmathies, approval1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@256988 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-20 19:47:00 +00:00
gavin%gavinsharp.com
ff31e2516f Bug 455395: make Gran Paradiso branding the default on the 1.9.0 branch, r=mconnor/coop, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256987 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-20 18:15:50 +00:00
alqahira%ardisson.org
8636fbf2de Bug 489125 - Stop shipping Talkback. sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256986 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-20 17:29:29 +00:00
slavomir.katuscak%sun.com
c5224a14e0 Bug 470479: Added checking on error output and also checking for error 8030. r=alexei
git-svn-id: svn://10.0.0.236/trunk@256985 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-20 14:30:54 +00:00
honzab.moz%firemni.cz
3d0b02bc68 Bug 456705 - Firefox 2.0.0.17 crashes when opening a https-site or on shutdown with FoxyProxy 2.8.5 [@ nsSSLThread::Run], r=kaie, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256984 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-20 12:15:23 +00:00
nrthomas%gmail.com
25c2558b5b Bug 487235, stop monitoring fx2.0 nightlies
git-svn-id: svn://10.0.0.236/trunk@256983 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-20 07:39:13 +00:00
despotdaemon
e4b7936b95 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@256982 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-20 06:45:37 +00:00
alexei.volkov.bugs%sun.com
761a7cd367 485155 - NSS_ENABLE_PKIX_VERIFY=1 causes sec_error_unknown_issuer errors. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256981 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-20 05:17:48 +00:00
karlt+%karlt.net
6888a77a5e b=451341 clean up pointers on GdkWindows r=roc a=ss
git-svn-id: svn://10.0.0.236/trunk@256980 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-20 03:17:56 +00:00
nelson%bolyard.com
21594f8e22 Bug 321755 - fix a locking bug in crl.c r=alexei
git-svn-id: svn://10.0.0.236/trunk@256979 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-20 00:29:28 +00:00
mrbkap%gmail.com
5ae7f6792b Bug 479560, r+sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256978 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-19 03:17:46 +00:00
anodelman%mozilla.com
3fc1e195a9 Bug 480413 - design test to monitor browser shut down time
backing out browser shut down test, burning on tiger/leopard talos boxes (p/r=anodelman)


git-svn-id: svn://10.0.0.236/trunk@256977 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 23:23:04 +00:00
stuart.morgan%alumni.case.edu
78a19d2417 Camino only - Backing out the project changes from 488512 to fix build breakage
git-svn-id: svn://10.0.0.236/trunk@256976 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 23:10:51 +00:00
stuart.morgan%alumni.case.edu
64351c2b6e Camino only - Fix incorrect project dependency
git-svn-id: svn://10.0.0.236/trunk@256975 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 22:24:46 +00:00
stuart.morgan%alumni.case.edu
6f4ec86537 Camino only - Bug 488512: Generate breakpad symbols with builds (currently Camino code only). r/sr=mento
git-svn-id: svn://10.0.0.236/trunk@256974 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 21:12:30 +00:00
anodelman%mozilla.com
687e4c08dc Bug 480413 - design test to monitor browser shut down time
p=r=anodelman bustage fix, more race conditions


git-svn-id: svn://10.0.0.236/trunk@256973 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 21:05:10 +00:00
anodelman%mozilla.com
6c41b01fa8 Bug 480413 - design test to monitor browser shut down time
p/r=anodelman, possible fix for race condition on mac


git-svn-id: svn://10.0.0.236/trunk@256972 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 19:47:31 +00:00
anodelman%mozilla.com
d628e77a79 Bug 480413 - design test to monitor browser shut down time
p=anodelman, r=catlee


git-svn-id: svn://10.0.0.236/trunk@256971 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 18:17:19 +00:00
anodelman%mozilla.com
e0238a792e Bug 480413 - design test to monitor browser shut down time
p=anodelman, r=vlad


git-svn-id: svn://10.0.0.236/trunk@256970 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 18:14:26 +00:00
jst%mozilla.org
acc78670c3 Fixing bug 486269. Prevent plugins from being destroyed while calling into them. r=joshmoz@gmail.com, sr=bzbarsky@mit.edu, a=dveditz@cruzio.com
git-svn-id: svn://10.0.0.236/trunk@256969 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 17:54:41 +00:00
igor%mir2.org
85940179ec backing out for bug 478336, bug 477021 and bug 476934 due to compilation failure on Windows in bug 476934
git-svn-id: svn://10.0.0.236/trunk@256968 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 09:07:05 +00:00
igor%mir2.org
91ee98114c bug 478336 - fixing rt->state/rt->contextList mutation race, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@256967 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 08:28:08 +00:00
igor%mir2.org
d1d2420fdb bug 477021 - make sure that js_(New|Destroy)Context() do not race against the GC, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@256966 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 08:22:55 +00:00
igor%mir2.org
1252c41410 bug 476934 - JS_(Set|Clear)ContextThread() must wait for the GC, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@256965 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 08:15:57 +00:00
igor%mir2.org
0d35f00fc9 bug 467441 - avoiding js_(Add|Remove)Root for regexp statics, backport to 1.9.0 by Jason Orendorff, a1.9.0.10=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@256964 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 08:07:56 +00:00
igor%mir2.org
f6962d17d4 bug 427196, a1.9.0.10=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@256963 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 08:01:17 +00:00
igor%mir2.org
73e3de6592 bug 369696, a1.9.0.10=samuel.sidler
git-svn-id: svn://10.0.0.236/trunk@256962 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 07:56:47 +00:00
nelson%bolyard.com
8c334e8aec Bug 321755: (CRLDP) implement crlDistributionPoint extension in libPKIX
New file contributed by Alexei Volkov <alexei.volkov@sun.com>.


git-svn-id: svn://10.0.0.236/trunk@256961 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 06:31:27 +00:00
alexei.volkov.bugs%sun.com
6872bf2d05 321755 - (CRLDP) implement crlDistributionPoint extension in libPKIX. Patch partially provided by Julien. r=nelson.
git-svn-id: svn://10.0.0.236/trunk@256960 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 05:15:58 +00:00
alqahira%ardisson.org
26bbf0cc0b Bug 458539, take 2: if cookieFromGeckoCookie: returns nil, do not display that cookie. Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256959 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-18 03:57:30 +00:00
julien.pierre.boogz%sun.com
8386868864 Fix for bug 321755 . Changes in CRL cache to implement CRL DP. Work in progress, not reviewed, per Nelson and Alexei.
git-svn-id: svn://10.0.0.236/trunk@256958 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 22:46:54 +00:00
mkanat%bugzilla.org
d2588a679d Bug 487904 Allow email_in.pl to accept replies with localized or modified "Bug" in the header.
Patch By Mikhail Gusarov <dottedmag@altlinux.org> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256957 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 22:36:30 +00:00
mkanat%bugzilla.org
10288809cf Bug 482584: Add a parameter to hide the "See Also" field
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, r=dkl, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256956 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 22:30:33 +00:00
mkanat%bugzilla.org
e417a47487 Bug 488467: Verify and Login auth methods were being called in a random order, causing sudo sessions to frequently not need the user to re-enter their password.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256954 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 21:57:19 +00:00
mkanat%bugzilla.org
77e487efef Bug 486206: Quoted-printable bugmail had a =0D at the end of every line, because of a bug in Email::MIME::Encodings
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256952 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 21:52:42 +00:00
nelson%bolyard.com
92c68fb87b Bug 472975: crash when deleting user certificates, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@256951 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 19:28:07 +00:00
sdwilsh%shawnwilsher.com
2e93527010 bustage fix for windows
git-svn-id: svn://10.0.0.236/trunk@256950 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 18:29:49 +00:00
cltbld
57133aa856 Automated update from host egg.build.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@256949 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 18:11:37 +00:00
sdwilsh%shawnwilsher.com
f3b9499776 Upgrade to SQLite 3.6.7 on the 1.9.0 branch. r=asuth, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256948 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 18:10:53 +00:00
bzbarsky%mit.edu
7a0731e5fe Bug 488390. Get special siblings correctly even when bidi is involved. r+sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256947 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 17:18:52 +00:00
bzbarsky%mit.edu
8e1a929119 Bug 487539. Don't use an <area>'s primary frame as a primary frame hint. r+sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256946 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 17:15:15 +00:00
bzbarsky%mit.edu
8f52f30364 Bug 484031. Be a bit more careful with ContentAppended. r+sr=roc, a=ss
git-svn-id: svn://10.0.0.236/trunk@256945 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 17:12:04 +00:00
bzbarsky%mit.edu
b976f05728 Bug 432068. Fix stupid assumption in listbox code. r+sr=roc, a=ss
git-svn-id: svn://10.0.0.236/trunk@256944 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 17:09:57 +00:00
Olli.Pettay%helsinki.fi
3b95b4fa57 Bug 431086, p=chris@pearce.org.nz, r+sr=peterv, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256943 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 15:27:03 +00:00
Olli.Pettay%helsinki.fi
c05e86de45 Bug 461049, r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@256942 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 13:07:37 +00:00
smontagu%smontagu.org
d8c919a77c Display URLs containing unassigned Unicode code points in punycode. Bug 479413, r=jduell, sr=jst, a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@256941 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-17 07:13:00 +00:00
bhearsum%mozilla.com
37880521fa Bustage fix: use the right slave for partner repacks
git-svn-id: svn://10.0.0.236/trunk@256940 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-16 19:24:22 +00:00
bhearsum%mozilla.com
536a77a3f7 bug 488737: no 3.0.x shark builds for a long time. r=catlee
git-svn-id: svn://10.0.0.236/trunk@256939 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-16 19:22:12 +00:00
nrthomas%gmail.com
6d77facd48 Bug 487235, disable Firefox 2.0 nightly builds and fix up the nagios monitoring, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@256938 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-16 19:18:54 +00:00
christophe.ravel.bugs%sun.com
b504ecf252 Set version of softoken to 3.12.4 (no beta flag) for FIPS release candidate.
The rest of NSS remains beta.


git-svn-id: svn://10.0.0.236/trunk@256936 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-16 18:58:11 +00:00
rrelyea%redhat.com
85b2f22142 Bug 488396 - DBM needs to be FIPS certifiable.
Add a check file to the legacydb
r=nelson
r=wtc


git-svn-id: svn://10.0.0.236/trunk@256934 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-16 18:19:26 +00:00
dolske%mozilla.com
474270c6ee Bug 463486 - Form history shouldn't remember the default values of unmodified fields. r=gavin, a190=ss
git-svn-id: svn://10.0.0.236/trunk@256933 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-16 01:21:48 +00:00
rrelyea%redhat.com
a416798509 Bug 453735 - When using cert9 (SQLite3) DB, set or change master password fails
r=wtc
sr=nelson


git-svn-id: svn://10.0.0.236/trunk@256932 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 21:34:39 +00:00
rrelyea%redhat.com
7df6c971b8 Bug 488350 - NSPR-free freebl interface need to do post tests only in fips mode.
r=wtc
sr=nelson

Both reviewers suggested a change to '1' if the /proc file failed to open.


git-svn-id: svn://10.0.0.236/trunk@256931 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 21:31:55 +00:00
nelson%bolyard.com
48f944d595 Bug 488550: crash in certutil or pp when printing cert with empty subject name
r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@256930 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 20:46:13 +00:00
slavomir.katuscak%sun.com
9c613878be Bug 478988: Patch to trim traling zeroes from date string. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256929 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 18:04:35 +00:00
lpsolit%gmail.com
ed0bf0fded Bug 480862: relogin.cgi now just throws an error by default (should redirect to index.cgi) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256928 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 17:54:34 +00:00
stuart.morgan%alumni.case.edu
49c17bcd59 Camino only - Missed file for Bug 380172: initial breakpad integration for Camino.
git-svn-id: svn://10.0.0.236/trunk@256927 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 16:53:30 +00:00
stuart.morgan%alumni.case.edu
4419061c7d Camino only - Bug 380172: initial breakpad integration for Camino.
git-svn-id: svn://10.0.0.236/trunk@256926 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 16:32:00 +00:00
neil%parkwaycc.co.uk
ab336d461e Backing out bug 486404, patch was checked in to the wrong tree
git-svn-id: svn://10.0.0.236/trunk@256925 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 15:38:30 +00:00
neil%parkwaycc.co.uk
06420b3be5 Bug 486404 Various XPCOM allocator mismatches in PSM r=mayhemer
git-svn-id: svn://10.0.0.236/trunk@256924 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 12:17:44 +00:00
lpsolit%gmail.com
d4333b5e80 Bug 486685: MIME type override for attachments lost in HTTP redirect - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256923 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 09:49:44 +00:00
nrthomas%gmail.com
4547ec9c66 Bug 487521, update patcher config for Fx 2.0.0.20 -> 3.0.9 major update, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@256921 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 03:52:44 +00:00
ccooper%deadsquid.com
a6186f69de - add missing file from previous commit (bustage fix)
git-svn-id: svn://10.0.0.236/trunk@256920 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 01:11:55 +00:00
ccooper%deadsquid.com
35178b68e6 - nit-fix for builder name (staging only)
git-svn-id: svn://10.0.0.236/trunk@256919 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 00:39:24 +00:00
ccooper%deadsquid.com
f46de2308d b=483232
r=nthomas
- Adding partner repack step to master.cfg, production and staging


git-svn-id: svn://10.0.0.236/trunk@256918 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 00:29:36 +00:00
ccooper%deadsquid.com
332f13e938 b=483232
r=nthomas
- Add partner repack logic to Bootstrap


git-svn-id: svn://10.0.0.236/trunk@256917 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-15 00:24:35 +00:00
reed%reedloden.com
7ca43937e8 Bug 488358 - "CVS notifications of mozilla/testing/performance/talos"
git-svn-id: svn://10.0.0.236/trunk@256916 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-14 21:24:06 +00:00
lpsolit%gmail.com
e3c5e4bfdd Bug 486057: Title of product_name_already_in_use is inconsistent with its description - Patch by A.A. Shimono (himorin) <shimono@mozilla.gr.jp> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256915 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-14 21:22:11 +00:00
dholbert%cs.stanford.edu
e41e063ded Bug 406646. Make sure to only search *visible* popups for mouse event targets. Patch by Robert O'Callahan <robert@ocallahan.org> r=enndeakin a1.9.0.10=dveditz
git-svn-id: svn://10.0.0.236/trunk@256914 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-14 19:24:10 +00:00
ccooper%deadsquid.com
051c710b8d b=464169
r=armenzg
- repack-on-change for CVS-based builds
- use BuildSlaves.py as we do for m-c


git-svn-id: svn://10.0.0.236/trunk@256913 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-14 18:10:41 +00:00
alexei.volkov.bugs%sun.com
a0cf8d9a32 Fix for tinderbox. Bug 487884.
git-svn-id: svn://10.0.0.236/trunk@256912 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-14 16:13:30 +00:00
ginn.chen%sun.com
45e1dfae67 Bug 460926 A11y hierachy is broken on Ubuntu 8.10 (GNOME 2.24) r=surkov.alexander sr=roc a=ss
git-svn-id: svn://10.0.0.236/trunk@256911 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-14 07:55:49 +00:00
alexei.volkov.bugs%sun.com
ca077b16d3 487884 - object leak in libpkix library upon error. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256910 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-14 07:30:50 +00:00
julien.pierre.boogz%sun.com
54c19f7f43 Fix for bug 488067 . Set SEC_ERROR_CRL_IMPORT_FAILED . r=nelson
git-svn-id: svn://10.0.0.236/trunk@256909 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-14 03:03:05 +00:00
alexei.volkov.bugs%sun.com
eed434c379 391434 - avoid multiple encoding/decoding of PKIX_PL_OID to and from ascii string. r=nelson.
git-svn-id: svn://10.0.0.236/trunk@256908 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-14 02:04:08 +00:00
nelson%bolyard.com
5f365b0b3c Bug 487487: CERT_NameToAscii reports "!Invalid AVA!" whenever value exceeds 384 bytes
Patch contributed by Kaspar Brand <mozbugzilla@velox.ch>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@256907 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-13 18:45:34 +00:00
christophe.ravel.bugs%sun.com
ea55616eaf Change NSS version to 3.12.4 Beta.
git-svn-id: svn://10.0.0.236/trunk@256906 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-13 17:47:02 +00:00
nelson%bolyard.com
54d135fdbd Bug 487381 certificates with very large issuer names can corrupt cert8 database
r=Kaspar Brand


git-svn-id: svn://10.0.0.236/trunk@256905 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-13 17:23:15 +00:00
kaie%kuix.de
b157530b54 Bug 487718, Add 3 new roots to NSS
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@256904 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-13 02:40:06 +00:00
wtc%google.com
b908bf4e21 Bug 486537: Pass the --noexecstack flag to the assembler when building for
Linux x86_64 to disable execstack.  The patch is contributed by Ulrich
Drepper <drepper@redhat.com>.  r=rrelyea,wtc.


git-svn-id: svn://10.0.0.236/trunk@256903 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-12 23:35:30 +00:00
wtc%google.com
aab096c8c3 Bug 487858: Remove obsolete variables MOZILLA_SECURITY_BUILD,
MOZILLA_BSAFE_BUILD, and CRYPTODIR.  r=emaldona.
Modified Files:
	cmd/platlibs.mk lib/Makefile lib/softoken/config.mk
	lib/softoken/legacydb/config.mk lib/ssl/config.mk


git-svn-id: svn://10.0.0.236/trunk@256902 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-12 17:19:26 +00:00
alexei.volkov.bugs%sun.com
2c68347e9f 487962 - pkix_pl_HttpDefaultClient leaks a buffer upon an error.r=nelson
git-svn-id: svn://10.0.0.236/trunk@256901 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-12 16:28:54 +00:00
lpsolit%gmail.com
4bc21a9d83 Bug 308663: Cryptic "'' is not a legal date" error from time summaries (missing start date when splitting results by month) - Patch by Matt Selsky <selsky@columbia.edu> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256900 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-12 12:10:08 +00:00
nelson%bolyard.com
6e345c7f78 Bug 480509: Improper character escaping and unescaping in alg1485.c, r=tbd
git-svn-id: svn://10.0.0.236/trunk@256899 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-12 05:43:13 +00:00
nelson%bolyard.com
781ff8330d Bug 487487: CERT_NameToAscii reports "!Invalid AVA!" whenever value exceeds 384 bytes
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@256898 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-12 04:34:00 +00:00
nelson%bolyard.com
f073f7b906 Bug 487381: certificates with very large issuer names can corrupt cert8 database
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@256897 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-12 01:31:46 +00:00
lpsolit%gmail.com
abeedd7168 Bug 487769: checksetup.pl can no longer create versions in TestProduct due to insufficient privileges (checksetup.pl fails) - Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256896 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-11 23:33:27 +00:00
nelson%bolyard.com
bd4fd80684 Bug 480509: Improper character escaping and unescaping in alg1485.c
r=Honza


git-svn-id: svn://10.0.0.236/trunk@256895 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-11 22:58:52 +00:00
emaldona%redhat.com
a0e0b2022f Bug 486698, r=wtc, Changed .mk files to enable building of major components independently and in a chain manner by downstream distributions
git-svn-id: svn://10.0.0.236/trunk@256894 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-11 21:18:48 +00:00
alexei.volkov.bugs%sun.com
5de65fee9a Fix tinderbox(a debug line from libpkix was added to downloaded script): allow libpkix to print warnings only in debug mode and only into stderr.
git-svn-id: svn://10.0.0.236/trunk@256892 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-11 04:37:53 +00:00
glen.beasley%sun.com
cabda7ca2e 402058 backout of patch
git-svn-id: svn://10.0.0.236/trunk@256891 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-11 02:27:44 +00:00
alexei.volkov.bugs%sun.com
f1b774f239 408903 - CERT_PKIXVerifyCert should do revocation checking of the leaf cert. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256890 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 23:56:09 +00:00
reed%reedloden.com
d30e59d2b5 Bug 464994 - "about:license and about:rights both contain similar text, potentially contradict each other" [p=dolske@mozilla.com (Justin Dolske) / reed@reedloden.com (Reed Loden) r=gerv a=ss]
git-svn-id: svn://10.0.0.236/trunk@256889 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 23:19:04 +00:00
ghendricks%novell.com
e7be1a3242 Bug 486006 - importxml.pl must not use format_time() for deadlines
patch by ghendricks r=LpSolit a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256888 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 22:29:59 +00:00
alexei.volkov.bugs%sun.com
e2aa2b9956 Additional checking to fix tinderbox: 420991 - libPKIX returns wrong NSS error code.
git-svn-id: svn://10.0.0.236/trunk@256887 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 22:22:43 +00:00
lpsolit%gmail.com
0b09463f19 Bug 487865: Exporting bugs in XML format uses non-unique timezones (they cannot be imported back) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256886 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 22:09:40 +00:00
julien.pierre.boogz%sun.com
f6b93b2cf8 Fix for bug 467553 . cipher.sh needs to run with bash . r=nelson
git-svn-id: svn://10.0.0.236/trunk@256885 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 22:07:46 +00:00
julien.pierre.boogz%sun.com
f454bd8774 Fix for bug 487736 . Don't call DER_DecodeTimeChoice on PRTime. r=alexei
git-svn-id: svn://10.0.0.236/trunk@256884 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 21:59:31 +00:00
alexei.volkov.bugs%sun.com
0cd21ba33c 420991 - libPKIX returns wrong NSS error code. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256883 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 21:44:14 +00:00
bclary%bclary.com
d1acf00cea JavaScript Tests - bug 452598 upvar2, aka the big one, by Brendan Eich, sync js/tests to tracemonkey, npotb
git-svn-id: svn://10.0.0.236/trunk@256882 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 19:44:03 +00:00
bclary%bclary.com
9557515f84 JavaScript Tests - typo fixes by Jeff Walden, sync js/tests to tracemonkey, npotb
git-svn-id: svn://10.0.0.236/trunk@256881 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 19:40:45 +00:00
glen.beasley%sun.com
de9905dc8c 402058 fix for new pkix ssl tests r=self tinderbox broke
git-svn-id: svn://10.0.0.236/trunk@256880 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 10:06:18 +00:00
lpsolit%gmail.com
67dd7b4dac Bug 471871: Bugzilla::Version has duplicated code compared to Bugzilla::Object (make Bugzilla::Version really a subclass of Bugzilla::Object) - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256879 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 09:36:46 +00:00
alexei.volkov.bugs%sun.com
8c6ffb867a 485658 - vfychain -p reports revoked cert, but with -pp or no -p reports good chain. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256878 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-10 03:38:15 +00:00
glen.beasley%sun.com
d0dc7e6bb1 402058 tstclnt return 254 for expected error for all.sh r=nelson
git-svn-id: svn://10.0.0.236/trunk@256877 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 23:52:08 +00:00
julien.pierre.boogz%sun.com
b6275ccf2f Fix for bug 485527. rename _X86_ symbol . r=nelson
git-svn-id: svn://10.0.0.236/trunk@256876 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 22:25:09 +00:00
julien.pierre.boogz%sun.com
776ca90663 Fix for bug 485527. rename _X86_ symbol . r=nelson
git-svn-id: svn://10.0.0.236/trunk@256875 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 22:11:07 +00:00
lpsolit%gmail.com
15b5e1bde8 Fix a warning thrown in the web server error log (due to bug 454251)
git-svn-id: svn://10.0.0.236/trunk@256874 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 21:49:04 +00:00
cltbld
4159c2422c "Automated configuration bump: moz19-branch-patcher2.cfg, from 3.0.8 to 3.0.9"
git-svn-id: svn://10.0.0.236/trunk@256873 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 20:40:01 +00:00
nelson%bolyard.com
77d8dcce22 Bug 487567: OS/2 cannot sign softokn3.dll after upgrade to nss-3.12.3
Patch contributed by Peter Weilbacher <mozilla@Weilbacher.org>, n=nelson


git-svn-id: svn://10.0.0.236/trunk@256872 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 20:25:50 +00:00
lpsolit%gmail.com
04e32978ce Bug 440259 (2nd attempt): User::match should be using Bugzilla::User->new_from_list - Patch by arbingersys <arbingersys@gmail.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256871 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 13:45:18 +00:00
lpsolit%gmail.com
843d034307 Bug 454251: Implement Bugzilla::Attachment->create() and $attachment->update() - Patch by Frédéric Buclin <LpSolit@gmail.com> a=LpSolit (module owner)
git-svn-id: svn://10.0.0.236/trunk@256870 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 11:38:01 +00:00
catlee%mozilla.com
2fa88c713b Bug 487028: tracking bug for build and release of firefox 3.0.9 - bootstrap
bumps for build 2. r=nthomas, patch=catlee


git-svn-id: svn://10.0.0.236/trunk@256866 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 03:03:15 +00:00
nelson%bolyard.com
60cdcb3d5d Bug 486405: Allocator mismatches in pk12util.c, r=neil <neil@httl.net>
git-svn-id: svn://10.0.0.236/trunk@256864 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 02:33:27 +00:00
nelson%bolyard.com
0dcab09108 Bug 487162: ckfw/capi build failure on windows, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@256863 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 02:28:50 +00:00
nelson%bolyard.com
1feb852d58 Bug 486304: cert8.db "corruption" when importing a large certificate (>64K)
Patch, part 2, r=rrelyea,


git-svn-id: svn://10.0.0.236/trunk@256862 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 02:00:33 +00:00
nelson%bolyard.com
18113d7a39 Bug 486999: Calling SSL_SetSockPeerID a second time leaks the previous value
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@256861 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 01:46:22 +00:00
nrthomas%gmail.com
73efb72bbd Bug 487345 - Crash [@ nsObjectLoadingContent::Instantiate] when enabling Flashblock after visiting this URL, p=Olli.Pettay@gmail.com, r=bzbarsky, a=ss
git-svn-id: svn://10.0.0.236/trunk@256857 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-09 00:00:16 +00:00
lpsolit%gmail.com
0fd71f2e8c Fix the warning thrown by 011pod.t
git-svn-id: svn://10.0.0.236/trunk@256856 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-08 21:28:21 +00:00
lpsolit%gmail.com
5673aa55d4 Fix incorrect regexp for bug 333648 - Patch by me
git-svn-id: svn://10.0.0.236/trunk@256855 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-08 20:47:02 +00:00
alqahira%ardisson.org
3f7b749612 Bug 485126 - Crash [@ -[CHBrowserView isTextBasedContent] ] (don't crash if contentWindow returns null). Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@256854 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-08 20:17:39 +00:00
alqahira%ardisson.org
97b5f8fbbb Bug 374648 - Provide access to page source via AppleScript, Bug 394582 - Provide access to page text via AppleScript, and selections in both cases. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=cl, r-ish=peeja on the .sdef, sr=pink
git-svn-id: svn://10.0.0.236/trunk@256853 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-08 19:45:17 +00:00
alqahira%ardisson.org
8342bec8b6 Bug 472010 - Omnibus ad-blocking bug for January/February/March 2009. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256852 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-08 18:59:52 +00:00
lpsolit%gmail.com
844117889b Back out bug 440259. PostgreSQL fails
git-svn-id: svn://10.0.0.236/trunk@256850 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-08 09:48:59 +00:00
lpsolit%gmail.com
a1eb570090 Bug 487342: 001compile.t fails if JSON::RPC is not installed - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256849 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-08 08:53:14 +00:00
nelson%bolyard.com
389f0d4b1e Bug 486304: cert8.db "corruption" when importing a large certificate (>64K)
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@256848 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-08 04:35:29 +00:00
nelson%bolyard.com
96df6d49c0 Bug 487239: nssutil.rc doesn't compile on WinCE
Bug 487255: sdb.c uses POSIX file IO Functions on WinCE, which doesn't have them
Bug 487254: sftkmod.c uses POSIX file IO Functions on WinCE, which doesn't have them
Patches contributed by John Wolfe (:wolfe) <wolfe@lobo.us>, r=rrelyea,nelson


git-svn-id: svn://10.0.0.236/trunk@256847 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-08 04:19:35 +00:00
julien.pierre.boogz%sun.com
6f7380a113 Fix for build bustage.
git-svn-id: svn://10.0.0.236/trunk@256846 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-08 01:07:00 +00:00
julien.pierre.boogz%sun.com
443c030d5e Fix for bug 433791. Delete Win16 references. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256845 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 23:52:10 +00:00
nboyd%atg.com
01a0dd5aed Support for JSDoc parsing in Rhino. Attaches comments to nodes during parsing
to make them available through the AST API.


git-svn-id: svn://10.0.0.236/trunk@256844 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 21:12:40 +00:00
stuart.morgan%alumni.case.edu
040b620377 Camino only - Bug 380172: prepare objdir for eventually building breakpad tools. r=ardissone
git-svn-id: svn://10.0.0.236/trunk@256843 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 19:19:21 +00:00
nboyd%atg.com
901245a938 Restore revision prior to inadvertent checkin.
git-svn-id: svn://10.0.0.236/trunk@256841 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 17:02:51 +00:00
nboyd%atg.com
74564a5103 New file to go with org.mozilla.javascript.tests.Bug482203
git-svn-id: svn://10.0.0.236/trunk@256840 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 16:54:57 +00:00
stuart.morgan%alumni.case.edu
8e243fd2be Camino only - rev breakpad to r326 to unblock initial landing
git-svn-id: svn://10.0.0.236/trunk@256839 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 16:37:48 +00:00
cltbld
ce896bfdbc "Automated configuration bump: moz19-branch-patcher2.cfg, from 3.0.8 to 3.0.9"
git-svn-id: svn://10.0.0.236/trunk@256838 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 12:26:29 +00:00
wicked%sci.fi
7723c22d0e Bug 365594: Add X-Bugzilla-Type header to whine mails - Patch by Teemu Mannermaa <wicked@sci.fi> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256835 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 02:29:36 +00:00
stuart.morgan%alumni.case.edu
454962950c Camino only - Set up the breakpad tree to work with objdir builds. Still not actually built. r=ardissone
git-svn-id: svn://10.0.0.236/trunk@256833 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 00:27:07 +00:00
stuart.morgan%alumni.case.edu
8190eab044 Camino only - Remove some Xcode garbage that snuck in to the breakpad checkin
git-svn-id: svn://10.0.0.236/trunk@256832 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-07 00:08:49 +00:00
stuart.morgan%alumni.case.edu
d7caf810b0 Camino-only - Add readme for breakpad
git-svn-id: svn://10.0.0.236/trunk@256831 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-06 23:54:33 +00:00
stuart.morgan%alumni.case.edu
3da9669bde Camino only - Initial landing of Breakpad, with non-mac platform directories stripped out. Not being built yet. sr=mento.
git-svn-id: svn://10.0.0.236/trunk@256830 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-06 23:50:13 +00:00
wicked%sci.fi
d5a791fcee Bug 302420: Allow whining messages to be sent even without any results - Patch by Micheal J. Tosh <michael.j.tosh@lmco.com> r=wicked a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256829 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-06 20:57:26 +00:00
lpsolit%gmail.com
64c21303d4 Bug 486881: A powerless user can still see a restricted bug when he removes all his roles related to the bug - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256827 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-06 20:02:52 +00:00
catlee%mozilla.com
51ef9db47b Bug 487028 - tracking bug for build and release of firefox 3.0.9
version bumps to 3.0.10pre/1.9.0.10pre r=bhearsum


git-svn-id: svn://10.0.0.236/trunk@256826 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-06 17:35:00 +00:00
catlee%mozilla.com
9e369fb8cb Bug 487028: tracking bug for build and release of firefox 3.0.9 - bootstrap
bumps for build 1. r=bhearsum, patch=catlee


git-svn-id: svn://10.0.0.236/trunk@256821 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-06 14:50:26 +00:00
slavomir.katuscak%sun.com
5c7a6d5aaf Bug #367374: Removing ignored stacks caused by not calling PR_Cleanup.
git-svn-id: svn://10.0.0.236/trunk@256820 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-06 14:39:56 +00:00
lpsolit%gmail.com
48a797e1d3 Bug 471522: OS sniffing doesn't properly detect OS X 10.5 (and others) - Patch by timeless <timeless@bemail.org>, updated by Matt Selsky <selsky@columbia.edu> r=timeless a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256819 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-05 22:02:06 +00:00
lpsolit%gmail.com
70a0de06e3 Bug 486056: Should not use raw "Bug" word in the description of FIELD_TYPE_BUG_ID - Patch by A.A. Shimono (himorin) <shimono@mozilla.gr.jp> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256818 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-05 21:54:56 +00:00
lpsolit%gmail.com
de15b441e6 Bug 486744: Accept the multipart/signed emails - Patch by Mikhail Gusarov <dottedmag@altlinux.org> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256817 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-05 21:48:32 +00:00
lpsolit%gmail.com
3f71422e21 Bug 486796: Bareword in 3.2.3 release notes - Patch by Vitaly Fedrushkov <vitaly.fedrushkov@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256816 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-05 21:43:17 +00:00
stuart.morgan%alumni.case.edu
8e249bf353 Camino only - Bug 445629: Update Sparkle to r343 (adding one local fix for the 10.4 SDK that is also being upstreamed)
git-svn-id: svn://10.0.0.236/trunk@256814 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-05 13:35:46 +00:00
hannes%helma.at
50ff176e58 Fix bug 461168: Regression: constructor form of Packages is broken
git-svn-id: svn://10.0.0.236/trunk@256813 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-05 09:09:42 +00:00
mkanat%bugzilla.org
236d78f937 Bug 486239: [Oracle] Missing keyword RESTRICT on fk creation (DB::Schema explicitly specified DELETE => 'RESTRICT')
Patch by Xiaoou Wu <xiaoou.wu@oracle.com> and Max Kanat-Alexander <mkanat@bugzilla.org> r=mkanat


git-svn-id: svn://10.0.0.236/trunk@256811 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-04 04:11:27 +00:00
ghendricks%novell.com
bcba5d1555 Bug 470289 - depends on/blocks fields are reversed in web UI
patch by nparrish@sproutsys.com r=ghendricks


git-svn-id: svn://10.0.0.236/trunk@256810 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-03 16:24:34 +00:00
ghendricks%novell.com
5d63d62cf4 Bug 486666 - Russian translation for the documentation
patch by vitalif@yourcmc.ru r=ghendricks


git-svn-id: svn://10.0.0.236/trunk@256809 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-03 16:22:38 +00:00
slavomir.katuscak%sun.com
7e15dfc5cc Fixed bug ID in list of ignored leaks.
This patch doesn't affect NSS functionality.


git-svn-id: svn://10.0.0.236/trunk@256808 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-03 15:52:48 +00:00
slavomir.katuscak%sun.com
820fc3db1b Added new stacks from bugs #367374 + updated stack for #486298 to support DBG builds on quadcore.
git-svn-id: svn://10.0.0.236/trunk@256807 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-03 15:10:27 +00:00
wurblzap%gmail.com
a64d1e10fb Bug 123165 – Permissions setup option for bugzilla_user==webserver_user (suexec).
Patch by Marc Schumann <wurblzap@gmail.com>; r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256806 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-03 08:03:16 +00:00
mrbkap%gmail.com
67ffe2b343 Bug 477128 - Add a mochitest.
git-svn-id: svn://10.0.0.236/trunk@256805 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-02 22:10:57 +00:00
nrthomas%gmail.com
96db229fd7 Bug 486459, Add releasetest channel ahead of 3.5b4, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@256804 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-02 22:04:11 +00:00
nelson%bolyard.com
7a8bc31c3b Backout the checkin for bug 431958, which Defined _X86_ on Win64.
git-svn-id: svn://10.0.0.236/trunk@256794 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-02 02:32:51 +00:00
anodelman%mozilla.com
eba81e6c59 Bug 478603 - Investigate orange on mozilla-central's qm-pvista-trunk02 and qm-pvista-trunk03
p=anodelman, r=joduinn reverting increased timeouts for browser opening/closing


git-svn-id: svn://10.0.0.236/trunk@256793 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-02 00:00:55 +00:00
nrthomas%gmail.com
edf721f427 Bug 486400 - Tweak nagios monitors for XULRunner builds, r=catlee
git-svn-id: svn://10.0.0.236/trunk@256792 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-01 21:33:40 +00:00
alexei.volkov.bugs%sun.com
5cf27c34d1 412468 - modify certutil, vfychain and vfyserv utilities to use CERT_PKIXVerifyCert function. add option to validate the same cert multiple times. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256791 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-01 20:41:29 +00:00
alexei.volkov.bugs%sun.com
4fe8774e05 473944 - Trust anchor is not trusted when requireFreshInfo flag is set. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256790 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-01 20:33:34 +00:00
slavomir.katuscak%sun.com
4c8fcd25aa Updated list of ignored leaks - added leak from bug #486298.
git-svn-id: svn://10.0.0.236/trunk@256788 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-01 19:04:28 +00:00
psychoticwolf%carolina.rr.com
0fd19b4ce3 Bumping version number to 2.6
git-svn-id: svn://10.0.0.236/trunk@256785 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-01 04:55:20 +00:00
psychoticwolf%carolina.rr.com
847b6f3c0d Bug 484879 - [SPELL] Investigate spell check failures due to m-w.com changes.
git-svn-id: svn://10.0.0.236/trunk@256784 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-01 03:52:29 +00:00
wtc%google.com
45f235ad35 Bug 457045: fixed copyright notice. r=rrelyea.
git-svn-id: svn://10.0.0.236/trunk@256783 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-01 03:37:29 +00:00
nelson%bolyard.com
58491b2311 Bug 478563: Add _MSC_VER (the cl version) to coreconf. r=julien.pierre
git-svn-id: svn://10.0.0.236/trunk@256781 18797224-902f-48f8-a5cc-f745e15eee43
2009-04-01 00:49:48 +00:00
julien.pierre.boogz%sun.com
93d74afe3d Fix for bug 480280 . Fix broken Windows build. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256780 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 23:49:06 +00:00
nelson%bolyard.com
8a29563730 Bug 480280: Add missing SEC_ASN1_GET macro invocations. r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@256779 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 22:40:18 +00:00
rrelyea%redhat.com
a177763a33 Bug 480280 - The CKA_EC_POINT PKCS#11 attribute is encoded in the wrong way: missing encapsulating octet string
Add code to 1) accept either type of encoding on input (both NSS and softoken).
2) output the correct encoding unless the environment variable NSS_USE_DECODED_CKA_EC_POINT is set.
r= nelson


git-svn-id: svn://10.0.0.236/trunk@256778 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 21:05:32 +00:00
nelson%bolyard.com
802675b336 Bug 486060: sec_asn1d_parse_leaf uses argument uninitialized by caller pbe_PK11AlgidToParam
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@256777 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 21:03:49 +00:00
alexei.volkov.bugs%sun.com
352176751d 482795 - Avoid time encoding and decoding inside of pkix_pl_date object. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256776 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 20:54:44 +00:00
reed%reedloden.com
8260f06e70 Bug 477420 - "Rename some of the token names used in attachment.cgi" [p=reed r=LpSolit a=LpSolit]
git-svn-id: svn://10.0.0.236/trunk@256775 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 19:59:27 +00:00
lpsolit%gmail.com
93cf8def50 Bug 462068: Add FK constraints to the longdescs table - Patch by Vipin Hegde <vipinhegde@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256774 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 19:42:02 +00:00
lpsolit%gmail.com
2b875b5ece Bug 440259: User::match should be using Bugzilla::User->new_from_list - Patch by arbingersys <arbingersys@gmail.com> r=LpSolit a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256773 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 19:35:25 +00:00
lpsolit%gmail.com
f4803560fd Bug 399089: Remove the 'usermatchmode' parameter - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256772 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 19:24:34 +00:00
peterv%propagandism.org
142a117d9c Fix for bug 483444. r/sr=mrbkap, a=dveditz.
git-svn-id: svn://10.0.0.236/trunk@256771 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 19:22:07 +00:00
lpsolit%gmail.com
bfda31bbd9 Bug 478972: Remove the 'useentrygroupdefault' parameter - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256770 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 19:17:03 +00:00
glen.beasley%sun.com
3cf86c1eba 473147 patch caused regression for win64 re-apply patch 286123 from bug 401071
git-svn-id: svn://10.0.0.236/trunk@256769 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 14:59:14 +00:00
mkanat%bugzilla.org
22d4b4a1bd Bug 432907: Create a JSON frontend for WebServices
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256768 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-31 06:38:02 +00:00
mkanat%bugzilla.org
399698f211 Didn't set bz-nextver correctly in the docs in the last checkin.
git-svn-id: svn://10.0.0.236/trunk@256764 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 23:51:27 +00:00
mkanat%bugzilla.org
1b839e3814 Change trunk version number to 3.5.
git-svn-id: svn://10.0.0.236/trunk@256763 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 23:49:45 +00:00
glen.beasley%sun.com
950847fd2f Bug 473147 - fix for aix, pk11mode verbose output, and pk11util/pk11mode both using pk11table.c r=bob
git-svn-id: svn://10.0.0.236/trunk@256762 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 23:40:54 +00:00
mkanat%bugzilla.org
a35c56415f Bug 423613: Make profiles.extern_id actually UNIQUE in the DB schema.
Patch by arbingersys@gmail.com r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256758 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 23:16:07 +00:00
kaie%kuix.de
0a021ed284 Bug 485970 - Remove DEBUG_kaie code testing code which doesn't build any more
r=alexei


git-svn-id: svn://10.0.0.236/trunk@256757 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 22:47:27 +00:00
reed%reedloden.com
8cd83e6fd7 Bug 476603 - "[SECURITY] Editing attachments doesn't have any CSRF protection" [p=reed r=LpSolit a=LpSolit]
git-svn-id: svn://10.0.0.236/trunk@256756 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 21:03:50 +00:00
christophe.ravel.bugs%sun.com
85cd72258a Prepare NSS 3.12.3 RC0.
git-svn-id: svn://10.0.0.236/trunk@256755 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 20:45:54 +00:00
nelson%bolyard.com
ce98def4dc Bug 478563: Add _MSC_VER (the cl version) to coreconf.
Use -PDB:NONE only on versions of cl that support it.
Patch is a collaborative effort by Wan-Teh Chang, Kaspar Brand, and me.
SR=Wan-Teh Chang


git-svn-id: svn://10.0.0.236/trunk@256754 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 20:31:03 +00:00
wtc%google.com
893fa7f456 Bug 457045: In rng_init, removed an unnecessary
"globalrng->isValid = PR_FALSE" statement because we haven't reached the
only statement that sets globalrng->isValid to PR_TRUE yet.
prng_freeRNGContext doesn't need to set globalrng to NULL; its caller does
that.  prng_freeRNGContext should clear inputhash because that buffer
contains a copy of the C & V in the RNG context.  r=rrelyea.


git-svn-id: svn://10.0.0.236/trunk@256753 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 19:31:04 +00:00
mkanat%bugzilla.org
e6549c10c3 Bug 485845: Release Notes for Bugzilla 3.2.3
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256752 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 19:29:11 +00:00
wtc%google.com
12dbe79d2b Bug 457045: changed prng_Hash_df back to return SECStatus. r=rrelyea.
git-svn-id: svn://10.0.0.236/trunk@256751 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 19:21:08 +00:00
mrbkap%gmail.com
f79ce434ce Bug 485286 - Add a crashtest.
git-svn-id: svn://10.0.0.236/trunk@256750 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 19:03:14 +00:00
nelson%bolyard.com
229c8bac08 Bug 485837: vc90.pdb files are output in source directory instead of OBJDIR
r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@256749 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 18:27:05 +00:00
reed%reedloden.com
2835f651a0 Allow for excess whitespace between the old and new files (follow-up to comment made in bug 485238).
git-svn-id: svn://10.0.0.236/trunk@256748 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-30 01:34:53 +00:00
rrelyea%redhat.com
0ac50a1325 Backing out previous change. the were supposed to be sent to a branch, not the tip
git-svn-id: svn://10.0.0.236/trunk@256747 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 19:04:31 +00:00
rrelyea%redhat.com
00a78f322a Local changes that I've made to test things, but aren't really ready for main-line commits. (I just don't want to loose them in case we need them in the future).
git-svn-id: svn://10.0.0.236/trunk@256746 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 19:04:30 +00:00
rrelyea%redhat.com
7c3ea8f971 Add Camilla cipher suites TLS RFC4132 bug 361025
code supplied by okazaki@kick.gr.jp


git-svn-id: svn://10.0.0.236/trunk@256745 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 19:04:29 +00:00
relyea%netscape.com
966d0503d1 Add loops, conditionals and simple math.
git-svn-id: svn://10.0.0.236/trunk@256744 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 19:04:28 +00:00
relyea%netscape.com
07fcfe8f6c remove depricated mechanisms so pk11table continues to build.
git-svn-id: svn://10.0.0.236/trunk@256743 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 19:04:27 +00:00
relyea%netscape.com
3ddb282360 1) Add time command to time specific functions.
2) improve the help system.
3) bug fixes for arrays.


git-svn-id: svn://10.0.0.236/trunk@256742 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 19:04:26 +00:00
nelsonb%netscape.com
3cb4ba3b98 Add missing license block. Wrap long lines. Bug 243580. r=relyea.
git-svn-id: svn://10.0.0.236/trunk@256741 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 19:04:25 +00:00
relyea%netscape.com
237fc2e25e Fix mechanism command.
git-svn-id: svn://10.0.0.236/trunk@256740 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 19:04:24 +00:00
relyea%netscape.com
b7144b2ff4 Fix arrays handling strings, and help
git-svn-id: svn://10.0.0.236/trunk@256739 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 19:04:23 +00:00
relyea%netscape.com
f31d81f0f9 Tool to manage pkcs 11 module tests.
git-svn-id: svn://10.0.0.236/trunk@256738 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 19:04:22 +00:00
wtc%google.com
5c439b39b5 Bug 457045: moved the remaining FIPS 186-2 RNG code from drbg.c to dsa.c.
The comments and code could use more work in the future.  r=nelson.
Modified Files:
	mozilla/security/nss/lib/freebl/drbg.c
	mozilla/security/nss/lib/freebl/dsa.c


git-svn-id: svn://10.0.0.236/trunk@256737 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 16:51:58 +00:00
wtc%google.com
014364d7bd Bug 457045: fixed nits. r=nelson.
- typos in comments
- added 'const'
- changed parameter name byte_len/byte_Len to bytes_len to match
  the name of the buffer 'bytes'
- formatting
Modified Files:
	freebl/blapi.h freebl/drbg.c freebl/loader.c freebl/loader.h
	freebl/os2_rand.c freebl/sysrand.c freebl/unix_rand.c
	freebl/win_rand.c softoken/fipstest.c


git-svn-id: svn://10.0.0.236/trunk@256736 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 03:45:34 +00:00
wtc%google.com
8a9a9f1a4f Bug 485729: removed unused file mapfile.Solaris. r=julien.pierre.
git-svn-id: svn://10.0.0.236/trunk@256735 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 02:57:09 +00:00
emaldona%redhat.com
cb3d1d7f95 Fixed missing text in copyright notice [#485713, r wan-teh]
git-svn-id: svn://10.0.0.236/trunk@256734 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 02:21:50 +00:00
emaldona%redhat.com
f0a2101f9a Fixed text in copyright notice [#485713, r nelson]
git-svn-id: svn://10.0.0.236/trunk@256733 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 02:10:28 +00:00
emaldona%redhat.com
6a399e2fcd Fixed text in copyright notice [#485713, r nelson]
git-svn-id: svn://10.0.0.236/trunk@256732 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-29 01:56:15 +00:00
nelson%bolyard.com
f241b9d1c0 Bug 485370: crash, bus error due to unaligned access in pkix_pl_OcspResponse_Create
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@256731 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-28 01:06:35 +00:00
wtc%google.com
0f73f0dc02 Bug 453364: some more PKCS #11 error code mapping improvements. r=rrelyea.
Modified Files:
	softoken/pkcs11c.c pk11wrap/pk11err.c


git-svn-id: svn://10.0.0.236/trunk@256730 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-28 00:27:59 +00:00
emaldona%redhat.com
f623734cb5 Header and version references are to nssutil[bz 482742, r nelson]
git-svn-id: svn://10.0.0.236/trunk@256729 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-28 00:00:16 +00:00
emaldona%redhat.com
f4ee368198 add nssutil.h to EXPORTS list [bz 482742, r+ nelson]
git-svn-id: svn://10.0.0.236/trunk@256728 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-27 23:58:16 +00:00
emaldona%redhat.com
aaf209fd53 nss util version header
git-svn-id: svn://10.0.0.236/trunk@256727 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-27 23:55:10 +00:00
christophe.ravel.bugs%sun.com
4803efc97c Change version to 3.12.3 RTM (for NSS 3.12.3 RC0).
git-svn-id: svn://10.0.0.236/trunk@256726 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-27 21:42:54 +00:00
christophe.ravel.bugs%sun.com
d3054d1a2c Change the version to 4.3 RTM.
git-svn-id: svn://10.0.0.236/trunk@256725 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-27 21:34:58 +00:00
bhearsum%mozilla.com
783e7cf08c bug 485245: tracking bug for build and release of firefox 3.0.8 - version bumps to 3.0.9pre/1.9.0.9pre r=nthomas
git-svn-id: svn://10.0.0.236/trunk@256722 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-27 14:32:58 +00:00
catlee%mozilla.com
a44d9fa36e Bug 445191 - Updating milestone for trunk builds. r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@256721 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-27 13:37:59 +00:00
nrthomas%gmail.com
72a46a9223 Bug 445191, fix up monitoring for files moving to latest-mozilla1.9.0
git-svn-id: svn://10.0.0.236/trunk@256720 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-27 12:59:18 +00:00
cltbld
f328610e71 "Automated configuration bump: moz19-branch-patcher2.cfg, from 3.0.7 to 3.0.8"
git-svn-id: svn://10.0.0.236/trunk@256719 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-27 07:48:37 +00:00
reed%reedloden.com
91c518322d Bug 476872 - "Tinderbox JSON strips line breaks from notes" [p=mstange@themasta.com (Markus Stange) r=rhelmer]
git-svn-id: svn://10.0.0.236/trunk@256718 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-27 05:14:19 +00:00
nboyd%atg.com
d22d915704 Fix bug 477233 - E4X filters with namespaces codegen bug
git-svn-id: svn://10.0.0.236/trunk@256715 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-27 02:30:27 +00:00
glen.beasley%sun.com
70987a330c 380784 increase max MAX_ITERATIONS for primegen patch suggested by nelson r+ bob
git-svn-id: svn://10.0.0.236/trunk@256714 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-26 23:16:37 +00:00
glen.beasley%sun.com
02022a1218 backout of incorrect checkin
git-svn-id: svn://10.0.0.236/trunk@256713 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-26 23:14:34 +00:00
glen.beasley%sun.com
8c5a41b1f5 380784 increase max MAX_ITERATIONS for primegen patch suggested by nelson r+ bob
git-svn-id: svn://10.0.0.236/trunk@256712 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-26 23:08:29 +00:00
bzbarsky%mit.edu
56c45f2a47 Add test for bug 481558.
git-svn-id: svn://10.0.0.236/trunk@256711 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-26 21:32:34 +00:00
bhearsum%mozilla.com
ac97292a1f bug 485245: tracking bug for build and release of firefox 3.0.8 - bootstrap bumps for build 2. r=bhearsum, patch=nthomas
git-svn-id: svn://10.0.0.236/trunk@256707 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-26 13:33:04 +00:00
mrbkap%gmail.com
6c4a9a46b7 Bug 485286 - Allocate all of these consistently. r+sr=peterv/sicking a=ss
git-svn-id: svn://10.0.0.236/trunk@256704 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-26 07:32:43 +00:00
julien.pierre.boogz%sun.com
2737be174d Fix for bug 485140. Allow intel-aes.s to build on Solaris x64 with gcc/gas. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256703 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-26 06:46:13 +00:00
julien.pierre.boogz%sun.com
3adfc00790 Fix for bug 431958. Define _X86_ on Win64. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256702 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-26 02:46:03 +00:00
julien.pierre.boogz%sun.com
d5cbd43883 Fix for bug 485127 . bltest crashed when attempting rc5_cbc or rc5_ecb . r=nelson
git-svn-id: svn://10.0.0.236/trunk@256701 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-26 01:41:13 +00:00
julien.pierre.boogz%sun.com
2379ff8df9 Fix for bug 431958. Switch from OS_REL_CFLAGS to DEFINES. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256700 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-26 01:19:06 +00:00
bhearsum%mozilla.com
c82cf786d1 bug 485245: tracking bug for build and release of firefox 3.0.8. bootstrap config bumps for 3.0.8. r=nthomas
git-svn-id: svn://10.0.0.236/trunk@256688 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 22:07:01 +00:00
mrbkap%gmail.com
d7a1140d14 Bug 485217 - Add a crashtest.
git-svn-id: svn://10.0.0.236/trunk@256684 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 21:41:28 +00:00
mrbkap%gmail.com
eb91684251 Bug 485217 - Pop the eval context before returning. r+sr=peterv a=ss
git-svn-id: svn://10.0.0.236/trunk@256682 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 20:39:47 +00:00
emaldona%redhat.com
69ace8adae Move pkcs11 public headers from softoken to utils [Bug 483797, reviewer nelson]
git-svn-id: svn://10.0.0.236/trunk@256681 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 16:34:37 +00:00
emaldona%redhat.com
52862caf22 Move pkcs11 public headers from export list of softoken manifest.mn to that of utils [part of Bug 38272], reviewer nelson
git-svn-id: svn://10.0.0.236/trunk@256680 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 16:21:41 +00:00
mcs%pearlcrescent.com
3f5b68250e Bug 479978 - remove references to MOZ_PROFILE from the build system.
(duplicates functionality of MOZ_DEBUG_SYMBOLS). Patch contributed by
  Serge Gautherie <sgautherie.bz@free.fr>. r=mcs.


git-svn-id: svn://10.0.0.236/trunk@256679 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 13:04:20 +00:00
wtchang%redhat.com
346acfa7c0 Bugzilla bug 292239: added a change missed in the previous checkin.
r=relyea.


git-svn-id: svn://10.0.0.236/trunk@256678 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:34 +00:00
wtc%google.com
af62ece310 Bug 402777: moved all fake PKCS #11 defines from secmodt.h to pkcs11n.h.
r=rrelyea.  In loader.c, functions returning void must not return a value.
Modified Files:
	lib/freebl/loader.c lib/pk11wrap/secmodt.h
	lib/softoken/pkcs11n.h


git-svn-id: svn://10.0.0.236/trunk@256677 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:33 +00:00
nelson%bolyard.com
f2e1abbfb5 Bug 453234: Support for SEED Cipher Suites to TLS RFC 4010
patch by Yeonjung Kang <kang.yeonjung@gmail.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@256676 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:32 +00:00
wtc%google.com
fcf3ec4da9 Bug 402777: Two changes to make lib/util more stand-alone. Moved
CKM_INVALID_MECHANISM from secmodt.h to pkcs11n.h.  Moved the three
CERTValidity functions from lib/util/sectime.c to lib/certdb/certdb.c.
r=rrelyea.
Modified Files:
	lib/certdb/certdb.c lib/nss/utilwrap.c lib/pk11wrap/secmodt.h
	lib/softoken/pkcs11n.h lib/util/nssutil.def lib/util/secoid.c
	lib/util/sectime.c lib/util/utilrename.h


git-svn-id: svn://10.0.0.236/trunk@256675 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:31 +00:00
nelson%bolyard.com
7a4dac7b40 Bug 450845: Stop exporting symbols that are not present in the .def files
Eliminate PR_EXTERN, PR_IMPLEMENT in nss/lib, r=wtc


git-svn-id: svn://10.0.0.236/trunk@256674 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:30 +00:00
julien.pierre.bugs%sun.com
60272a4d70 Fix for bug 220115 . Make the CKM constants unsigned . r=nelson
git-svn-id: svn://10.0.0.236/trunk@256673 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:29 +00:00
rrelyea%redhat.com
5d59e9f81f Bug 391291 Implement Shared Database Integrity checks.
r=nelson (plus review from kengert)


git-svn-id: svn://10.0.0.236/trunk@256672 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:28 +00:00
rrelyea%redhat.com
7272a30aa6 Bug 217538 Add shared database to nss.
core Checking.


git-svn-id: svn://10.0.0.236/trunk@256671 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:27 +00:00
rrelyea%redhat.com
5d4041f6c8 Add Camilla cipher suites TLS RFC4132 bug 361025
code supplied by okazaki@kick.gr.jp


git-svn-id: svn://10.0.0.236/trunk@256670 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:26 +00:00
relyea%netscape.com
6fe626f541 Bug 292239 r wtc & julien
Merge PKCS #11 v2.20 header files


git-svn-id: svn://10.0.0.236/trunk@256669 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:25 +00:00
relyea%netscape.com
23a24e0476 bug 305697: open additional database on the fly in softoken. part1: softoken changes.
r=julien


git-svn-id: svn://10.0.0.236/trunk@256668 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:24 +00:00
relyea%netscape.com
7791d27d4c These changes were part of a different patch, reviews are not yet complete.
Backing out to previous versions.


git-svn-id: svn://10.0.0.236/trunk@256667 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:23 +00:00
relyea%netscape.com
da6f984510 Bug 298906 crash when accepting new certificate permanently on taschenonkel.de
r=wtc, sr=nelson


git-svn-id: svn://10.0.0.236/trunk@256666 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:22 +00:00
wtchang%redhat.com
30e51b9520 Bugzilla Bug 267158: removed the $Name$ RCS keyword from our source files.
This keyword adds noise to the output of "ident libnss3.so | grep NSS"
on our debug build, and appears to cause spurious CVS conflicts. r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@256665 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:21 +00:00
wtchang%redhat.com
72f6966ff7 Bugzilla Bug 291858: fixed incorrect definitions of the CKM_SHAxxx_HMAC,
CKM_SHAxxx_HMAC_GENERAL, CKM_ECDH1_DERIVE, CKM_ECDH1_COFACTOR_DERIVE, and
CKM_ECMQV_DERIVE macros. r=nelsonb,relyea.


git-svn-id: svn://10.0.0.236/trunk@256664 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:20 +00:00
wtchang%redhat.com
58190b150d Bugzilla bug 273624: fixed the regression (from NSS 3.3.x) that
NSS_Initialize didn't report the SEC_ERROR_BAD_DATABASE error if
the NSS databases haven't been created.  r=nelsonb,relyea.
Modified Files: pk11wrap/pk11err.c pk11wrap/pk11load.c
                softoken/dbinit.c softoken/pkcs11n.h


git-svn-id: svn://10.0.0.236/trunk@256663 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:19 +00:00
ian.mcgreer%sun.com
1ec827c1cb bug 180268, reimplement ssl step-up for builtins
git-svn-id: svn://10.0.0.236/trunk@256662 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:18 +00:00
gerv%gerv.net
84214a8be8 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@256661 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:17 +00:00
wtc%netscape.com
64715d92fa Bug 134113: make NSS build on Win32 using GCC (MinGW). The patch
(attachment 121068) is contributed by Chris Seawood (cls@seawood.org).


git-svn-id: svn://10.0.0.236/trunk@256660 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:16 +00:00
nelsonb%netscape.com
4c6350183e Add support for Elliptic Curve Cryptography. Bug 195135.
Modified Files:
 	cmd/lib/SECerrs.h cmd/selfserv/selfserv.c
 	cmd/tstclnt/tstclnt.c lib/cryptohi/keyhi.h
 	lib/cryptohi/keythi.h lib/cryptohi/seckey.c
 	lib/cryptohi/secvfy.c lib/freebl/Makefile lib/freebl/blapi.h
 	lib/freebl/blapit.h lib/freebl/ldvector.c lib/freebl/loader.c
 	lib/freebl/loader.h lib/freebl/manifest.mn lib/nss/nss.def
 	lib/pk11wrap/pk11skey.c lib/pk11wrap/pk11slot.c
 	lib/softoken/lowkeyti.h lib/softoken/manifest.mn
 	lib/softoken/pkcs11.c lib/softoken/pkcs11c.c
 	lib/softoken/pkcs11t.h lib/ssl/ssl3con.c lib/ssl/ssl3prot.h
 	lib/ssl/sslcon.c lib/ssl/sslenum.c lib/ssl/sslimpl.h
 	lib/ssl/sslinfo.c lib/ssl/sslproto.h lib/ssl/sslsecur.c
 	lib/ssl/sslsock.c lib/ssl/sslt.h lib/util/secerr.h
 	lib/util/secoid.c lib/util/secoidt.h
Added Files:
 	lib/freebl/GFp_ecl.c lib/freebl/GFp_ecl.h lib/freebl/ec.c
 	lib/freebl/ec.h lib/softoken/ecdecode.c


git-svn-id: svn://10.0.0.236/trunk@256659 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:15 +00:00
nelsonb%netscape.com
565e550852 Implement new AES Key Wrap mechanisms. Bug 167818.
git-svn-id: svn://10.0.0.236/trunk@256658 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:14 +00:00
nelsonb%netscape.com
aae97a2b68 Switch from the old vendor-defined mechanism numbers to the new official
PKCS 11 mechanism numbers.  These numbers will appear in v2.20.


git-svn-id: svn://10.0.0.236/trunk@256657 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:13 +00:00
nelsonb%netscape.com
7da50bca9b Support SHA256, SHA384, and SHA512 hashes in NSS.
git-svn-id: svn://10.0.0.236/trunk@256656 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:12 +00:00
nelsonb%netscape.com
801ce4dcb3 Declare new vendor-defined mechanisms for SHA256, SHA384 and SHA512.
git-svn-id: svn://10.0.0.236/trunk@256655 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:11 +00:00
relyea%netscape.com
c233497b1f Multi-access database changes.
git-svn-id: svn://10.0.0.236/trunk@256654 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:10 +00:00
relyea%netscape.com
9782dbbb12 Implement PKCS #11 2.11 DSA PQG Parameter generation.
git-svn-id: svn://10.0.0.236/trunk@256653 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:09 +00:00
relyea%netscape.com
2c0c094dd9 Land BOB_WORK_BRANCH unto the tip.
remove lots of depricated files.
move some files to appropriate directories (pcertdb *_rand
associated headers to soft token, for instance)
rename several stan files which had the same name as other nss files.
remove depricated functions.


git-svn-id: svn://10.0.0.236/trunk@256652 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:08 +00:00
nelsonb%netscape.com
47fcb74b7e Remove #if defined(XP_WIN) since it's redundant. Bug 84584.
git-svn-id: svn://10.0.0.236/trunk@256651 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:07 +00:00
relyea%netscape.com
30b976100c Move the header files.
git-svn-id: svn://10.0.0.236/trunk@256650 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:06 +00:00
relyea%netscape.com
1800179d5b 1) Fix Solaris, AIX, HP, and Linux warnings. Several were potential real
problems (mostly uninitialized variables in error cases).

2) Start separating softoken from the rest of NSS where appropriate (finish
separating out the key stuff, the cert stuff is coming).

3) Make the prototypes between the new functions consistant.


git-svn-id: svn://10.0.0.236/trunk@256649 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:05 +00:00
relyea%netscape.com
0b77249225 Land new PKCS #11 initialization code.
git-svn-id: svn://10.0.0.236/trunk@256648 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:04 +00:00
mcgreer%netscape.com
a52f9f5ca8 fix for #92940, PKCS#12 broken in FIPS mode. Force keygen to occur on token, added new PKCS#11 mechanisms to handle PKCS#12 integrity key generation.
git-svn-id: svn://10.0.0.236/trunk@256647 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:03 +00:00
nelsonb%netscape.com
888febab18 Implementation of 5 DHE ciphersuites, client side only.
Contributed by Dr Stephen Henson <stephen.henson@gemplus.com>


git-svn-id: svn://10.0.0.236/trunk@256646 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:02 +00:00
relyea%netscape.com
61366a61ba Add wrapper bindings for AES so S/MIME and SSL may implement their AES suites.
git-svn-id: svn://10.0.0.236/trunk@256645 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:01 +00:00
relyea%netscape.com
2cdc682d74 Initial NSS Open Source checkin
git-svn-id: svn://10.0.0.236/trunk@256644 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:21:00 +00:00
relyea%netscape.com
9a3fef6813 NSS specific PKCS 11 mechanisms, collected in one single header file.
git-svn-id: svn://10.0.0.236/trunk@256643 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 05:20:45 +00:00
wtc%google.com
ddf0825bb8 Bug 481580: changes some Mac OS X compiler flags. Use -Wall instead of
-Wmost, and -O2 instead of -O.  r=glen.beasley,ted.mielczarek.


git-svn-id: svn://10.0.0.236/trunk@256642 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 02:46:24 +00:00
alqahira%ardisson.org
e05bc08aee Bug 482154 - Restructure default app lookup code. Patch by Stuart Morgan <stuart.morgan+bugzilla@gmail.com>, r/sr=pink
git-svn-id: svn://10.0.0.236/trunk@256641 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 01:47:51 +00:00
alqahira%ardisson.org
bf1fc9f14a Bug 418626 - Abstract the 'transient bar' code in BrowserWrapper. Patch by Sean Murphy <murph@seanmurph.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@256640 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 01:37:45 +00:00
alqahira%ardisson.org
aba921f322 Bug 482182 - ' Files' portion of HTML Complete folder name is not localizable (and better group the download-related strings in the .strings file). Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=hendy, sr=pink
git-svn-id: svn://10.0.0.236/trunk@256639 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-25 00:03:56 +00:00
alqahira%ardisson.org
ef28f29a2f Bug 483532 - When launching w/ downloads window closed, first download appears at top of downloads window. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@256638 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-24 23:49:46 +00:00
alqahira%ardisson.org
594721c55e Bug 480797 - window closing before selecting item from context menu crashes, so check to make sure the object is still around. Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=hendy, sr=pink
git-svn-id: svn://10.0.0.236/trunk@256633 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-24 19:49:31 +00:00
Olli.Pettay%helsinki.fi
35c2ce4088 Bug 484320, r=dveditz, sr=mrbkap, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256631 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-24 17:16:40 +00:00
alexei.volkov.bugs%sun.com
da61c4d5ae 484466 - sec_error_invalid_args with NSS_ENABLE_PKIX_VERIFY=1. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256630 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 22:56:01 +00:00
wtc%google.com
065c2636bc Bug 479978: removed references to MOZ_PROFILE from the build system because
it duplicated the functionality of MOZ_DEBUG_SYMBOLS.  The patch is
contributed by Serge Gautherie <sgautherie.bz@free.fr>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256629 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 20:44:20 +00:00
despotdaemon
9ec6def5dc Pseudo-automatic update of changes made by wtc@google.com.
git-svn-id: svn://10.0.0.236/trunk@256628 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 18:52:23 +00:00
wtc%google.com
2819c35836 Bug 469944: document what warning 4047 is.
git-svn-id: svn://10.0.0.236/trunk@256627 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 18:43:25 +00:00
wtc%google.com
50f546f0dc Bug 479978: removed references to MOZ_PROFILE from the build system since
it duplicated the functionality of MOZ_DEBUG_SYMBOLS.  The patch is
contributed by Serge Gautherie <sgautherie.bz@free.fr>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256626 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 18:35:52 +00:00
bclary%bclary.com
f54b5be1b9 bug 452498 - modify test to deal with new SyntaxError: duplicate argument is mixed with destructuring pattern error.
git-svn-id: svn://10.0.0.236/trunk@256625 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 17:59:24 +00:00
nboyd%atg.com
53fe328726 Handle missing file.
git-svn-id: svn://10.0.0.236/trunk@256624 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 16:11:22 +00:00
kairo%kairo.at
3abecdd29d bug 484301 - Add pl to Chatzilla all-locales
git-svn-id: svn://10.0.0.236/trunk@256623 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 11:55:46 +00:00
nelson%bolyard.com
1d3adb9722 Bug 469944: when built with Microsoft compilers, serious NSS errors are ignored!
r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@256622 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 05:13:05 +00:00
nelson%bolyard.com
1f7c868bde Bug 484111: Must escape all DER DNS names when converting to zStrings.
r=Julien.pierre


git-svn-id: svn://10.0.0.236/trunk@256621 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-23 02:18:19 +00:00
nelson%bolyard.com
3cbecd7e62 Bug 432430: NSPR port to Symbian OS, r=nelson
Patch contributed by Harry Li <harry.li@pagefreedom.org>
Modified Files:
	md/unix/unix.c md/unix/uxproces.c md/unix/uxshm.c
	misc/prnetdb.c pthreads/ptthread.c


git-svn-id: svn://10.0.0.236/trunk@256620 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-22 02:04:58 +00:00
nelson%bolyard.com
154fa16737 Bug 483113: Fix more algorithm name strings.
git-svn-id: svn://10.0.0.236/trunk@256619 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-22 01:51:38 +00:00
nelson%bolyard.com
3b6104c8d6 Bug 483113: add environment variable to disable/enable hash algorithms in
cert/CRL signatures.  r=Slavomir.Katuscak


git-svn-id: svn://10.0.0.236/trunk@256618 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 23:19:20 +00:00
nelson%bolyard.com
a8a8d431bc Bug 484574: tools.sh using command separators inside test delimiters
r=slavomir.katuscak


git-svn-id: svn://10.0.0.236/trunk@256617 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 18:35:16 +00:00
nelson%bolyard.com
1337baa05c Bug 483113: Fix broken test script. R=Julien.pierre
git-svn-id: svn://10.0.0.236/trunk@256616 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 04:00:46 +00:00
nelson%bolyard.com
07dd47ce82 Bug 483113: Make OID description strings use consistent names for algorithms.
Use ';' as separator in environment variable.  r=Julien.pierre


git-svn-id: svn://10.0.0.236/trunk@256615 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 02:03:05 +00:00
nboyd%atg.com
08da084400 Change to use ScriptableOutputStream/ScriptableInputStream
git-svn-id: svn://10.0.0.236/trunk@256614 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 01:53:38 +00:00
nelson%bolyard.com
eb98f80b22 Bug 483168: Embed a list of default OCSP Responder URLs for certain CAs
r= Honza Bombas, Julien Pierre


git-svn-id: svn://10.0.0.236/trunk@256612 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 01:40:36 +00:00
nboyd%atg.com
03eea889fd Fix spelling error in comment
git-svn-id: svn://10.0.0.236/trunk@256611 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 01:39:41 +00:00
nelson%bolyard.com
4b2207833f Bug 483113: add environment variable to disable/enable hash algorithms in
cert/CRL signatures.  Patch suggested and reviewed by Julien.Pierre.


git-svn-id: svn://10.0.0.236/trunk@256610 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 00:45:50 +00:00
nelson%bolyard.com
6abd313ebb Bug 483113: add environment variable to disable/enable hash algorithms
in cert/CRL signatures.  r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@256609 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 00:06:52 +00:00
rrelyea%redhat.com
2557b1a3ca fix darwin build error (remove trailing blank line from file).
git-svn-id: svn://10.0.0.236/trunk@256608 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-21 00:02:25 +00:00
wtc%google.com
e16a5f482e Bug 482742: replaced the deprecated CKM_NETSCAPE_AES_KEY_WRAP by
CKM_NSS_AES_KEY_WRAP.  r=rrelyea.


git-svn-id: svn://10.0.0.236/trunk@256607 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 23:41:24 +00:00
rrelyea%redhat.com
1eb7bc6961 this was not one of the reviewed files and should not have been checked in.
Backing out.


git-svn-id: svn://10.0.0.236/trunk@256606 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 22:00:41 +00:00
rrelyea%redhat.com
ef7326a3f4 Bug 468279 - softoken crash importing email cert into newly upgraded DB
Prevent writes to partially upgraded databases until they authenticate.
pass back the 'not logged in' error

r=nelson


git-svn-id: svn://10.0.0.236/trunk@256605 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 21:20:03 +00:00
rrelyea%redhat.com
f13cbbb21c Bug 468279 - softoken crash importing email cert into newly upgraded DB
Certutil Fix. No longer try to guess if we should authenticate
r=nelson


git-svn-id: svn://10.0.0.236/trunk@256604 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 21:18:12 +00:00
rrelyea%redhat.com
802db9a359 Bug 484425 - Need accessor function to retrieve SymKey handle
r+ nelson


git-svn-id: svn://10.0.0.236/trunk@256603 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 21:08:15 +00:00
bhearsum%mozilla.com
187f25d705 bug 484413: move fx-win32-1.9-slave07 and 08 to production. r=nthomas
git-svn-id: svn://10.0.0.236/trunk@256602 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 19:17:53 +00:00
nelson%bolyard.com
1c6c7a1452 Bug 484111: Must escape all DER DNS names when converting to zStrings.
r=Honza Bombas


git-svn-id: svn://10.0.0.236/trunk@256601 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 18:03:57 +00:00
glen.beasley%sun.com
d3f42bc6e3 469738 provide 64 bit MAC OS X support to nss r=wanteh
git-svn-id: svn://10.0.0.236/trunk@256600 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 07:19:45 +00:00
glen.beasley%sun.com
3fa43b05d4 480730 dlopen on MAC OS X ignores provided path forgot #4 in review r=wan-teh
git-svn-id: svn://10.0.0.236/trunk@256598 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 06:49:37 +00:00
glen.beasley%sun.com
e38ff136ec 480730 dlopen on MAC OS X ignores provided path r=wan-teh
git-svn-id: svn://10.0.0.236/trunk@256597 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 06:41:27 +00:00
bclary%bclary.com
5eccd52851 bug 457065 - JavaScript Tests by Jesse Ruderman, Gary Kwong. default tip
bug 471373 - JavaScript Test by Jesse Ruderman.
bug 472528 - JavaScript Tests by Gary Kwong, Jesse Ruderman.
bug 472703 - JavaScript Test by Gary Kwong.
bug 471660 - JavaScript Test by Gary Kwong.
no bug JavaScript Tests - sync cvs->hg browser.js
bug 469937 - JavaScript Test by Jesse Ruderman, merge cvs->hg.
bug 476655 - JavaScript Test by Gary Kwong.
bug 477733 - JavaScript Test by Jesse Ruderman.
bug 479252 - JavaScript Test by Igor Bukanov.
bug 479381 - JavaScript Test by Jason Orendorff.
bug 479430 - JavaScript Tests by Igor Bukanov.
bug 479487 - JavaScript Test by Igor Bukanov.
bug 479551 - JavaScript Test by Jeff Walden.
bug 480096 - JavaScript Test by Peter Seliger.
bug 480244 - JavaScript Test by Graydon Hoare.
bug 480579 - JavaScript Test by Jason Orendorff.
bug 481516 - JavaScript Test by Jason Orendorff.
bug 483103 - JavaScript Test by Jesse Ruderman.
bug 483749 - JavaScript Test by Gary Kwong.
bug 452498 - JavaScript regression tests for upvar2.
bug 484321 - Sisysphus - JavaScript Tests - support timeout and crash exclusion patterns.


git-svn-id: svn://10.0.0.236/trunk@256596 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 05:01:03 +00:00
wtc%google.com
f1a4030208 Bug 442706: don't clear OS_TARGET if --enable-win32-target or
--enable-symbian-target is not specified.  We need to preserve the existing
value of OS_TARGET.  TBR=ted.mielczarek.


git-svn-id: svn://10.0.0.236/trunk@256595 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 04:41:58 +00:00
wtc%google.com
d8cbe1adb1 Bug 449665: Suppress the parentheses warnings (for GCC 4.2+) and fix the
unused label warning.  r=kaie.


git-svn-id: svn://10.0.0.236/trunk@256594 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 03:41:21 +00:00
wtc%google.com
20dc3daf06 Bug 439144: backed out the previous checkin because the workaround is no
longer necessary.


git-svn-id: svn://10.0.0.236/trunk@256593 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 03:37:11 +00:00
wtc%google.com
d7e69cc2f6 Bug 439144: fix strict aliasing issues for gcc 4.4. r=kaie.
git-svn-id: svn://10.0.0.236/trunk@256591 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 03:27:49 +00:00
wtc%google.com
4bb2179ffc Bug 478687: Define PRUint64/uint64 as unsigned long long to match uint64_t
on Mac OS X (both 32-bit and 64-bit).  r=joshmoz.


git-svn-id: svn://10.0.0.236/trunk@256590 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-20 03:07:22 +00:00
nrthomas%gmail.com
becff70db6 Followup to Bug 448727, make sure shark files don't get stale on ftp
git-svn-id: svn://10.0.0.236/trunk@256589 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-19 22:19:43 +00:00
nrthomas%gmail.com
f545525197 Followup to bug 482251, tracemonkey version is 3.6a1pre now that they merged from m-c
git-svn-id: svn://10.0.0.236/trunk@256588 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-19 22:14:25 +00:00
rrelyea%redhat.com
016ad8f375 Bug 465709 - NSS_InitWithMerge creates a broken database if it didn't exist before
Final patch for this bug. Don't try to update a read only database, even after authentication.

r=wtc


git-svn-id: svn://10.0.0.236/trunk@256587 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-19 18:21:51 +00:00
hannes%helma.at
abb51bdc6c Fix original patch for bug 456546: only apply if formal parameter is Scriptable or a class implementing Scriptable.
git-svn-id: svn://10.0.0.236/trunk@256586 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-19 13:19:55 +00:00
slavomir.katuscak%sun.com
d9c32c286b Bug 482702: Added requireFreshInfo to failing test. r=alexei
git-svn-id: svn://10.0.0.236/trunk@256585 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-19 09:55:31 +00:00
despotdaemon
0e7276887b Pseudo-automatic update of changes made by pavlov@pavlov.net.
git-svn-id: svn://10.0.0.236/trunk@256584 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-19 04:23:39 +00:00
julien.pierre.boogz%sun.com
ef43f338d4 Fix for bug 227049 . Add bignum and RC4 optimizations for RC4 . Contributed by Makoto Kato . r=nelson
git-svn-id: svn://10.0.0.236/trunk@256583 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-19 02:26:48 +00:00
rrelyea%redhat.com
21257bcb4d Fix one of the review nits wtc pointed (poor formatting of a couple of PR_FALSE statements).
bob


git-svn-id: svn://10.0.0.236/trunk@256582 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 23:41:21 +00:00
rrelyea%redhat.com
27cbd78118 Bug 465709 NSS_InitWithMerge creates a broken database if it didn't exist before
Patches 2 & 3 r=wtc.

1) don't allow writes to the meta data cache if we opened the database
read only.
2) preserve the login state over virtual tokenremovals so updatemerges can complete with a single password in all cases where a single password merge update is possible.


git-svn-id: svn://10.0.0.236/trunk@256581 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 23:38:51 +00:00
nelson%bolyard.com
121c0da547 Bug 480509: Improper character escaping and unescaping in alg1485.c & secname.c
r=Honza Bambas (:mayhemer)


git-svn-id: svn://10.0.0.236/trunk@256580 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 23:14:45 +00:00
nelson%bolyard.com
f775cde517 Bug 476536: Assertions need to be able to check the state of particular locks
Patch contributed by Chris Jones <jones.chris.g@gmail.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@256579 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 21:29:33 +00:00
igor%mir2.org
2c9001b8dc bug 355829 r=brendan a1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256578 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 18:41:06 +00:00
bzbarsky%mit.edu
f8ad510022 Bug 453736 followup. Make sure to call Init() on the <script> clone. r+sr=sicking pending
git-svn-id: svn://10.0.0.236/trunk@256577 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 15:09:22 +00:00
bzbarsky%mit.edu
e1afc45c27 Bug 453736. Make <svg:script> more like other scripts. r=roc, r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256576 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 13:41:25 +00:00
slavomir.katuscak%sun.com
ea346bed41 Bug 470479: Patch to valid IO timeout as unknown status. r=alexei
git-svn-id: svn://10.0.0.236/trunk@256575 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 12:46:42 +00:00
nelson%bolyard.com
a815f4da41 Bug 432430: Port NSPR unit tests to Symbian OS.
Patch by Harry Li <harry.li@pagefreedom.org>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@256574 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 09:49:46 +00:00
dveditz%cruzio.com
3fac8cd91b bug 400822 fix for cert viewer crash by Kaspar Brand, r=Kaie, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256573 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 06:33:30 +00:00
dveditz%cruzio.com
b4cb8235ef bug 470578 recreate corrupt cookie db, by dwitte, r=sdwilsh, sr=mconnor, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256572 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 06:25:37 +00:00
jonas%sicking.cc
fb2a645b5f Bug 475636: Disallow refresh to javascript uris. r/sr=bz a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256571 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 03:19:04 +00:00
rflint%ryanflint.com
f01cfaa6b4 Bug 483086. r=gavin, a1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256570 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-18 00:05:43 +00:00
nrthomas%gmail.com
90924a84a9 Clobber win32 unit on Fx3.0 for crashtest weirdness on fx-win32-1.9-slave11
git-svn-id: svn://10.0.0.236/trunk@256569 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 23:54:24 +00:00
bzbarsky%mit.edu
6633dd2f34 Bug 482659. Give about:blank documents the base URI of the document that did
the load. r=dcamp, sr=jst, a=dveditz


git-svn-id: svn://10.0.0.236/trunk@256568 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 23:27:19 +00:00
mrbkap%gmail.com
dd5be7df74 Bug 432114. Change style sheet owner to the document being edited. Patch from Chris Pearce <chris@pearce.org.nz>. r+sr=peterv a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256567 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 22:47:50 +00:00
bzbarsky%mit.edu
93c4cc49f1 Bug 416942. Give user and ua sheets the system principal. r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@256566 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 22:17:51 +00:00
mrbkap%gmail.com
d1e4653cda Bug 461158 - Add missing error propagation. Patch from Igor Bukanov <igor@mir2.org>, r=brendan a=ss
git-svn-id: svn://10.0.0.236/trunk@256565 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 21:58:21 +00:00
dcamp%mozilla.com
4d7574dbe1 Bug 481342 - Fix some unpacking logic (adding test file). r+sr=bz, a1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256564 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 21:54:30 +00:00
dcamp%mozilla.com
3983d7f317 Bug 481342 - Fix some unpacking logic. r+sr=bz, a1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256563 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 21:53:51 +00:00
mrbkap%gmail.com
567673e3cf Bug 477128 - Don't throw if XPCNativeWrapper is called as a function but passed a primitive value to allow for safe primitive testing. r+sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256562 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 21:42:09 +00:00
mrbkap%gmail.com
a8c3f6520e Bug 478433 - Use a better method to create this function. r+sr=jst a=dvedtiz
git-svn-id: svn://10.0.0.236/trunk@256561 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 21:41:15 +00:00
dolske%mozilla.com
c1bfac91f5 Bug 483096 - Backport formhistory timestamps to FF3.0.x. r=gavin, a190=dveditz
git-svn-id: svn://10.0.0.236/trunk@256560 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 21:33:54 +00:00
gavin%gavinsharp.com
e2ee7da0ad Bug 471962: fix 'Save this Frame', r=bzbarsky, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256559 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 20:20:54 +00:00
Olli.Pettay%helsinki.fi
41f7182e97 Bug 461053, r=enn, sr=neil, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256558 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 19:54:06 +00:00
psychoticwolf%carolina.rr.com
f7fba945ad Bug 479951 - [INFOBOT] Dont drop leading dots in factoids (Support TLDs)
git-svn-id: svn://10.0.0.236/trunk@256557 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 18:05:38 +00:00
slavomir.katuscak%sun.com
2f4bd3af95 Bug 476552: Adding general test run info. r=alexei
git-svn-id: svn://10.0.0.236/trunk@256556 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 18:05:02 +00:00
Olli.Pettay%helsinki.fi
49de28c180 Trying to land bug 462517, r=biesi, sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256555 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 17:02:10 +00:00
lpsolit%gmail.com
a6e8c8acb2 Bug 482365: Values displayed in userselect.html.tmpl may be incorrect if "value" is not explicitly set - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256554 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 16:25:23 +00:00
bhearsum%mozilla.com
9ea9f693c3 bug 482250: bump mozilla-1.9.1 repository to version 3.5b4pre. r=nthomas
git-svn-id: svn://10.0.0.236/trunk@256553 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 15:42:47 +00:00
bhearsum%mozilla.com
9859f6eda4 Revert unwanted commit
git-svn-id: svn://10.0.0.236/trunk@256552 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 14:23:46 +00:00
bhearsum%mozilla.com
0fc7e609c9 bug 482252: version bump mozilla-central to 3.6a1pre. r=nthomas
git-svn-id: svn://10.0.0.236/trunk@256551 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 14:20:26 +00:00
Olli.Pettay%helsinki.fi
f8bc3463c6 Backout bug 462517
git-svn-id: svn://10.0.0.236/trunk@256550 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 13:25:04 +00:00
Olli.Pettay%helsinki.fi
87145cf151 Bug 462517, r=biesi, sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256549 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 10:07:30 +00:00
nelson%bolyard.com
5e66500000 Back out preceding change to this file. It broken test scripts that require
quotes in the command output. :(


git-svn-id: svn://10.0.0.236/trunk@256548 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 08:46:24 +00:00
nelson%bolyard.com
09acd20518 Bug 480509: Improper character escaping and unescaping in alg1485.c & secname.c
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@256547 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 07:30:11 +00:00
dcamp%mozilla.com
77390ae934 Bug 474536. Expose the underlying channel's content-disposition on jar: channels (missed a chunk in previous commit). p=jduell, r+sr=bzbarsky, b1.9.1=jst, a1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256546 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 06:54:05 +00:00
dcamp%mozilla.com
c336bb9a28 Bug 474536. Expose the underlying channel's content-disposition on jar: channels. p=jduell, r+sr=bzbarsky, b1.9.1=jst, a1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256545 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 06:19:07 +00:00
bzbarsky%mit.edu
11bb92e4a8 Bug 482206 and bug 465806. Use all of our security information from a single place. r+sr=jst, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256544 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-17 01:16:24 +00:00
nboyd%atg.com
0bfc0cbb7e Fix bug 482203: NullPointerException capturing a continuation
git-svn-id: svn://10.0.0.236/trunk@256543 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-16 22:59:49 +00:00
alqahira%ardisson.org
6cb0f108f1 Bug 483426 - [10.4] Bookmark bar always has background window (pinstriped) appearance. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256542 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-16 17:24:51 +00:00
bclary%bclary.com
b43f832ddb bug 460504 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@256541 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-14 23:13:16 +00:00
bclary%bclary.com
30e7e6fefb bug 452913 - JavaScript Test by Gary Kwong.
bug 460504 - JavaScript Test by Jesse Ruderman.
bug 466747 - JavaScript Test by Jesse Ruderman.
bug 476192 - JavaScript Test by Carsten Book, Jesse Ruderman.
bug 479740 - JavaScript Test by Gary Kwong.
bug 480147 - JavaScript Test by Carsten Book, Jesse Ruderman.
bug 481800 - JavaScript Test by Gary Kwong.
bug 481989 - JavaScript Test by Gary Kwong.
bug 482263 - JavaScript Test by Gary Kwong.
bug 482421 - JavaScript Test by Gary Kwong.
Bug 482783, Bug 481793, Bug 476871, Bug 482349, Bug 482594 - merge js/src/trace-test.js, js/tests/js1_8_1/trace/trace-test.js.
bug 483438 - remove public failures from source control.
bug 483435 - remove windows wlock.lnk file after hg pull.
bug 483434 - Sisyphus - JavaScript Tests - add support for narcissus.
bug 483433 - comment bug number in spidermonkey-n-1.9.2.tests.


git-svn-id: svn://10.0.0.236/trunk@256540 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-14 22:48:28 +00:00
wtc%google.com
120c7b78cd Bug 276536: improved the comment about passing PR_INTERVAL_NO_TIMEOUT to
PR_Connect.
Modified Files: prinrval.h prio.h


git-svn-id: svn://10.0.0.236/trunk@256539 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-14 03:43:53 +00:00
alqahira%ardisson.org
ca01ee2a10 Bug 389140 - Make Camino stop building in mozilla/themes. Build-only change, only affects Camino. r=mento, a/1.9.0.8=dveditz for release-drivers
git-svn-id: svn://10.0.0.236/trunk@256538 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-13 19:39:11 +00:00
morgamic%mozilla.com
f192028471 Checking in config change for bug 481478. r=morgamic.
git-svn-id: svn://10.0.0.236/trunk@256536 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-13 17:38:06 +00:00
dtownsend%oxymoronical.com
1ff82b665a Bug 483236: Do XULRunner 1.9.0.7 release
git-svn-id: svn://10.0.0.236/trunk@256530 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-13 16:41:05 +00:00
alqahira%ardisson.org
0d58cb01e1 Bug 481575 - Release Notes for Camino 1.6.7 (and kick 1_8 installer Makefile to use them). r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256529 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-13 16:03:36 +00:00
nelson%bolyard.com
c6ea73cace Fix builds on windows, broken by last checkin.
git-svn-id: svn://10.0.0.236/trunk@256528 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-13 03:59:06 +00:00
nelson%bolyard.com
91e491800f Bug 471539: create a means to Stop honoring digital signatures in
certificates and CRLs based on weak hashes. r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@256527 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-13 02:59:04 +00:00
nelson%bolyard.com
657d72d8cc Bug 473357: ssltap incorrectly parses handshake messages that span record boundaries
r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@256526 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-13 02:24:07 +00:00
anodelman%mozilla.com
a882a0178d Bug 458903 - have talos boxes submit crash reports when they crash
p/r=anodelman, add notification that a stack has been found to waterfall


git-svn-id: svn://10.0.0.236/trunk@256525 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-12 22:23:15 +00:00
anodelman%mozilla.com
290b62aec9 Bug 483036 - minidump_stackwalk failing on tiger talos boxes
p=ted, r=anodelman


git-svn-id: svn://10.0.0.236/trunk@256524 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-12 22:19:35 +00:00
rrelyea%redhat.com
11899f6990 Bug 463452 - SQL DB creation does not set files protections to 0600
r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@256523 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-12 16:59:15 +00:00
slavomir.katuscak%sun.com
c4df3f7536 Bug 472493 - More tstclnt verbosity patch. r=julien
git-svn-id: svn://10.0.0.236/trunk@256522 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-12 13:31:51 +00:00
nelson%bolyard.com
3ac0fa60b6 The patch for bug 159483 was contributed by Kaspar Brand <mozbugzilla@velox.ch>.
git-svn-id: svn://10.0.0.236/trunk@256521 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-12 08:53:51 +00:00
nelson%bolyard.com
b0d46cea37 Bug 159483: cert name matching: RFC 2818 vs. backwards compatibility (wildcards)
r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256520 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-12 07:21:36 +00:00
alqahira%ardisson.org
a815d0a1ac Upgrade to latest Flashblock cvs to fix bug 482433 - Sibelius Scorch scores don't display or play if Flashblock is active. r/sr=smorgan, a/Cm1.6.7=me
git-svn-id: svn://10.0.0.236/trunk@256519 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-12 02:09:33 +00:00
nrthomas%gmail.com
f7b4899f8c bug 481079, tb 2.0.0.x needs to bump milestone.txt, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@256518 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-12 00:44:55 +00:00
reed%reedloden.com
d1e1c7125e Bug 390349 - "returning builds are often hidden" (add current column & list all admin-able builds) [p=cls@seawood.org (Chris Seawood) r=aki]
git-svn-id: svn://10.0.0.236/trunk@256517 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-11 21:13:21 +00:00
nrthomas%gmail.com
c6df38616d Bug 459878, Update generation configs for 3.0.7 to 3.1b3 test major update, r=ccooper
git-svn-id: svn://10.0.0.236/trunk@256516 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-11 21:05:00 +00:00
wtc%google.com
8bf2dd091d Bug 433791: cleaned up the previous checkin (Serge Gautherie's patch).
Fixed the indentation, and use WIN% for the "WINNT WIN95 WINCE" lists.
Modified Files:
	coreconf/arch.mk dbm/src/config.mk


git-svn-id: svn://10.0.0.236/trunk@256515 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-11 18:54:26 +00:00
gozer%mozillamessaging.com
6b6b3c5250 Bug 471584. Patcher configuration for Thunderbird 3.0 series. r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@256512 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-11 15:46:11 +00:00
alqahira%ardisson.org
76d57c5d78 Bug 482589 - Find fails to work on 'application/javascript' page; add new official JS MIME types to list of 'text' MIME types. r=cl, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256510 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-11 04:01:58 +00:00
mrbkap%gmail.com
3aa0c5095c Bug 480096 - Don't leave the last argument lying around in case someone accidentally uses it. r=brendan a=dvedtiz
git-svn-id: svn://10.0.0.236/trunk@256508 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-11 00:16:22 +00:00
nrthomas%gmail.com
345ef79415 Bug 448727, ignore nightly shark builds dropping from waterfall, r=aki@mozilla.com
git-svn-id: svn://10.0.0.236/trunk@256507 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-10 23:37:19 +00:00
nrthomas%gmail.com
6679a2a387 Bug 481096, trim out busted locales for maintenance branches, r=axel.hecht(Pike)
git-svn-id: svn://10.0.0.236/trunk@256506 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-10 23:05:46 +00:00
nelson%bolyard.com
8507ea1a7c Bug 439199: SSE2 instructions for bignum are not implemented on Windows 32-bit
r=Julien,rrelyea


git-svn-id: svn://10.0.0.236/trunk@256505 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-10 21:18:07 +00:00
nelson%bolyard.com
9cdb1266dc Bug 433791: Win16 support should be deleted from NSS, r=nelson
Patch by Serge Gautherie (:sgautherie) <sgautherie.bz@free.fr>


git-svn-id: svn://10.0.0.236/trunk@256504 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-10 18:01:52 +00:00
dtownsend%oxymoronical.com
93b4058fdf Bug 473060: Download error -228 if you leave the add-on's public page
before download completion. r+sr+a=dveditz


git-svn-id: svn://10.0.0.236/trunk@256503 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-10 09:02:21 +00:00
dtownsend%oxymoronical.com
a5eb9a33fa Bug 462739: Send cookies as appropriate with xpinstall requests.
r+sr+a=dveditz


git-svn-id: svn://10.0.0.236/trunk@256502 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-10 09:01:27 +00:00
alqahira%ardisson.org
889688e6b4 Make Camino package XUL theme files from pinstripe instead of mozilla/themes. Part 1 of bug 389140 - Stop building in mozilla/themes. r=mento, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256501 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-09 23:11:24 +00:00
reed%reedloden.com
3046523c6b Bug 481952 - "Confirm attachment deletion page puts HTML in <title>" [p=reed r=LpSolit a=LpSolit]
git-svn-id: svn://10.0.0.236/trunk@256500 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-09 22:10:54 +00:00
Olli.Pettay%helsinki.fi
ad05a57290 Backing out Bug 462517 to see if it caused windows red/orange
git-svn-id: svn://10.0.0.236/trunk@256499 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-09 21:54:36 +00:00
Olli.Pettay%helsinki.fi
6be7c70fb7 Whitespace usage fix to trigger new builds
git-svn-id: svn://10.0.0.236/trunk@256498 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-09 20:42:03 +00:00
Olli.Pettay%helsinki.fi
3b585762b2 Bug 462517, r=biesi, sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256497 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-09 19:08:42 +00:00
Olli.Pettay%helsinki.fi
f685b0f62e Bug 435779 - Crash [@ PostMessageEvent::Run()], r+sr=jst, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256496 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-09 15:55:27 +00:00
ccooper%deadsquid.com
8bc9db8365 b=464165
r=bhearsum
- enable monitoring for 1.9.1 l10n builds


git-svn-id: svn://10.0.0.236/trunk@256495 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-09 14:34:27 +00:00
slavomir.katuscak%sun.com
f6a56cf4f2 Bug 427493: Tstclnt verbosity patch. r=julien
This patch brings risk that log size would increase more than acceptable.
In this case we should back it out.


git-svn-id: svn://10.0.0.236/trunk@256494 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-09 13:47:44 +00:00
alqahira%ardisson.org
fb91121139 Bug 482161 - SaveHeaderSniffer fails to save 'untitled' page in a localizable way. Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256493 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-09 04:34:08 +00:00
alqahira%ardisson.org
2eb4486b2b Bug 476095 - Anti-phishing overlay is not localizable. Patch by Sean Murphy <murph@seanmurph.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@256492 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-09 04:20:05 +00:00
cltbld
2451ef2392 Automated configuration bump: moz191-branch-patcher2.cfg, from 3.1b2 to 3.1b3 build 2
git-svn-id: svn://10.0.0.236/trunk@256491 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 23:54:08 +00:00
alqahira%ardisson.org
3fe979284c Bug 406103 - Scroll downloads to the bottom on initial launch (or to last selected download if there is one). Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@256490 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 22:30:09 +00:00
stuart.morgan%alumni.case.edu
2fe5a1531f Camino only - Bug 441732: Use a different site icon for the anti-phishing warning page. r=murph sr=pink.
git-svn-id: svn://10.0.0.236/trunk@256489 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 22:13:13 +00:00
stuart.morgan%alumni.case.edu
8fcfdca1f5 Camino only - Bug 481133: shut down form fill controllers when embedding shuts down. r/sr=pink
git-svn-id: svn://10.0.0.236/trunk@256488 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 22:07:01 +00:00
stuart.morgan%alumni.case.edu
cf6b0f650d Camino only - Bug 481773: Fall back to showing Safari as the default browser if LS doesn't return one.
git-svn-id: svn://10.0.0.236/trunk@256487 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 22:04:16 +00:00
dbaron%dbaron.org
afa5639bce Flush layout earlier in getComputedStyle(). (Bug 454276) r+sr=bzbarsky a1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256486 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 19:16:02 +00:00
dbaron%dbaron.org
f19ad614de Wallpaper around crash. (Bug 421203) r+sr=roc a1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256485 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 19:15:27 +00:00
silver%warwickcompsoc.co.uk
8f54dbe393 Bug 482139 - Replace FAQ+#chatzilla info and links with homepage+FAQ info and links.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@256484 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 18:47:53 +00:00
silver%warwickcompsoc.co.uk
47449402fe Bug 482020 - Don't return undefined from getAccessKeyForMenu().
r=silver
p=dev-null@hotmail.co.jp (Atsushi Sakai)
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@256483 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 14:57:55 +00:00
silver%warwickcompsoc.co.uk
740a230d3a Bug 481188 - Prevent log rotation from corrupting the commandNest value.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@256482 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 13:42:43 +00:00
smontagu%smontagu.org
983f7b7350 Treat unpaired surrogate characters in UTF-16 as illegal characters. Bug 317216. Patch by me and Peter Annema <jag@tty.nl>, r=me, jag, jshin; sr=dveditz, approval1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256481 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 06:44:43 +00:00
despotdaemon
d4b4b693b9 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@256480 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-08 01:34:39 +00:00
surkov.alexander%gmail.com
5e8d4f198e Bug 481624 - nsTextAccessibleWrap::get_fontFamily leaks, r=marcoz, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256479 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-07 10:03:19 +00:00
wtc%google.com
94647bec0a Bug 480740: I verified that the Visual C++ 2005 bug has been fixed in
Visual C++ 2008, so limit our workaround to Visual C++ 2005.  r=nelson.


git-svn-id: svn://10.0.0.236/trunk@256478 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-07 02:38:53 +00:00
gavin%gavinsharp.com
fffeac8521 Bug 453955: fix assertion failure in JS_SetWatchPoint, patch by Brendan Eich <brendan@mozilla.org>, 1.9.0 backport by Gary Kwong <nth10sd@gmail.com>, r=mrbkap, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256476 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-07 00:17:32 +00:00
glen.beasley%sun.com
0d03f22474 439199 SSE2 Win 32 instructions for bignum r=bob is_sse should be -1
git-svn-id: svn://10.0.0.236/trunk@256475 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 23:25:30 +00:00
glen.beasley%sun.com
8d0d27a03d 276536 update comment on PR_INTERVAL_NO_TIMEOUT and PR_Connect r=Nelson
git-svn-id: svn://10.0.0.236/trunk@256474 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 23:17:09 +00:00
anodelman%mozilla.com
c9df6a7f09 Bug 478603 - Investigate orange on mozilla-central's qm-pvista-trunk02 and qm-pvista-trunk03
p=anodelman, r=bhearsum (increase timeouts for browser open/close)


git-svn-id: svn://10.0.0.236/trunk@256473 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 22:52:53 +00:00
lpsolit%gmail.com
0c078ca56c Remove the unused 'unconfirmedstate' variable (as mentioned in the release notes for Bugzilla 2.20) - r=mkanat on IRC
git-svn-id: svn://10.0.0.236/trunk@256472 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 20:34:54 +00:00
lpsolit%gmail.com
d4d30fefbc Bug 481910: Login forms point to http:// instead of https:// when ssl='authenticated sessions' (regression) - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256471 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 19:58:55 +00:00
morgamic%mozilla.com
f212517af2 Checking in patch from bug 481313 to make cookie name configurable. r=morgamic.
git-svn-id: svn://10.0.0.236/trunk@256469 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 19:34:24 +00:00
glen.beasley%sun.com
cc7ac4af95 439199 SSE2 Win 32 instructions for bignum r=Bob patch from Makoto kato
git-svn-id: svn://10.0.0.236/trunk@256468 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 17:39:00 +00:00
benjamin%smedbergs.us
c995627e40 Bug 480577 part 2 - Make Talos dump crash stacks after crashes (if symbols are available), r=alice
git-svn-id: svn://10.0.0.236/trunk@256467 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 16:03:20 +00:00
lpsolit%gmail.com
486b50abd3 2nd fix for bug 105960 (xml.cgi and other future xml pages generate invalid XML). Some illegal characters were still not excluded - Patch by David Marshall <dmarshal@yahoo-inc.com> r=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256466 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 14:43:40 +00:00
nboyd%atg.com
fd58fed9bf Autocompletion bug fixing, including fixing the case of autocompletion
following a dot.


git-svn-id: svn://10.0.0.236/trunk@256464 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 13:03:13 +00:00
nboyd%atg.com
966cea725f Only attempt to load JLine if we're in interactive mode.
git-svn-id: svn://10.0.0.236/trunk@256463 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 12:58:08 +00:00
bclary%bclary.com
415e32806d bug 481766 - update JavaScript Test failures. default tip
bug 473709 - JavaScript Test by Gary Kwong.
bug 457521 - JavaScript Test by Gary Kwong.
bug 472787 - JavaScript Test by Gary Kwong.
bug 477758, bug 478968, bug 480479, bug 480657, bug 481246 - JavaScript Tests - merge js/src/trace-test.js and js/tests/js1_8_1/trace/trace-test.js.
bug 346749 - JavaScript Test by Blake Kaplan.
bug 381963 - JavaScript Tests by Jesse Ruderman, Aiko.
bug 384758 - JavaScript Test by Jesse Ruderman.
bug 449657 - JavaScript Tests by Christopher Lenz, ash_mozilla.
bug 449666 - JavaScript Test by Robert Sayre.
bug 451673 - JavaScript Test by Boris Zbarsky.
bug 464092 - JavaScript Tests by Jesse Ruderman.
bug 464096 - JavaScript Test by Jesse Ruderman.
bug 465567 - JavaScript Tests by Jesse Ruderman.
bug 467495 - JavaScript Tests by Gary Kwong, Brendan Eich, Igor Bukanov.
bug 468711 - JavaScript Test by Jesse Ruderman.
bug 469234 - JavaScript Test by Jesse Ruderman.
bug 469239 - JavaScript Tests by Jesse Ruderman.
bug 469625 - JavaScript Tests by Gary Kwong, Jesse Ruderman and Jason Orendorff.
bug 469761 - JavaScript Test by Jesse Ruderman.
bug 472450 - JavaScript Tests by Gary Kwong.
bug 472508 - JavaScript Test by Gary Kwong, Jesse Ruderman.
bug 474771 - JavaScript Test by Jesse Ruderman.
bug 475144 - JavaScript Test by Gary Kwong.
bug 475469 - JavaScript Test by Jesse Ruderman.
bug 479353 - JavaScript Test by Gary Kwong.
bug 300079 - Test is for clone and not for js1.8 features. Modify to use functions and move to js1_5/extensions/.
bug 380237 - remove test created Object.prototype.copy.


git-svn-id: svn://10.0.0.236/trunk@256461 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 01:39:01 +00:00
nelson%bolyard.com
8d1ad43eb2 Bug 479029: OCSP Response signature cert found invalid if issuer is trusted
only for SSL.  r=rrelyea,alexei


git-svn-id: svn://10.0.0.236/trunk@256460 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-06 01:27:55 +00:00
nrthomas%gmail.com
c2cd869d0d Bug 475077, monitoring change for 3.1b4pre version bump, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@256459 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-05 08:36:47 +00:00
alqahira%ardisson.org
d4d888285d Bug 440002 - crash on exit if popups have been blocked. Patch by Stuart Morgan <stuart.morgan+bugzilla@gmail.com>, s/sr=pink
git-svn-id: svn://10.0.0.236/trunk@256453 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-05 04:43:17 +00:00
lpsolit%gmail.com
4297236551 2nd part of bug 481506: Filtering email addresses in comments can hang Bugzilla in some cases - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256452 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-05 02:37:48 +00:00
wtc%google.com
021ddceadf Bug 439144: compile prdtoa.c with the gcc -ffloat-store -fno-strict-aliasing
flags on Linux to work around the violation of strict aliasing rules. r=kaie


git-svn-id: svn://10.0.0.236/trunk@256451 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-05 02:09:10 +00:00
lpsolit%gmail.com
c8659a5d17 Bug 481506: Filtering email addresses in comments can hang Bugzilla in some cases - Patch by Frédéric Buclin <LpSolit@gmail.com> r=glob a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256450 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-05 00:58:33 +00:00
nelson%bolyard.com
d049b9bded Bug 481216: Fix specific spelling errors in NSS & NSPR, r=timeless
git-svn-id: svn://10.0.0.236/trunk@256449 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-04 21:57:28 +00:00
morgamic%mozilla.com
6c6e3f843e Checking in patch to enable proper AUS2 cookies. Bug 481313. r=morgamic
git-svn-id: svn://10.0.0.236/trunk@256447 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-04 19:44:26 +00:00
alqahira%ardisson.org
56e1e62035 Bug 458539 - 'Show Cookies' fails, logs NSArray exception to Console when site has set a cookie with a null name. Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=smorgan, sr=pink, a/Cm1.6.7=me
git-svn-id: svn://10.0.0.236/trunk@256446 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-04 19:16:39 +00:00
lpsolit%gmail.com
8350824e40 Bug 474779: Quicksearch cannot find mixed/upper case keywords - Patch by Kent Rogers <kar@cray.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256445 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-04 18:35:18 +00:00
alexei.volkov.bugs%sun.com
b7d08bc003 480257 - OCSP fails when response > 1K Byte. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256444 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-04 18:19:53 +00:00
szegedia%freemail.hu
29eca5903a Make sure we can lazily load our standard objects even when invoked from code that wouldn't have privilege to access those classes
git-svn-id: svn://10.0.0.236/trunk@256443 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-04 14:58:47 +00:00
nrthomas%gmail.com
1fa0987aa8 Follow up to bug 462143, fix up hgSshKey for Cygwin boxes
git-svn-id: svn://10.0.0.236/trunk@256441 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-04 02:15:01 +00:00
wtc%google.com
4a4c3a2b6e bug 442706: backed out an incorrect change from the previous checkin. It
set OS_TARGET to GCCE on non-Symbian platforms.
Modified Files: configure.in configure


git-svn-id: svn://10.0.0.236/trunk@256440 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-04 00:41:51 +00:00
wtc%google.com
8512f3aed0 bug 442706: a minor fix of the comment.
git-svn-id: svn://10.0.0.236/trunk@256439 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 23:22:21 +00:00
wtc%google.com
bc0bc06b7b bug 442706 - build NSPR for Symbian targets with autoconf and make. Patch by Har
ry Li <harry.li@pagefreedom.org>, r=wtc,ted


git-svn-id: svn://10.0.0.236/trunk@256438 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 23:20:20 +00:00
ted.mielczarek%gmail.com
9cff963236 bug 442706 - build NSPR for Symbian targets with autoconf and make. Patch by Harry Li <harry.li@pagefreedom.org>, r=wtc,ted
git-svn-id: svn://10.0.0.236/trunk@256437 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 22:04:24 +00:00
nboyd%atg.com
d1c486dd5c Fix
Bug 460283 - Use "nicer" names for generated classes
Bug 460726 - Use "nicer" names for generated methods
patch contributed by Marc Guillemot.


git-svn-id: svn://10.0.0.236/trunk@256436 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 21:27:38 +00:00
ghendricks%novell.com
32fdcd2675 Allow component and Product lookups to use a query
git-svn-id: svn://10.0.0.236/trunk@256431 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 18:00:28 +00:00
wtc%google.com
d62d119190 Bug 433790: Removed obsolete code for Win16 Watcom compiler support.
r=arpad.borsos.
Modified Files: prdtoa.h prlong.h prtime.h prlong.c prtime.c


git-svn-id: svn://10.0.0.236/trunk@256430 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 16:17:48 +00:00
nboyd%atg.com
331ac00363 Add missing copyright notice.
git-svn-id: svn://10.0.0.236/trunk@256429 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 16:07:39 +00:00
nboyd%atg.com
781ddd9e6f Disable tests as needed to get all tests passing, and leave TODOs for
broken/missing parser functionality.


git-svn-id: svn://10.0.0.236/trunk@256428 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 16:02:11 +00:00
nrthomas%gmail.com
dc60b44fbe Follow up to bug 451392, add hgToolsTag to older configs
git-svn-id: svn://10.0.0.236/trunk@256426 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 07:55:02 +00:00
nrthomas%gmail.com
980371788f Follow up to bug 451392, add hgToolsTag to older configs
git-svn-id: svn://10.0.0.236/trunk@256425 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 07:44:35 +00:00
cltbld
bf2c93e6cf "Automated configuration bump: moz18-branch-patcher2.cfg, from 2.0.0.19 to 2.0.0.21"
git-svn-id: svn://10.0.0.236/trunk@256424 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 07:13:22 +00:00
anodelman%mozilla.com
a0415a5f64 Bug 458093 - Update Talos to send graph server new test information
bustage fix (fixing fast talos test names) p/r=anodelman


git-svn-id: svn://10.0.0.236/trunk@256423 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 02:47:10 +00:00
mrbkap%gmail.com
efc072e676 Bug 475334 - Don't trigger debugger hooks until frame initialization is complete. r=mrbkap a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256422 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 01:53:11 +00:00
anodelman%mozilla.com
2c1b3bf142 Bug 458093 - Update Talos to send graph server new test information
correctly label fast cycle talos results, p=anodelman r=aki


git-svn-id: svn://10.0.0.236/trunk@256421 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 00:18:25 +00:00
nrthomas%gmail.com
24306efbe0 Bug 480864, bump Fx & Tb nightly versions to 2.0.0.22pre, r=bhearsum a=ss
git-svn-id: svn://10.0.0.236/trunk@256420 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 00:14:23 +00:00
wtc%google.com
b163c85df9 Bug 469083: Make all .obj files in pr/tests depend on nst_wince.h. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256419 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-03 00:00:22 +00:00
christophe.ravel.bugs%sun.com
1f5532a40a Bug 480442: Remove (empty) watcomfx.h from nss
r+=wtc


git-svn-id: svn://10.0.0.236/trunk@256413 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 23:21:03 +00:00
alexei.volkov.bugs%sun.com
79adb82b2f Comment to the test. The test should be fixed.
git-svn-id: svn://10.0.0.236/trunk@256412 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 23:20:21 +00:00
ghendricks%novell.com
af29e9533b Long lists of copied cases etc. do not fit in the results window.
git-svn-id: svn://10.0.0.236/trunk@256411 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 23:19:04 +00:00
wtc%google.com
e685f2c15c Bug 480740: When Visual C++ 2005 is used, don't call mktime when we know
the input date would cause mktime to call the invalid parameter handler.
r=nelson.
Modified Files:
	pr/src/misc/prtime.c pr/tests/Makefile.in pr/tests/runtests.pl
	pr/tests/runtests.sh
Added Files:
	pr/tests/parsetm.c


git-svn-id: svn://10.0.0.236/trunk@256410 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 23:03:26 +00:00
ghendricks%novell.com
7bbe44bc61 Script to remove the unsigned attributes from columns.
git-svn-id: svn://10.0.0.236/trunk@256405 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 22:32:09 +00:00
nrthomas%gmail.com
45059df132 Bug 480864, bootstrap tag bump for Tb2.0.0.21 build1, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@256404 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 21:54:01 +00:00
ghendricks%novell.com
01dd011544 Patch for 3.2.2 and dummy data for testing postgres
git-svn-id: svn://10.0.0.236/trunk@256403 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 21:47:57 +00:00
nrthomas%gmail.com
614cd207ed Bug 480864, bootstrap config bump for Tb2.0.0.21 build1, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@256402 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 21:39:52 +00:00
wurblzap%gmail.com
61a8a40cb7 Bug 481025 - Remove rogue Byte Order Mark.
Patch by Marc Schumann <wurblzap@gmail.com>;
r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256401 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 21:24:31 +00:00
silver%warwickcompsoc.co.uk
3e3d33cb70 Bug 480963 - Make sure PrefManager always saves to realValue when updating a pref to match the pref service value.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@256400 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 20:48:24 +00:00
silver%warwickcompsoc.co.uk
16b8c8689c Bug 456341 - Use canonicalName for HTML attributes so we avoid the Firefox 3 change to case-sensitivity in HTML attribute values for motifs.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@256399 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 20:45:39 +00:00
silver%warwickcompsoc.co.uk
56652bd0ec Bug 471778 - Employ platform-based CSS to give Mac users enough space to type into their uniquely annoying type="search" boxes.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@256398 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 20:41:48 +00:00
lpsolit%gmail.com
b99770860f Bug 480999: Irrelevant username check in the 'Email Addresses, Bug Numbers, and Votes' section if no checkbox is checked - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256397 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 20:23:34 +00:00
lpsolit%gmail.com
cd52da4ff0 Bug 154482: Checking none of the checkboxes in the "Email Addresses, Bug Numbers, and Votes" section of query.cgi shouldn't throw an error - Original patch by timeless <timeless@bemail.org>, updated by me, r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256396 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 20:03:14 +00:00
nboyd%atg.com
e8a93a1f65 Regexp for split was not working appropriately on Windows, with /r/n at end of line.
git-svn-id: svn://10.0.0.236/trunk@256395 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 18:33:51 +00:00
nboyd%atg.com
bf5b40f09a New regression test.
git-svn-id: svn://10.0.0.236/trunk@256394 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 18:31:54 +00:00
ted.mielczarek%gmail.com
a7a3a4f86d bug 480074 - Better dependency resolution for import libraries. Patch by Benjamin Smedberg <benjamin@smedbergs.us>, r=ted
git-svn-id: svn://10.0.0.236/trunk@256393 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 17:33:47 +00:00
benjamin%smedbergs.us
ddfc2cc968 Bug 480577 part 1: PerfConfigurator.py changes to allow buildbot to inform Talos of a local symbols path, so it can dump crash stacks after failed Talos runs, r=alice
git-svn-id: svn://10.0.0.236/trunk@256392 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 15:11:11 +00:00
benjamin%smedbergs.us
7f8fff4129 Bug 480558 - Talos should be more lenient about defunct processes, r=alice
git-svn-id: svn://10.0.0.236/trunk@256391 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 14:46:28 +00:00
slavomir.katuscak%sun.com
2723e5852a Bug 473790 - Fixed failing test with flag failIfNoInfo.
git-svn-id: svn://10.0.0.236/trunk@256390 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 12:40:04 +00:00
gijskruitbosch%gmail.com
3d9fd3c94d Bug 480412 - Header should be updated *after* unhiding it.
r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only. NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@256389 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 11:31:43 +00:00
gijskruitbosch%gmail.com
de83d4aff9 Bug 480177 - Timestamps collapsing should use view instead of global preference.
r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only. NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@256388 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 11:29:53 +00:00
gijskruitbosch%gmail.com
b60dba2fb5 Bug 477774 - ChatZilla icon shouldn't appear on the toolbar in popups
r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only. NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@256387 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 11:28:15 +00:00
gijskruitbosch%gmail.com
fd4d3c9eda Bug 471459 - Add "Go to Folder" option for finished DCC sends.
r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only. NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@256386 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 11:25:22 +00:00
slavomir.katuscak%sun.com
426efa2673 Bug 473790 - Patch adding OCSP tests. r=alexei
git-svn-id: svn://10.0.0.236/trunk@256385 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 10:19:48 +00:00
slavomir.katuscak%sun.com
f3336bcce8 Bug 473790 - Certs and p12 used for OCSP tests (generated by other patch related to this bug), no review
git-svn-id: svn://10.0.0.236/trunk@256384 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 10:17:25 +00:00
slavomir.katuscak%sun.com
2faf1da136 Bug 473790 - Script to configure OCSPD. r=alexei
git-svn-id: svn://10.0.0.236/trunk@256383 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 10:13:10 +00:00
despotdaemon
1096af6198 Pseudo-automatic update of changes made by benjamin@smedbergs.us.
git-svn-id: svn://10.0.0.236/trunk@256382 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 03:12:46 +00:00
despotdaemon
9d0ebedf50 Pseudo-automatic update of changes made by benjamin@smedbergs.us.
git-svn-id: svn://10.0.0.236/trunk@256381 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 03:12:18 +00:00
mkanat%bugzilla.org
28915b7f1f Bug 480001: MySQL 5.1.31 throws an error when you try to SET SESSION max_allowed_packet (and previous versions of MySQL were just ignoring the SET SESSION), so just warn people if their max_allowed_packet is too small
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256380 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-02 01:23:17 +00:00
mkanat%bugzilla.org
2845ec790e Bug 121601: Have logout display index.cgi, not just a message on relogin.cgi.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256377 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 23:42:55 +00:00
mkanat%bugzilla.org
2d4d2b7bae Bug 478232: Fix HTML validation of pages after index/header UI changes.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256375 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 23:39:41 +00:00
lpsolit%gmail.com
2371e75ea8 Bug 480858: Change Columns fails to escape search name when re-running saved search - Patch by Frédéric Buclin <LpSolit@gmail.com> r=bbaetz a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256373 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 21:57:46 +00:00
wurblzap%gmail.com
5da1f40c20 Bug 295205 - runtests.pl should check that the line endings of files conform to your OS standard.
Patch by Marc Schumann <wurblzap@gmail.com>.
r=LpSolit,mkanat; a=mkanat.


git-svn-id: svn://10.0.0.236/trunk@256371 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 10:31:14 +00:00
gavin%gavinsharp.com
62f61b6f40 Bug 446568: make sure to focus new windows opened from external apps, r=mconnor, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256370 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 08:44:48 +00:00
dveditz%cruzio.com
694c90fecc bug 479336 update IDN character blacklist. patch by reed loden, r/sr=dveditz, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256369 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 07:22:05 +00:00
justdave%bugzilla.org
9117b38906 Bug 285700: bump minimum File::Spec version to 0.84 to deal with taint errors
r= LpSolit, a= justdave


git-svn-id: svn://10.0.0.236/trunk@256364 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:15 +00:00
gerv%gerv.net
f096d0400c Bug 126955 - Bugzilla should support translated/localized templates. Patch by burnus; r=gerv, a=justdave.
git-svn-id: svn://10.0.0.236/trunk@256363 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:14 +00:00
jake%bugzilla.org
cfe4028cca Updating my e-mail address as jake@acutex.net is no longer valid.
* NO CODE CHANGES *


git-svn-id: svn://10.0.0.236/trunk@256362 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:13 +00:00
zach%zachlipton.com
99f15c1b4b Fix for bug 143124, Fix warning messages about *::TESTOUT and clean up
test code. Patch makes the tests much better now.

r=zach x2


git-svn-id: svn://10.0.0.236/trunk@256361 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:12 +00:00
bbaetz%student.usyd.edu.au
c994665d87 Bug 135543 - @Support::Templates::testitems does not list all templates
Patch by ddkilzer@theracingworld.com (David D. Kilzer), r=gerv, justdave


git-svn-id: svn://10.0.0.236/trunk@256360 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:11 +00:00
jake%acutex.net
433a6d2b98 Check templates for tabs, also.
git-svn-id: svn://10.0.0.236/trunk@256359 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:10 +00:00
jake%acutex.net
117a92bb56 Don't rely on the TEST_VERBOSE environment variable (no longer exported from runtests.sh) and instead print to the TESTOUT file handle pulled in from Test::More. This will allow the testing backend to check for verbosity rather than having to handle it in the .t files.
git-svn-id: svn://10.0.0.236/trunk@256358 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:09 +00:00
jake%acutex.net
fefbea2cea Bug 103664 - Tests should "use strict;" and not contain any tabs. We should also use the TEST_VERBOSE environment variable instead of VERBOSE.
Patch by David D. Kilzer <ddkilzer@theracingworld.com>
Additional edits by myself to add the emacs mode line.  Also, the change to runtests.sh was done by me.


git-svn-id: svn://10.0.0.236/trunk@256357 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:08 +00:00
justdave%syndicomm.com
a1067b1c1f yet another meaningless whitespace change to test tinderbox with
git-svn-id: svn://10.0.0.236/trunk@256356 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:07 +00:00
justdave%syndicomm.com
02fe648c68 another useless whitespace change to test tinderbox with
git-svn-id: svn://10.0.0.236/trunk@256355 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:06 +00:00
justdave%syndicomm.com
3487a39d83 whitespace change to test tinderbox again.
git-svn-id: svn://10.0.0.236/trunk@256354 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:05 +00:00
justdave%syndicomm.com
2a22488f5d whitespace change to do a test checkin to see how tinderbox reacts
git-svn-id: svn://10.0.0.236/trunk@256353 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:04 +00:00
jake%acutex.net
a21dacd4ce Tabs are not allowed in Bugzilla source... if we find one, issue a warning.
No review needed for tests at this time. NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@256352 18797224-902f-48f8-a5cc-f745e15eee43
2009-03-01 04:03:03 +00:00
gijskruitbosch%gmail.com
90492b9703 Bug 418748 - Preference window not wide enough on mac
r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only. NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@256350 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-28 14:49:25 +00:00
gijskruitbosch%gmail.com
15ccd59448 Bug 474093 - There is no way to specify exceptional accesskey.
r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only. NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@256349 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-28 14:10:29 +00:00
anodelman%mozilla.com
dbee731012 Bug 458093 - Update Talos to send graph server new test information
Bustage fix - missing fast cycle test names p/r=anodelman


git-svn-id: svn://10.0.0.236/trunk@256347 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-27 23:21:30 +00:00
anodelman%mozilla.com
2d5e7de61b Bug 458093 - Update Talos to send graph server new test information
Bustage fix, typo in talos send data code, p/r=anodelman


git-svn-id: svn://10.0.0.236/trunk@256346 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-27 20:44:03 +00:00
alexei.volkov.bugs%sun.com
607b9260ed 444404 - libpkix reports "unknown issuer" for nearly all certificate errors. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256345 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-27 18:26:12 +00:00
gozer%mozillamessaging.com
927725185d bump monitored revisions after 3.0b2 release. r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@256344 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-27 16:10:03 +00:00
igor%mir2.org
d1a83520ee bug 476049 r=brendan a1908=dveditz
git-svn-id: svn://10.0.0.236/trunk@256343 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-27 13:25:22 +00:00
despotdaemon
ef69c03fb3 Pseudo-automatic update of changes made by roc+@cs.cmu.edu.
git-svn-id: svn://10.0.0.236/trunk@256342 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-27 07:44:53 +00:00
wtc%google.com
8ff4275dc9 Bug 433791: removed watcomfx from CVS. Patch by Serge Gautherie
<sgautherie.bz@free.fr>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256341 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-27 06:18:20 +00:00
nelson%bolyard.com
99bcfc99f3 Bug 433791 - Win16 support should be deleted from NSS, r=wtc
Patch by Serge Gautherie <sgautherie.bz@free.fr>


git-svn-id: svn://10.0.0.236/trunk@256340 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-27 00:15:03 +00:00
mats.palmgren%bredband.net
9524888a10 Make selection code more robust when the selection boundary is not in a block. b=448329 r+sr=peterv a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256339 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 23:47:31 +00:00
mats.palmgren%bredband.net
f3d864281b Crash test for bug 421671 and bug 444027.
git-svn-id: svn://10.0.0.236/trunk@256338 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 23:41:20 +00:00
mats.palmgren%bredband.net
0689b28c8c Temporarily forget the line container while calculating widths for next-in-flow children. b=477928 r+sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256337 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 23:39:11 +00:00
mats.palmgren%bredband.net
73da1c964c Keep track of the line container and forget the current line if it's for a different container. b=444027 r+sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256336 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 23:39:03 +00:00
nelson%bolyard.com
53667d7b3b Bug 433791 - Win16 support should be deleted from NSS, r=wtc
Patch by Serge Gautherie <sgautherie.bz@free.fr>


git-svn-id: svn://10.0.0.236/trunk@256335 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 23:22:10 +00:00
lpsolit%gmail.com
1409d94089 Bug 477745: [Oracle] Search doesn't work because of sql_string_until - Patch by Xiaoou <xiaoou.wu@oracle.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256333 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 20:52:40 +00:00
dholbert%cs.stanford.edu
f1bca53a79 (Patch #2 to fix Bug 431260) Bug 455826 - Look into overflow-lists of inlines to find text when we're building textruns. Patch by Robert O'Callahan <robert@ocallahan.org> r=smontagu
git-svn-id: svn://10.0.0.236/trunk@256332 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 20:20:31 +00:00
dholbert%cs.stanford.edu
2fa4de5805 (Patch #1 to fix Bug 431260) Patch for Bug 431341 - Include floating first-letter text when we build textruns for a paragraph, because we want nsLineBreaker to see the text for capitalization analysis. Make sure that textrun construction for floating first-letter text uses the block as its scope. And make sure we reconstruct textruns after determining the first-letter length, so that ligatures are broken as necessary. Patch by Robert O'Callahan <robert@ocallahan.org> r=smontagu
git-svn-id: svn://10.0.0.236/trunk@256331 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 20:12:49 +00:00
dholbert%cs.stanford.edu
906d65ea56 trivial comment-only patch (s/it's/its/ from bug 458167) to trigger another unittest cycle, to see if linux oranges go away.
git-svn-id: svn://10.0.0.236/trunk@256330 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 18:51:04 +00:00
silver%warwickcompsoc.co.uk
9360c2d9ee ChatZilla documentation update.
rs=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@256329 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 17:23:40 +00:00
Olli.Pettay%helsinki.fi
ffc673268a Bug 477237 - Crash [@ nsXULTemplateQueryProcessorXML::GetDatasource], r+sr=peterv, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256328 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 16:17:31 +00:00
Olli.Pettay%helsinki.fi
7d48183155 Bug 473284, r+sr=mats.palmgren, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256327 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 15:22:40 +00:00
joshmoz%gmail.com
2c2adcbb85 Don't eat Objective-C exceptions in swizzled code. Patch by Peter Annema and Steven Michaud. b=453222 r=josh sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256326 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 15:12:32 +00:00
joshmoz%gmail.com
c32074991a Mac OS X embedding-only: Allow native menu system to have first crack at keyboard commands, patch by Stuart Morgan. b=459744 r=josh sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256325 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 15:08:53 +00:00
nelson%bolyard.com
ba8a2d86e0 Bug 478994: Allow Softoken's fork check to be disabled, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@256324 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 06:57:15 +00:00
mkanat%bugzilla.org
ee7694000b Bug 479446: email_in.pl wasn't splitting lines properly when they ended with CRLF (which is the actual RFC standard email line ending).
Patch by Eric Olson <Eric.Olson@adm.com> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256322 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 02:06:14 +00:00
mkanat%bugzilla.org
a1a13ee0b0 Add qs_suffix to filterexceptions.pl, which was missed on checkin of the new login-small.
git-svn-id: svn://10.0.0.236/trunk@256321 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-26 01:36:23 +00:00
mkanat%bugzilla.org
9799a4bfb5 Bug 480061: Lots of JS was toggling the "display" attribute instead of removing/adding the bz_default_hidden class.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=glob, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256320 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-25 22:39:20 +00:00
bclary%bclary.com
ce7cb9b973 bug 480016 - JavaScript Test - add expectExitCode(6) to flag passing condition, patch by jorendorff, r=bclary
git-svn-id: svn://10.0.0.236/trunk@256319 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-25 19:35:35 +00:00
lpsolit%gmail.com
cc8f909738 Bug 479164: "Bug" appears raw in "File a Bug" on index.cgi - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256318 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-25 19:24:50 +00:00
wtc%google.com
d3a8294a58 Bug 480142: Use sizeof on the correct type of ckc_x509. r=rrelyea.
Modified Files:
	capi/cobject.c nssmkey/mobject.c


git-svn-id: svn://10.0.0.236/trunk@256317 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-25 18:38:04 +00:00
bclary%bclary.com
ba75f2ce57 bug 401300 - include jsutil.h to the export list in Makefile.ref, patch by jorendorff, r=brendan, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256316 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-25 13:24:29 +00:00
bclary%bclary.com
162c242bcd SpiderMonkey 1.8.0 pre release 1 - update version, r=jorendorff, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256315 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-25 13:11:19 +00:00
despotdaemon
d4c52b8c92 Pseudo-automatic update of changes made by asasaki@mozilla.com.
git-svn-id: svn://10.0.0.236/trunk@256314 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-24 22:21:12 +00:00
despotdaemon
a9c5aa48bd Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@256313 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-24 22:18:56 +00:00
ccooper%deadsquid.com
f5458bc80c - quoting and path bustage fix for win32
git-svn-id: svn://10.0.0.236/trunk@256312 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-24 20:58:36 +00:00
ccooper%deadsquid.com
540e093ad9 b=477768
r=bhearsum
- adds build step to touch upload dir after file upload for 1.9.0 l10n builds


git-svn-id: svn://10.0.0.236/trunk@256311 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-24 19:44:39 +00:00
martijn.martijn%gmail.com
463ab72594 Bug 450876 - Crash [@ nsEventStateManager::GetNextTabbableMapArea] with img usemap and tabindex, r=Olli.Pettay, sr=roc, sr=dveditz (for 1.9.0.x), a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256309 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-24 15:15:24 +00:00
glen.beasley%sun.com
65c95f85b2 test program for key wrapping r=self jss test suite only
git-svn-id: svn://10.0.0.236/trunk@256307 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-24 04:25:10 +00:00
mkanat%bugzilla.org
b27ea258ae Bug 479197: The mini_login Bugzilla_password box does not convert to text type or clear itself in IE
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=glob, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256306 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-24 04:13:28 +00:00
mkanat%bugzilla.org
ea645b7231 Bug 478173: Add a "Remember" checkbox to the header/footer login form and restructure the header and footer so that it fits nicely.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=glob, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256304 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-24 00:35:39 +00:00
alqahira%ardisson.org
0a0b942f40 Next release from here will be 2.0b3
git-svn-id: svn://10.0.0.236/trunk@256303 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-24 00:02:01 +00:00
mkanat%bugzilla.org
5e65edde4c Bug 476607: "Constant subroutine redefined" warnings from Bugzilla::Field::Choice
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256300 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 22:00:38 +00:00
ghendricks%novell.com
b094c86ac7 Filtering after a search on summary will not reset
git-svn-id: svn://10.0.0.236/trunk@256299 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 20:33:10 +00:00
alqahira%ardisson.org
3761cf9af6 Bug 479076 - Set anti-phishing and anti-malware prefs to false until the UI is more polished and to ensure that the features don't become active in 2.0b2, which will not have the polished UI. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256298 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 20:28:17 +00:00
alqahira%ardisson.org
bc15ccf112 Bug 479080 - Release Notes for new Camino 2.0b2 (and appropriate installer makefile kicking). r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256297 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 20:05:18 +00:00
neil%parkwaycc.co.uk
3ac33513cf Bug 476823 nsFileSystemDataSource should implement nsISupports r+sr=bsmedberg a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256294 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 12:45:34 +00:00
nelson%bolyard.com
805ea53d78 Bug 469083: WinCE NSPRPUB PR Tests Do Not Run On WinCE/WinMobile6, r=wtc
git-svn-id: svn://10.0.0.236/trunk@256293 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 05:00:45 +00:00
dbaron%dbaron.org
d29734ba6f Stop reflowing the viewport with constrained height. (Bug 467881) r+sr=roc a1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256292 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 03:22:00 +00:00
dbaron%dbaron.org
26e90b87ca Handle placeholder frames in RemoveMappingsForFrameSubtree. (Bug 428113) r=mats.palmgren sr=roc a1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256291 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 03:21:26 +00:00
wtc%google.com
61ea0c81d1 Bug 433790: removed Win16 support. The patch is contributed by
Arpad Borsos <arpad.borsos@googlemail.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256290 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 01:17:29 +00:00
wtc%google.com
b40e314cab Bug 433790: removed Win16 support. The patch is contributed by
Arpad Borsos <arpad.borsos@googlemail.com>.  r=wtc.
Modified Files:
	configure configure.in config/rules.mk


git-svn-id: svn://10.0.0.236/trunk@256289 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 00:53:31 +00:00
wtc%google.com
cdf36f4302 Bug 433790: removed obsolete Win16 source files from CVS. The patch is
contributed by Arpad Borsos <arpad.borsos@googlemail.com>.  r=wtc.
Modified Files:
	Makefile.in objs.mk
Removed Files:
	w16callb.c w16error.c w16fmem.c w16gc.c w16io.c w16mem.c
	w16null.c w16proc.c w16sock.c w16stdio.c w16thred.c


git-svn-id: svn://10.0.0.236/trunk@256288 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-23 00:45:43 +00:00
wtc%google.com
a7f0a8e413 Bug 433790: removed the obsolete Win16 code from mozilla/nsprpub/pr/include.
Removed obsolete macro GCPTR.  The patch is contributed by Arpad Borsos
<arpad.borsos@googlemail.com>.  r=wtc.
Modified Files:
	prinet.h prlog.h prlong.h prnetdb.h prthread.h prtypes.h
	md/_pcos.h md/_unixos.h md/prosdep.h
Removed Files:
	md/_win16.cfg md/_win16.h


git-svn-id: svn://10.0.0.236/trunk@256287 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-22 19:56:14 +00:00
wtc%google.com
72cf124ef4 Bug 433790: removed obsolete Win16 code from mozilla/nsprpub/lib. The
patch is contributed by Arpad Borsos <arpad.borsos@googlemail.com>.  r=wtc.
Modified Files:
	ds/plhash.c libc/src/plerror.c msgc/include/prgc.h
	msgc/src/prgcapi.c msgc/src/prmsgc.c msgc/tests/Makefile.in
	prstreams/tests/testprstrm/Makefile.in tests/Makefile.in
Removed Files:
	msgc/src/win16gc.c


git-svn-id: svn://10.0.0.236/trunk@256286 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-22 18:56:04 +00:00
silver%warwickcompsoc.co.uk
3c40bbdb59 Bug 471778 - Convert the min/max user count filters into type="search" as well.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@256285 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-22 13:08:39 +00:00
silver%warwickcompsoc.co.uk
27d2f2465d Bug 353392 - If we're given the "unknown" proxy object (which indicates PAC isn't loaded yet), fail the connection attempt and retry it in a few seconds.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@256284 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-22 13:03:51 +00:00
nelson%bolyard.com
a20f6cd872 Bug 479601: Wrong encoding for email addresses in subject
Patch contributed by Christoph Hannebauer <chbugzilla@mailinator.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@256283 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-22 12:27:33 +00:00
reed%reedloden.com
750168848a Bug 479492 - "graph.cgi failing on 'set terminal png color' with a new version of gnuplot" [p=reed r=timeless]
git-svn-id: svn://10.0.0.236/trunk@256282 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-22 05:38:23 +00:00
mkanat%bugzilla.org
0657234571 Bug 467920: Remove multiple CRs in a row from the email template and make sure all email lines end in CRLF.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=glob, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256280 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-22 00:44:25 +00:00
kairo%kairo.at
8b04a04093 update for new version of SeaMonkey trunk builds
git-svn-id: svn://10.0.0.236/trunk@256279 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-21 13:52:39 +00:00
nelson%bolyard.com
519114b07f Bug 469083: WinCE NSPRPUB PR Tests Do Not Run On WinCE/WinMobile6
Patch contributed by John Wolfe <wolfe@lobo.us>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@256278 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-21 04:52:51 +00:00
psychoticwolf%carolina.rr.com
aa16cbae49 Bug 474241 - Google module should be updated to use Google's REST/AJAX API. Patch by Stephen Lau <steve@grommit.com>, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@256277 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-21 02:15:14 +00:00
psychoticwolf%carolina.rr.com
617f25f554 Bug 470343 - [SEEN] Ignore !seen in some channels. Patch by Cww <cwwmozilla@gmail.com>, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@256276 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-21 01:53:30 +00:00
rob_strong%exchangecode.com
dc3b0cce24 Bug 374820 - vertical scrollbars showing in the major update / EULA part of the software update UI. r=dtownsend, approval1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256275 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-21 01:44:47 +00:00
bclary%bclary.com
004ba4e176 bug 479538 - Sishyphus - JavaScript tests - patterns maintenance. default tip
bug 475834 - JavaScript Test by Brendan Eich.
bug 479202 - correct bug numbers in tests.
bug 476869 - JavaScript Test by Gary Kwong.
bug 476940 - JavaScript Test by T. Rosenau.
bug 477048 - JavaScript Test by Gary Kwong.
bug 477053 - JavaScript Test by Gary Kwong.
bug 477158 - JavaScript Test by Gary Kwong.
bug 477187 - JavaScript Test by Andreas Gal.
bug 477234 - JavaScript Test by Gary Kwong.
bug 477581 - JavaScript Test by Jason Orendorff.
bug 477758 - JavaScript Test by David Greenspan.
bug 478205 - JavaScript Test by Gary Kwong.
bug 478314 - JavaScript Test by Gary Kwong.
bug 383269 - modify test to handle uncaught exception.
bug 328897 - modify test to handle uncaught exception.
bug 372331 - modify test to handle uncaught exception.
bug 354998 - modify test to handle uncaught exception.
bug 451974 - in order to exclude randam passes on platforms that do not support jit, require jit time to be less than 1/2 non jit time in order to pass.
bug 470739 - in order to exclude randam passes on platforms that do not support jit, require jit time to be less than 1/2 non jit time in order to pass.
bug 469927 - in order to exclude randam passes on platforms that do not support jit, require jit time to be less than 1/2 non jit time in order to pass.
bug 478047 - JavaScript Test by Norris Boyd and modify tests to handle new TypeError setting a property with only a getter.
bug 476414 - JavaScript Tests by Gary Kwong, Jesse Ruderman.
bug 476427 - JavaScript Test by Gary Kwong.
JavaScript Tests - merge js/src/trace-test.js into js/tests/js1_8_1/trace/trace-test.js - bug 462027, bug 463243, bug 465915, bug 468782, bug 469044, bug 472533, bug 473075, bug 474769, bug 474771, bug 475761, bug 476873, bug 477158, bug 477581
bug 470187 - JavaScript Test by Jesse Ruderman.
bug 474771 - JavaScript Test by Jesse Ruderman.
bug 470310 - JavaScript Test by Jesse Ruderman.
bug 469397 - JavaScript Test by Adam L. Peller.
bug 469044 - JavaScript Test by Jesse Ruderman.
bug 453955 - JavaScript Test by Gary Kwong.
bug 455464 - remove extraneous statements in test.
bug 477257 - force hg update -C to work around failures to merge nsprpub/configure.
bug 476447 - JavaScript Test by simonzack.
bug 476458 - fix bisect.sh to handle local changes in the source tree during hg bisect.
bug 466787 - JavaScript Test by Jesse Ruderman.
bug 465454 - JavaScript Test by Jesse Ruderman.
bug 462459 - JavaScript Test.
bug 475645 - JavaScript Test by Carsten Book.
bug 466905 - JavaScript Tests by Jesse Ruderman and Jeff Walden.


git-svn-id: svn://10.0.0.236/trunk@256274 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-21 01:30:54 +00:00
stuart.morgan%alumni.case.edu
82e5e1e2e4 Camino only - Bug 469240: Don't start tab drags for clicks in the tab bar background. r/sr=pink
git-svn-id: svn://10.0.0.236/trunk@256273 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-21 00:30:36 +00:00
lpsolit%gmail.com
238952d9fd Bug 479345: Field::Choice->update returns incorrect data in list context, leading group settings changes to crash - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256272 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-21 00:26:03 +00:00
stuart.morgan%alumni.case.edu
0736599f5c Update the version comparison routine to support all the alpha/beta/nightly forms we use. Add the ability to mark an update as only being available to users already using some minimum Camino version.
git-svn-id: svn://10.0.0.236/trunk@256271 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 23:54:35 +00:00
mkanat%bugzilla.org
0f7ca2d222 Bug 431201: recode.pl crash when trying to convert 2.16 database to 3.0.3 schema
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256270 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 21:55:10 +00:00
rob_strong%exchangecode.com
e65e62ca33 Backing out Bug 374820 - tree states 1.9.0.7 and I thought it was open for 1.9.0.8
git-svn-id: svn://10.0.0.236/trunk@256269 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 21:28:25 +00:00
rob_strong%exchangecode.com
96e6948778 Bug 374820 - vertical scrollbars showing in the major update / EULA part of the software update UI. r=dtownsend, approval1.9.0.8=dveditz
git-svn-id: svn://10.0.0.236/trunk@256268 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 21:26:38 +00:00
alqahira%ardisson.org
e3e3ef40de Landing the update-check feed-generation script from bug 401474 in cvs. sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256267 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 21:06:50 +00:00
glen.beasley%sun.com
025e50aaca 470982 supoort wrap/unwrap of AES keys with RSA patch from alex.agranov r=glenb
git-svn-id: svn://10.0.0.236/trunk@256266 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 19:28:23 +00:00
anodelman%mozilla.com
169afebf2e Bug 379233 - pageloader tests should flush out layout before timing load end
Bustage fix, backing out patch as it is freezing talos boxes (p/r=anodelman)


git-svn-id: svn://10.0.0.236/trunk@256265 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 16:49:47 +00:00
anodelman%mozilla.com
3d84a1abd5 Bug 458093 - Update Talos to send graph server new test information
p=anodelman, r=bhearsum


git-svn-id: svn://10.0.0.236/trunk@256264 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 16:16:23 +00:00
anodelman%mozilla.com
ae932d41e6 Bug 379233 - Pageload tests should flush out layout before timing load end
p=anodelman, r=vlad


git-svn-id: svn://10.0.0.236/trunk@256263 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 16:07:03 +00:00
ccooper%deadsquid.com
53be814ae4 - variable name bustage fix
git-svn-id: svn://10.0.0.236/trunk@256262 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 14:50:52 +00:00
cltbld
a59cc45369 "Automated configuration bump: moz19-branch-patcher2.cfg, from 3.0.6 to 3.0.7"
git-svn-id: svn://10.0.0.236/trunk@256261 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 14:38:14 +00:00
lpsolit%gmail.com
8b94c0234d Bug 477459: buglist.cgi crashes for logged out users if the "Reporter" column is displayed - Patches by Frédéric Buclin <LpSolit@gmail.com> and Xiaoou <xiaoou.wu@oracle.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256260 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 14:12:54 +00:00
alexei.volkov.bugs%sun.com
b7399ebbc1 479329 - extra decref in PKIX_PL_Cert_GetExtendedKeyUsage leads to dangling pointer. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256259 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 05:31:41 +00:00
rrelyea%redhat.com
d3d7f43c88 Bug 457045 - (drbg) Implement one of the DRBGs (PRNGs) specified in
NIST SP 800-90

1) fix Win64 warnings.
2) don't read directories in Unix Jitter.
3) Fix bug in count environment variable which read in files to the rng automatically
4) Add clarifying comments.

r=wtc sr=nelson


git-svn-id: svn://10.0.0.236/trunk@256258 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-20 01:00:55 +00:00
lpsolit%gmail.com
be52a525c6 Bug 479228: Duplicated words in the error message in importxml.pl when the default product or component doesn't exist - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256257 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-19 22:52:47 +00:00
alexei.volkov.bugs%sun.com
355b706951 Back up patch for 476979. errno is not set by solaris version of strtol upon invalid input.
git-svn-id: svn://10.0.0.236/trunk@256256 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-19 19:51:52 +00:00
bhearsum%mozilla.com
d16deffb0b bug 478423: config bump for 3.0.7build2
git-svn-id: svn://10.0.0.236/trunk@256252 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-19 13:38:54 +00:00
despotdaemon
a0b0c6e7b3 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@256251 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-19 12:05:45 +00:00
alexei.volkov.bugs%sun.com
50a4bce1f9 Additional fix for 476979 - Add cert chain tests that will do cert validation for different ku/eku. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256250 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-19 04:24:41 +00:00
dveditz%cruzio.com
6dda5e9ed5 bug 478901 upgrade to libpng-1.2.35, patch/port=Glenn Randers-Pehrson, r=joedrew, sr=dveditz, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256248 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-19 03:00:21 +00:00
glen.beasley%sun.com
812614be85 remove un maintened files r=nelson
git-svn-id: svn://10.0.0.236/trunk@256247 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-18 21:44:54 +00:00
mrbkap%gmail.com
93667439d7 Bug 460706 - Handle misplaced ContinueInterruptedParsing calls during synchronous XMLHttpRequest. r+sr=sicking a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256246 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-18 01:01:14 +00:00
alexei.volkov.bugs%sun.com
032c3a2279 [Bug 478931] object leak in pkix_List_MergeLists function. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256244 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-17 23:22:47 +00:00
bhearsum%mozilla.com
b99c2b7eda bug 478423: tracking bug for build and release of Firefox 3.0.7 - version bumps to 3.0.8pre
git-svn-id: svn://10.0.0.236/trunk@256243 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-17 22:37:22 +00:00
bhearsum%mozilla.com
e28f950ad6 bug 478423: fixed cutoff times for 3.0.7 release. r=ccooper
git-svn-id: svn://10.0.0.236/trunk@256240 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-17 16:51:11 +00:00
bhearsum%mozilla.com
48108cf2e7 bug 478423: bump to RELEASE_AUTOMATION_M13 for Firefox 3.0.7 release
git-svn-id: svn://10.0.0.236/trunk@256239 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-17 16:08:49 +00:00
bhearsum%mozilla.com
e2a6cc5138 bug 478423: bootstrap configuration bumps for 3.0.7 release. r=ccooper
git-svn-id: svn://10.0.0.236/trunk@256238 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-17 16:06:21 +00:00
ccooper%deadsquid.com
61e147be5c b=477768
r=bhearsum
- accept dirs in the filelist for timestamp checking


git-svn-id: svn://10.0.0.236/trunk@256236 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-17 15:09:21 +00:00
wtc%google.com
5550823514 Bug 457045: PR_STATIC_ASSERT can be used only in places where an "extern"
declaration is allowed.  TBR=rrelyea.


git-svn-id: svn://10.0.0.236/trunk@256235 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-17 02:35:32 +00:00
wtc%google.com
e5c9ed9cd3 Bug 469944: added -we4028, which makes it an error for a function's
declaration and definition to have different formal parameters.  This
matches GCC.  r=nelson.


git-svn-id: svn://10.0.0.236/trunk@256234 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-17 00:55:54 +00:00
aaronr%us.ibm.com
b3c1842ce6 [XForms] NPOTB xforms/schemavalidation crashes when loading xml file with a float data type. Bug 478105, p=philipp r=doronr+aaronr
git-svn-id: svn://10.0.0.236/trunk@256233 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-16 19:00:32 +00:00
wtc%google.com
221c604a05 Bug 453234: removed the unused variable 'num' in SEED_Encrypt and
SEED_Decrypt.  TBR=glen.beasley.


git-svn-id: svn://10.0.0.236/trunk@256232 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-16 05:32:26 +00:00
nelson%bolyard.com
80b9a23230 fix const errors in NSS for bug #469944, r=wtc
git-svn-id: svn://10.0.0.236/trunk@256231 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-16 03:47:21 +00:00
wtc%google.com
c1adc95f3c Bug 278132: 1. Carried over an ifparser.c change from mozilla-central:
Brad Lassey - bug 463561 - mkdepend crashes while compiling freetype
2. Renamed the 'emxinc' variable 'includepath'.
r=nelson.


git-svn-id: svn://10.0.0.236/trunk@256230 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 19:40:55 +00:00
wicked%sci.fi
0bc62f2def Bug 333648: Add flag change to activity log and bugmail when only setter is changed - Patch by Teemu Mannermaa <wicked@sci.fi> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256229 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 09:45:44 +00:00
wtc%google.com
7d0bb30b69 Bug 457045: Use PATH_MAX instead of NAME_MAX*2 for the size of a buffer
that holds a file pathname, and include <limits.h> for the macro's
definition. r=nelson.


git-svn-id: svn://10.0.0.236/trunk@256228 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 06:14:28 +00:00
wtc%google.com
d13c90f4b1 Bug 478171: moved the common code in WIN95.mk and WINNT.mk to WIN32.mk.
r=nelson.
Modified Files:
	WIN32.mk WIN95.mk WINNT.mk


git-svn-id: svn://10.0.0.236/trunk@256227 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 05:51:10 +00:00
cltbld
e6a9216b48 Automated update from host egg.build.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@256226 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 05:22:01 +00:00
cltbld
178b25d5cc Automated update from host egg.build.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@256225 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 05:02:01 +00:00
cltbld
6b344b9f5c Automated update from host egg.build.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@256224 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 04:22:01 +00:00
cltbld
b46e768884 Automated update from host egg.build.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@256223 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 03:52:01 +00:00
nelson%bolyard.com
27cc855344 Bug 477186: Infinite loop in CERT_GetCertChainFromCert, r=wtc
git-svn-id: svn://10.0.0.236/trunk@256222 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 03:45:48 +00:00
cltbld
513ad4cf40 Automated update from host egg.build.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@256221 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 03:02:02 +00:00
nelson%bolyard.com
bff4fdd20e Bug 278132: NSS makefile dependencies broken, mkdepend missing, r=wtc
git-svn-id: svn://10.0.0.236/trunk@256220 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 01:06:13 +00:00
nelson%bolyard.com
ed6b18976b Original files copied from mozilla/config/mkdepend.
git-svn-id: svn://10.0.0.236/trunk@256219 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-14 00:37:01 +00:00
nelson%bolyard.com
a9161787ad Bug 467553: Individual NSS test scripts do not run stand-alone, and cannot
reuse HOSTDIR.  r=slavo


git-svn-id: svn://10.0.0.236/trunk@256218 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-13 23:29:32 +00:00
wtc%google.com
619463d877 Bug 478171: First step towards consolidating the *.mk files for the WINNT
and WIN95 OS_TARGETs.  Added WINNT and WIN95 to the list of OS_TARGETs that
have a single .mk file used by all versions of the OS.  WIN954.0.mk is
renamed WIN95.mk, and all WINNTx.y.mk files are replaced by WINNT.mk, which
is based on WINNT6.0.mk.  r=nelson.
Modified Files:
	config.mk
Added Files:
	WIN95.mk WINNT.mk
Removed Files:
	WIN954.0.mk WINNT3.51.mk WINNT4.0.mk WINNT5.0.mk WINNT5.1.mk
	WINNT5.2.mk WINNT6.0.mk


git-svn-id: svn://10.0.0.236/trunk@256217 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-13 17:14:05 +00:00
catlee%mozilla.com
52278d9f6e Bug 474589 - Removing tryserver configs that were imported into mercurial
git-svn-id: svn://10.0.0.236/trunk@256216 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-13 15:07:58 +00:00
catlee%mozilla.com
bf9fee3b99 Bug 474589 Removing directories that were imported into mercurial
git-svn-id: svn://10.0.0.236/trunk@256215 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-13 15:03:56 +00:00
despotdaemon
ff3f6ae72f Pseudo-automatic update of changes made by honzab.moz@firemni.cz.
git-svn-id: svn://10.0.0.236/trunk@256214 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-13 14:23:37 +00:00
nelson%bolyard.com
d2e7f8c5a8 Bug 441321: Tolerate incorrect encoding of DSA signatures in SSL 3.0 handshakes
r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256213 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-13 05:23:23 +00:00
glen.beasley%sun.com
a78d5e2c4c 457045 fix MAC OS X tinderbox bob will review
git-svn-id: svn://10.0.0.236/trunk@256212 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-13 02:52:24 +00:00
glen.beasley%sun.com
08d84ee700 457045 solaris compile fix for DRBG r=bob
git-svn-id: svn://10.0.0.236/trunk@256211 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-13 01:35:33 +00:00
rrelyea%redhat.com
4d45df1688 Make tinderbox happy..
(solaris had a different readdir_r interface)


git-svn-id: svn://10.0.0.236/trunk@256210 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-13 00:41:13 +00:00
rrelyea%redhat.com
cb6d99f322 Fix Solaris build failure.
git-svn-id: svn://10.0.0.236/trunk@256209 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 23:28:09 +00:00
rrelyea%redhat.com
bf0eae39b0 Bug 457045 - Implement one of the DRBGs (PRNGs) specified in NIST SP 800-90 (edit)
Update fipstest for new drb algorithm.
r=wtc


git-svn-id: svn://10.0.0.236/trunk@256208 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 22:59:06 +00:00
rrelyea%redhat.com
64367b8b59 Bug 457045 Implement one of the DRBGs (PRNGs) specified in NIST SP 800-90
Impements DRBG_256 r=nelson with comments incorporated from wtc.


git-svn-id: svn://10.0.0.236/trunk@256207 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 22:48:53 +00:00
ccooper%deadsquid.com
3897e1b94d b=451392
r=bhearsum
- checkout release tools (l10nverify) from hg rather than CVS
- fixup Thunderbird hg repo paths


git-svn-id: svn://10.0.0.236/trunk@256206 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 19:27:33 +00:00
mkanat%bugzilla.org
5a3c075d75 Bug 476622: Assure that mod_perl children always receive a different srand() seed
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=gozer, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256205 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 19:17:23 +00:00
mkanat%bugzilla.org
ac0169834b Bug 464187: Make the text inputs in the show_bug edit form grow with the window
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=pyrzak, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256204 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 19:04:55 +00:00
alexei.volkov.bugs%sun.com
ddd6d9fd81 476979 - Add cert chain tests that will do cert validation for different ku/eku. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256203 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 17:17:48 +00:00
glen.beasley%sun.com
7cfe73b2b7 remove the word proprietary r=mkaply
git-svn-id: svn://10.0.0.236/trunk@256202 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 15:58:25 +00:00
mkanat%bugzilla.org
ab9754317e Bug 476090: Allow users to log-in from toolbar
Patch By Guy Pyrzak <guy.pyrzak@gmail.com> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256201 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 06:29:14 +00:00
guy.pyrzak%gmail.com
10fb0a8a31 Bug 477391: The "Commit" and "Move to..." buttons at the top of show_bug should only be displayed if the user is logged in
Patch By Guy Pyrzak <guy.pyrzak@gmail.com> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256200 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 05:20:05 +00:00
reed%reedloden.com
a9cce36616 s/new Account/New Account/ on new index page in order to make the text grammatically correct. [r=mkanat@IRC]
git-svn-id: svn://10.0.0.236/trunk@256199 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 02:37:05 +00:00
mkanat%bugzilla.org
fc555ebb09 The new Dusk index.css was missing from the checkin of bug 475063 because it was still listed in .cvsignore.
git-svn-id: svn://10.0.0.236/trunk@256198 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 02:17:56 +00:00
mkanat%bugzilla.org
139350cec8 Add the right images for bug 475063.
git-svn-id: svn://10.0.0.236/trunk@256197 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 01:11:26 +00:00
mkanat%bugzilla.org
0b1de8f9cb The wrong homepage images were checked in.
git-svn-id: svn://10.0.0.236/trunk@256196 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 01:03:23 +00:00
mkanat%bugzilla.org
ce293e4e53 Bug 475063: Make the logged-out index.cgi simpler
Patch By Guy Pyrzak <guy.pyrzak@gmail.com> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256195 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 00:46:59 +00:00
alexei.volkov.bugs%sun.com
cc1cfc0e4d 477777 - Selfserv crashed in client/server tests. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256194 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-12 00:23:41 +00:00
mkanat%bugzilla.org
3dc79db2ea Bug 375382: When viewing a bug, make obsolete attachments hidden by default
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256192 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-11 20:30:32 +00:00
mkanat%bugzilla.org
a2b00156cd Bug 475151: Refactor the XML-RPC server stuff out of Bugzilla::WebService
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256191 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-11 20:23:34 +00:00
mkanat%bugzilla.org
4383b57173 Bug 376673: Add a simple version of the bug entry form (enter_bug.cgi)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=pyrzak, r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256190 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-11 19:41:28 +00:00
lpsolit%gmail.com
ff07fa802b Bug 341542: Include timestamp of query execution in programmatic search output (RDF) - Patch by Frank Becker <Frank@Frank-Becker.de> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256189 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-11 15:45:27 +00:00
bhearsum%mozilla.com
1bb2587a75 Backing out bug 477768 because it doesn't work
git-svn-id: svn://10.0.0.236/trunk@256188 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-11 15:38:11 +00:00
bhearsum%mozilla.com
e3433d27e8 bug 477768: Add nagios monitoring for l10n builds. r=l10n,ccooper
git-svn-id: svn://10.0.0.236/trunk@256187 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-11 15:27:36 +00:00
wtc%google.com
b5aca4a11c Bug 461270: removed more redundancies between DSO_LDOPTS and LDFLAGS.
git-svn-id: svn://10.0.0.236/trunk@256183 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-11 05:20:26 +00:00
despotdaemon
20d14e0872 Pseudo-automatic update of changes made by wtc@google.com.
git-svn-id: svn://10.0.0.236/trunk@256181 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-10 22:56:27 +00:00
despotdaemon
6cde9ddd7f Pseudo-automatic update of changes made by wtc@google.com.
git-svn-id: svn://10.0.0.236/trunk@256180 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-10 22:54:32 +00:00
nboyd%atg.com
6c0e05102e Come up to current draft behavior for attempting to set a property that has
a getter but not a setter: throw a TypeError.


git-svn-id: svn://10.0.0.236/trunk@256178 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-10 21:32:31 +00:00
alqahira%ardisson.org
2deef7733e Bug 471213 - [10.4] Background tabs draw incorrectly when dragging. Patch by Sean Murphy <murph@seanmurph.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@256177 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-10 20:26:53 +00:00
bhearsum%mozilla.com
afd4c58589 bug 472604: tryserver seems to ignore patches with custom hg repo. r=catlee
git-svn-id: svn://10.0.0.236/trunk@256176 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-10 16:41:01 +00:00
wtc%google.com
f09875e94f Dummy whitespace change to force NSS to be rebuilt.
git-svn-id: svn://10.0.0.236/trunk@256174 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-10 16:08:37 +00:00
nelson%bolyard.com
c01345b4b0 Bug 461270: linking NSPR shared libs should use LDFLAGS
Patch contributed by Murali Nandigama <mnandigama@mozilla.com>, r=wtc


git-svn-id: svn://10.0.0.236/trunk@256172 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-10 07:29:50 +00:00
nelson%bolyard.com
3d02cf2df6 Bug 469944: when built with Microsoft compilers, serious NSS errors are ignored!
r=wtc


git-svn-id: svn://10.0.0.236/trunk@256171 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 22:59:26 +00:00
nelson%bolyard.com
329f3ed879 Bug 466745: random number generator fails on windows ce. r=wtc
git-svn-id: svn://10.0.0.236/trunk@256170 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 22:38:25 +00:00
lpsolit%gmail.com
d8dc572e54 Fix bustage
git-svn-id: svn://10.0.0.236/trunk@256169 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 21:26:32 +00:00
lpsolit%gmail.com
e3a7ec281f Bug 477662: Display attachment flags as read-only to logged out users - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@256168 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 21:07:14 +00:00
wtc%google.com
ce383f9ad5 Bug 350: fixed PR_ExplodeTime to work outside the 1901-2099 range of
years.  The patch is contributed by Samuel Sieb <samuel@sieb.net> and
improved by Nelson Bolyard <nelson@bolyard.me> and Ryan VanderMeulen
<ryanvm@gmail.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256166 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 19:45:02 +00:00
lpsolit%gmail.com
068d4cbfd6 Bug 477513: md5_hex() fails if a saved search has UTF8 characters in it - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256165 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 19:20:40 +00:00
wtc%google.com
f2a337fef2 Bug 456449: The WinCE system header also defines the WIN32_FIND_DATAA
structure even through it's not used.  So we need to remove our own
definition of WIN32_FIND_DATAA.  The patch is contributed by Mark Finkle
<mark.finkle@gmail.com>.  r=wtc,blassey.


git-svn-id: svn://10.0.0.236/trunk@256164 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 19:02:00 +00:00
alexei.volkov.bugs%sun.com
88f45e0716 473944 - Trust anchor is not trusted when requireFreshInfo flag is set. r=nelson.
git-svn-id: svn://10.0.0.236/trunk@256163 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 18:53:00 +00:00
nboyd%atg.com
95dbe8c9ae Add test for access to a method with the same name as a field with
Context.FEATURE_ENHANCED_JAVA_ACCESS enabled.


git-svn-id: svn://10.0.0.236/trunk@256162 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 18:40:02 +00:00
nboyd%atg.com
7a278331cf Fix propagated from 1.7R2 release branch.
git-svn-id: svn://10.0.0.236/trunk@256161 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 16:33:30 +00:00
nboyd%atg.com
0bee8a3157 Remove reference to unused xbean.jar
git-svn-id: svn://10.0.0.236/trunk@256160 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 16:25:47 +00:00
nboyd%atg.com
1ff6d7fea0 Fix Bug 477604 - Array.concat causes ArrayIndexOutOfBoundException with non dense array
git-svn-id: svn://10.0.0.236/trunk@256159 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 16:25:06 +00:00
ccooper%deadsquid.com
58484b668b b=477382
- fix bogus link to edit_categories.cgi


git-svn-id: svn://10.0.0.236/trunk@256156 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 15:16:43 +00:00
nelson%bolyard.com
780198c71c Bug 469944: remove unnecessary casting of NULL from ckfw. r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@256155 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 07:55:53 +00:00
nelson%bolyard.com
66b256f7b3 Bug 468532: Trusted CA trust flags not being honored in CERT_VerifyCert
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@256154 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 07:51:30 +00:00
nelson%bolyard.com
fa1a979fd9 Bug 476126: CERT_AsciiToName fails when AVAs in an RDN are separated by '+'
r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@256153 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-09 01:16:41 +00:00
mkanat%bugzilla.org
c1235fcba2 Bug 371995: Allow the Product field to restrict visibility of custom fields
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256152 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-08 19:42:49 +00:00
gerv%gerv.net
00a3077ca9 Fix bustage in filterexceptions.pl.
git-svn-id: svn://10.0.0.236/trunk@256151 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-08 14:54:56 +00:00
gerv%gerv.net
845901a8c1 Bug 365521 and bug 365056: remove Netscape-specific parts of form, fix encodings of &, and update OS list. r=justdave, a=lpsolit.
git-svn-id: svn://10.0.0.236/trunk@256150 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-08 14:21:26 +00:00
alqahira%ardisson.org
426693e269 Bug 476038 - Upgradeto Flashblock 1.5.8 to pick up fix for bug 475842 (Internet Archive videos can't be started). r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256149 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-07 23:17:41 +00:00
nrthomas%gmail.com
63cc51b117 balsa-18branch is not Tier 1
git-svn-id: svn://10.0.0.236/trunk@256148 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-07 22:30:37 +00:00
wtc%google.com
412b91f895 Bug 473413: a minor tweak of comment.
git-svn-id: svn://10.0.0.236/trunk@256146 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-07 19:34:00 +00:00
wtc%google.com
4477f8fc28 Bug 456449: added a comment to note that the WIN32_FIND_DATAA structure
could be potentially defined to contain only the cFileName field that we
use.


git-svn-id: svn://10.0.0.236/trunk@256145 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-07 19:23:18 +00:00
wtc%google.com
b3fdd266b4 Bug 456449: checked in the rest of the WinMobile WinCE porting changes from
Brad Lassey <bugmail@lassey.us>.  I decided to take the approach of
creating the A functions for WinCE.  r=wtc.
Modified Files: _win95.h w95io.c


git-svn-id: svn://10.0.0.236/trunk@256144 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-07 19:04:18 +00:00
m_kato%ga2.so-net.ne.jp
5b214eeafb Bug 242926 - WinXP 64Bit Edition (AMD64/IA64) support for mozilla/directory/c-sdk, r=mcs
git-svn-id: svn://10.0.0.236/trunk@256143 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-07 07:55:04 +00:00
alqahira%ardisson.org
c685e77ba8 Bug 450542 - Need release-quality icons for content zoom toolbar buttons. Images by Philippe Wittenbergh <phiw@l-c-n.com>, r=ss
git-svn-id: svn://10.0.0.236/trunk@256142 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-07 04:27:41 +00:00
julien.pierre.boogz%sun.com
1a16c95154 Fix for bug 473413. Build problem with spaces in path names. r=wtc
git-svn-id: svn://10.0.0.236/trunk@256141 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-07 03:37:28 +00:00
anodelman%mozilla.com
66face0c39 Bug 474950 - logs of talos builds all look like they end with a networking problem
p=anodelman, r=aki


git-svn-id: svn://10.0.0.236/trunk@256140 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-07 00:56:25 +00:00
glen.beasley%sun.com
7d7bbdd653 3609656 remove incorrect deprecated comment from toString method r=self javadoc only
git-svn-id: svn://10.0.0.236/trunk@256139 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-06 20:09:22 +00:00
catlee%mozilla.com
3bb40303a5 Bug 462515 - Moving fx-linux-1.9-slave4, fx-win32-1.9-slave4 to production.
r=ccooper


git-svn-id: svn://10.0.0.236/trunk@256138 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-06 15:24:02 +00:00
wtc%google.com
beafcc98fc Bug 456449: made FlipSlashes and FlipSlashesW static.
git-svn-id: svn://10.0.0.236/trunk@256137 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-06 06:15:08 +00:00
wtc%google.com
d4ed361282 Bug 456449: allows configure to produce useful debug symbols for WinCE.
The patch is contributed by Brad Lassey <bugmail@lassey.us>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256135 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-06 02:38:14 +00:00
wtc%google.com
5f14ebffd8 Bug 456449: checked in some WinMobile WinCE porting changes from Brad
Lassey <bugmail@lassey.us>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256134 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-06 02:25:23 +00:00
wtc%google.com
f8ce6111db Bug 456449: checked in WinMobile WinCE porting changes from Brad Lassey
<bugmail@lassey.us>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256133 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-06 00:52:53 +00:00
wtc%google.com
12150d4cdc Bug 476996: deleted code that references old XP_MAC files that have been
cvs-removed.  r=julien.pierre.
Modified Files: prinet.h prosdep.h prpolevt.c prsocket.c


git-svn-id: svn://10.0.0.236/trunk@256132 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-06 00:15:41 +00:00
wtc%google.com
e9aef677e7 Bug 456449: checked in some more WinMobile WinCE porting changes from
Brad Lassey <bugmail@lassey.us>.  r=wtc.
Modified Files: prio.c prlog.c


git-svn-id: svn://10.0.0.236/trunk@256131 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-06 00:12:20 +00:00
wtc%google.com
ea95889f9f Bug 456449: Renamed the OutputDebugString compatibility macro because the
source code in prlog.c is now calling OutputDebugStringA.  The patch is
contributed by Peter Weilbacher <mozilla@Weilbacher.org>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256130 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 23:45:19 +00:00
wtc%google.com
bf924f4839 Bug 476996: removed files that were only used by the obsolete XP_MAC build.
Removed Files: pr/include/md/_macos.h and all the files in pr/src/md/mac/


git-svn-id: svn://10.0.0.236/trunk@256129 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 23:28:33 +00:00
mkanat%bugzilla.org
9681318edd There was one too many =back's in the last patch, tests failed.
git-svn-id: svn://10.0.0.236/trunk@256128 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 23:18:37 +00:00
dkl%redhat.com
b5dcd0461c Bug 458853 - Add a "permissive" argument that allows Bug.get to return even if there are errors
Updated method history to show new changes.


git-svn-id: svn://10.0.0.236/trunk@256127 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 22:54:03 +00:00
dkl%redhat.com
17f311c1a0 Bug 458853 - Add a "permissive" argument that allows Bug.get to return even if there are errors
Patch by Noura Nelhawary <nelhawar@redhat.com> - r=dkl/mkanat a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256126 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 22:32:32 +00:00
alexei.volkov.bugs%sun.com
bb3b9dbfcf 474777 - Wrong deallocation when modifying CRL. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256125 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 21:50:18 +00:00
nboyd%atg.com
63fa817a21 Fix Bug 477076 - codeBug(FAILED ASSERTION) when type "1 <<<" in the shell
git-svn-id: svn://10.0.0.236/trunk@256124 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 21:38:44 +00:00
nelson%bolyard.com
96835b4287 Bug 371522: Auto-Update of CRLs stops after first update, r=julien.pierre
git-svn-id: svn://10.0.0.236/trunk@256123 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 20:31:26 +00:00
ccooper%deadsquid.com
3ad33c1fcb b=462252
- add text about changing db name


git-svn-id: svn://10.0.0.236/trunk@256122 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 20:13:06 +00:00
nelson%bolyard.com
f83c095af0 Bug 476126: CERT_AsciiToName fails when AVAs in an RDN are separated by '+'
r=julien.pierre


git-svn-id: svn://10.0.0.236/trunk@256121 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 19:24:18 +00:00
ghendricks%novell.com
070b5673ee Bug 476678 - Rich clients unable to update bugs need security token included in bug xml
patch by ghendricks@novell.com r=LpSolit a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256120 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 18:40:14 +00:00
lpsolit%gmail.com
c4c45cc16c Bug 476889: importxml.pl crashes when importing bugs (Date::Parse::strptime() leave seconds undefined in some cases) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256119 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 18:37:19 +00:00
ghendricks%novell.com
877ce9124a Bug 476943 - Edit multiple issues token after switching to shadow DB
patch by ghendricks@novell.com r=mkanat a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256118 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 17:13:42 +00:00
mkaply%us.ibm.com
4adf46bd77 CCK - NPOB - Fix separator and some positioning
git-svn-id: svn://10.0.0.236/trunk@256116 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 16:22:00 +00:00
wtc%google.com
26166ed663 Bug 475090: Backed out the "recurse into directories" part of the previous
checkin, which caused shlibsign to crash while signing softokn3.dll.


git-svn-id: svn://10.0.0.236/trunk@256115 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 15:26:40 +00:00
slavomir.katuscak%sun.com
38ef5a36cd Bug 473790: Adding CRL funcionality + some tests. r=alexei
git-svn-id: svn://10.0.0.236/trunk@256114 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 13:31:53 +00:00
peterv%propagandism.org
c6d219246d Fix for bug 474456. r/sr=bz, a=dveditz.
git-svn-id: svn://10.0.0.236/trunk@256112 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 09:44:52 +00:00
wtc%google.com
3b8c240fee Bug 466745: Use <> instead of "" for the system header shlobj.h. Changed
EnumSystemFilesInFolder to recurse into directories.  The patch is
contributed by Brad Lassey <bugmail@lassey.us>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256111 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-05 05:41:16 +00:00
wtc%google.com
748efd2f3f Bug 456449: checked in WinMobile WinCE porting changes from Brad Lassey
<bugmail@lassey.us>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@256109 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 23:50:17 +00:00
wtc%google.com
d85ded5f49 Bug 456449: pass INVALID_HANDLE_VALUE instead of 0, 1, and 2 to the
PR_AllocFileDesc calls for _pr_stdin, _pr_stdout, and _pr_stderr on WinCE.
r=blassey.


git-svn-id: svn://10.0.0.236/trunk@256108 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 23:47:33 +00:00
wtc%google.com
9406b3441f Bug 456449: checked in some more WinMobile WinCE porting changes from
Brad Lassey <bugmail@lassey.us>.  r=wtc.
Modified Files: Makefile.in ntsec.c objs.mk w32ipcsem.c w32shm.c w95sock.c
                w95thred.c


git-svn-id: svn://10.0.0.236/trunk@256107 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 23:44:01 +00:00
dolske%mozilla.com
15dac3ff01 Bug 472064 - Satchel needs better upgrade/downgrade logic. r=gavin, a1907=dveditz
git-svn-id: svn://10.0.0.236/trunk@256106 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 23:36:07 +00:00
alexei.volkov.bugs%sun.com
15dbc5c4db 470351 - crlutil build fails on Windows because it calls undeclared isatty. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256105 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 23:23:40 +00:00
despotdaemon
bf4f9a8007 Pseudo-automatic update of changes made by ptran@mozilla.com.
git-svn-id: svn://10.0.0.236/trunk@256104 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 22:57:42 +00:00
despotdaemon
18fd24a911 Pseudo-automatic update of changes made by aravind@mozilla.com.
git-svn-id: svn://10.0.0.236/trunk@256103 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 22:54:45 +00:00
despotdaemon
f63b151d8a Pseudo-automatic update of changes made by ptran@mozilla.com.
git-svn-id: svn://10.0.0.236/trunk@256102 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 22:53:23 +00:00
wtc%google.com
f19ece9f1d Bug 456449: checked in some more WinMobile WinCE porting changes from
Brad Lassey <bugmail@lassey.us>.  r=wtc.
Modified Files: pr/src/Makefile.in prlink.c


git-svn-id: svn://10.0.0.236/trunk@256101 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 22:47:01 +00:00
despotdaemon
1b2e5cf0c1 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@256100 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 21:49:15 +00:00
wtc%google.com
636a46ae29 Bug 476926: Removed LoadLibraryW and CP_UTF8 emulation for Windows 9x.
TBR=nelson.


git-svn-id: svn://10.0.0.236/trunk@256099 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 21:28:22 +00:00
mkaply%us.ibm.com
3dc13e1d98 CCK - NPOB - can't use OrgName as service name since it might have invalid JS chars
git-svn-id: svn://10.0.0.236/trunk@256098 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 20:32:48 +00:00
mkaply%us.ibm.com
3f516cecbd NPOB CCK - fix menu click
git-svn-id: svn://10.0.0.236/trunk@256092 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 18:24:22 +00:00
wtc%google.com
987ddff467 Bug 456449: Checked in some more WinMobile WinCE porting changes from
Brad Lassey <bugmail@lassey.us>.  r=wtc.
Modified Files: pr/src/Makefile.in prfile.c prio.c prlog.c


git-svn-id: svn://10.0.0.236/trunk@256091 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 17:52:11 +00:00
mkaply%us.ibm.com
9d2ab5d90b Forgot to include new XUL file in chrome.manifest
git-svn-id: svn://10.0.0.236/trunk@256090 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 17:47:14 +00:00
mkaply%us.ibm.com
41b167405b Forgot to include new file in packaging - CCK - NPOB
git-svn-id: svn://10.0.0.236/trunk@256089 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 16:54:18 +00:00
mark.finkle%gmail.com
179bee7574 b=471023, r=bhearsum. Do XULRunner 1.9.0.6 release
git-svn-id: svn://10.0.0.236/trunk@256087 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 16:13:04 +00:00
bzbarsky%mit.edu
1750babb9c Bug 474406. Revoke our pending constructor processing event if our document goes away. r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256086 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 14:47:58 +00:00
dveditz%cruzio.com
4b501fc608 bug 452979 encode whitespace characters, patch by Masahiro Yamada, r=gavin.sharp, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256085 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 06:47:13 +00:00
jst%mozilla.org
7ecd2479d7 Backing out unintentional change.
git-svn-id: svn://10.0.0.236/trunk@256084 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 02:26:32 +00:00
jst%mozilla.org
cc0d932353 Fixing bug 474022. Make sure we always stop plugins, no matter how they were started. r=smichaud@pobox.com, sr=bzbarsky@mit.edu, a=ss
git-svn-id: svn://10.0.0.236/trunk@256083 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 02:24:44 +00:00
dwitte%stanford.edu
1ba8d158fa bump cookie limit from 1000 to 3000 to reduce occurrence of cookie purges. b=444600, r+sr=mconnor, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256082 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 02:17:52 +00:00
roc+%cs.cmu.edu
9a139513ea Bug 435209. r=longsonr,sr=roc,a=ss,patch by Jeff Schiller
git-svn-id: svn://10.0.0.236/trunk@256081 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-04 00:51:05 +00:00
mrbkap%gmail.com
dc99ed5649 Bug 467499 - Pass the proper size argument to ResizeSlots. r=shaver/crowder a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256080 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 23:21:10 +00:00
julien.pierre.boogz%sun.com
b8cbbd4480 Fix build breakage on Windows.
git-svn-id: svn://10.0.0.236/trunk@256079 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 23:18:48 +00:00
mkaply%us.ibm.com
ac783da661 NPOB - CCK - general cleanup, rewrite service file, remove unused stuff, make things better on mac, bump version to FFF3
git-svn-id: svn://10.0.0.236/trunk@256078 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 22:11:19 +00:00
mkaply%us.ibm.com
eb790cc0cc CCK - NPOB - Add support for cookie allow and xpi/popup/cookie deny
git-svn-id: svn://10.0.0.236/trunk@256077 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 21:04:13 +00:00
bhearsum%mozilla.com
fb9038b607 bug 475748: add new slaves to tryserver. r=asasaki
git-svn-id: svn://10.0.0.236/trunk@256076 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 19:56:42 +00:00
smichaud%pobox.com
5c2c9d750d [10.5] Crash [@ nsAppShell::~nsAppShell] when quitting Camino 2.0b1. b=471948 r=josh sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256075 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 17:09:29 +00:00
benjamin%smedbergs.us
1892f9c9ba Bug 414540 - RDFXMLDataSource should reject cross-domain redirects. Original patch by Neil Deakin, fixed up with better testing, r+sr=bz a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256074 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 15:01:10 +00:00
Olli.Pettay%helsinki.fi
5665398acc Bug 471166, r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256073 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 14:18:47 +00:00
Olli.Pettay%helsinki.fi
70854ded69 Bug 472502, r+sr=bz, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256072 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 14:12:45 +00:00
Olli.Pettay%helsinki.fi
cdcbf2e682 Bug 436965, r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256071 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 14:09:21 +00:00
Olli.Pettay%helsinki.fi
cbf61ddd5b Bug 466057, r+sr=bz, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256070 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 14:04:22 +00:00
mkanat%bugzilla.org
b4aa90ab89 Bump version number post-release.
git-svn-id: svn://10.0.0.236/trunk@256069 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 10:40:17 +00:00
mkanat%bugzilla.org
30d0e367a2 Bump version number for 3.3.3.
git-svn-id: svn://10.0.0.236/trunk@256067 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 10:03:47 +00:00
mkanat%bugzilla.org
b92fe16d40 Bug 476594: [SECURITY] Calling srand() at startup time in mod_perl makes the same token be generated over and over
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256062 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 10:00:14 +00:00
mkanat%bugzilla.org
69486c53f1 The release notes contained the raw word "bug".
git-svn-id: svn://10.0.0.236/trunk@256061 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 09:29:42 +00:00
reed%reedloden.com
c6cb6a40d4 Bug 457521 - [p=igor@mir2.org (Igor Bukanov) r=crowder a=dveditz]
git-svn-id: svn://10.0.0.236/trunk@256058 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 09:25:56 +00:00
mkanat%bugzilla.org
55730b7bcf Bug 476612: Release Notes for Bugzilla 3.2.2
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave


git-svn-id: svn://10.0.0.236/trunk@256056 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 09:04:22 +00:00
julien.pierre.boogz%sun.com
c60c10b0b0 Fix for bug 473505 . softoken's C_Initialize and C_Finalize should succeed after a fork in a child process. r=relyea, nelson
git-svn-id: svn://10.0.0.236/trunk@256055 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 05:34:47 +00:00
dbaron%dbaron.org
453517be42 Keep old rule trees around until they are no longer referenced. (Bug 475128) r+sr=bzbarsky a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256054 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 04:17:11 +00:00
dbaron%dbaron.org
f9bdb8c46e Add assertions to EndReconstruct that all style contexts have been reresolved. (Bug 473871) r+sr=bzbarsky a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256053 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 04:16:20 +00:00
dbaron%dbaron.org
c55e7c1bed Create legends in CreateContinuingFrame. (Bug 468578) r+sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256052 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 04:14:43 +00:00
dbaron%dbaron.org
97229e7f9a Clear back-pointer in more cases. (Bug 475136) r+sr=bzbarsky a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256051 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 04:13:58 +00:00
jdaggett%mozilla.com
8bea0d6ace Bug 425844 - clean up menu state after Carbon print dialogs. r=josh, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256050 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 04:12:15 +00:00
mkanat%bugzilla.org
0febd7a927 Bump version number post-release.
git-svn-id: svn://10.0.0.236/trunk@256049 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 01:27:02 +00:00
jonas%sicking.cc
da1877ac30 Bug 459470: Need to set documentURI and baseURI correctly for XHR documents. r/sr=bz a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256048 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 00:48:54 +00:00
wtc%google.com
4ee2347279 Bug 466745: removed an unnecessary memset call. Cited the WinCE FIPS
Security Policy to support the use of CeGenRandom.  r=nelson.


git-svn-id: svn://10.0.0.236/trunk@256047 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-03 00:22:28 +00:00
dholbert%cs.stanford.edu
91fef38b92 Comment-only fix, to get another Linux unittest cycle & see if it turns green.
git-svn-id: svn://10.0.0.236/trunk@256046 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 23:47:28 +00:00
mkanat%bugzilla.org
44d26ab005 Bump version number for 3.3.2.
git-svn-id: svn://10.0.0.236/trunk@256037 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 23:27:38 +00:00
alexei.volkov.bugs%sun.com
11f533092d 475454 - vfychain requireFreshInfo incorrectly claims "revoked". r=nelson
git-svn-id: svn://10.0.0.236/trunk@256036 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 23:14:42 +00:00
mkanat%bugzilla.org
45043945d1 The URL to the Security Advisory was incorrect.
git-svn-id: svn://10.0.0.236/trunk@256032 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 22:59:59 +00:00
dholbert%cs.stanford.edu
1d77f592b4 Bug 471594. In ContentInserted, when we have an insertionPoint and we take the isAppend path, use the insertionPoint's last continuation as the place to append so we don't insert the new frames in the middle of some other content's continuation chain. Patch by Robert O'Callahan <robert@ocallahan.org> r+sr=bzbarsky a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256031 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 22:35:29 +00:00
nelson%bolyard.com
509c2c8a64 Bug 466745: random number generator fails on windows ce
patch by Brad Lassey <bugmail@lassey.us>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@256030 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 21:57:26 +00:00
lpsolit%gmail.com
c29dffd6c2 Bug 472362: [SECURITY] Malicious attachments can change your user settings (user + email prefs, shared searches) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256029 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 19:26:35 +00:00
lpsolit%gmail.com
054bb4fdd3 Bug 472206: [SECURITY] Bugzilla should optionally not allow the user to view possibly harmful attachments - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat r=justdave a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256027 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 19:12:26 +00:00
lpsolit%gmail.com
9c7acd42c6 Bug 466692: [SECURITY] keywords and unused flag types can be deleted by bypassing the token check - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256026 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 19:04:33 +00:00
lpsolit%gmail.com
738716c0f2 Bug 466748: [SECURITY] Shared/saved searches can be deleted without user confirmation using predictable URL - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256025 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 18:53:58 +00:00
lpsolit%gmail.com
4ae9e77221 I almost forgot the fix on checkin for bug 26257
git-svn-id: svn://10.0.0.236/trunk@256023 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 18:39:14 +00:00
catlee%mozilla.com
19c6a8b040 Bug 474348 - change self.submit to self.submitBuildSet. r=anodelman
git-svn-id: svn://10.0.0.236/trunk@256022 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 18:37:40 +00:00
lpsolit%gmail.com
2e9e523f76 Second part of bug 26257: [SECURITY] Bugzilla should prevent malicious webpages from making bugzilla users submit changes to bugs
git-svn-id: svn://10.0.0.236/trunk@256021 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 18:37:24 +00:00
lpsolit%gmail.com
a78c19e2bb Bug 26257: [SECURITY] Bugzilla should prevent malicious webpages from making bugzilla users submit changes to bugs - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256020 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 18:34:40 +00:00
alqahira%ardisson.org
e169326a2d Bug 358299 - Fix the static build for anti-phishing detection. r=murph, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@256019 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 18:32:01 +00:00
lpsolit%gmail.com
0c29cf31b2 Bug 38862: [SECURITY] attachments should be at a different hostname - Patch by Byron Jones <bugzilla@glob.com.au> and Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@256018 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 18:26:26 +00:00
mstange%themasta.com
a2ff026794 Bug 312852 - Tooltip should not appear during a drag, r=smaug sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@256017 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 16:03:32 +00:00
ghendricks%novell.com
e6b11e4717 DB Error in upgrade due to mismatched column
git-svn-id: svn://10.0.0.236/trunk@256016 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 16:03:03 +00:00
marco.zehe%googlemail.com
c1fcf08871 bug 458871 - QueryService always returns an object while it should check service ID, r=aaronlev, a1.9.0.7=dveditz
git-svn-id: svn://10.0.0.236/trunk@256015 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 08:59:47 +00:00
marco.zehe%googlemail.com
6e21bbfdbd bug 457166 - Conversation links in GMail Inbox do not expose an action, cannot be activated by screen readers, patch by Alexander Surkov <surkov.alexander@gmail.com>, r=aaronlev, r=MarcoZ, a1.9.0.7=dveditz
git-svn-id: svn://10.0.0.236/trunk@256014 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-02 08:49:26 +00:00
alexei.volkov.bugs%sun.com
9c151e39ec Fix for tests failures caused by integration of the patch for bug 461547.
git-svn-id: svn://10.0.0.236/trunk@256012 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-01 09:15:32 +00:00
mkanat%bugzilla.org
a1448dbdc0 Bug 472078: Release Notes for Bugzilla 3.2.1
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit


git-svn-id: svn://10.0.0.236/trunk@256010 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-31 03:28:29 +00:00
mkanat%bugzilla.org
ca71cd594d SnowyOwl noticed that the word "Bug" appeared raw in the title of some errors I checked in as part of bug 472872.
git-svn-id: svn://10.0.0.236/trunk@256009 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-31 03:26:56 +00:00
ghendricks%novell.com
b78a028ed0 Bump version in templates
git-svn-id: svn://10.0.0.236/trunk@256006 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-31 00:46:53 +00:00
alexei.volkov.bugs%sun.com
49a18c3067 461547 - delay child certificate signature check until after trusted anchor is found. r=nelson
git-svn-id: svn://10.0.0.236/trunk@256005 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-31 00:28:41 +00:00
ghendricks%novell.com
647c26cc7e Bug 466605 - User Lookup fields are missing in IE7
git-svn-id: svn://10.0.0.236/trunk@256004 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 23:59:13 +00:00
ghendricks%novell.com
49d180b3c2 Bug 472247 - html <title> is not set
git-svn-id: svn://10.0.0.236/trunk@256003 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 23:48:05 +00:00
ghendricks%novell.com
2e8299347d Bug 472896 - Opening multiple popup forms causes wrong behaviour of Combos with default id's
patch by tdaitx@gmail.com r=ghendricks


git-svn-id: svn://10.0.0.236/trunk@256002 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 23:32:20 +00:00
ghendricks%novell.com
0494944d5a Bug 472718 - deleting test run through ui breaks display of bugs linked to test cases
git-svn-id: svn://10.0.0.236/trunk@256001 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 23:25:37 +00:00
ghendricks%novell.com
4ccba632fd Hook was renamed.
git-svn-id: svn://10.0.0.236/trunk@256000 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 22:47:57 +00:00
ghendricks%novell.com
575e210711 Bug 475445 - Testopia.css Style Sheet overrides Bugzilla's P1-Critical Reds, and ENH Grays
git-svn-id: svn://10.0.0.236/trunk@255999 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 22:32:18 +00:00
ghendricks%novell.com
b6ec74d9c9 Bug 473990 - Attachments not being passed correctly and showing corrupted
git-svn-id: svn://10.0.0.236/trunk@255998 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 22:15:58 +00:00
catlee%mozilla.com
3f48f03ed5 Bug 474348 - Updating talos try to buildbot 0.7.9. r=anodelman.
git-svn-id: svn://10.0.0.236/trunk@255997 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 20:14:10 +00:00
alexei.volkov.bugs%sun.com
a352dc86ab 461547 - delay child certificate signature check until after trusted anchor is found. r=julien
git-svn-id: svn://10.0.0.236/trunk@255996 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 19:54:45 +00:00
ghendricks%novell.com
06975bfdd7 Bug 475917 - checksetup.pl Key column 'default_tester_id' doesn't exist in table
git-svn-id: svn://10.0.0.236/trunk@255995 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 19:30:13 +00:00
despotdaemon
f726484f8c Pseudo-automatic update of changes made by aravind@mozilla.com.
git-svn-id: svn://10.0.0.236/trunk@255994 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 19:00:22 +00:00
ghendricks%novell.com
5aa4d88a03 Bug 475926 - Clicking on "File New Bug" link produces JS error
git-svn-id: svn://10.0.0.236/trunk@255993 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 18:54:31 +00:00
kairo%kairo.at
fb89704167 bug 467597 - [ja] Add Japanese locale (ja/ja-JP-mac) to Seamonkey/Chatzilla/Venkman all-locales file
git-svn-id: svn://10.0.0.236/trunk@255989 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 18:37:59 +00:00
bhearsum%mozilla.com
7f164350fc Update README in mozilla/tools/buildbot to point to new home (http://hg.mozilla.org/build/buildbot)
git-svn-id: svn://10.0.0.236/trunk@255988 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 15:24:08 +00:00
bhearsum%mozilla.com
70763d5246 Remove buildbotcustom files after they were migrated to Mercurial; add README with information.
git-svn-id: svn://10.0.0.236/trunk@255987 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 15:19:17 +00:00
catlee%mozilla.com
253c776215 Bug 474348 - Fixed typo (graph.m.o should have been graphs.m.o) r=anodelman
git-svn-id: svn://10.0.0.236/trunk@255986 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 15:08:31 +00:00
catlee%mozilla.com
9db2232a2f Bug 474348 - Upgrade to buildbot 0.7.9. r=anodelman
git-svn-id: svn://10.0.0.236/trunk@255985 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 14:03:12 +00:00
catlee%mozilla.com
dbe1b44bed Bug 473240 - add alwaysRun to count_and_reboot step. r=anodelman
git-svn-id: svn://10.0.0.236/trunk@255984 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 14:01:36 +00:00
slavomir.katuscak%sun.com
e8f28d8687 Replacing expired certificate, old one caused test failures after expired.
git-svn-id: svn://10.0.0.236/trunk@255983 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 13:26:33 +00:00
wtc%google.com
e5d5236619 Set NSPR version to 4.8 Beta.
Modified files: configure configure.in repackage.sh prinit.h vercheck.c


git-svn-id: svn://10.0.0.236/trunk@255980 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 01:37:07 +00:00
guy.pyrzak%gmail.com
7a72192623 Bug 344559: Add Commit Button below the top fields on show_bug.cgi
Patch By Guy Pyrzak <guy.pyrzak@gmail.com> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255979 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-30 00:51:01 +00:00
ccooper%deadsquid.com
f5d8cc4e67 b=467310
r=nthomas
- use pushRepo


git-svn-id: svn://10.0.0.236/trunk@255978 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-29 22:57:21 +00:00
mkaply%us.ibm.com
f1def4b266 New strings for update key changes
git-svn-id: svn://10.0.0.236/trunk@255977 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-29 21:55:39 +00:00
mkanat%bugzilla.org
4088e2081f Bug 219021: Only display email addresses to logged-in users
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255976 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-29 21:22:39 +00:00
lpsolit%gmail.com
fec656d62b Bug 473201: config.rdf.tmpl flag_type should include group information - Patch by Frank Becker <Frank@Frank-Becker.de> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255975 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-29 21:00:24 +00:00
mkaply%us.ibm.com
be21a54d99 CCK - Not part of build - sometimes install fails - appears related to slashes in path
git-svn-id: svn://10.0.0.236/trunk@255974 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-29 15:48:38 +00:00
mkaply%us.ibm.com
0f8bbf1b94 jar.mn for building locales - not part of build - cck
git-svn-id: svn://10.0.0.236/trunk@255973 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-29 15:33:17 +00:00
mkaply%us.ibm.com
f3a71c9b6d Not part of build - CCK changes to use internap ZIPWriter and to support update keys
git-svn-id: svn://10.0.0.236/trunk@255972 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-29 15:31:49 +00:00
alqahira%ardisson.org
054b5e14e7 Bug 358299 - Backend for anti-phishing detection. Patch by Sean Murphy <murph@seanmurph.com>, r=smorgan, sr=pink, a=ss for landing now
git-svn-id: svn://10.0.0.236/trunk@255971 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-29 04:05:46 +00:00
alexei.volkov.bugs%sun.com
64f72c6abd 473365 - Incompatible argument in pkix_validate.c r=nelson
git-svn-id: svn://10.0.0.236/trunk@255970 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-29 00:44:43 +00:00
alqahira%ardisson.org
17dc7272be Bug 474906 - camino.mk is obsolete; get rid of it. r=ted.mielczarek, a1.9.0.7=dveditz
git-svn-id: svn://10.0.0.236/trunk@255969 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-29 00:43:58 +00:00
alqahira%ardisson.org
f0e94e9948 Bug 475560 - Allow Growl to build with SDK settings pushed by the mozconfig. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255968 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 23:33:23 +00:00
lpsolit%gmail.com
5504b600cf Bug 471523: Cloning a bug copies the newest visible comment for Newest to Oldest comment order - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255967 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 23:29:19 +00:00
alqahira%ardisson.org
565fda390c Bug 475210 - URLs in tooltips need to be unescaped. r=hendy, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255966 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 21:35:52 +00:00
rrelyea%redhat.com
947d674de9 Arg... The backout command still needed a commit at the end.
This patch will fix tinderbox.

bob


git-svn-id: svn://10.0.0.236/trunk@255965 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 19:53:39 +00:00
bclary%bclary.com
13288f0116 bug 319980 - record failures.
bug 341821 - record failure.
bug 352026 - record mozilla-central failure.
bug 366601 - record failures.
bug 451974 - JavaScript Tests by Andreas Gal.
bug 455464 - record failures.
bug 455982 - record failures.
bug 458679 - record failures.
bug 458838 - JavaScript Test by Boris Zbarsky.
bug 459405 - JavaScript Test by Robert Sayre.
bug 461180 - add math-trace-tests.js to the JavaScript Test library.
bug 463783 - JavaScript Test by Gary Kwong and Jesse Ruderman.
bug 464862 - JavaScript Test by Jesse Ruderman.
bug 465236 - JavaScript Test by Jesse Ruderman.
bug 465377 - JavaScript Test by Igor Bukanov.
bug 465476 - JavaScript Test by Jeff Walden.
bug 465484 - JavaScript Test by Jesse Ruderman.
bug 469925 - record 1.9.0 failures.
bug 469927 - record 64bit jit vs. non-jit test failure due to lack of jit support.
bug 470223 - JavaScript Test by Edward Lee.
bug 470364 - JavaScript Test by Jeff Walden.
bug 470388 - record variety of darwin failures.
bug 470739 - JavaScript Test by Jesse Ruderman.
bug 471197 - JavaScript Test by Igor Bukanov.
bug 471450 - record mozilla-1.9.1 fix.
bug 471635 - JavaScript Test by Jesse Ruderman.
bug 472599 - JavaScript Test by Jesse Ruderman.
bug 474769 - JavaScript Test by Jesse Ruderman.
bug 474935 - JavaScript Test by Jesse Ruderman.


git-svn-id: svn://10.0.0.236/trunk@255963 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 16:55:46 +00:00
reed%reedloden.com
a0b7d1b1c5 Back out patches from bug 390556 because, frankly, the graph option doesn't work at all, and it caused bug 455111.
git-svn-id: svn://10.0.0.236/trunk@255961 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 09:50:07 +00:00
reed%reedloden.com
7772df0aaa Bug 474394 - "Encode more characters in url_encode()" [p=reed r=cls]
git-svn-id: svn://10.0.0.236/trunk@255960 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 08:14:49 +00:00
reed%reedloden.com
27390ce436 Bug 475659 - "Main waterfall table on tinderbox has no id" [p=reed r=cls]
git-svn-id: svn://10.0.0.236/trunk@255957 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 06:51:43 +00:00
alqahira%ardisson.org
0f36c38998 Bug 470231 - Auto-collapse bookmark manager folders expanded during bookmark dragging. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255953 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 05:06:05 +00:00
alqahira%ardisson.org
652c4165dd Bug 468255 - Pressing Esc when editing in the location bar containing unescaped UTF-8 restores escaped view. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255952 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 05:00:56 +00:00
alqahira%ardisson.org
4d57406071 Bug 474260 - Remove fake feeds: support from feedhandlers. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255951 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 04:51:54 +00:00
dkl%redhat.com
519626e505 Bug 470262 - Show alias if available in show_bug.cgi for bug dependencies, otherwise show bug id
Mistakenly checked in previous version of patch. This brings the changes up to date with the
approved patch. dkl


git-svn-id: svn://10.0.0.236/trunk@255950 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 04:12:41 +00:00
dkl%redhat.com
9be6db9ea2 Bug 470262 - Show alias if available in show_bug.cgi for bug dependencies, otherwise show bug id
Patch by David Lawrence <dkl@redhat.com> - r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255949 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 03:53:42 +00:00
bzbarsky%mit.edu
9c9adadbed Bug 474389. Fix the 'set up editor after this load' setup, which hasn't really
worked for a while, except for initial loads in the window. r+sr=peterv,
a=dveditz


git-svn-id: svn://10.0.0.236/trunk@255948 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 01:11:43 +00:00
bzbarsky%mit.edu
470bad61ea Bug 459443. Make sure to detach our editor even if we don't have a session
history entry, so that scripts will get correctly reenabled. r+sr=peterv,
a=dveditz


git-svn-id: svn://10.0.0.236/trunk@255947 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 01:08:15 +00:00
bzbarsky%mit.edu
5268fdbc62 Bug 437366. Make sure to not paint black-on-black in dark high-contrast themes
when 'Allow pages to use their own colors' is unchecked and the page tries
styling a form control. r+sr=dbaron, a=dveditz


git-svn-id: svn://10.0.0.236/trunk@255946 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 01:04:08 +00:00
bzbarsky%mit.edu
18cdc86704 Bug 424238. Make sure to guard against mutations happening while we notify on
opening the <body> and <frameset> tags, just like we do in
FlushTags. r+sr=sicking, a=dveditz.


git-svn-id: svn://10.0.0.236/trunk@255945 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 01:01:21 +00:00
bzbarsky%mit.edu
8aa18c5dfe Bug 472648. Make XBL in signed jars work again. r+sr=jst, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255944 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 00:57:51 +00:00
bzbarsky%mit.edu
1b3e511f1c Bug 445004. Make the base and document URI of document.written documents be the
base and document URI of the document on whose current context our code is
running. r+sr=jst, r=dcamp

Bug 465752. Fix Equals() to work right on javascript: URIs. r=dcamp, sr=jst.

Both a=ss


git-svn-id: svn://10.0.0.236/trunk@255943 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-28 00:56:09 +00:00
mrbkap%gmail.com
ccb796aef8 Bug 472787 - Eagerly set the return value. Backport by Gary Kwong. r=brendan a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255942 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-27 23:42:46 +00:00
rrelyea%redhat.com
229755085d Bug 426413
Audit messages need distinct types

r+ = wtc


git-svn-id: svn://10.0.0.236/trunk@255941 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-27 23:13:21 +00:00
reed%reedloden.com
b55fe91d34 Bug 462441 - "Windows 7 default OS theme not recognized by windows-default-theme metric" [r=robarnold sr=roc a=dveditz]
git-svn-id: svn://10.0.0.236/trunk@255940 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-27 22:56:32 +00:00
ccooper%deadsquid.com
bab82f5621 b=467310
r=nthomas
- Convert . to _ in tag name


git-svn-id: svn://10.0.0.236/trunk@255939 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-27 22:55:45 +00:00
despotdaemon
6cc728a293 Pseudo-automatic update of changes made by daniel.boelzle@sun.com.
git-svn-id: svn://10.0.0.236/trunk@255937 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-27 15:29:20 +00:00
bugzilla%standard8.plus.com
2ae5ea2e0b Bug 473936 Use javascriptConsole as Error Console menuitem id for better extension compatibility (Venkman part) p=Jens Hatlak <jh@junetz.de>,r=gijs
git-svn-id: svn://10.0.0.236/trunk@255936 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-27 09:41:31 +00:00
alqahira%ardisson.org
8e8a7f469d Bug 283100 - Growl global notifications for completed downloads. Patch by Ilya Sherman <ishermandom+bugs@gmail.com> and Ben Willmore <bdeb@willmore.eu>, r=smorgan, r=hendy, sr=pink; project changes and Growl framework integration by me, r=smorgan
git-svn-id: svn://10.0.0.236/trunk@255935 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-27 04:33:13 +00:00
dholbert%cs.stanford.edu
cb2ab151fa Bug 440149. Don't break after empty text at the start of the line, even if we're past the available width. Patch by Robert O'Callahan <robert@ocallahan.org> r=smontagu a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255934 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-27 02:31:09 +00:00
nelson%bolyard.com
fb95c38dca Bug 474532: Softoken cannot import certs with empty subjects and non-empty
nicknames.  r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@255933 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-27 02:18:39 +00:00
nrthomas%gmail.com
153ebc54dc Bug 475309, clone then update when building update tools, since mercurial changed what it does for 'hg clone -r TAG', r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@255932 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-27 01:35:29 +00:00
mkanat%bugzilla.org
b35fd1b839 Bug 474516: specific_search_allow_empty_words should default to on
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255929 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-26 22:05:59 +00:00
mkanat%bugzilla.org
5ac057baea Bug 467334: Commit button is not spaced the same vertically as the Status drop-down
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=pyrzak, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255928 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-26 22:03:38 +00:00
mkanat%bugzilla.org
d247f72123 Bug 474902: Allow the Bug URL (See Also) field to also accept Launchpad bug URLs
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255927 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-26 21:59:56 +00:00
bhearsum%mozilla.com
13ba2215e1 bug 475412: changeset links for dep/nightly/leak test builds are broken. r=nrthomas
git-svn-id: svn://10.0.0.236/trunk@255926 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-26 21:58:59 +00:00
mkanat%bugzilla.org
4967247240 Bug 474997: Make update_see_also actually return the right thing
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255925 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-26 21:57:28 +00:00
dkl%redhat.com
e990fdba95 Bug 473646 - WebService methods should check list parameters for scalars and convert before use
Patch by Dave Lawrence <dkl@redhat.com> - r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255924 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-26 20:40:23 +00:00
ghendricks%novell.com
a570e45714 code typo causes error on attachment upload.
git-svn-id: svn://10.0.0.236/trunk@255923 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-26 19:04:03 +00:00
benjamin%smedbergs.us
ed2352bfe7 Bug 473587 - nsTString::ToInteger can overflow. Detect and prevent this condition, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@255922 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-26 17:07:45 +00:00
lpsolit%gmail.com
32ee9dc1eb Bug 473006: welcome-admin page is wrong about visible administrative links - Patch by Frédéric Buclin <LpSolit@gmail.com> r=bbaetz a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255920 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-25 22:43:32 +00:00
lpsolit%gmail.com
ef74a28932 Bug 405355: Move flatten_group_membership() from User.pm to Group.pm - Patch by arbingersys <arbingersys@gmail.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255919 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-25 18:49:31 +00:00
lpsolit%gmail.com
6523a4f7d5 Bug 471461: Incorrect text displayed about groups when a bug is in a product which has only one group defined, with settings Mandatory/Mandatory - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255918 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-25 15:37:52 +00:00
lpsolit%gmail.com
ae73466cc0 Bug 471880: More scripts should use the shadow DB instead of the master DB - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255917 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-25 12:42:52 +00:00
dolske%mozilla.com
b8a3d7e69e Bug 475207 - allow cross-site XMLHttpRequest for tinderbox quickparse.txt output. r=reeeeed
git-svn-id: svn://10.0.0.236/trunk@255916 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-25 02:30:03 +00:00
lpsolit%gmail.com
4cebd89bf8 Bug 471613: Replace Bugzilla::Util::is_tainted() by Scalar::Util::tainted() - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255915 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-24 14:12:20 +00:00
bclary%bclary.com
37fa32a107 bug 469625 - JavaScript Tests by Jason Orendorff.
bug 469940 - JavaScript Test by Brendan Eich.
bug 469927 - JavaScript Test by Jesse Ruderman.
bug 465443 - JavaScript Test by Jesse Ruderman.
bug 465132 - JavaScript Test by Jesse Ruderman.
bug 446026 - JavaScript Tests by Brian Crowder, moz_bug_r_a4.
bug 470758 - JavaScript Tests by Blake Kaplan.
bug 470388 - JavaScript Tests by Gary Kwong.
bug 470300 - JavaScript Tests by Jesse Ruderman.
bug 470176 - JavaScript Test by Jesse Ruderman.
bug 470061 - JavaScript Test by Jesse Ruderman.
bug 465460 - JavaScript tests by Jesse Ruderman.


git-svn-id: svn://10.0.0.236/trunk@255914 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-24 13:07:33 +00:00
mats.palmgren%bredband.net
5850bd385c Test for bug 445288 by Jesse Ruderman <jruderman@gmail.com>.
git-svn-id: svn://10.0.0.236/trunk@255913 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-24 04:28:24 +00:00
mats.palmgren%bredband.net
a3f6e7fddb ASSERTION: disconnected nodes. b=424276 r+sr=bzbarsky a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255912 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-24 03:29:28 +00:00
smichaud%pobox.com
95621dc726 Crashtest for bug 464589. b=464589 r=josh sr=roc
git-svn-id: svn://10.0.0.236/trunk@255911 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 23:49:27 +00:00
alqahira%ardisson.org
b59e389cbb Bug 437552 - Clean up whitespace-on-blank-lines problem in /PreferencePanes, Part 2 (WebFeatures). Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=hendy, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255910 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 22:43:37 +00:00
lpsolit%gmail.com
f818e86781 Bug 474206: Useless </a> in the component_cc section when deleting a user account - Patch by arbingersys <arbingersys@gmail.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255909 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 22:24:16 +00:00
lpsolit%gmail.com
9a8868103f Bug 474881: checksetup.pl only creates custom CSS files on the second run - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255908 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 21:36:28 +00:00
guy.pyrzak%gmail.com
0f1acb709a Bug 471518: "Field only appears when:" produces a JavaScript error in Internet Explorer
Patch By Jill Foley <jillpf55@sbcglobal.net> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255907 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 21:08:27 +00:00
catlee%mozilla.com
b8597fc3e3 Bug 475003 - sort slaves by name on buildbot /buildslaves page. r=bhearsum
This is upstream ticket #416


git-svn-id: svn://10.0.0.236/trunk@255906 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 15:52:07 +00:00
catlee%mozilla.com
e56180a68a Bug 474991 - fix up build prioritization. r=bhearsum.
This is upstream ticket #334.


git-svn-id: svn://10.0.0.236/trunk@255905 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 15:50:17 +00:00
catlee%mozilla.com
99656a2c82 Bug 473240 - alwaysRun support for buildbot. r=bhearsum
This is upstream ticket #414


git-svn-id: svn://10.0.0.236/trunk@255904 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 14:46:44 +00:00
catlee%mozilla.com
b6d40c64b2 Bug 474343 - Upgrading staging talos to buildbot 0.7.9 r=anodelman
git-svn-id: svn://10.0.0.236/trunk@255903 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 13:53:48 +00:00
mkanat%bugzilla.org
8e5214f45c Fix some nits that I forgot to fix on checkin for bug 474715.
git-svn-id: svn://10.0.0.236/trunk@255902 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 03:27:47 +00:00
mkanat%bugzilla.org
196f3f1b93 Bug 474715: Add 'limit', 'offset' and 'changed_since' arguments to WebService::Bug.search()
Patch By Kip Hampton <khampton@totalcinema.com> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255901 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 03:19:37 +00:00
mkanat%bugzilla.org
0ceb22ba80 Bug 398281: Basic search for bugs via WebService (Bug.search)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255900 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 00:57:09 +00:00
mkanat%bugzilla.org
8543ba0598 Bug 471943: Implement Bugzilla::Bug::match
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255899 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-23 00:53:58 +00:00
alqahira%ardisson.org
ff2d3c267c Bug 464496 - Find the link location for the element under the context menu and send it to our NSPasteboard category (preparation for making Copy Link Location unescape UTF-8 URIs). Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255898 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 22:19:55 +00:00
alqahira%ardisson.org
0cc0e9715e Bug 357516 - Favicons (site icons) on alternates in menus don't update. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=cl, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255897 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 22:04:00 +00:00
alqahira%ardisson.org
55ec672bfb Bug 471106 - impossible to move imported bookmarks into different collection. Patch by Stuart Morgan <stuart.morgan+bugzilla@gmail.com>, r/sr=pink
git-svn-id: svn://10.0.0.236/trunk@255896 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 20:16:59 +00:00
bclary%bclary.com
92f13c133b tests for bug 471540, bug 466781 from sync of js/src/trace-test.js and js/tests/js1_8_1/trace/trace-test.js.
git-svn-id: svn://10.0.0.236/trunk@255895 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 20:04:55 +00:00
bclary%bclary.com
fa9b842a11 bug 474832 - update public failures
git-svn-id: svn://10.0.0.236/trunk@255894 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 20:03:01 +00:00
smichaud%pobox.com
885b1e8239 Crash with bitmap buffer that's too large. b=464589 r=mstange,josh sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255893 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 19:52:27 +00:00
alqahira%ardisson.org
4420d2d789 Bug 471681 - Add a null check in CHBrowserView contentViewer. Patch by Stuart Morgan <stuart.morgan+bugzilla@gmail.com>, r/sr=pink
git-svn-id: svn://10.0.0.236/trunk@255892 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 19:36:56 +00:00
ghendricks%novell.com
033e9a2753 Accept text/plain in importer
git-svn-id: svn://10.0.0.236/trunk@255891 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 18:03:04 +00:00
nboyd%atg.com
7cb25f0b8d Fix and unit test for for Bug 473761 - Bad XML new property creation
git-svn-id: svn://10.0.0.236/trunk@255890 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 17:45:10 +00:00
mkanat%bugzilla.org
79e064d2d8 Bug 474249: Add a WebService interface to add a See Also bug link to a bug
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255887 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 06:15:52 +00:00
mkanat%bugzilla.org
7eaedfb1f9 Bug 472872: Add a field where people can put the URLs to Bugzilla bugs (from any Bugzilla installation)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255886 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 04:08:53 +00:00
mrbkap%gmail.com
a571ba51b0 Bug 473709 - Protect |str| across the call to js_NewRegExp. r=jwalden a=dveditz. Thanks to Gary Kwong for helping backport the patch!
git-svn-id: svn://10.0.0.236/trunk@255885 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 03:04:00 +00:00
nboyd%atg.com
c3b48ad031 Fix Bug 474310 - Incorrect optimization of unary increment/decrement operators applied to number function parameteres
git-svn-id: svn://10.0.0.236/trunk@255884 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 02:54:50 +00:00
nelson%bolyard.com
866622494b Bug 472975: crash when deleting user certificates, r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@255883 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 01:29:24 +00:00
nelson%bolyard.com
3896025968 Bug 471665: NSS reports incorrect sizes for (AES) symmetric keys, r=rrelyea,wtc
git-svn-id: svn://10.0.0.236/trunk@255882 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 01:23:47 +00:00
nelson%bolyard.com
23ec3bb692 Bug 472749: Softoken permits AES keys of ANY LENGTH to be created, r=wtc,rrelyea
git-svn-id: svn://10.0.0.236/trunk@255881 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-22 01:18:20 +00:00
ghendricks%novell.com
957fb9fa09 Don't create FK reference to test_cases default tester
git-svn-id: svn://10.0.0.236/trunk@255880 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-21 21:37:37 +00:00
alqahira%ardisson.org
f8b273502a Bug 469949 - PR_sscanf with format %lld into a PRTime is not portable. Patch by Martin Husemann <martin@NetBSD.ORG>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255879 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-21 19:09:02 +00:00
catlee%mozilla.com
18a2505b7e Removing moz2unit. These were imported into mercurial a while ago.
git-svn-id: svn://10.0.0.236/trunk@255878 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-21 15:00:50 +00:00
lpsolit%gmail.com
cc0009012f Bug 471633: Sort open bugs and closed bugs separately in show_bug dependson/blocks lists - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255877 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-21 10:51:01 +00:00
kaie%kuix.de
9fd128237e Bug 474473, Want short term NSS dependencies hack
r=wtc


git-svn-id: svn://10.0.0.236/trunk@255875 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 23:30:57 +00:00
nrthomas%gmail.com
5771a48382 Bug 473102, print message just before rebooting talos box, so it doesn't look like a network error, r=anodelman
git-svn-id: svn://10.0.0.236/trunk@255874 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 22:52:50 +00:00
bhearsum%mozilla.com
8f34c47815 bug 470309: Teach buildbotcustom.step.misc.GetHgRevision() about locally modified checkouts. r=me, patch=gozer
git-svn-id: svn://10.0.0.236/trunk@255873 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 21:25:54 +00:00
cltbld
77b48656a9 Automated update from host egg.build.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@255872 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 21:22:02 +00:00
ccooper%deadsquid.com
06fed42d34 b=472491
r=bheasrum
- version config bumps for 3.0.6->3.0.7


git-svn-id: svn://10.0.0.236/trunk@255871 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 21:20:58 +00:00
ccooper%deadsquid.com
89ad9c4850 b=472491
r=bhearsum
- Monitoring changes for Firefox 3.0.6->3.0.7


git-svn-id: svn://10.0.0.236/trunk@255870 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 21:13:01 +00:00
cltbld
f1a81416a2 Automated update from host egg.build.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@255869 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 21:09:25 +00:00
mkanat%bugzilla.org
e3acd9ec21 Bug 473052: Modify WebService::Bug.add_comment to return the new comment ID
Patch By Kip Hampton <khampton@totalcinema.com> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255868 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 20:26:16 +00:00
mkanat%bugzilla.org
37bb25c673 Bug 472954: Expose additional properties via the WebService::Bug.get interface
Patch By Kip Hampton <khampton@totalcinema.com> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255867 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 20:24:31 +00:00
mkanat%bugzilla.org
f9c3ab63d9 Bug 470057: Collapse and wrap text messages and text errors
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255866 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 20:22:11 +00:00
mkanat%bugzilla.org
5c30b2b73f Bug 431744: "Change Columns" URL contained more than 3x the characters in the base buglist.cgi URL
Patch By Michael J Tosh <michael.j.tosh@lmco.com> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255865 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 20:18:47 +00:00
mkanat%bugzilla.org
3c1cae0914 Bug 134022: PERFORMANCE: deleting old login cookies locks login checks
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255864 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 20:10:08 +00:00
ghendricks%novell.com
f797a79ca7 Fix javascript issue preventing cases from showing.
git-svn-id: svn://10.0.0.236/trunk@255863 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 18:37:19 +00:00
cltbld
16aeb716f2 "Automated configuration bump, release for firefox 3.0.6build1"
git-svn-id: svn://10.0.0.236/trunk@255862 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 16:24:22 +00:00
cltbld
fd69828861 "Automated configuration bump: moz19-branch-patcher2.cfg, from 3.0.5 to 3.0.6"
git-svn-id: svn://10.0.0.236/trunk@255861 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 14:32:30 +00:00
bclary%bclary.com
990d766873 bug 450275 - remove __count__ tests from js1_5/extensions/regress-434837-01.js and do not exclude it for 1.9.0 or later branches. default tip
bug 474102 - limit the number of collected messages per test to less than 1000 to prevent post-process-logs.pl from running out of memory in extreme cases.
no bug - update public failures.


git-svn-id: svn://10.0.0.236/trunk@255859 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 10:41:32 +00:00
gijskruitbosch%gmail.com
f23f113104 Bug 406943 - Sort out help->about menu on Mac
r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only. NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@255858 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 10:26:14 +00:00
nrthomas%gmail.com
a8c2e0868f Bug 470811, force NSS check file replacement instead of patch for partial updates (for releases), r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@255857 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 02:16:30 +00:00
silver%warwickcompsoc.co.uk
954f8c8d39 No bug - Switch default URL handling on links and commands/menus to goto-url-newtab.
rs=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@255856 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-20 00:52:53 +00:00
gavin%gavinsharp.com
500feb3429 Bug 429690: add ability to run browser tests individually, r=Mossop
git-svn-id: svn://10.0.0.236/trunk@255854 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-19 21:35:21 +00:00
mnyromyr%tprac.de
4d6327c306 Bug 471289: can't drag'n'drop data views from one subpanel into another; r=gijs
git-svn-id: svn://10.0.0.236/trunk@255851 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-19 19:41:29 +00:00
ccooper%deadsquid.com
822f4f7798 b=472491
r=bhearsum
- Bootstrap config bumps for Firefox 3.0.6


git-svn-id: svn://10.0.0.236/trunk@255849 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-19 17:32:57 +00:00
bhearsum%mozilla.com
58d985f417 bug 472777: Unittest builds should do a "building on <slave>" step, and that be the first step. r=ccooper
git-svn-id: svn://10.0.0.236/trunk@255847 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-19 16:41:09 +00:00
bhearsum%mozilla.com
d710f76bdc bug 472884: add suitable buildSpace arguments release builders. r=catlee
git-svn-id: svn://10.0.0.236/trunk@255845 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-19 13:45:34 +00:00
bhearsum%mozilla.com
b66faceb97 bug 470966: remove hardcoding of 'mozilla-central' and other magic strings from release_master.py. r=nrthomas, patch=me
git-svn-id: svn://10.0.0.236/trunk@255844 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-19 13:40:34 +00:00
nrthomas%gmail.com
89f4992db5 Bug 459878, fix up errors for 3.0.5 -> 3.1b2 MU test
git-svn-id: svn://10.0.0.236/trunk@255843 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-19 01:52:03 +00:00
silver%warwickcompsoc.co.uk
d34969ee75 Bug 471778 - Use type="search" when available and fall back to type="timed".
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@255842 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-18 21:17:57 +00:00
silver%warwickcompsoc.co.uk
59e36f302b Bug 473697 - Tag Join Channel window with ChatZilla window ID so it gets the icon.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@255841 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-18 21:14:15 +00:00
gijskruitbosch%gmail.com
6ce41d6ef2 Bug 471878 - closing paren on highlighted link not included
p=glenjamin+bmo@gmail.com (Glen Mailer)
r=gijskruitbosch+bugs@gmail.com (Gijs Kruitbosch)
ChatZilla Only, NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@255840 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-16 22:04:51 +00:00
ccooper%deadsquid.com
be057e1325 b=462179
p=armenzg
r=ccooper
- don't use PKG_DMG


git-svn-id: svn://10.0.0.236/trunk@255839 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-16 19:28:14 +00:00
ccooper%deadsquid.com
bdc4c4ed34 b=462179
p=armenzg
r=ccooper
- stop using PKG_DMG on the RepackFactory


git-svn-id: svn://10.0.0.236/trunk@255838 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-16 19:24:12 +00:00
ccooper%deadsquid.com
86a67f81d4 b=467310
r=bhearsum
- changes to Bootstrap config for staging run of 3.0.6


git-svn-id: svn://10.0.0.236/trunk@255836 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-16 16:17:22 +00:00
mkanat%bugzilla.org
32a8bd304f Bug 473883: Re-arrange Perl module instructions so that required modules are listed at the end
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255835 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-16 03:37:53 +00:00
mkanat%bugzilla.org
70c2973491 Bug 460376: Make module-install instructions localizable.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255834 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-16 02:18:16 +00:00
alexei.volkov.bugs%sun.com
e10653139e Bug 472319 - Vfychain validates chain even if revoked certificate. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255833 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-16 01:02:10 +00:00
kaie%kuix.de
57a07c7818 Bug 473835, NSS_3_12_2_WITH_CKBI_1_73_RTM for Firefox 3.0.6
r/a=samuel.sidler


git-svn-id: svn://10.0.0.236/trunk@255830 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 23:56:48 +00:00
kaie%kuix.de
956ce43966 Bug 471715, Add cert to nssckbi to override rogue md5-collision CA cert
r=nelsonb, r=wtc


git-svn-id: svn://10.0.0.236/trunk@255827 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 22:35:15 +00:00
wicked%sci.fi
50de5e5497 Bug 286452: Add more detailed information to time tracking summary report - Original patch by Shane H. W. Travis <shane.h.w.travis@gmail.com> and modified/extended patch by Teemu Mannermaa <wicked@sci.fi> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255826 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 22:35:08 +00:00
johnath%mozilla.com
1b90d3daa9 Standalone talos should output results as it runs. b=419367, r=anodelman
git-svn-id: svn://10.0.0.236/trunk@255825 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 22:16:15 +00:00
ghendricks%novell.com
2059d1c1eb Caserun list pager is broken and you can't save it either
git-svn-id: svn://10.0.0.236/trunk@255824 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 19:32:40 +00:00
ccooper%deadsquid.com
183b1ad074 b=472568
p=armenzg
r=bhearsum,ccooper
- do not use mercurial source step


git-svn-id: svn://10.0.0.236/trunk@255823 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 18:02:17 +00:00
ccooper%deadsquid.com
bc6f4a2245 b=473259
p=sgautherie
r=ccooper
- inherit from MozillaMochitest


git-svn-id: svn://10.0.0.236/trunk@255822 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 16:42:25 +00:00
lpsolit%gmail.com
9c13008344 Bug 344878: Automatically generate list of acceptable columns for buglist.cgi from the database - Patch by Teemu Mannermaa <wicked@sci.fi> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255821 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 15:47:57 +00:00
rcampbell%mozilla.com
f677710479 473170 - remove email address from talos configs, p=me, r=anodelman
git-svn-id: svn://10.0.0.236/trunk@255820 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 15:43:33 +00:00
lpsolit%gmail.com
ea5ed455eb Bug 464992: Binary attachments, graphical reports and new charts are not displayed correctly on Windows - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255819 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 01:16:05 +00:00
nrthomas%gmail.com
a3334e14ca Bug 470811, force NSS chk files to be replaced rather than patched in partial updates, p=rstrong, r=bsmedberg,bhearsum
git-svn-id: svn://10.0.0.236/trunk@255818 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 01:11:24 +00:00
mkanat%bugzilla.org
214c0e8309 Bug 473677: Update YUI to 2.6.0
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255817 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 01:01:26 +00:00
lpsolit%gmail.com
e8daeb1faa Bug 471890: The Index of Parameters should linkify parameters, not the category they belong to - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255816 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 00:53:22 +00:00
lpsolit%gmail.com
f796b54e26 Bug 473553: ERROR_MODE_DIE should be the default if the script is not CGI - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255815 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-15 00:50:30 +00:00
ulf%loop.to
4d1ce87c1b Bug 389741: "ldap_memcache_flush() doesn't clear negative results" r=mcs
This patch adds a new LDAP API, ldap_memcache_flush_results(), which works
the same as ldap_memcache_flush() except it'll also clear out results from
search requests that didn't return any entries.


git-svn-id: svn://10.0.0.236/trunk@255814 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 20:01:01 +00:00
gijskruitbosch%gmail.com
9773b97a70 Bug 471878 - Long descriptions to a list preference will only show one line listboxes
p=glenjamin+bmo@gmail.com (Glen Mailer)
r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only, NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@255813 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 17:34:17 +00:00
gijskruitbosch%gmail.com
d16c869e84 Bug 471086 - Provide a silent eval command
p=glenjamin+bmo@gmail.com (Glen Mailer)
r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only, NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@255812 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 17:23:30 +00:00
gijskruitbosch%gmail.com
692ee4c281 Bug 460462 - DCC Chat shows the other user as "from(...)" instead of just "<...>"d
r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only, NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@255811 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 17:18:33 +00:00
gijskruitbosch%gmail.com
cd04096234 Bug 472803 - aria-channel is being deprecated, use "assertive" politeness instead
r=silver@warwickcompsoc.co.uk (James Ross)
r=aaronleventhal@moonset.net (Aaron Leventhal)
ChatZilla Only, NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@255810 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 17:13:34 +00:00
silver%warwickcompsoc.co.uk
c03ec773fd Bug 450756 - Make the CommandManager store previous versions of commands when they are redefined; this allows aliases and plugins to override commands and return to the original state when removed/disabled.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@255809 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 16:49:39 +00:00
bclary%bclary.com
577a3a9b80 bug 467276 - tests for NaN/Infinity.toExponential(...)/toPrecision() should not check range, by szegedia%freemail.hu. Sync with CVS trunk. default tip
bug 352026 - update test to uniquely identify subtest results.
sync developer trace tests with js test suite.
bug 472619 - update sisyphus to build 1.9.1 from releases/mozilla-1.9.1 and 1.9.2 from mozilla-central.
bug 458679 - JavaScript Tests by Igor Bukanov, Jesse Ruderman and Gary Kwong.
bug 469855 - allow test parameter to be placed anywhere in query string.
bug 469696 - obsolete test for 1.9.1 branch.
bug 454142 - JavaScript Test by Gary Kwong.
bug 462470 - update spidermonkey-n-1.9.1.tests to include missed test.
bug 465366 - JavaScript Test by Boris Zbarsky, Andreas Gal.
bug 417131 - JavaScript Test by Igor Bukanov.
bug 428366 - JavaScript Test by Blake Kaplan.
bug 371802 - JavaScript Test by Brendan Eich.
bug 443071 - JavaScript Test by Jesse Ruderman.
bug 465133 - JavaScript Test by Jesse Ruderman.


git-svn-id: svn://10.0.0.236/trunk@255808 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 16:13:18 +00:00
silver%warwickcompsoc.co.uk
24a71fd7bc Bug 471207 - always update the PrefManager's realValue *after* calling the preference service.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@255807 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 15:58:50 +00:00
catlee%mozilla.com
996ef2ac03 Bug 472931 - per-slave status on buildbot waterfalls r=bhearsum
This patch adds /buildslaves/SLAVENAME to see the per-slave build
history on buildbot.

Upstream ticket is http://buildbot.net/trac/ticket/110


git-svn-id: svn://10.0.0.236/trunk@255806 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 15:34:31 +00:00
nboyd%atg.com
a442ef0308 Add ability for embeddings to set options on the XML implementation.
git-svn-id: svn://10.0.0.236/trunk@255805 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 13:31:23 +00:00
ccooper%deadsquid.com
91e02451f0 b=473259
p=sgautherie
r=ccooper
- summaryText() : support None value for leaked argument


git-svn-id: svn://10.0.0.236/trunk@255804 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-13 23:04:54 +00:00
slavomir.katuscak%sun.com
27e1535955 Bug 472682 - Removed PKIX chains tests from upgrade DB test cycle. r=christophe
git-svn-id: svn://10.0.0.236/trunk@255803 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-13 18:50:29 +00:00
ccooper%deadsquid.com
63fe2865e4 b=468023
p=sgautherie
r=ccooper
- update evaluateCommand() too


git-svn-id: svn://10.0.0.236/trunk@255802 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-13 15:20:01 +00:00
ccooper%deadsquid.com
6622ae90f7 b=462540
- backing out tooltips patch


git-svn-id: svn://10.0.0.236/trunk@255801 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-13 15:17:21 +00:00
alexei.volkov.bugs%sun.com
13ea7f0f49 additional changes to patch for bug 397805. Fix function declaration.
git-svn-id: svn://10.0.0.236/trunk@255800 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-12 23:51:51 +00:00
despotdaemon
044f5b11c4 Pseudo-automatic update of changes made by catlee@mozilla.com.
git-svn-id: svn://10.0.0.236/trunk@255799 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-12 23:25:55 +00:00
despotdaemon
90382bab18 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@255798 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-12 23:16:21 +00:00
alexei.volkov.bugs%sun.com
3b3e52ad31 Bug 397805 - Avoid revalidating the whole cached chain for new cert KU and EKU. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255797 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-12 22:57:22 +00:00
bhearsum%mozilla.com
834f20e0c6 bug 472930: Combined push-triggered/periodic scheduler. r=me, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255796 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-12 22:46:32 +00:00
ccooper%deadsquid.com
01b6ad6288 b=468023
p=sgautherie
r=bhearsum
- use the new summarized 'REFTEST INFO' counts


git-svn-id: svn://10.0.0.236/trunk@255795 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-12 21:51:09 +00:00
ghendricks%novell.com
5f6a60b8bd build validation on run clone always fails
git-svn-id: svn://10.0.0.236/trunk@255794 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-12 21:44:04 +00:00
ccooper%deadsquid.com
ebc19f9bf5 b=462540
p=gozer
r=bhearsum
- tooltips for Lk, MH and A


git-svn-id: svn://10.0.0.236/trunk@255793 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-12 21:41:01 +00:00
alqahira%ardisson.org
9ef034c99f Bug 472925 - Google changed their favicon (again); feedhandler icon needs updating (again). New .icns by Philippe Wittenbergh <phiw@l-c-n.com>, r=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255791 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-12 03:11:18 +00:00
nrthomas%gmail.com
e11be6c81a Bug 464103, trivial followup fix
git-svn-id: svn://10.0.0.236/trunk@255790 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-11 20:19:51 +00:00
reed%reedloden.com
cd68a904ab Bug 471481 - "DOM Inspector in 1.9 branch doesn't support Toolkit 1.9.0.1+" [p=ajvincent@gmail.com (Alex Vincent) r=sdwilsh]
git-svn-id: svn://10.0.0.236/trunk@255789 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-10 21:32:02 +00:00
alqahira%ardisson.org
ae35e3e40a Bug 463974 - Omnibus ad-blocking bug for November/December 2008 ('Ads are delicious delicacies!'), r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255787 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-10 04:06:09 +00:00
bhearsum%mozilla.com
10ff572329 bug 472880: complete MARs not created/uploaded for release builds. r=ccooper, patch=me
git-svn-id: svn://10.0.0.236/trunk@255786 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-09 21:02:38 +00:00
bhearsum%mozilla.com
b70e9921f3 bug 472882: SingleSourceFactory needs to set UPLOAD_TO_TEMP rather than UPLOAD_TO_TMP. r=ccooper, patch=me
git-svn-id: svn://10.0.0.236/trunk@255785 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-09 21:02:01 +00:00
ted.mielczarek%gmail.com
7f48f3ef82 bug 472861 - make mochitest steps wrap FAIL in em class=testfail. r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@255784 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-09 19:42:57 +00:00
mkanat%bugzilla.org
723121343e Bug 472224: Bugzilla.time function that returns detailed time and timezone information
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255783 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-09 19:13:32 +00:00
ted.mielczarek%gmail.com
6ff56e8e8a Bug 445158 - Consider providing a pref that allows users to avoid check for 'Launching Applications and Unsafe Files' Internet option; Patch by Jim Mathies <jmathies@mozilla.com>, r=(sdwilsh + tellrob), a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255782 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-09 12:33:19 +00:00
mkanat%bugzilla.org
6fffd48ced Bug 472556: Modify Bug.comments to allow getting comments only comments that have been added since a certain time
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255781 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-09 07:49:37 +00:00
mkanat%bugzilla.org
f3f1795e6f Bug 471942: Make the WebService validate and properly convert input parameters
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255780 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-09 07:44:10 +00:00
lpsolit%gmail.com
7f2f57d75b Bug 335762: Move Windows Install Instruction to Wiki - Patch by Frédéric Buclin <LpSolit@gmail.com> r=colin
git-svn-id: svn://10.0.0.236/trunk@255779 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 23:47:45 +00:00
ghendricks%novell.com
556d611b36 Last Comment Bug 457292 - cannot remove alias by simply erasing string (but replacing with single space works)
git-svn-id: svn://10.0.0.236/trunk@255778 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 21:24:37 +00:00
bhearsum%mozilla.com
6cc5cfdc62 bug 471021: Try server Windows build machine and unit test slaves should have Unicode NSIS and have it in the PATH. r=asasaki, patch=philor
git-svn-id: svn://10.0.0.236/trunk@255777 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 21:08:49 +00:00
bhearsum%mozilla.com
9dd4538294 bug 471021: Try server Windows build machine and unit test slaves should have Unicode NSIS and have it in the PATH. r=me, patch=asasaki
git-svn-id: svn://10.0.0.236/trunk@255776 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 21:02:37 +00:00
lpsolit%gmail.com
2df7c38aa5 Bug 452519: Fix timezones in emails - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255775 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 16:10:04 +00:00
ted.mielczarek%gmail.com
0180ed2fde bug 444351 - do not send client UUID / GUID with crash reports. r=bsmedberg, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255774 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 11:41:42 +00:00
smontagu%smontagu.org
18c514cdd6 Detect clusters in Indic scripts where an initial RA is reordered after the following consonant and vowel. Bug 428317, r=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255773 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 09:23:34 +00:00
dveditz%cruzio.com
a3c321d28f bug 463763 mathml reflow crash with <msup>, p=zweinberg, r/sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255772 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 08:06:44 +00:00
mrbkap%gmail.com
51de735d2e Add missed file.
git-svn-id: svn://10.0.0.236/trunk@255771 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 08:04:36 +00:00
mrbkap%gmail.com
a9b4e306af Add missed file.
git-svn-id: svn://10.0.0.236/trunk@255770 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 07:58:56 +00:00
dveditz%cruzio.com
e8bb24352b bug 406767 clear invalid cache entries, p=Michal Novotny, r/sr=bzbarsky, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255769 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 07:49:33 +00:00
jst%mozilla.org
e3f2bb3ea4 Landing fix for bug 441930. Page refresh of textarea disabled through JS fails to display content. Patch by bnewman@mozilla.com, r+sr=bzbarsky@mit.edu, a=dveditz@cruzio.com
git-svn-id: svn://10.0.0.236/trunk@255768 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 07:47:04 +00:00
mrbkap%gmail.com
070e8296b2 Bug 444322 - Ignore OnDataAvailable calls when we're executing a script. r+sr=bzbarsky/jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255767 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 07:40:47 +00:00
dveditz%cruzio.com
a5c1c31cd6 bug 380418 prevent access to cookie headers from XHR, p=bjarne, r=jst, sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255766 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 07:35:44 +00:00
mrbkap%gmail.com
b73bd132e2 Bug 468581 - Use a better function to compute principals. r=brendan a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255765 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 07:18:31 +00:00
mrbkap%gmail.com
f2d00fa75e Bug 464092 - Censor access to block objects when they're the parents of functions. r=igor a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255764 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 07:17:15 +00:00
masayuki%d-toybox.com
c99efa61bf Bug 424663 crashes [@ CalcCharacterPositionAtoW][@ imm32.dll@0x3e24] involving Chinese IME r=VYV03354+ere,sr=roc,a1906=dveditz
git-svn-id: svn://10.0.0.236/trunk@255763 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 04:08:58 +00:00
jst%mozilla.org
5ab4df3384 Re-landing fix for bug 445520. Fixing flashblock regression from bug 438830. r=cbiesinger, sr=bzbarsky, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255762 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 02:41:32 +00:00
jst%mozilla.org
4d8b6a2c2d Re-landing fix for bug 438830. Plugins can be instantiated, and then re-instantiated during page load. r+sr=jonas@sicking.cc, a=dveditz@cruzio.com
git-svn-id: svn://10.0.0.236/trunk@255761 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 02:39:49 +00:00
roc+%cs.cmu.edu
47fa975658 Bug 331088. Handle file-control frame being torn down while the dialog is up. r=smaug,sr=mats,a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255760 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 01:03:46 +00:00
bzbarsky%mit.edu
7a1ecd860b Bug 460425. Do better security checks during redirection. r=sicking,biesi,
sr=sicking, a=dveditz


git-svn-id: svn://10.0.0.236/trunk@255759 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 01:03:37 +00:00
roc+%cs.cmu.edu
1e202d073c Bug 422283. Make sure that an overflow container's next-in-flows are always also overflow containers. This means that when we convert a normal frame into an overflow container, we need to scan through its next-in-flows and make them overflow containers too. r=fantasai,sr=mats,a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255758 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 01:00:00 +00:00
bzbarsky%mit.edu
837a106738 Bug 468210. Do a better job of unhooking our anonymous content. r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255757 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 00:21:54 +00:00
bzbarsky%mit.edu
62c57b3815 Bug 449219. Don't flush out textnodes unconditionally in the XML sink on packet boundaries. Instead, do smart coalescing like the HTML sink does. Also, always coalesce everything when doing XSLT. r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255756 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 00:16:58 +00:00
lpsolit%gmail.com
d85596dafd Bug 472549: Ignore undefined values when committing user pref changes - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255755 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-08 00:06:49 +00:00
mats.palmgren%bredband.net
41c1473144 Don't crash if views were destroyed after flushing notifications. b=421839 r+sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255754 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 23:23:53 +00:00
mats.palmgren%bredband.net
f2d68badee Make GetCurrentEventFrame() return null if the shell is being destroyed (don't call GetPrimaryFrameFor()). b=421839 r+sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255753 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 23:23:40 +00:00
nrthomas%gmail.com
797cb76397 Bug 470521, add si & sl to 3.0.5, and then check sl and en-US when verifying, r=ccooper
git-svn-id: svn://10.0.0.236/trunk@255752 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 23:21:25 +00:00
crowder%fiverocks.com
a1e8c86310 Bug 434837 - Accessors of prototype chain of arrays don't assign 'this' correctly, r=brendan, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255751 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 23:20:06 +00:00
Olli.Pettay%helsinki.fi
4e317f25e5 Bug 461027, r+sr=bz, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255750 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 21:58:51 +00:00
Olli.Pettay%helsinki.fi
44fe13f0ee Bug 464009, r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255749 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 21:54:10 +00:00
mkanat%bugzilla.org
104e9c0feb Bug 450403: Add ability to view comments via the web service (Bug.comments)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255748 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 21:22:11 +00:00
crowder%fiverocks.com
23cf9ed8d9 Bug 466957 - incorrect parsing of JavaScripts, r=mrbkap, sr=bz, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255747 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 21:10:48 +00:00
dcamp%mozilla.com
7522eb2826 Reland the test for bug 441751.
git-svn-id: svn://10.0.0.236/trunk@255746 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 19:49:09 +00:00
lpsolit%gmail.com
6db08caa61 Bug 472458: checksetup.pl should check for DateTime::TimeZone - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255744 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 18:45:55 +00:00
bhearsum%mozilla.com
378a8cd137 bug 471318: Many revision urls on waterfall are wrong. r=me, patch=lblakk
git-svn-id: svn://10.0.0.236/trunk@255743 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 14:30:58 +00:00
sayrer%gmail.com
fa1890d897 Bug 418051. Patch by Blake Kaplan <mrbkap@gmail.com>
git-svn-id: svn://10.0.0.236/trunk@255742 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 04:52:01 +00:00
sayrer%gmail.com
c287611b9c Bug 454142. Patch by Blake Kaplan <mrbkap@gmail.com>
git-svn-id: svn://10.0.0.236/trunk@255741 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 04:42:29 +00:00
sayrer%gmail.com
d427a9c84d Bug 452329. Patch by Blake Kaplan <mrbkap@gmail.com>
git-svn-id: svn://10.0.0.236/trunk@255740 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 04:35:33 +00:00
sayrer%gmail.com
b3c2bc5d8c Bug 452913. Patch by Igor Bukanov <igor@mir2.org>
git-svn-id: svn://10.0.0.236/trunk@255739 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 04:31:52 +00:00
cltbld
9e109519a4 Automated update from host egg.build.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@255738 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 02:32:01 +00:00
nrthomas%gmail.com
7359d462b7 Bug 426214, update URL for Fx3.0 blocklist updater, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@255737 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 02:26:32 +00:00
mkanat%bugzilla.org
82f94101aa Bump the version number post-release.
git-svn-id: svn://10.0.0.236/trunk@255736 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 00:44:58 +00:00
alexei.volkov.bugs%sun.com
d526a4149b 472291 - crash in libpkix object leak tests due to null pointer dereferencing in pkix_build.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255735 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 00:08:47 +00:00
ghendricks%novell.com
e2552ec922 Last Comment Bug 457292 - cannot remove alias by simply erasing string (but replacing with single space works)
git-svn-id: svn://10.0.0.236/trunk@255734 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 23:11:51 +00:00
ghendricks%novell.com
f2634c5767 Need to filter titles
git-svn-id: svn://10.0.0.236/trunk@255733 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 19:26:58 +00:00
bhearsum%mozilla.com
ad7cdf36e3 Comment tweak
git-svn-id: svn://10.0.0.236/trunk@255732 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 18:41:58 +00:00
ghendricks%novell.com
debb4fdba9 Bug 472323 - Cannot edit default numbered list for Action and Expected Results in "Create a New Test Case" form
Patch by tdaitx@gmail.com r=ghendricks


git-svn-id: svn://10.0.0.236/trunk@255731 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 17:05:30 +00:00
bhearsum%mozilla.com
285c62c36d bug 472177: l10n build uploads step doesn't make the build fail on failure. r=ccooper, patch=me
git-svn-id: svn://10.0.0.236/trunk@255730 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 17:03:42 +00:00
ccooper%deadsquid.com
13147b574d b=471661
r=ted.mielczarek
- change CFLAGS to use gdwarf on Mac


git-svn-id: svn://10.0.0.236/trunk@255729 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 16:31:24 +00:00
bhearsum%mozilla.com
de9868a90e bug 470309: Teach buildbotcustom.step.misc.GetHgRevision() about locally modified checkouts. r=me, patch=gozer
git-svn-id: svn://10.0.0.236/trunk@255728 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 16:02:10 +00:00
bhearsum%mozilla.com
522c6c0854 bug 358845: mZ test for Firefox is bogus - stop running it. r=me, patch=philor
git-svn-id: svn://10.0.0.236/trunk@255727 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 15:49:53 +00:00
mkanat%bugzilla.org
6b57c3ae54 Bump the version number for 3.3.1.
git-svn-id: svn://10.0.0.236/trunk@255725 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 07:34:42 +00:00
nrthomas%gmail.com
ce33d8f45d Unpermute buildIDs
git-svn-id: svn://10.0.0.236/trunk@255724 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 03:46:03 +00:00
nrthomas%gmail.com
2280e5d85e Bug 459878, verify configs for 3.0.5 to 3.1b2 MU test, r=ccooper
git-svn-id: svn://10.0.0.236/trunk@255723 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 01:24:09 +00:00
nrthomas%gmail.com
84e92f2eda Bug 459878, patcher config for 3.0.5 to 3.1b2 MU test, r=ccooper
git-svn-id: svn://10.0.0.236/trunk@255722 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 01:23:50 +00:00
ghendricks%novell.com
127ed9fc1e Pull view_testopia setting into a hook
git-svn-id: svn://10.0.0.236/trunk@255721 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-06 00:06:18 +00:00
jdrew%mozilla.com
8361ff72b6 Bug 434602 - After being open a few minutes, large parts of the screen don't repaint. r/sr=vlad a=dveditz for checkin to 1.9.0
git-svn-id: svn://10.0.0.236/trunk@255720 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-05 23:21:02 +00:00
ccooper%deadsquid.com
952df22cd4 b=464165
- bustage fix for L10nMixin class initialization


git-svn-id: svn://10.0.0.236/trunk@255719 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-05 22:50:03 +00:00
ccooper%deadsquid.com
df7b692c7f b=464171
- bustage fix for l10n


git-svn-id: svn://10.0.0.236/trunk@255718 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-05 22:46:03 +00:00
ccooper%deadsquid.com
5525c8a381 b=466248
p=sgautherie.bz@free.fr
r=ted.mielczarek
- remove (obsolete) "--leak-threshold=8"


git-svn-id: svn://10.0.0.236/trunk@255717 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-05 22:33:00 +00:00
ghendricks%novell.com
623b9fb872 Bug 472136 - cannot make a testrun - constraint fk_test_case_runs_assignee_profiles_userid
git-svn-id: svn://10.0.0.236/trunk@255716 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-05 22:31:30 +00:00
ghendricks%novell.com
90c9dbb0fa Bug 472192 - JavaScript error if add test cases to test run from test cases page
git-svn-id: svn://10.0.0.236/trunk@255714 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-05 22:18:46 +00:00
benjamin%smedbergs.us
fb151b04b6 Bug 442012 - Allocating more than 2GB of memory in mozilla is never a good idea. On 64-bit systems PRSize and size_t are 64-bit and so truncation from PRSize to PRUint32 could cause weird behavior errors. Prevent these huge allocations. r=wtc sr+a=dveditz for 1.9.0
git-svn-id: svn://10.0.0.236/trunk@255713 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-05 21:08:08 +00:00
rob_strong%exchangecode.com
8575d7b1f7 Bug 460669 - Installing Firefox writes incorrect file paths to DefaultIcon and open command. r=jmathies, approval1.9.0.6=dveditz
git-svn-id: svn://10.0.0.236/trunk@255712 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-05 20:25:57 +00:00
Olli.Pettay%helsinki.fi
101537a0bd Bug 449006, r+sr=peterv, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255711 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-05 19:54:07 +00:00
lpsolit%gmail.com
e3bb63c071 Bug 472013: [Oracle] checksetup.pl fails with ORA-04091 and you can't change the properties of custom fields - Patch by Xiaoou <xiaoou.wu@oracle.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255710 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-05 19:52:08 +00:00
bclary%bclary.com
3083c818b5 bug 465862 - JavaScript Test by Dave Mandelin, sync cvs with mc
git-svn-id: svn://10.0.0.236/trunk@255709 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-05 05:28:33 +00:00
lpsolit%gmail.com
e9746b7e42 Bug 471866: Classification name length and sortkey max value not validated - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255708 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-04 23:15:31 +00:00
lpsolit%gmail.com
8b68f5b9a3 Bug 472047: Search containing "%Complete" boolean chart fails - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255707 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-04 18:21:05 +00:00
lpsolit%gmail.com
47659f3fb1 Bug 316425: Summarize time estimates on buglist page - Patch by Aaron Larson <aaron@larsonsonline.net> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255706 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-04 17:44:52 +00:00
mkanat%bugzilla.org
c16dc9e180 Bug 147776: Make checksetup.pl re-write localconfig with the current comments and remove old variables automatically
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255705 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-04 14:29:55 +00:00
dkl%redhat.com
ce1f23bec8 Bug 99205: Allow mass-editing of dependencies
Patch by Dave Lawrence <dkl@redhat.com> - r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255704 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-04 04:38:42 +00:00
lpsolit%gmail.com
7ca8eabbc5 Bug 377956: Tabular and graphical reports should support single-select custom fields - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255703 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-03 01:08:28 +00:00
mkanat%bugzilla.org
8ca998914e Bug 471060: The mod_perl CGI requirement isn't necessary anymore
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255702 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 23:31:54 +00:00
alqahira%ardisson.org
8cdf2a7506 Bug 394063 - Consider continuing to force <select>s to Aqua. Patch by me, with CSS fom Philippe Wittenbergh <phiw@l-c-n.com>; r=hendy, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255701 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 19:24:27 +00:00
lpsolit%gmail.com
e453821723 Post-checkin fix for bug 313126 (better wording when the classification description is removed)
git-svn-id: svn://10.0.0.236/trunk@255700 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 14:12:32 +00:00
lpsolit%gmail.com
e0eb031b75 Bug 313126: Clean up editclassification.cgi and make it use Bugzilla::Classification methods - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255699 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 13:59:25 +00:00
lpsolit%gmail.com
c66c43cd5e Bug 339381: Make Bugzilla::Classification use Bugzilla::Object - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255698 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 13:47:57 +00:00
lpsolit%gmail.com
e01d69d859 Bug 422465: Cloning a bug should cc the original reporter if the cloner isn't the reporter - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255697 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 13:26:51 +00:00
kairo%kairo.at
23f3572868 bug 471010 - Add pt-BR to Chatzilla all-locales
git-svn-id: svn://10.0.0.236/trunk@255696 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 12:34:28 +00:00
kairo%kairo.at
5121aee72f bug 470625 - Add pl to Venkman all-locales
git-svn-id: svn://10.0.0.236/trunk@255695 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 12:30:30 +00:00
mkanat%bugzilla.org
36dafcc096 Bug 211006: Make Bugzilla use SHA-256 instead of crypt() to store hashed passwords in the database
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255694 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 09:11:51 +00:00
nboyd%atg.com
02b22e262f Fix Bug 463875 - ScriptableObject seal documentation
git-svn-id: svn://10.0.0.236/trunk@255693 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 03:14:25 +00:00
nboyd%atg.com
4ced75c520 Fix Bug 468580 - Refactor NativeString & RegExpProxy to have all regexp related stuff in RegExpProxy
git-svn-id: svn://10.0.0.236/trunk@255692 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 02:28:04 +00:00
nboyd%atg.com
a2b6af429e Fix Bug 463867 - Superfluous code in ScriptableObject associateValue
git-svn-id: svn://10.0.0.236/trunk@255691 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 02:25:29 +00:00
nboyd%atg.com
3301cbc3b3 Fix Comment Bug 393794 - __proto__ not set when used in object literal
git-svn-id: svn://10.0.0.236/trunk@255690 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 02:22:16 +00:00
nboyd%atg.com
7c63a7e5f9 Fix Bug 463878 - FunctionObject documentation misplaced <pre> tag
git-svn-id: svn://10.0.0.236/trunk@255689 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 01:42:14 +00:00
nboyd%atg.com
a1b4c727cd Fix Bug 471159 - Fix a couple of javadoc errors
git-svn-id: svn://10.0.0.236/trunk@255688 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-02 01:37:49 +00:00
lpsolit%gmail.com
f32b6f43c2 Bug 455476: clicking "mark as duplicate" should focus the dup_id field - Patch by Guy Pyrzak <guy.pyrzak@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255687 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 23:34:11 +00:00
lpsolit%gmail.com
7055d0f9b2 Bug 179638: Security group inclusion isn't indicated on "New:" bugmail notifications - Patch by Teemu Mannermaa <wicked@sci.fi> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255686 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 23:24:39 +00:00
lpsolit%gmail.com
73a76c338e Bug 452907: Clone should also preserve "Blocks" and "Depends on" fields - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255685 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 23:18:56 +00:00
lpsolit%gmail.com
31d2f99464 Bug 332995: Steps to Reproduce not removed from comment when user leaves default content (steps without blanks) - Patch by Teemu Mannermaa <wicked@sci.fi> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255684 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 23:13:26 +00:00
nboyd%atg.com
8a58a243f9 Fix bug 434041: NaN added to an object when optimization is used
git-svn-id: svn://10.0.0.236/trunk@255683 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 22:02:53 +00:00
lpsolit%gmail.com
72d1e866d3 Bug 471777: $type_id is no longer in use in Search.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255682 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 20:02:44 +00:00
lpsolit%gmail.com
de995309df Bug 309383: New bug submission should include the bug summary in the title of the page - Patch by Alex Eiser <aeiser@arc.nasa.gov> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255681 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 19:16:48 +00:00
lpsolit%gmail.com
e4264e834f Bug 471771: editflagtypes.cgi should display the number of flags per type - Patch by Frédéric Buclin <LpSolit@gmail.com> r=justdave a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255680 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 19:04:53 +00:00
dtownsend%oxymoronical.com
e603b07d5d Adjust testcases to cope with not supporting file versions for plugins on
1.9 branch. Bustage fix.


git-svn-id: svn://10.0.0.236/trunk@255679 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 18:54:29 +00:00
dtownsend%oxymoronical.com
61bed61660 Bug 449027: Support specifying application range for plugins in blocklist.xml. r=robstrong, a1.9.0.6=dveditz
git-svn-id: svn://10.0.0.236/trunk@255678 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 17:57:30 +00:00
alqahira%ardisson.org
d495731cff Bug 471684 - Welcome to 2009! You might be writing 2008 on your checks for the next month, but copyright dates in mozilla/camino will be correct from day 1. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255677 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 06:31:01 +00:00
philringnalda%gmail.com
4dec068866 Bug 470179 - Update browser/toolkit copyright dates to 2009, r=gavin, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255676 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-01 04:03:03 +00:00
anodelman%mozilla.com
97c23de659 Bug 471595 - Talos performance tests do not set dom.max_chrome_script_run_time to zero
p=anodelman r=aki


git-svn-id: svn://10.0.0.236/trunk@255672 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-31 16:52:05 +00:00
ccooper%deadsquid.com
b57c78ed14 b=467808
- allow limiting of added/changed testcases by product


git-svn-id: svn://10.0.0.236/trunk@255671 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-31 15:15:26 +00:00
ghendricks%novell.com
4b9a71210d Allow paging on filtered data when using the quickfilter..
git-svn-id: svn://10.0.0.236/trunk@255670 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-30 23:16:16 +00:00
bhearsum%mozilla.com
d12a3e16cf bug 471427: upload en-US release builds - buildbotcustom patch. r=ccooper, patch=me
git-svn-id: svn://10.0.0.236/trunk@255669 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-30 21:28:53 +00:00
despotdaemon
fe67c7da15 Pseudo-automatic update of changes made by brendan@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@255668 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-30 04:20:43 +00:00
despotdaemon
a80f62a8ad Pseudo-automatic update of changes made by brendan@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@255667 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-30 04:19:52 +00:00
lpsolit%gmail.com
f3747e3b69 Bug 105960: xml.cgi generates invalid XML - Patch by Kip Hampton <khampton@totalcinema.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255666 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-30 01:40:36 +00:00
ghendricks%novell.com
7acc4f87fb Bug 457320 - setting too many long cookies for search and grids
Added status buttons to bottom of run as well.


git-svn-id: svn://10.0.0.236/trunk@255665 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-29 23:48:25 +00:00
lpsolit%gmail.com
e9b69d900b Bug 385163: The guided enter bug form says "Create a new Attachment" link on the bug, but the link is "Add an attachment" - Patch by timeless <timeless@bemail.org> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255664 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-29 21:19:20 +00:00
lpsolit%gmail.com
903f899c0f Bug 468617: OS sniffing doesn't detect OS X 10.5 - Patch by Matt Selsky <selsky@columbia.edu> r=timeless a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255663 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-29 21:12:17 +00:00
ghendricks%novell.com
41e4fc5b4d Bug 457762 - Combo boxes for selecting builds show all builds, rather than just the active ones
git-svn-id: svn://10.0.0.236/trunk@255662 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-29 21:02:58 +00:00
ghendricks%novell.com
a641fdcdcc Bug 458422 - sizing of action/expected tab too large vertically, cutting off bottom of box or scrollbar
git-svn-id: svn://10.0.0.236/trunk@255661 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-29 20:47:33 +00:00
ghendricks%novell.com
530a2fe5d2 Bug 469298 - tr_show_product.cgi: Use of uninitialized value in numeric eq (==)
git-svn-id: svn://10.0.0.236/trunk@255660 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-29 19:57:57 +00:00
bhearsum%mozilla.com
063b5f5d76 bug 452472: upload release Source files - buildbotcustom patch. r=ccooper, patch=me
git-svn-id: svn://10.0.0.236/trunk@255659 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-29 18:39:33 +00:00
mstange%themasta.com
96f3186529 Bug 462245 - Remove override of +[NSGrayFrame drawBevel:...] because it's unnecessary and causes a crash with ShapeShifter on 10.4, r=josh sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255658 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-29 15:03:27 +00:00
lpsolit%gmail.com
0473437427 Bug 471324: Don't build mail headers for existing bugs (too many calls to multiline_sprintf()) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255656 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-29 00:10:44 +00:00
lpsolit%gmail.com
0f1b2f5360 Bug 465589: Already selected user accounts are no longer displayed when usemenuforusers is enabled and the account has been disabled - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255655 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-29 00:05:15 +00:00
Olli.Pettay%helsinki.fi
0ae9f4508c Bug 470419, r+sr=bz, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255654 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-28 19:46:17 +00:00
psychoticwolf%carolina.rr.com
7e986f49f4 Bug 273751 - [DIST] win32 install docs are out of date
git-svn-id: svn://10.0.0.236/trunk@255653 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-28 07:16:55 +00:00
psychoticwolf%carolina.rr.com
77a073d26b Comment Fixes:
Bug 206448 - [DIST] Document Net::IRC's use of Time::HiRes and errors if its missing
Bug 471311 - [Tinderbox] Tinderbox handles invalid tree names now


git-svn-id: svn://10.0.0.236/trunk@255652 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-28 06:39:26 +00:00
psychoticwolf%carolina.rr.com
5af7f10aaa Bug 469618 - [Tinderbox] Mozbot ignores trees that have no state
git-svn-id: svn://10.0.0.236/trunk@255651 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-27 05:07:16 +00:00
psychoticwolf%carolina.rr.com
95d92f4497 Bug 135794 - [TINDERBOX] URL not configurable, add tinderbox2 support. Patch by Adam Di Carlo <adam@onshored.com>, with minor updates by me, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@255650 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-27 05:05:05 +00:00
psychoticwolf%carolina.rr.com
225c596036 Bug 469610 - [Tinderbox] New Build Added and Build Drop Messages should have which tree at the beginning
git-svn-id: svn://10.0.0.236/trunk@255649 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-27 05:02:57 +00:00
psychoticwolf%carolina.rr.com
03cd7de0d4 Bug 130849 - [TINDERBOX] unmute syntax is ambiguous
git-svn-id: svn://10.0.0.236/trunk@255648 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-27 05:01:38 +00:00
mkanat%bugzilla.org
f4b679266a Fix a POD error in Bugzila::JobQueue::Runner.
git-svn-id: svn://10.0.0.236/trunk@255647 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-27 00:52:12 +00:00
mark.finkle%gmail.com
414e94c12a b=471023, r=bhearsum. Do XULRunner 1.9.0.5 release spin
git-svn-id: svn://10.0.0.236/trunk@255641 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-25 17:26:18 +00:00
mkanat%bugzilla.org
3309b66806 Bug 347707: Changing parameters could silently fail because we weren't correctly checking the return code from "rename"
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255639 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-24 19:08:20 +00:00
gavin%gavinsharp.com
b0679e70b7 Bug 466531: Upgraded to NSPR 4.7.3. Added a Mac OS X workaround for the bug that jscpucfg.c doesn't define the correct endianness macro for cross compilation to an OS with multiple CPU architectures. Patch by Wan-Teh Chang <wtc@google.com>. r=mark,crowder,jim. Approved for 1.9.0.6, a=dveditz for release-drivers
git-svn-id: svn://10.0.0.236/trunk@255638 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-24 18:36:25 +00:00
bhearsum%mozilla.com
cc151e1353 bug 464154: Enable release repacks ond l10n-upload-% target for nightly/release l10n builds. r=ccooper,armenzg
git-svn-id: svn://10.0.0.236/trunk@255637 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-24 14:31:52 +00:00
mozilla%weilbacher.org
ef5216578a [OS/2] Bug 458112: get rid of VisualAge in LDAP C SDK, p=wuno@lsvw, r=me/mcs/richm
git-svn-id: svn://10.0.0.236/trunk@255636 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-24 09:39:56 +00:00
mkanat%bugzilla.org
97321e5fa5 Fix some test failures caused by the checkin of bug 284184.
git-svn-id: svn://10.0.0.236/trunk@255635 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-24 04:30:55 +00:00
mkanat%bugzilla.org
3ef17d8edf Bug 284184: Allow Bugzilla to use an asynchronous job queue for sending mail.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> and Mark Smith <mark@plogs.net> r=glob, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255634 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-24 03:43:49 +00:00
ghendricks%novell.com
bda17c9a3c Remove referential integrity where it is not needed.
git-svn-id: svn://10.0.0.236/trunk@255633 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 22:35:31 +00:00
anodelman%mozilla.com
f940e8ee76 Bug 379233 - Pageload tests should flush out layout before timing load end
Bustage fix, backing out patch to check offset (attempt #3) - stalling talos boxes
p/r=anodelman


git-svn-id: svn://10.0.0.236/trunk@255632 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 22:31:28 +00:00
anodelman%mozilla.com
b2b0902364 Bug 444171 - more readable/compact talos output to waterfall
p=anodelman r=bhearsum


git-svn-id: svn://10.0.0.236/trunk@255631 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 22:12:53 +00:00
anodelman%mozilla.com
7b712a236e Bug 379233 - pageload tests should flush out layout before timing load end
p=anodelman r=vladimir


git-svn-id: svn://10.0.0.236/trunk@255630 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 22:11:01 +00:00
anodelman%mozilla.com
85d95c72ff Bug 463020 - Talos machines should be automatically rebooted periodically
p=catlee r=anodelman


git-svn-id: svn://10.0.0.236/trunk@255629 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 22:02:18 +00:00
anodelman%mozilla.com
197dd478fd Bug 470113 - move talos jss machines from firefox3.0 to moz-central
p=anodelman r=bhearsum


git-svn-id: svn://10.0.0.236/trunk@255628 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 21:59:47 +00:00
ghendricks%novell.com
4e70de294b Double escaped URL components
git-svn-id: svn://10.0.0.236/trunk@255627 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 20:02:12 +00:00
ccooper%deadsquid.com
84ca97562f b=470715
r=armenzg
- update client.mk before other modules


git-svn-id: svn://10.0.0.236/trunk@255626 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 19:40:09 +00:00
ccooper%deadsquid.com
bb58b3b667 b=470943
- update links to tutorials


git-svn-id: svn://10.0.0.236/trunk@255625 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 19:22:55 +00:00
ghendricks%novell.com
404a661664 Add new lib directory to lib path.
git-svn-id: svn://10.0.0.236/trunk@255624 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 18:17:05 +00:00
alqahira%ardisson.org
02fc53ec2b Show that the Top 10 collection is the Dock menu when the Top 10 collection is chosen via fallback/default (e.g., on a fresh profile). Part of Bug 314628 - Improve discoverability of dock menu bookmarks folder. Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255623 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 05:30:06 +00:00
psychoticwolf%carolina.rr.com
bd38b026a7 Bug 470412 - [SEEN] Sanitize regexp and improve performance of new wildcard matching. Patch by Cww <cwwmozilla@gmail.com>, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@255622 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 01:05:06 +00:00
jwalden%mit.edu
9d5cc87853 Bug 459405 - Math property flags regressed by bug 376957. r=brendan, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255621 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-23 00:24:52 +00:00
blassey%mozilla.com
34e4240635 Bug 460767 - Crash in imgRequest.cpp in OOM conditions r=pavlov r=joedrew a1.9.0.6=dveditz
git-svn-id: svn://10.0.0.236/trunk@255620 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-22 20:44:52 +00:00
ghendricks%novell.com
b801678c9a Bug 470411 - uninitialized value warnings when running checksetup.pl
git-svn-id: svn://10.0.0.236/trunk@255619 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-22 19:43:42 +00:00
alqahira%ardisson.org
ed0e83a4f0 Bug 469037 - Support the import of SeaMonkey bookmarks.html. r=cl, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255618 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-22 18:57:25 +00:00
bhearsum%mozilla.com
53af2f76b1 bug 467485: Use branch name to run certain unit tests on mac. r=me, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255617 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-22 17:49:42 +00:00
bhearsum%mozilla.com
586b01a262 bug 467485: Use branch name to run certain unit tests on mac. r=me, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255616 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-22 17:39:49 +00:00
mkanat%bugzilla.org
79be41c859 Bug 470442: Only delete tainted environment variables if we're running in taint mode
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255615 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-22 15:50:53 +00:00
dbaron%dbaron.org
7cff9ab236 Use a local stack rather than the call stack in SkipUntil to avoid excessive recursion. (Bug 432561) r+sr=bzbarsky a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255614 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-22 15:44:50 +00:00
gijskruitbosch%gmail.com
3491572fe5 Bug 384040 - Save the input box history between sessions
r=silver@warwickcompsoc.co.uk (James Ross)
a=ChatZilla Only, NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@255613 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-21 21:01:07 +00:00
gijskruitbosch%gmail.com
2eab866eda Bug 436759 - "log this view" in Global Settings / General opens a tab for each previously logged view
r=silver@warwickcompsoc.co.uk (James Ross)
a=ChatZilla Only, NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@255612 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-21 16:42:13 +00:00
gijskruitbosch%gmail.com
9d7cbe660e Bug 470424 - "is logged in as" (330) numeric displayed in wrong tab
r=silver@warwickcompsoc.co.uk (James Ross)
p=glenjamin+bmo@gmail.com (Glen Mailer)
a=ChatZilla Only, NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@255611 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-21 16:32:31 +00:00
gijskruitbosch%gmail.com
8bf986e458 Bug 469348 - should be able to view a single alias with the /alias command
r=silver@warwickcompsoc.co.uk (James Ross)
p=glenjamin+bmo@gmail.com (Glen Mailer)
a=ChatZilla Only, NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@255610 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-21 16:28:12 +00:00
gijskruitbosch%gmail.com
031ed2eb21 Bug 450029 - Add /unalias command
r=silver@warwickcompsoc.co.uk (James Ross)
p=glenjamin+bmo@gmail.com (Glen Mailer)
a=ChatZilla Only, NPOTFFB.


git-svn-id: svn://10.0.0.236/trunk@255609 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-21 16:24:32 +00:00
szegedia%freemail.hu
19a8cd1c67 Fix for bug #470631 "Type flow analysis does not assume as much as it could for numeric operators"
git-svn-id: svn://10.0.0.236/trunk@255608 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-21 13:48:19 +00:00
szegedia%freemail.hu
f3126d493e Fix (and testcase) for Bug #469937 "Properties without DontEnum are sometimes not enumerated"
git-svn-id: svn://10.0.0.236/trunk@255607 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-21 13:43:44 +00:00
szegedia%freemail.hu
dfc0b0b8a4 Need junit.jar to compile
git-svn-id: svn://10.0.0.236/trunk@255606 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-21 13:22:46 +00:00
dcamp%mozilla.com
5e0da48ac8 Temporarily remove tests for bug 441751, see bug 470530. a=ssidler
git-svn-id: svn://10.0.0.236/trunk@255605 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-20 07:20:54 +00:00
dcamp%mozilla.com
bd5bee2cc1 Add a debugging dump to help diagnose test failures from bug 441751
git-svn-id: svn://10.0.0.236/trunk@255604 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-20 06:49:48 +00:00
wtc%google.com
953cfc6082 Bug 470528: added support for __ARMEL__, __ARMEB__, __sparc_v9__, and
__amd64__.  Based on patch-aa, rev. 1.4, in
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/nspr/patches/patch-aa.
r=wtc.


git-svn-id: svn://10.0.0.236/trunk@255601 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-20 06:26:34 +00:00
wtc%google.com
0b9f65c2af Bug 470528: We really don't want to use getproto reentrant functions.
Also, add missing extern declarations.  Based on patch-ab, rev. 1.4, by bjs
in http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/nspr/patches/patch-ab.
r=wtc.


git-svn-id: svn://10.0.0.236/trunk@255600 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-20 06:15:23 +00:00
dcamp%mozilla.com
af0f294211 Bug 441751: Directives not to cache pages ignored. [r+sr=bzbarsky, a=dveditz]
git-svn-id: svn://10.0.0.236/trunk@255599 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-20 05:47:45 +00:00
nrthomas%gmail.com
34cf3198c7 Bug 470521, patcher and verify configs for Firefox 2.0.0.20 --> 3.0.5 major update, r pending
git-svn-id: svn://10.0.0.236/trunk@255598 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-20 05:05:28 +00:00
alexei.volkov.bugs%sun.com
d73995803a 470070 - Multiple object leaks reported by tinderbox. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255597 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-19 21:53:35 +00:00
nrthomas%gmail.com
fb5e7d091a Bug 470359, ignore comings and goings of talos machines from waterfalls, we have other ways to monitor them, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@255596 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-19 20:18:20 +00:00
bhearsum%mozilla.com
9223a85431 bug 467485: test for Shiretoko and Minefield.app before trying to setup a symlink. r=catlee, patch=me
git-svn-id: svn://10.0.0.236/trunk@255595 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-19 18:51:14 +00:00
lpsolit%gmail.com
4bd8daaf4e Bug 469136: The font size is too small with the Classic skin (especially in bug comments) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=pyrzak a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255594 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-19 01:09:28 +00:00
alqahira%ardisson.org
23de5bead1 Next release will be 2.0b2
git-svn-id: svn://10.0.0.236/trunk@255593 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-19 00:01:35 +00:00
alqahira%ardisson.org
20c3bba402 Bug 453737 - Release Notes for Camino 2.0b1 (and kick the installer Makefile to use them). r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255590 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 23:16:48 +00:00
ghendricks%novell.com
1f317c96cc bump the revision
git-svn-id: svn://10.0.0.236/trunk@255589 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 23:03:19 +00:00
ghendricks%novell.com
93989d2a6a updated patches and JS
git-svn-id: svn://10.0.0.236/trunk@255588 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 22:42:04 +00:00
anodelman%mozilla.com
9a771107dc Bug 470106 - talos doesn't stop successfully on browser crash on mac tiger
p=anodelman r=bhearsum


git-svn-id: svn://10.0.0.236/trunk@255587 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 22:40:56 +00:00
anodelman%mozilla.com
9c78724787 Bug 450666 - Increase intervals for long-running tests
p=anodelman r=bhearsum


git-svn-id: svn://10.0.0.236/trunk@255586 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 22:37:35 +00:00
ghendricks%novell.com
7e5a913dfb Bug 419571 - Deleting products in Bugzilla breaks testopia
git-svn-id: svn://10.0.0.236/trunk@255585 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 17:35:55 +00:00
ghendricks%novell.com
9a41fa88ee Typo in filename. Should be extensions/example/code/product-confirm_delete.pl
git-svn-id: svn://10.0.0.236/trunk@255584 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 17:33:35 +00:00
ghendricks%novell.com
abc160595b Bug 419748 - Need to hook deleting products
patch by ghendricks@novell.com r=mkanat a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255583 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 17:19:33 +00:00
ghendricks%novell.com
0465b094d5 Back out revision 1.5
git-svn-id: svn://10.0.0.236/trunk@255582 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 16:51:55 +00:00
dkl%redhat.com
9106f47ff9 Bug 419496 - Cannot easily share saved searches
Patch by Dave Lawrence <dkl@redhat.com> - r/a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255581 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 15:55:31 +00:00
dkl%redhat.com
9877821208 Bug 31117 - should have a "submit only my comments" option on midair collision
Patch by Dave Lawrence <dkl@redhat.com> - r/a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255580 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 15:42:45 +00:00
bhearsum%mozilla.com
6ab3172214 bug 467485: reftest, crashtest and BrowserChrome broken on unittest mac since Shiretoko branding - symlink shiretoko to minefield. r=lsblakk,catlee, patch=me
git-svn-id: svn://10.0.0.236/trunk@255579 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 15:33:24 +00:00
bhearsum%mozilla.com
9b24bf5a40 bug 465868: have one Buildbot master instance and pool of slaves produce all builds and unittests for moz2. r=me,lsblakk, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255578 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 13:34:48 +00:00
mats.palmgren%bredband.net
54d926e636 Fix the parent pointer for ::first-letter child frame next-in-flows. b=401042 r+sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255577 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 09:09:10 +00:00
mats.palmgren%bredband.net
d39981d84f Inherit -moz-box-ordinal-group to special frames and use a stable sorting algorithm (mergesort). b=431705 r+sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255576 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 09:07:12 +00:00
psychoticwolf%carolina.rr.com
176ce4414b Bug 303287 - [GREETING] Option to disable the 'C++ is evil' type messages in certain channels. Original patch by Colin Ogilvie <colin.ogilvie@gmail.com> with minor update by me (adding global support), r=Me for Colin's portion.
git-svn-id: svn://10.0.0.236/trunk@255575 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 06:08:43 +00:00
nrthomas%gmail.com
f22d6475be bug 469975, bump Firefox nightly version to 2.0.0.21pre, p=bhearsum, r=me
git-svn-id: svn://10.0.0.236/trunk@255574 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 03:13:09 +00:00
cltbld
d8e925bcad "Automated configuration bump, release for firefox 2.0.0.20build1"
git-svn-id: svn://10.0.0.236/trunk@255573 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 03:03:55 +00:00
cltbld
b212907707 "Automated configuration bump: moz18-branch-patcher2.cfg, from 2.0.0.19 to 2.0.0.20"
git-svn-id: svn://10.0.0.236/trunk@255572 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 01:38:17 +00:00
glen.beasley%sun.com
6fc09547f5 433062 hasht.h and sechash.h are public headers r=nelson
git-svn-id: svn://10.0.0.236/trunk@255571 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 01:20:22 +00:00
ghendricks%novell.com
559496f11d Synch Bugzilla 3.0 and 3.2 versions
git-svn-id: svn://10.0.0.236/trunk@255570 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-18 00:14:49 +00:00
psychoticwolf%carolina.rr.com
7f34f92a1b Bug 300472 - [BUGZILLA] Display resolution AND status in bugmail notifications: Part 1 - Announcements should be in the same order as the Bugzilla diff table. Patch by Colin Ogilvie <colin.ogilvie@gmail.com>, r=mkanat
git-svn-id: svn://10.0.0.236/trunk@255569 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 22:51:25 +00:00
psychoticwolf%carolina.rr.com
e77e046e2c Fix whitespace errors in the checkin for Bug 469624, oops.
git-svn-id: svn://10.0.0.236/trunk@255568 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 22:26:18 +00:00
dbaron%dbaron.org
c5b2acca18 Make the html:link display:none so it doesn't trigger wrapping. (Bug 469983) r=gijskruitbosch+bugs
git-svn-id: svn://10.0.0.236/trunk@255567 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 22:13:58 +00:00
glen.beasley%sun.com
cea2043bf8 433063 move header to correct directories under freebl and softoken r=nelson
git-svn-id: svn://10.0.0.236/trunk@255566 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 21:39:05 +00:00
nboyd%atg.com
e1fc11509e A couple more test cases.
git-svn-id: svn://10.0.0.236/trunk@255565 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 21:24:39 +00:00
nboyd%atg.com
eac8482a81 Expanded test case to cover case in bug 465962.
git-svn-id: svn://10.0.0.236/trunk@255564 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 21:09:11 +00:00
glen.beasley%sun.com
f58ada9fa4 469989 Add SEED support to JSS r=nelson
git-svn-id: svn://10.0.0.236/trunk@255563 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 18:39:53 +00:00
dkl%redhat.com
5c8e022e06 Bug 460909 - Mass edit bug form does not allow adding private comments
Patch by Dave Lawrence <dkl@redhat.com> - r/a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255562 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 17:39:08 +00:00
lpsolit%gmail.com
fdc97c22a2 Bug 469992: Bugzilla Installer is no longer available - Patch by miketosh <michael.j.tosh@lmco.com> r=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255554 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 16:24:44 +00:00
bhearsum%mozilla.com
50caf9634c Fix oldBuild for 2.0.0.20 release.
git-svn-id: svn://10.0.0.236/trunk@255553 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 16:01:18 +00:00
lpsolit%gmail.com
edb686a4a0 Bug 467171: Editing attachments doesn't update the Last-Modified bug timestamp - Patch by A.A. Shimono <shimono@mozilla.gr.jp> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255552 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 15:07:28 +00:00
slavomir.katuscak%sun.com
41c1c1577c Bug 467542 - Fix for CVS change message. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255551 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 14:25:02 +00:00
bhearsum%mozilla.com
9746b2232b bug 469975: bootstrap bumps for 2.0.0.20 release. r=0day
git-svn-id: svn://10.0.0.236/trunk@255549 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 13:51:12 +00:00
nelson%bolyard.com
166f9abac3 Fix bug with last checkin for SEED. MSVC is just too forgiving!
git-svn-id: svn://10.0.0.236/trunk@255548 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 07:04:51 +00:00
nelson%bolyard.com
3bf81e175c Bug 453234: Support for SEED Cipher Suites to TLS RFC 4010
patch by Yeonjung Kang <kang.yeonjung@gmail.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@255547 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 06:09:22 +00:00
dietrich%mozilla.com
5715264bd7 Bug 466937 - improve input field filtering (for zeniko@gmail.com, r=dietrich, a=dveditz)
git-svn-id: svn://10.0.0.236/trunk@255546 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-17 05:18:26 +00:00
lpsolit%gmail.com
c68bc61f7e Bug 461534: search_plugin.cgi should get icon from images/favicon.ico - Patch by Rob Siklos <robzilla2@siklos.ca> r/a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255545 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 22:39:42 +00:00
ccooper%deadsquid.com
689629bb31 b=469429
r=armenzg
- Move declarations up front so schedulers can use them, set cvsroot for l10n scheduler


git-svn-id: svn://10.0.0.236/trunk@255544 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 21:27:16 +00:00
mkanat%bugzilla.org
3329d84b3c Bug 468728: The 'allowemailchange' parameter should default to 1
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255542 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 21:22:02 +00:00
mkanat%bugzilla.org
a5d39268ec Bug 467701: USAGE_MODE_CMDLINE should be the default if not i_am_cgi()
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255541 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 21:16:33 +00:00
wtc%google.com
b8c82b03c2 Dummy whitespace change to force the Tinderboxes to rebuild.
git-svn-id: svn://10.0.0.236/trunk@255539 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 19:36:33 +00:00
bhearsum%mozilla.com
b961dd3b55 Version bump on tracemonkey nagios configs.
git-svn-id: svn://10.0.0.236/trunk@255538 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 17:56:47 +00:00
bhearsum%mozilla.com
f85916bfd5 bug 468823: Unittests should be run with DISPLAY=:2 on linux. r=me, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255537 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 16:50:28 +00:00
mkanat%bugzilla.org
78f05e97ff Bug 469793: [MySQL] In MySQL 5, columns sometimes had defaults that have no defaults in the Schema
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255536 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 10:34:37 +00:00
rflint%ryanflint.com
942d7bcfd1 Bug 131321 - [SEEN] Wildcards for seen command. Patch by justdave and myself. r=wolf
git-svn-id: svn://10.0.0.236/trunk@255535 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 04:43:44 +00:00
rflint%ryanflint.com
52e30482b1 Bug 341484 - [GREETING] Remove seen stuff. r=wolf
git-svn-id: svn://10.0.0.236/trunk@255534 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 04:40:46 +00:00
alqahira%ardisson.org
3ca4e997f1 Bug 418359 - Start drag of background tabs with one click. Patch by Stuart Morgan <stuart.morgan+bugzilla@gmail.com>, r=murph, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255533 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 03:39:25 +00:00
alqahira%ardisson.org
701218f5df Bug 371895 - Implement a flashblock whitelist for Camino. Patch by Bryan Atwood <batwood.bugs@gmail.com>, r=smorgan, sr=pink.
git-svn-id: svn://10.0.0.236/trunk@255532 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 03:01:00 +00:00
psychoticwolf%carolina.rr.com
d4567d022f Bug 469624 - [BUGZILLA] Option to skip reporting bug details for automated change notifications.
git-svn-id: svn://10.0.0.236/trunk@255531 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 00:44:40 +00:00
wtc%google.com
245467527c Bug 469508: made errStrBuf thread-safe by allocating it on the stack.
r=julien.pierre.


git-svn-id: svn://10.0.0.236/trunk@255530 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 00:36:56 +00:00
wtc%google.com
178538e443 Bug 469744: Implement PR_OpenSemaphore with System V semaphores on Mac OS
X.  TBR=glen.beasley.
Modified files: _darwin.h ptsynch.c


git-svn-id: svn://10.0.0.236/trunk@255529 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 00:21:46 +00:00
psychoticwolf%carolina.rr.com
fd6d807500 Bug 469614 - [BUGZILLA] Truncate buglog on module startup.
git-svn-id: svn://10.0.0.236/trunk@255528 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 00:12:57 +00:00
psychoticwolf%carolina.rr.com
f08cff12ea Bug 469617 - [mozbot.pl] CTCP Gender reply should be configurable.
git-svn-id: svn://10.0.0.236/trunk@255527 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 00:05:37 +00:00
alqahira%ardisson.org
8e5994ba4d Bug 360858 - Escape should cancel active edit in Bookmark Manager. Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=hendy, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255526 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-16 00:05:34 +00:00
alqahira%ardisson.org
8a67dce715 Bug 465242 - Clean up ProgressDlgController.mm. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r=kreeger, r=jeff, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255525 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-15 23:54:18 +00:00
alqahira%ardisson.org
ca01f71edf Bug 326872 - Make tab site icons (favicons) the same size as in the location bar. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=jeff, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255524 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-15 22:48:41 +00:00
smichaud%pobox.com
29c822ca87 10.4-only top crash at [@ nsNativeThemeCocoa::DrawCellWithScaling]. b=458961 r=mstange,stuart.morgan
sr=vlad a=dveditz


git-svn-id: svn://10.0.0.236/trunk@255522 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-15 20:29:22 +00:00
ccooper%deadsquid.com
2c97411785 b=445248
- don't memoize anything


git-svn-id: svn://10.0.0.236/trunk@255521 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-15 16:37:28 +00:00
psychoticwolf%carolina.rr.com
748ebbba25 Bug 432165 - mozbot does not automatically make itself a bot. r=reed
git-svn-id: svn://10.0.0.236/trunk@255520 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-15 09:15:18 +00:00
wtc%google.com
622d951147 Bug 456449: First installment of changes needed for compiling WinMobile
WinCE Build.  Contributed by John Wolfe <wolfe@lobo.us>, Doug Turner
<doug.turner@gmail.com>, and Brad Lassey <bugmail@lassey.us>.  r=wtc.
Modified Files:
	configure configure.in config/Makefile.in config/now.c
	config/rules.mk pr/include/pratom.h pr/include/md/_win95.cfg
	pr/include/md/_win95.h pr/include/md/prosdep.h


git-svn-id: svn://10.0.0.236/trunk@255519 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-15 03:28:46 +00:00
nrthomas%gmail.com
3ef1f708f7 Bug 468831, bump timeout for compile to 90 minutes, r=ccooper
git-svn-id: svn://10.0.0.236/trunk@255518 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-15 03:15:46 +00:00
lpsolit%gmail.com
b298bd3d21 Bug 469207: Old chart reports crash if there is no data yet - Patch by Frédéric Buclin <LpSolit@gmail.com> r=gerv a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255517 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-14 14:29:59 +00:00
wtc%google.com
fabb633e4c Bug 370766: test the predefined __LITTLE_ENDIAN__ macro. TBR=glen.beasley
git-svn-id: svn://10.0.0.236/trunk@255516 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-13 20:54:33 +00:00
wtc%google.com
d7e20083d5 Bug 370766: support 64-bit Mac OS X x86_64, which uses the dlopen functions
(declared in <dlfcn.h>) for dynamic library loading, and doesn't support
CFBundles.  Contributed by Glen Beasley <glen.beasley@sun.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@255515 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-13 19:34:10 +00:00
ghendricks%novell.com
67e011582b Clean up for 2.2
git-svn-id: svn://10.0.0.236/trunk@255510 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-12 23:52:22 +00:00
alqahira%ardisson.org
f6b4ece647 Bug 404943 - [10.5] Bounce the download folder in the Dock when downloads finish. Patch by Ilya Sherman <ishermandom+bugs@gmail.com>, r=cl, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255509 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-12 19:50:07 +00:00
szegedia%freemail.hu
633e4a126f Adding testcases for NaN/Infinity.toExponential(...)/toPrecision() should not check range (see Bug #467276)
git-svn-id: svn://10.0.0.236/trunk@255508 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-12 11:43:56 +00:00
szegedia%freemail.hu
46812e1385 Fix for #467276: NaN/Infinity.toExponential(...) should not check range
git-svn-id: svn://10.0.0.236/trunk@255507 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-12 11:42:55 +00:00
alqahira%ardisson.org
962c31bc46 Bug 458149 - Clean up style problems in PreferenceManager. Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=jeff, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255504 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-12 03:29:32 +00:00
alqahira%ardisson.org
b1ded04912 Bug 384691 - Bookmarks from Apple Address Book should display company / organization where Company option is selected and Bug 462785 - Address Book smart folder builds 'Name' field in non-localized way. Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=hendy, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255503 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-12 03:15:07 +00:00
bhearsum%mozilla.com
3fa889c187 bug 464103: Create a MozillaBuildFactory base class that runs build cleanup steps. r=bhearsum, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255502 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 22:31:35 +00:00
ccooper%deadsquid.com
e093cafee4 b=456281
p=lukasblakk
r=ccooper
- remove platform-specific steps for 3.0


git-svn-id: svn://10.0.0.236/trunk@255501 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 20:35:05 +00:00
bhearsum%mozilla.com
16d165c5b0 bug 468479: mozilla2/ and mozilla2-staging/ Buildbot configs need to allow different mozconfigs for different repositories - relanding. r=nrthomas, patch=me
git-svn-id: svn://10.0.0.236/trunk@255500 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 20:22:51 +00:00
ghendricks%novell.com
66cdf2b177 License for product hook
git-svn-id: svn://10.0.0.236/trunk@255499 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 20:12:56 +00:00
ccooper%deadsquid.com
e42968448f b=467721
r=nthomas
- Run l10n build steps in the build/ subdir to allow for proper cleanup


git-svn-id: svn://10.0.0.236/trunk@255498 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 19:26:26 +00:00
ccooper%deadsquid.com
31342583b1 b=456281
- Remove platform-specific steps from the unittest factory


git-svn-id: svn://10.0.0.236/trunk@255497 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 19:23:33 +00:00
ccooper%deadsquid.com
739186056a b=465505
r=bhearsum
- Use try blocks for getProperty


git-svn-id: svn://10.0.0.236/trunk@255496 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 19:21:07 +00:00
ccooper%deadsquid.com
73bd395e75 b=456281
r=lukasblakk
- Remove platform-specific test steps


git-svn-id: svn://10.0.0.236/trunk@255495 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 19:19:58 +00:00
alqahira%ardisson.org
086765c715 Bug 469015 - Release Notes for Camino 1.6.6. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255493 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 18:31:36 +00:00
hannes%helma.at
da4edd19c5 Change patches for bug 374918 and bug 468070 to use the variable object as scope argument instead of the this object .
git-svn-id: svn://10.0.0.236/trunk@255491 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 16:59:28 +00:00
hannes%helma.at
2f41323029 Fix bug 468070 - New variation of primitive prototype resolution bug: foo['someProp']
git-svn-id: svn://10.0.0.236/trunk@255490 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 15:39:20 +00:00
bhearsum%mozilla.com
3948f3e55c Revert mozconfig rearrangement change.
git-svn-id: svn://10.0.0.236/trunk@255489 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 14:33:50 +00:00
bhearsum%mozilla.com
424fa5a1a2 bug 468577: mochitest leak test failures should TinderboxPrint a line for the failure. r=bhearsum,ccooper, patch=jwalden
git-svn-id: svn://10.0.0.236/trunk@255488 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 14:20:55 +00:00
bhearsum%mozilla.com
65a00e5b45 bug 468479: mozilla2/ and mozilla2-staging/ Buildbot configs need to allow different mozconfigs for different repositories. r=nrthomas, patch=me
git-svn-id: svn://10.0.0.236/trunk@255487 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 14:10:14 +00:00
slavomir.katuscak%sun.com
a324bac4ad Bug 461544: Adding DSA support. r=alexei
git-svn-id: svn://10.0.0.236/trunk@255486 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 12:26:46 +00:00
surkov.alexander%gmail.com
dabcd1ff2f Bug 460417 - invalid handling of selection changes inside input element, r=aaronlev, marcoz, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255485 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 10:19:37 +00:00
karlt+%karlt.net
72fb709f07 b=455647 garbage Indic characters on parts of some English webpages. r=pavlov a1.9.0.6=dveditz
git-svn-id: svn://10.0.0.236/trunk@255484 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 05:36:45 +00:00
alqahira%ardisson.org
9be339d935 Bug 469025 - Add 'Imported OmniWeb 5 Bookmarks' to Localizable.strings to expose it to localization. r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255483 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 05:21:11 +00:00
stuart.morgan%alumni.case.edu
56dc91140d Bug 156583: Tell plugins to hide when their owning ChildView is removed from its window. r=smichaud sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255482 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 00:33:48 +00:00
dholbert%cs.stanford.edu
0bd609111a Bug 420697: Add svgGlyphFrame check to GetStrokeDashoffset and GetStrokeDashArray, making them match GetStrokeWidth. r+sr=roc a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255481 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 00:27:03 +00:00
ted.mielczarek%gmail.com
95e3a25d0c bug 432415 - Strip trailing newlines when editor.singleline.pasteNewlines == 2 (Copy pasting a cell from an xls/ods file adds an extra space at the end). r+sr=neil, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255480 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-11 00:15:26 +00:00
nelson%bolyard.com
11f55a56aa Bug 414635 - Implement HASH_GetType. r=nelson,rrelyea
Patch contributed by Honza Bambas (:mayhemer) <honzab@allpeers.com>


git-svn-id: svn://10.0.0.236/trunk@255478 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:42 +00:00
wtc%google.com
47d7f96061 Bug 436430: NSS public headers should not use NSPR 1.0 compatibility types
and macros.  Replaced PRArenaPool by PLArenaPool and int64 by PRTime.  The
patch is generated by Nelson Bolyard <nelson@bolyard.com>.  r=wtc
Modified Files:
	certdb/cert.h certdb/certdb.h certdb/certt.h certhigh/ocsp.h
	cryptohi/cryptohi.h cryptohi/keyhi.h cryptohi/keythi.h
	freebl/blapit.h pk11wrap/pk11priv.h pk11wrap/pk11pub.h
	pk11wrap/secmodt.h pkcs12/p12.h pkcs12/p12t.h pkcs12/pkcs12t.h
	pkcs7/pkcs7t.h pkcs7/secpkcs7.h smime/cms.h util/nssb64.h
	util/secasn1.h util/secder.h util/secdig.h util/secitem.h
	util/secoid.h


git-svn-id: svn://10.0.0.236/trunk@255477 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:41 +00:00
wtchang%redhat.com
6da134d7b6 Bugzilla Bug 313196: HMAC code should not use a fixed hash input block size
of 64 bytes, which is wrong for SHA-384 and SHA-512.  This requires adding
the hash input block size to the SECHashObject structure. r=relyea,nelsonb
Modified Files:
	cryptohi/hasht.h cryptohi/sechash.c freebl/alghmac.c
	freebl/blapit.h freebl/rawhash.c


git-svn-id: svn://10.0.0.236/trunk@255476 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:40 +00:00
rrelyea%redhat.com
5574e013e4 [Bug 401928] Support generalized PKCS#5 v2 PBEs
Still part of the pk11wrap patch
r=nelson


git-svn-id: svn://10.0.0.236/trunk@255475 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:39 +00:00
rrelyea%redhat.com
d55e9b04d6 Bug 391296 – Need an update helper for Shared Databases
r=nelson.


git-svn-id: svn://10.0.0.236/trunk@255474 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:38 +00:00
wtc%google.com
49afdfd211 Bug 402777: moved all fake PKCS #11 defines from secmodt.h to pkcs11n.h.
r=rrelyea.  In loader.c, functions returning void must not return a value.
Modified Files:
	lib/freebl/loader.c lib/pk11wrap/secmodt.h
	lib/softoken/pkcs11n.h


git-svn-id: svn://10.0.0.236/trunk@255473 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:37 +00:00
julien.pierre.bugs%sun.com
d71daa298c Fix for bug 90426 . Stop using obsolete int32 and uint32 typedefs . r=nelson
git-svn-id: svn://10.0.0.236/trunk@255472 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:36 +00:00
gerv%gerv.net
0ba7689a6e Bug 236613: change to MPL/LGPL/GPL tri-license. Restore Id: lines.
git-svn-id: svn://10.0.0.236/trunk@255471 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:35 +00:00
wtc%google.com
6a4a31320e Bug 402777: Two changes to make lib/util more stand-alone. Moved
CKM_INVALID_MECHANISM from secmodt.h to pkcs11n.h.  Moved the three
CERTValidity functions from lib/util/sectime.c to lib/certdb/certdb.c.
r=rrelyea.
Modified Files:
	lib/certdb/certdb.c lib/nss/utilwrap.c lib/pk11wrap/secmodt.h
	lib/softoken/pkcs11n.h lib/util/nssutil.def lib/util/secoid.c
	lib/util/sectime.c lib/util/utilrename.h


git-svn-id: svn://10.0.0.236/trunk@255470 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:34 +00:00
rrelyea%redhat.com
ce0555eb14 Need to provide a way to modify and create new PKCS #11 objects.
bug 401026
r=julien

Implements 2 new functions, one to modify existing pkcs #11 objects, and
another to creat them.


git-svn-id: svn://10.0.0.236/trunk@255469 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:33 +00:00
julien.pierre.bugs%sun.com
e1c2071eb3 Fix for bug 220115 . Make the CKM constants unsigned . r=nelson
git-svn-id: svn://10.0.0.236/trunk@255468 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:32 +00:00
rrelyea%redhat.com
f35cc7615f Add Camilla cipher suites TLS RFC4132 bug 361025
code supplied by okazaki@kick.gr.jp


git-svn-id: svn://10.0.0.236/trunk@255467 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:31 +00:00
relyea%netscape.com
2eba608c1d Bug 272484 Certificate manager crashes [@ _PR_MD_ATOMIC_DECREMENT - PK11_FreeSymKey]
The problem only happens if we try to import a key into a token which then fails
to import. The basic issue was a hack in the pkcs 7 code to support PKCS 12, A
special structure was used to replace the SymKey structure, and the code 'knew'
the special structure existed before it dealt with the symkey. The fix addes a
new capability to symkeys, where applications can attach application specific
data to the key structure. PKCS 12 uses this to attache the PBE information
for CMS. (part 1 of 3)

This patch also improves the key's reuse of sessions, so sessions are not thrashed
when SSL is used with them.

r=wtc


git-svn-id: svn://10.0.0.236/trunk@255466 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:30 +00:00
relyea%netscape.com
221995519a Bug 119500 PKCS#11 CKF_PROTECTED_AUTHENTICATION_PATH token flag not supported
wtc's review r=wtc


git-svn-id: svn://10.0.0.236/trunk@255465 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:29 +00:00
relyea%netscape.com
8dfbc7fc32 Bugzilla Bug 119500 PKCS#11 CKF_PROTECTED_AUTHENTICATION_PATH token flag not supported
r=nelson

This is only the NSS portion of this patch. The PSM portion will be checked in once the
NSS portion is mainlined to mozilla.


git-svn-id: svn://10.0.0.236/trunk@255464 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:28 +00:00
relyea%netscape.com
262e9f2eeb Only call C_WaitForSlotEvent if the module is PKCS #11 v2.01 or later.
bug 196811 r=wtc sr=julien


git-svn-id: svn://10.0.0.236/trunk@255463 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:27 +00:00
wtchang%redhat.com
155a2ec064 Bugzilla Bug 299197: define two bitflags for every PKCS #11 object
attribute with no exceptions. renamed PK11_ATTR_READONLY as
PK11_ATTR_UNMODIFIABLE.  In pk11_OpFlagsToAttributes, backed out a change
I made before.  Made pk11_AttrFlagsToAttributes table-driven. In
pk11_loadPrivKeyWithFlags, fixed the bug (always loading the public key as
a token object).  Other code cleanups. r=relyea,nelsonb.
Modified files: pk11akey.c pk11obj.c pk11pub.h pk11skey.c secmodt.h


git-svn-id: svn://10.0.0.236/trunk@255462 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:26 +00:00
wtchang%redhat.com
0e0c8071f3 Bugzilla Bug 299197: added PK11AttrFlags and PK11_GenerateKeyPairWithFlags.
Modified PK11_TokenKeyGenWithFlags to take a PK11AttrFlags parameter.
PK11AttrFlags controls the values of commonly used PKCS #11 object
attributes that have Boolean values. r=relyea,nelsonb.
Modified Files:
	nss/nss.def pk11wrap/pk11akey.c pk11wrap/pk11obj.c
	pk11wrap/pk11pub.h pk11wrap/pk11skey.c pk11wrap/secmodi.h
	pk11wrap/secmodt.h


git-svn-id: svn://10.0.0.236/trunk@255461 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:25 +00:00
wtchang%redhat.com
c8dbcddb2a Bugzilla Bug 286439: Removed PKCS11_USE_THREADS and PK11_USE_THREADS.
r=relyea,nelsonb.
Modified Files:
	pk11wrap/pk11list.c pk11wrap/pk11pars.c pk11wrap/pk11skey.c
	pk11wrap/pk11slot.c pk11wrap/pk11util.c pk11wrap/secmod.h
	pk11wrap/secmodi.h pk11wrap/secmodt.h pk11wrap/secmodti.h
	softoken/pkcs11.c softoken/pkcs11i.h softoken/pkcs11u.c


git-svn-id: svn://10.0.0.236/trunk@255460 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:24 +00:00
relyea%netscape.com
fe17f2bec3 Bugzilla Bug 252702
NSS needs to handle better token insertion and removal.

Applied from patch to NSS 3.9


git-svn-id: svn://10.0.0.236/trunk@255459 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:23 +00:00
relyea%netscape.com
49b8bc51cc refactor pk11util, splitting large single files down to a managable size.
bug 246130. The new factor is:

pk11akey.c - asymetric keys constructed from pk11cert.c and pk11skey.c
pk11auth.c - authentication/password management factored from pk11slot.c
pk11cert.c - cert code with private key, crls and trust factored out.
pk11ctx.c -- pkcs11 context code, factored out of pk11skey.c
new pk11func.h -- for backward compatibility.
pk11mech.c - mechanism mapping code, factored mostly from pk11slot.c
pk11nobj.c - netscape objects (crls and trust), factored mostly from pk11cert.c
pk11obj.c - generic object support, factored from pk11skey.c pk11slot.c and
pk11cert.c
pk11priv.h -- private functions factored from pk11func.h
pk11pub.h -- public functions factored from pk11func.h
pk11skey.c - now only symetric key ops; private, public key ops, generic ops
and crypto contexs have been factored out.
pk11slot.c - still slot operations. Authentication, generic object ops,
mechanism mapping has been factored out.

This patch should only have refactoring, no new functions or other changes.


git-svn-id: svn://10.0.0.236/trunk@255458 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:22 +00:00
relyea%netscape.com
4d184ed9a6 Bug 244914, 244907 r=nelsonb
Add support for unprotected private keys without requiring authentication.
Add support to access application specific PKCS #11 objects through NSS.


git-svn-id: svn://10.0.0.236/trunk@255457 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:21 +00:00
gerv%gerv.net
d310f82bd8 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@255456 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:20 +00:00
wtc%netscape.com
7ef0ce9940 Bug 183612: renamed some new functions to be consistent with existing
function names containing SubjectKey and PublicKey.  Moved internal
functions to private headers and use the lowercase cert_ prefix for the
internal functions for subject key ID mapping hash table. r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@255455 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:19 +00:00
relyea%netscape.com
7c14261324 221067 NSS needs to be able to create token symkeys from unwrap and derive.
git-svn-id: svn://10.0.0.236/trunk@255454 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:18 +00:00
jpierre%netscape.com
3d941008c3 Fix for bug 215186 - add missing options to PK11_ListCerts . r=wtc
git-svn-id: svn://10.0.0.236/trunk@255453 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:17 +00:00
wtc%netscape.com
994f3cd51a Bugzilla bug 213158: fixed the misspelling of "attach". The patch is
contributed by Pierre Chanial <chanial@noos.fr>.
Modified Files: pk11slot.c secmodt.h


git-svn-id: svn://10.0.0.236/trunk@255452 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:16 +00:00
nelsonb%netscape.com
0f9d0f0940 Add missing declaration of NSS_Get_SECKEY_EncryptedPrivateKeyInfoTemplate
git-svn-id: svn://10.0.0.236/trunk@255451 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:15 +00:00
nelsonb%netscape.com
8f767acef6 Support SHA256, SHA384, and SHA512 hashes in NSS.
git-svn-id: svn://10.0.0.236/trunk@255450 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:14 +00:00
relyea%netscape.com
628058357e Fix SDR race condition with a coarse lock. Does not address multiaccess DB
races. Bug 169296.


git-svn-id: svn://10.0.0.236/trunk@255449 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:13 +00:00
nelsonb%netscape.com
a907808bc2 Add new SHAxxx hash algorithms to tables of SECHashObjects.
git-svn-id: svn://10.0.0.236/trunk@255448 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:12 +00:00
relyea%netscape.com
de0618aab1 Add token removal blocking function.
git-svn-id: svn://10.0.0.236/trunk@255447 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:11 +00:00
jpierre%netscape.com
7d0d5bc3e0 Fix for 98068 - PR_CALLBACK OS/2 issues
git-svn-id: svn://10.0.0.236/trunk@255446 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:10 +00:00
nicolson%netscape.com
d795bba911 Fix 114979: SECKEY_EncryptedPrivateKeyInfoTemplate no longer in public
header file.
r=relyea.


git-svn-id: svn://10.0.0.236/trunk@255445 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:09 +00:00
relyea%netscape.com
801d87a448 NSS 3.4 integration changes.
1) 3.4 needs to bump the version numbers up by one on secmod.db from NSS 3.3
   2) Need to add escapes to the configdirectory. (should add them to other parameters as well.
   3) put exported files back into the correct headers.
   4) Add _BEGIN/_END protos where appropriate.


git-svn-id: svn://10.0.0.236/trunk@255444 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:08 +00:00
relyea%netscape.com
a02cf5b62e Land BOB_WORK_BRANCH unto the tip.
remove lots of depricated files.
move some files to appropriate directories (pcertdb *_rand
associated headers to soft token, for instance)
rename several stan files which had the same name as other nss files.
remove depricated functions.


git-svn-id: svn://10.0.0.236/trunk@255443 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:07 +00:00
relyea%netscape.com
8e93697045 1) fix warnings on AIX, HP, Linux, and Solaris.
2) Move private functions into private headers.

3) Sharpen the layer separation between NSS components, especially pkcs #12
and soft token.

4) Remove dead code.


git-svn-id: svn://10.0.0.236/trunk@255442 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:06 +00:00
relyea%netscape.com
fd5e572e26 Land new PKCS #11 initialization code.
git-svn-id: svn://10.0.0.236/trunk@255441 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:05 +00:00
nicolson%netscape.com
fbfa9dd136 Changes for NSS/JSS integration.
git-svn-id: svn://10.0.0.236/trunk@255440 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:04 +00:00
nelsonb%netscape.com
2e67c809eb Merge NSS 3.2.1 changes.
git-svn-id: svn://10.0.0.236/trunk@255439 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:03 +00:00
relyea%netscape.com
e2571a855c Add wrapper bindings for AES so S/MIME and SSL may implement their AES suites.
git-svn-id: svn://10.0.0.236/trunk@255438 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:02 +00:00
relyea%netscape.com
8ce83a6d3b Incorporate Wan-Teh's suggestion of using a typdef for the enum.
Follow the same standard we use elsewhere for enums.


git-svn-id: svn://10.0.0.236/trunk@255437 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:01 +00:00
relyea%netscape.com
b82a64c454 Bug 65903: Fixes to allow iWS admin stuff to work with shared library NSS
Add necessary exported symbols.
Fix bug in NSS_Initialize where we weren't passing the read only paramter
	through.
Add function to search for Certificate Lists so that Traverse does not need to
	be exposed.
Update pkcs11 names.


git-svn-id: svn://10.0.0.236/trunk@255436 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:48:00 +00:00
wtc%netscape.com
9b5abb540b Bugzilla bug #65416: assign values explicitly to enumeration constants.
The same values that the compiler would assign are assigned, with only
one exception (cmmfNoPKIStatus in cmmft.h).  This is patch id=22555,
reviewed by Nelson Bolyard.


git-svn-id: svn://10.0.0.236/trunk@255435 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:47:59 +00:00
nelsonb%netscape.com
e606731cf3 Changes to deal with exporting data from Windows DLLs.
SECHashObjects[] is no longer exported.
New function HASH_GetHashObject returns pointer to selected const object.
SSL statistics are now in a structure whose address is obtained via a
call to SSL_GetStatistics().
On NT, the new symbol NSS_USE_STATIC_LIBS must be declared in programs
that use the static SSL library.
Also, propagate "const" declaration for SECHashObjects.


git-svn-id: svn://10.0.0.236/trunk@255434 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:47:58 +00:00
relyea%netscape.com
ce070b7c81 Initial NSS Open Source checkin
git-svn-id: svn://10.0.0.236/trunk@255433 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:47:57 +00:00
relyea%netscape.com
61f9727759 Add SSL and TLS to the slotlist search functions
git-svn-id: svn://10.0.0.236/trunk@255432 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:47:28 +00:00
relyea%netscape.com
5756782aab Initial NSS Open Source Checkin
git-svn-id: svn://10.0.0.236/trunk@255431 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:47:27 +00:00
cltbld
4bc339070c "Automated configuration bump, release for thunderbird 2.0.0.19build1"
git-svn-id: svn://10.0.0.236/trunk@255430 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:40:08 +00:00
ghendricks%novell.com
b13712a44e Bug 423637 - python xmlrpc client (contrib) is broken
patch by dmalcom@redhat.com r=ghendricks


git-svn-id: svn://10.0.0.236/trunk@255429 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:16:36 +00:00
alqahira%ardisson.org
ceff66b0cc Bug 437552 - Clean up whitespace-on-blank-lines problem in /PreferencePanes, Part 1 (everything but WebFeatures/). Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=jeff, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255428 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 22:07:32 +00:00
alqahira%ardisson.org
400f475e21 Bug 467207 - Remove MOZILLA_1_8_BRANCH ifdefs from Camino code. r=cl, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255427 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 21:19:06 +00:00
cltbld
fc5eeafc57 "Automated configuration bump: moz18-branch-patcher2.cfg, from 2.0.0.18 to 2.0.0.19"
git-svn-id: svn://10.0.0.236/trunk@255426 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 21:13:08 +00:00
alqahira%ardisson.org
d968b9cdef Bug 467207 - Remove MOZILLA_1_8_BRANCH ifdefs from Camino code. r=cl, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255425 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 19:01:57 +00:00
bhearsum%mozilla.com
c9825bf9d7 bug 468745: run autoconf in js/src before generating source tarball. r=ccooper, patch=me
git-svn-id: svn://10.0.0.236/trunk@255424 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 18:49:53 +00:00
lpsolit%gmail.com
5a590adea0 Bug 399079: Remove the 'showallproducts' parameter - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255423 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 18:43:36 +00:00
nboyd%atg.com
956e850cf5 New pluggable interface for message lookup.
Patch from mharm at google.com.


git-svn-id: svn://10.0.0.236/trunk@255422 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 18:41:17 +00:00
lpsolit%gmail.com
898879cb3d Bug 399076: Remove the 'commentonreassignbycomponent' parameter - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255421 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 18:40:02 +00:00
lpsolit%gmail.com
fb38686377 Bug 399075: Remove the 'commentonclearresolution' parameter - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255420 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 18:36:02 +00:00
lpsolit%gmail.com
839bd078af Bug 399074: Remove the 'maxpatchsize' parameter - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255419 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 18:32:30 +00:00
lpsolit%gmail.com
3af770f143 Bug 399072: Remove the 'supportwatchers' parameter - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255418 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 18:26:56 +00:00
bzbarsky%mit.edu
b050729b22 Bug 437142. Be a little more careful with GetPrimaryFrameFor to work around the mess that <area> elements cause. r+sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255417 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 17:46:34 +00:00
nrthomas%gmail.com
7f9ad39370 Bug 468741, bump Thunderbird nightly version to 2.0.0.20pre, r=anodelman
git-svn-id: svn://10.0.0.236/trunk@255411 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 04:12:22 +00:00
nrthomas%gmail.com
b9a34e10ac Bug 468741, bump automation config for Tb 2.0.0.19 build1, r=anodelman
git-svn-id: svn://10.0.0.236/trunk@255409 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 03:46:38 +00:00
anodelman%mozilla.com
d7eaa0006f Bug 432764 - sleep times need to be increased for running talos on n810s
p=anodelman, r=catlee


git-svn-id: svn://10.0.0.236/trunk@255408 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 03:06:59 +00:00
anodelman%mozilla.com
d96a299553 Bug 463020 - Talos machines should be automatically rebooted periodically
p=catlee, r=anodelman


git-svn-id: svn://10.0.0.236/trunk@255407 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-10 02:13:54 +00:00
ghendricks%novell.com
c4f206fee5 Bug 463230 - CaseRun Status report/table links not filtering by Status
git-svn-id: svn://10.0.0.236/trunk@255406 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 23:59:49 +00:00
ghendricks%novell.com
8f9363caa5 Bug 459930 - Clicking the Open in New Tab link from Dashboards doesn't work correctly
git-svn-id: svn://10.0.0.236/trunk@255405 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 23:37:24 +00:00
ghendricks%novell.com
b3142d8a38 Bug 459926 - Can't link to a Run Completion report from a saved dashboard
git-svn-id: svn://10.0.0.236/trunk@255404 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 23:29:54 +00:00
ghendricks%novell.com
cc9d605071 Bug 458759 - Can't view report from report link
git-svn-id: svn://10.0.0.236/trunk@255403 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 23:17:56 +00:00
ghendricks%novell.com
8cce9384d6 Bug 406920 - usability issue: Incorrect title and browser banner for _New Run_ page
hooks for deleting products


git-svn-id: svn://10.0.0.236/trunk@255402 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 22:36:26 +00:00
bhearsum%mozilla.com
e4bfe09a14 bug 466820: bump timeout for post-nightly cleanup job and Mercurial Source step. r=ccooper, patch=me
git-svn-id: svn://10.0.0.236/trunk@255401 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 21:26:31 +00:00
alqahira%ardisson.org
6d829416c0 Bug 467697 - AppleScript: can't get index property of windows, AppleEvent handler error. r=peeja, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255400 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 19:39:06 +00:00
ghendricks%novell.com
d0a6b0301f Bug 455523 - CaseRun's "Notes" tab in UI does not update when status change button is clicked
git-svn-id: svn://10.0.0.236/trunk@255399 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 19:01:54 +00:00
lpsolit%gmail.com
74d18f9434 Remove extra item (fix bustage)
git-svn-id: svn://10.0.0.236/trunk@255398 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 18:41:25 +00:00
ghendricks%novell.com
6b34b49eb0 Search for ranges, notify on saved searches
git-svn-id: svn://10.0.0.236/trunk@255397 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 18:41:02 +00:00
ghendricks%novell.com
67e3a87960 Bug 453559 - Dependency page is rendered incorrectly on IE
git-svn-id: svn://10.0.0.236/trunk@255396 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 18:30:58 +00:00
lpsolit%gmail.com
fd137a7208 Bug 460752: Move hardcoded CSS from attachment/diff-header.html.tmpl into a separate CSS file - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255395 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 18:10:08 +00:00
hannes%helma.at
f83fdbd17e Remove duplicate entries (Intellij has a nice feature to highlight
these)


git-svn-id: svn://10.0.0.236/trunk@255394 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-09 11:30:31 +00:00
ghendricks%novell.com
a36d13c7bf Allow ranges in searches
git-svn-id: svn://10.0.0.236/trunk@255393 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-08 23:04:35 +00:00
nboyd%atg.com
8ce158ee81 Remove unused imports
git-svn-id: svn://10.0.0.236/trunk@255392 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-08 22:56:21 +00:00
nboyd%atg.com
ce5d1d9b7f Fix warnings
git-svn-id: svn://10.0.0.236/trunk@255391 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-08 22:54:57 +00:00
bhearsum%mozilla.com
b8d4bbc75d bug 468459: ReleaseFinalVerification runs final-verification.sh in the wrong directory. r=ccooper, patch=me
git-svn-id: svn://10.0.0.236/trunk@255390 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-08 16:44:13 +00:00
alqahira%ardisson.org
7f20a52b1c Bug 339322 - Add keyboard shortcut to access menus in search fields, using same hueristic as location bar autocomplete. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=murph, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255389 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-08 04:35:35 +00:00
despotdaemon
355a792fc9 Pseudo-automatic update of changes made by LpSolit@gmail.com.
git-svn-id: svn://10.0.0.236/trunk@255388 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-07 20:48:04 +00:00
despotdaemon
74dbd1b56f Pseudo-automatic update of changes made by LpSolit@gmail.com.
git-svn-id: svn://10.0.0.236/trunk@255387 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-07 20:47:46 +00:00
despotdaemon
ff2eb7ca5b Pseudo-automatic update of changes made by LpSolit@gmail.com.
git-svn-id: svn://10.0.0.236/trunk@255386 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-07 20:47:25 +00:00
despotdaemon
103924bd16 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@255385 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-07 20:43:44 +00:00
despotdaemon
387a1f3a08 Pseudo-automatic update of changes made by pavlov@pavlov.net.
git-svn-id: svn://10.0.0.236/trunk@255384 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-07 08:38:14 +00:00
nboyd%atg.com
dadfdae79f JUnit annotations were not being understood by javadoc so I just excluded the testsrc directory from javadoc generation.
git-svn-id: svn://10.0.0.236/trunk@255382 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-07 03:44:29 +00:00
despotdaemon
afa81e0d78 Pseudo-automatic update of changes made by LpSolit@gmail.com.
git-svn-id: svn://10.0.0.236/trunk@255380 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 23:52:57 +00:00
lpsolit%gmail.com
ad3f650edb Fix bustage due to bug 463002
git-svn-id: svn://10.0.0.236/trunk@255379 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 21:12:51 +00:00
stuart.morgan%alumni.case.edu
2ae0655dc8 Camino only - Bug 461927: Ensure the canvas size for a snapshot is initialized. r/sr=pink
git-svn-id: svn://10.0.0.236/trunk@255378 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 21:04:17 +00:00
alqahira%ardisson.org
23ea1dc007 Bug 463725 - Choose most appropriately sized site icon when favicon has multiple members (don't display fuzzy scaled-down 32x32 icon instead of the 16x16 icon at the BBC). Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r=cl, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255377 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 20:47:26 +00:00
alqahira%ardisson.org
4d4bd9e416 Bug 467289 - Site icon for file://localhost/ isn't scaled down in bookmarks. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255376 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 20:28:05 +00:00
nrthomas%gmail.com
a177c40025 Bump thunderbird trunk version for monitoring
git-svn-id: svn://10.0.0.236/trunk@255375 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 20:10:19 +00:00
mkanat%bugzilla.org
c0e5d412ed Bug 468009: SOAP::Lite versions greater than 0.68 and less than 0.710.06 return the wrong XML for methods
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255374 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 19:58:48 +00:00
mkanat%bugzilla.org
c8f0a041a5 Bug 467569: Make release notes correctly indicate that the required version of CGI is newer than it was in 3.0.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255372 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 19:54:31 +00:00
mkanat%bugzilla.org
30ecfc6f06 Bug 467506: -d $dir check in add_language_set should not be commented-out
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255371 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 19:52:48 +00:00
mkanat%bugzilla.org
8b3d255199 Bug 467324: PROJECT specific template directory was being ignored
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255369 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 19:49:58 +00:00
mkanat%bugzilla.org
13d1dd515c Bug 467279: Make "flags.cgi" into "flag.cgi" in config.rdf.tmpl (so that both URLs are equal)
Patch By Frank Becker <Frank@Frank-Becker.de> r=wicked, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255368 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 19:48:23 +00:00
mkanat%bugzilla.org
4267175d48 Bug 463002 - Show a description of what you searched for, at the top of buglist.cgi
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bbaetz, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255367 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 19:44:48 +00:00
alqahira%ardisson.org
008947d8bd Bug 466117 - Display URLs in autocomplete as unescaped UTF-8. Patch by Christopher Henderson <trendyhendy2000@gmail.com>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255366 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 19:32:54 +00:00
alqahira%ardisson.org
fe43b60bd5 Bug 467773 - Change repetitive wording of link handling dialogue. Patch by Markus Amalthea Magnuson<markus.magnuson@gmail.com>, r=me, sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255365 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-06 19:21:39 +00:00
nrthomas%gmail.com
e02bc14494 Bug 466855, bump timeout for initial cleanup to 30 mins, p=aki.sasaki, r=me
git-svn-id: svn://10.0.0.236/trunk@255364 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 23:56:05 +00:00
ghendricks%novell.com
ff5d2f3792 Bug 463689 - Filter on Test Case list doesn't work
git-svn-id: svn://10.0.0.236/trunk@255363 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 23:06:09 +00:00
anodelman%mozilla.com
3e5782162a Bug 467325 - move talos for tracemonkey to proper configuration
p=anodelman r=aki


git-svn-id: svn://10.0.0.236/trunk@255362 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 22:26:16 +00:00
ghendricks%novell.com
e4077fc76e Bug 466266 - File new bug doesn't auto select the component specified in the test case
patch by hieult@cybersoft-vn.com r=ghendricks


git-svn-id: svn://10.0.0.236/trunk@255361 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 22:07:43 +00:00
hannes%helma.at
e720ec7b08 Fix bug 464898: Unify test collection methods for jsdriver and JUnit driver, and add a dummy options() function to the test scope to match spidermonkey.
git-svn-id: svn://10.0.0.236/trunk@255360 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 20:35:47 +00:00
ghendricks%novell.com
682a884391 Bug 467296 - provide depends on/blocks fields through TestCase.get()
patch by nparrish@sproutsys.com r=ghendricks


git-svn-id: svn://10.0.0.236/trunk@255359 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 19:43:03 +00:00
hannes%helma.at
4560026035 Add Bug467396Test.java to HEAD where it belongs
git-svn-id: svn://10.0.0.236/trunk@255358 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 12:24:31 +00:00
hannes%helma.at
0ba8bcb405 Fix bug 467396: Rhino always prefers non-varargs java method over varargs one
git-svn-id: svn://10.0.0.236/trunk@255356 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 12:16:04 +00:00
nelson%bolyard.com
2ab43f8f49 Bug 439115: DB merge allows nickname conflicts in merged DB
patch by rrelyea and nelson, r=alexei.volkov


git-svn-id: svn://10.0.0.236/trunk@255355 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 05:02:20 +00:00
slavomir.katuscak%sun.com
eb86d4122e Bug 464223 - Code cleanup for chains and memleak tests. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255354 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 01:47:30 +00:00
wtc%google.com
70c4134bfb Bug 467951: Build NSPR on NetBSD with pthreads by default. The patch is
contributed by Kaspar Brand <mozbugzilla@velox.ch>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@255353 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 00:46:50 +00:00
ghendricks%novell.com
2ba0820f5a Last Comment Bug 455055 - "Copy category to new product" is not working
git-svn-id: svn://10.0.0.236/trunk@255352 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 00:30:21 +00:00
slavomir.katuscak%sun.com
6f9d0dea0a Bug 467542: Patch to print list of changed files. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255351 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-05 00:28:42 +00:00
ghendricks%novell.com
e1667ddbcb Bug 449788 - TestRun Status search seems to work backwards
git-svn-id: svn://10.0.0.236/trunk@255350 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 23:33:05 +00:00
ghendricks%novell.com
f7b2fe45bb Fix run cloning and allow blank Summary bug 449194
git-svn-id: svn://10.0.0.236/trunk@255347 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 23:05:05 +00:00
gijskruitbosch%gmail.com
f86aa4d004 Add support for Sunbird 1.0pre. p=ssitter@gmail.com (Stefan Sitter), r=me, a=NPOTFB.
git-svn-id: svn://10.0.0.236/trunk@255346 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 20:25:59 +00:00
despotdaemon
edac400178 Pseudo-automatic update of changes made by reed@reedloden.com.
git-svn-id: svn://10.0.0.236/trunk@255345 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 18:18:31 +00:00
rrelyea%redhat.com
3fa63296eb Last Comment Bug 459248 - Support Intel AES extensions.
r=nelsonb

See if Solaris likes this better...


git-svn-id: svn://10.0.0.236/trunk@255344 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 18:16:34 +00:00
ghendricks%novell.com
8076992578 Default run manager to logged in user.
git-svn-id: svn://10.0.0.236/trunk@255343 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 17:57:29 +00:00
ccooper%deadsquid.com
53a5f34528 b=464151
p=armenzg
r=catlee
- removes BuildL10n, fixes reloads and adds the parameter "repoType"


git-svn-id: svn://10.0.0.236/trunk@255342 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 16:34:09 +00:00
bhearsum%mozilla.com
96153a829c Remove extraneous log message from factory.py. no bug
git-svn-id: svn://10.0.0.236/trunk@255341 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 16:00:07 +00:00
bhearsum%mozilla.com
8573f7c1a1 bug 467348: ReleaseTaggingFactory should not try to do 'hg up -r' for respins (because the following step is 'hg up -C -r'). r=nrthomas, patch=me
git-svn-id: svn://10.0.0.236/trunk@255339 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 14:01:16 +00:00
bclary%bclary.com
3b6671e36e bug 466990 - fix incorrect option in js1_5/Regress/regress-322430.js. default tip
bug 450833 - JavaScript Test by Andreas Gal.
bug 455973 - JavaScript Test by Jesse Ruderman.
bug 456470 - JavaScript Test by Andreas Gal.
bug 460870 - JavaScript Test by Jesse Ruderman.
bug 461930 - JavaScript Test by Jesse Ruderman.
bug 461932 - JavaScript Test by Jesse Ruderman.
bug 462879 - JavaScript Test by Jesse Ruderman.
bug 463334 - JavaScript Tests by Jesse Ruderman.
bug 463782 - JavaScript Test by Gavin Sharp.
bug 462470 - JavaScript Test - modify expected results for js1_8_1/decompilation/regress-350991.js due to bug 461233.
bug 464334 - JavaScript Test by Igor Bukanov.
bug 464403 - JavaScript Test by Gary Kwong and Jesse Ruderman.
bug 464418 - JavaScript Test by Jesse Ruderman.
bug 464978 - JavaScript Test by Jesse Ruderman.
bug 465013 - JavaScript Test by Brendan Eich.
bug 465135 - JavaScript Test by Jesse Ruderman.
bug 465136 - JavaScript Test by Jesse Ruderman.
bug 465137 - JavaScript Test by Jesse Ruderman.
bug 465220 - JavaScript Test by Brendan Eich.
bug 465234 - JavaScript Test by Jesse Ruderman.
bug 465239 - JavaScript Test by Jesse Ruderman.
bug 465241 - JavaScript Test by Jesse Ruderman.
bug 465249 - JavaScript Test by Jesse Ruderman.
bug 465262 - JavaScript Test by Jesse Ruderman.
bug 465261 - JavaScript Test by Gary Kwong.
bug 436741 - JavaScript Test by Jesse Ruderman.


git-svn-id: svn://10.0.0.236/trunk@255337 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 13:02:01 +00:00
cltbld
74e7c61f64 "Automated configuration bump, release for firefox 2.0.0.19build2"
git-svn-id: svn://10.0.0.236/trunk@255336 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 10:19:58 +00:00
cltbld
86c2351ade "Automated configuration bump: moz18-branch-patcher2.cfg, from 2.0.0.18 to 2.0.0.19"
git-svn-id: svn://10.0.0.236/trunk@255335 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 08:45:18 +00:00
ghendricks%novell.com
c03a639121 Fixes for 3.2
git-svn-id: svn://10.0.0.236/trunk@255329 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-04 00:06:09 +00:00
nrthomas%gmail.com
9b49c0be25 Bug 467437, bump automation config for fx2.0.0.19 build 2, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@255328 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 22:55:35 +00:00
nelson%bolyard.com
38e223d164 Back out the patch for Bug 439115. It caused test failures on Unix.
git-svn-id: svn://10.0.0.236/trunk@255327 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 22:39:35 +00:00
wtc%google.com
88a1de4a8a Bug 454120: Removed obsolete file coreconf/WINCE3.0.mk. Use a better way
to turn off NSS_BUILD_CAPI for WINCE in nss/lib/ckfw/Makefile.  r=dougt.
Modified Files:
	nss/lib/ckfw/Makefile
Removed Files:
	coreconf/WINCE3.0.mk


git-svn-id: svn://10.0.0.236/trunk@255326 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 18:44:24 +00:00
kairo%kairo.at
d3609ce63d update SeaMonkey watches for 2.0a3pre nightlies
git-svn-id: svn://10.0.0.236/trunk@255325 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 18:00:31 +00:00
cltbld
20192de9b6 Automated configuration bump: moz191-branch-patcher2.cfg, from 3.1b1 to 3.1b2 build 2
git-svn-id: svn://10.0.0.236/trunk@255324 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 13:52:50 +00:00
bhearsum%mozilla.com
accfa8e1d0 Revert patcher config changes so automation can do them again.
git-svn-id: svn://10.0.0.236/trunk@255323 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 13:52:22 +00:00
nelson%bolyard.com
f517d2b4d3 Bug 465926: During import of private keys,set key usage attributes correctly
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@255322 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 08:53:16 +00:00
nelson%bolyard.com
6736881f7a Bug 439115: DB merge allows nickname conflicts in merged DB
Patch by Bob Relyea <rrelyea@redhat.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@255321 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 08:04:42 +00:00
lpsolit%gmail.com
2b969c6577 Bug 463688: editusers.cgi no longer lets you search for users using regular expressions - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat r=xiaoou a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255320 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 07:00:46 +00:00
cltbld
dd1011ab8a "Automated configuration bump, release for firefox 3.0.5build1"
git-svn-id: svn://10.0.0.236/trunk@255319 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 06:30:25 +00:00
cltbld
4dca2d5700 "Automated configuration bump: moz19-branch-patcher2.cfg, from 3.0.4 to 3.0.5"
git-svn-id: svn://10.0.0.236/trunk@255315 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 04:50:02 +00:00
nelson%bolyard.com
2342fd8786 Bug 467298: SQL DB code uses "local cache" on local file system, 20x slower
r=rrelyea


git-svn-id: svn://10.0.0.236/trunk@255311 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 02:52:30 +00:00
anodelman%mozilla.com
9aefd7cb63 Bug 466864 - update buildbot URL on talos master.cfg
p=catlee, r=anodelman


git-svn-id: svn://10.0.0.236/trunk@255308 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 01:01:51 +00:00
anodelman%mozilla.com
dc2b15d81e Bug 42644 - make talos work with xulrunner
p=anodelman r=catlee


git-svn-id: svn://10.0.0.236/trunk@255307 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 00:53:20 +00:00
anodelman%mozilla.com
3fdfae264e Bug 463325 - mothball all 7 talos machines on FF2.0
p=anodelman, r=catlee


git-svn-id: svn://10.0.0.236/trunk@255306 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 00:39:52 +00:00
nelson%bolyard.com
63d3aa2a49 Bug 464088: Option to build NSS without dbm (handy for WinCE), r=nelson
git-svn-id: svn://10.0.0.236/trunk@255305 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-03 00:06:23 +00:00
slavomir.katuscak%sun.com
8d9fb307f8 Bug 464223: Workaround. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255304 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 23:46:23 +00:00
rrelyea%redhat.com
00259831eb Back out previous change. Evidently Tinderbox is using an older version of Linux.
bob


git-svn-id: svn://10.0.0.236/trunk@255303 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 23:44:46 +00:00
nelson%bolyard.com
8060804dc4 Bug 464088: Option to build NSS without dbm (handy for WinCE), r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@255302 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 23:24:53 +00:00
rrelyea%redhat.com
faabce5ec6 bug 467298 Add support for Intel AES
r=nelson

(tested on solaris 10 and RHEL 5).


git-svn-id: svn://10.0.0.236/trunk@255301 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 22:30:50 +00:00
ctalbert%mozilla.com
61b0b762bb QAC Extension version bump to 0.1.18, no review
git-svn-id: svn://10.0.0.236/trunk@255300 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 19:41:01 +00:00
ctalbert%mozilla.com
798418be36 bug 464121 QAC Extension Fix for setup freeze r=Brian King
git-svn-id: svn://10.0.0.236/trunk@255299 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 19:24:47 +00:00
ctalbert%mozilla.com
156251987f bug 453897 QAC Extension Fix, r=brian king
git-svn-id: svn://10.0.0.236/trunk@255298 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 18:18:35 +00:00
ctalbert%mozilla.com
dcdbfd17e5 bug 459313 QAC Extension fix -r=brian king
git-svn-id: svn://10.0.0.236/trunk@255297 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 18:13:43 +00:00
nelson%bolyard.com
3914ca460e Bug 467553: ssl.sh will not run unless NSS_SSL_TESTS is defined to particular strings
r=slavo


git-svn-id: svn://10.0.0.236/trunk@255296 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 17:58:33 +00:00
nelson%bolyard.com
6a50a58da0 Bug 452391: certutil -K incorrectly reports ec private key as an orphan
r=julien


git-svn-id: svn://10.0.0.236/trunk@255295 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 06:54:54 +00:00
nelson%bolyard.com
e25cdff2dd Bug 466180 - SSL server changes for BSD Unix
Patches by Kaspar Brand <mozbugzilla@velox.ch>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@255294 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 06:36:59 +00:00
nrthomas%gmail.com
c401aaa0e4 Bug 467456, bump Firefox version to 3.0.6pre, Gecko to 1.9.0.6pre, and associated nagios monitors, patches=joduinn, r=me
git-svn-id: svn://10.0.0.236/trunk@255287 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 03:33:38 +00:00
nrthomas%gmail.com
a3c4cf059c Bug 467456, bump automation config for Fx 3.0.5 build 1, p=joduinn, r=me
git-svn-id: svn://10.0.0.236/trunk@255284 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 02:46:53 +00:00
nrthomas%gmail.com
351ac9a721 Bug 467437, bump firefox version to 2.0.0.20pre and Gecko rv to 1.8.1.20pre, r=joduinn
git-svn-id: svn://10.0.0.236/trunk@255283 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 02:19:43 +00:00
nrthomas%gmail.com
b8b46729a6 Bug 467437, bump automation config for Fx 2.0.0.19 build 1, r=joduinn
git-svn-id: svn://10.0.0.236/trunk@255282 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 02:13:34 +00:00
dtownsend%oxymoronical.com
05d66238c7 Bug 467438: EM tests are touching the network. r=robstrong
git-svn-id: svn://10.0.0.236/trunk@255281 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-02 01:58:18 +00:00
nrthomas%gmail.com
61ad3716a3 Bug 467310, stop checking for mac gu-IN updates (it didn't ship since 3.0b5), r=ccooper
git-svn-id: svn://10.0.0.236/trunk@255280 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-01 23:03:41 +00:00
bhearsum%mozilla.com
081591bd4b 367385: have talos buildbot correctly uses 'Shiretoko' brand name for running 1.9.1 builds. r=me, patch=anodelman
git-svn-id: svn://10.0.0.236/trunk@255279 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-01 21:15:21 +00:00
alqahira%ardisson.org
73b09b3fbe Bug 383527 - RSS feed detection detects non-feeds (and fails to detect some legitimate feeds). Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r=kreeger, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255278 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-01 19:58:18 +00:00
ccooper%deadsquid.com
b6e91b5bfb b=463020
p=catlee
r=anodelman
- add script to increment a counter and reboot after the counter and crossed a set threshold


git-svn-id: svn://10.0.0.236/trunk@255277 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-01 18:41:54 +00:00
bhearsum%mozilla.com
c4148f02a7 Update monitoring configs for mozilla-1.9.1 branch
git-svn-id: svn://10.0.0.236/trunk@255276 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-01 17:19:22 +00:00
gavin%gavinsharp.com
f234adc6d9 Bug 463595: browser_Application.js uses timeouts and fails intermittently, patch by Dave Townsend <dtownsend@mozilla.com>, r=me (tests only)
git-svn-id: svn://10.0.0.236/trunk@255275 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-01 09:35:57 +00:00
lpsolit%gmail.com
d2fb45ec91 Bug 467214: confirm-delete.html.tmpl should use 'quips' instead of 'votes' at line 367 - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255274 18797224-902f-48f8-a5cc-f745e15eee43
2008-12-01 01:50:46 +00:00
nrthomas%gmail.com
86102705b4 Bug 462227, sync try server configs up with cvs and buildbot configs for Firefox nightlies (where appropriate), r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@255273 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-30 23:51:44 +00:00
mkanat%bugzilla.org
f763123d8f Caught by justdave: comment box <table> was unclosed if you weren't logged in.
git-svn-id: svn://10.0.0.236/trunk@255271 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-30 02:20:17 +00:00
mkanat%bugzilla.org
6147f1ce4c Bug 466912: The Commit button is too far on the right (align it with the comment box)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255266 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-29 22:08:55 +00:00
nrthomas%gmail.com
47ef22f4a6 Bug 462177, followup to fix reporting to tinderbox
git-svn-id: svn://10.0.0.236/trunk@255265 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-29 22:08:01 +00:00
nrthomas%gmail.com
3d08d33c58 Bug 462177, change build names for Fx3.0 l10n builds, r=ccooper,l10n
git-svn-id: svn://10.0.0.236/trunk@255264 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-29 21:32:48 +00:00
dveditz%cruzio.com
2dd97df675 bug 466531: backout NRPS 4.7.3 to fix js-eng crash on Mac PPC builds. patch=wtc, r=ss, a=ss
git-svn-id: svn://10.0.0.236/trunk@255261 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-29 07:00:48 +00:00
ccooper%deadsquid.com
51ce776e9c - adding cvsignore files
git-svn-id: svn://10.0.0.236/trunk@255260 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-28 17:43:33 +00:00
ccooper%deadsquid.com
ceb35b4e41 b=464164
p=armenzg
r=ccooper
- adds the ability to check out a repo different than l10n-central


git-svn-id: svn://10.0.0.236/trunk@255259 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-28 17:36:25 +00:00
ccooper%deadsquid.com
0adafdc46e b=464036
- add admin option to sort by date vetted

Misc.
- fix date display in comment popups


git-svn-id: svn://10.0.0.236/trunk@255258 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-28 17:06:17 +00:00
bhearsum%mozilla.com
91a99762e7 bug 466657: commit message for ReleaseTaggingFactory should contain 'CLOSED TREE'. r=nrthomas, patch=me
git-svn-id: svn://10.0.0.236/trunk@255257 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-28 14:24:53 +00:00
cltbld
b1456a7ea6 Automated configuration bump: moz191-branch-patcher2.cfg, from 3.1b1 to 3.1b2 build 1
git-svn-id: svn://10.0.0.236/trunk@255256 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-28 13:23:50 +00:00
bhearsum%mozilla.com
7fc0262b4a Backout moz191 patcher config update so it can be bumped again.
git-svn-id: svn://10.0.0.236/trunk@255255 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-28 13:23:32 +00:00
bhearsum%mozilla.com
caeb6af57b bug 466998: ReleaseUpdatesFactory 'cvs diff' step (validly) returns 1, turns step red. r=ccooper, patch=me
git-svn-id: svn://10.0.0.236/trunk@255254 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-28 13:01:40 +00:00
bhearsum%mozilla.com
503605d133 bug 451398: BuildFactory for l10n verification - fix the download rsync. r=ccooper, patch=me
git-svn-id: svn://10.0.0.236/trunk@255253 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-28 12:59:29 +00:00
kairo%kairo.at
b728fbb805 bug 466984 - SM l10n win build machine fails to generate .zip and .mar files, r=Gijs
git-svn-id: svn://10.0.0.236/trunk@255250 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 17:50:26 +00:00
wtc%google.com
30037806c6 Bug 438870: miscellaneous fixes for the FREEBL_NO_DEPEND code. r=rrelyea.
Modified Files:
	freebl_hash.def nsslowhash.c nsslowhash.h stubs.c


git-svn-id: svn://10.0.0.236/trunk@255249 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 15:20:44 +00:00
wtc%google.com
60fc6b64f7 Bug 466736: removed dead NSS_USE_64 code. (The NSS_USE_64 macro is only
defined and used in the lib/freebl directory.)  r=alexei.volkov.


git-svn-id: svn://10.0.0.236/trunk@255248 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 15:09:02 +00:00
wtc%google.com
4c513140bf Bug 454097: removed support for the OS/2 VisualAge compiler (XP_OS2_VACPP).
The patch is contributed by Walter Meinl <wuno@lsvw.de>.  r=wtc.
Modified Files:
	include/mcom_db.h src/h_bigkey.c src/h_page.c src/hash.c
	src/hash_buf.c src/mktemp.c src/snprintf.c


git-svn-id: svn://10.0.0.236/trunk@255247 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 14:57:20 +00:00
bclary%bclary.com
fc4277e6c8 bug 462470 - JavaScript Tests - deal with changes in decompilation and behavior from bug 461233.
git-svn-id: svn://10.0.0.236/trunk@255246 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 12:41:08 +00:00
bclary%bclary.com
90aa1bfc5f No bug - JavaScript Tests - sync js/tests/js1_8_1/trace/trace-test.js and js/src/trace-test.js
git-svn-id: svn://10.0.0.236/trunk@255245 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 12:09:41 +00:00
bclary%bclary.com
abff95a4ad bug 466617 - JavaScript Tests - default browser tests to non jit; bug 466606 - JavaScript Tests - Do not force language version upon non-Gecko browsers.
git-svn-id: svn://10.0.0.236/trunk@255244 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 12:05:05 +00:00
bclary%bclary.com
6ed784af56 bug 462939 - JavaScript Tests - update slow-n.tests, add branch specific slow-1.8.1.tests, slow-1.9.0.tests, slow-1.9.1.tests.
git-svn-id: svn://10.0.0.236/trunk@255243 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 12:02:46 +00:00
bclary%bclary.com
1b7a6424c9 Bug 461180: Fix test case result comparison function by mrbkap, jimb, waldo
git-svn-id: svn://10.0.0.236/trunk@255242 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 12:00:09 +00:00
bclary%bclary.com
4ebf756312 bug 466269 - fall out from getTestCase numeric/NaN comparison bug 461180.
git-svn-id: svn://10.0.0.236/trunk@255241 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:56:20 +00:00
bclary%bclary.com
46666943e7 bug 452786 - JavaScript Test by Joachim Kuebart.
git-svn-id: svn://10.0.0.236/trunk@255240 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:41:46 +00:00
bclary%bclary.com
54ecd5f650 bug 453915 - JavaScript Test by Chris Evans.
git-svn-id: svn://10.0.0.236/trunk@255239 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:40:05 +00:00
bclary%bclary.com
397a53583b bug 462470 - JavaScript Tests - deal with changes in decompilation and behavior from bug 461233.
git-svn-id: svn://10.0.0.236/trunk@255238 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:38:06 +00:00
bclary%bclary.com
551075d2da bug 465272 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@255237 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:33:47 +00:00
bclary%bclary.com
7984f5d66f bug 465276 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@255236 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:32:03 +00:00
bclary%bclary.com
2dd028489c bug 465308 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@255235 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:28:26 +00:00
bclary%bclary.com
4dac8e1276 bug 465337 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@255234 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:26:45 +00:00
bclary%bclary.com
d575eba5ca bug 465347 - JavaScript Test by Brendan Eich.
git-svn-id: svn://10.0.0.236/trunk@255233 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:25:09 +00:00
bclary%bclary.com
9c2e87dcb2 bug 465424 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@255232 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:22:50 +00:00
bclary%bclary.com
3831cbf0f4 bug 465453 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@255231 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:21:00 +00:00
bclary%bclary.com
651ce081b2 bug 465483 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@255230 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:19:06 +00:00
bclary%bclary.com
5cb7ef195d bug 465688 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@255229 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:17:12 +00:00
bclary%bclary.com
50ab92e2aa bug 466128 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@255228 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:15:00 +00:00
bclary%bclary.com
367dc1ca8b bug 466262 - JavaScript Test by Jesse Ruderman.
git-svn-id: svn://10.0.0.236/trunk@255227 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:13:08 +00:00
bclary%bclary.com
013064699e bug 466946 - Sisyphus - JavaScript Tests - use autoconf to build Spidermonkey even if Makefile.ref exists.
git-svn-id: svn://10.0.0.236/trunk@255226 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:10:44 +00:00
bclary%bclary.com
b7a83052fd bug 466947 - Sisyphus - retry profile creation on failure.
git-svn-id: svn://10.0.0.236/trunk@255225 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:08:51 +00:00
bclary%bclary.com
dff24ee128 bug 466951 - Sisyphus - JavaScript Tests - add option to perform depends builds to bisect.sh.
git-svn-id: svn://10.0.0.236/trunk@255224 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:06:04 +00:00
bclary%bclary.com
74dc2c7b3e bug 460569 - JavaScript Test - fix test so iframe is properly appended to document. Diagnosis by Ben Turner.
git-svn-id: svn://10.0.0.236/trunk@255223 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 11:04:00 +00:00
bclary%bclary.com
86e5617787 bug 466952 - Sisyphus - JavaScript Tests - update known failures.
git-svn-id: svn://10.0.0.236/trunk@255222 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-27 10:59:58 +00:00
jdrew%mozilla.com
13d9a86efc Bug 89419: Fix reftest failures caused by previous checkin. r=bz, sr=stuart, a=ss for checkin to 1.9.0.5
git-svn-id: svn://10.0.0.236/trunk@255219 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 23:50:51 +00:00
timeless%mozdev.org
e3bcd166cf replacing raw \n with newline
git-svn-id: svn://10.0.0.236/trunk@255218 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 22:00:01 +00:00
alexei.volkov.bugs%sun.com
1cada56cdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. Remove obsolite files.
git-svn-id: svn://10.0.0.236/trunk@255217 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 20:14:37 +00:00
cltbld
49fa280c3c Automated configuration bump: moz191-branch-patcher2.cfg, from 3.1b1 to 3.1b2 build 1
git-svn-id: svn://10.0.0.236/trunk@255216 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 16:46:41 +00:00
bhearsum%mozilla.com
d88bcab465 Backout patcher config changes so automation can run them again.
git-svn-id: svn://10.0.0.236/trunk@255215 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 16:45:27 +00:00
bhearsum%mozilla.com
1822e62e75 bug 451398: Add an l10nverify factory and associated build step. r=me, patch=coop
git-svn-id: svn://10.0.0.236/trunk@255214 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 14:46:31 +00:00
cltbld
fb87f76e72 Automated configuration bump: moz191-branch-patcher2.cfg, from 3.1b1 to 3.1b2 build 1
git-svn-id: svn://10.0.0.236/trunk@255213 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 14:38:01 +00:00
hannes%helma.at
b65740f614 Fix for bug 466661: Primitive number not wrapped when used as paramter of apply
git-svn-id: svn://10.0.0.236/trunk@255212 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 10:08:45 +00:00
nrthomas%gmail.com
b007f6d01d Bug 464093, fix up deletion of old nightly builds, p=catlee, r=me
git-svn-id: svn://10.0.0.236/trunk@255211 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 09:39:35 +00:00
nrthomas%gmail.com
f227d2c1b0 Bug 464093, removing .deps/* breaks depend builds, r pending
git-svn-id: svn://10.0.0.236/trunk@255210 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 05:27:38 +00:00
mkanat%bugzilla.org
0f6608b369 Bug 450209: Clean up WebService POD and add a History section for all functions that need one
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@255209 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 01:24:15 +00:00
mkanat%bugzilla.org
6e894eeb4d Bug 465219: Include ID in the flag section of /show_bug.cgi?id=...&ctype=xml
Patch By Frank Becker <Frank@Frank-Becker.de> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255208 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 01:03:50 +00:00
mkanat%bugzilla.org
a6c80ad794 Bug 466398: <select> is not escaped in the API documentation
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255207 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 00:57:54 +00:00
mkanat%bugzilla.org
c9b8316288 Bug 466406: Passing an empty comment to Bug.add_comment fails silently
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255206 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-26 00:53:29 +00:00
jdrew%mozilla.com
ba69d9994b Bug 89419: Caching of images loaded from a 302 is broken. r=bz, sr=stuart, a=dveditz for 1.9.0.5
git-svn-id: svn://10.0.0.236/trunk@255205 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-25 22:33:41 +00:00
bhearsum%mozilla.com
a800c1efde remove unwanted file
git-svn-id: svn://10.0.0.236/trunk@255203 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-25 20:02:25 +00:00
bhearsum%mozilla.com
c40fc15695 bug 363036: version/config bumps for 3.1b2. r=anodelman, patch=me
git-svn-id: svn://10.0.0.236/trunk@255202 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-25 20:01:08 +00:00
wtc%google.com
81eee0df01 Bug 461502: Use -Bdirect on Solaris 10 or later. The patch is contributed
by Julien Pierre of Sun Microsystems.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@255201 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-25 18:45:51 +00:00
alqahira%ardisson.org
0ccfdfba31 Bug 228840 - Middle-click on a bookmark in the Bookmark Bar should open bookmark in new tab. Patch by Christopher Henderson <trendyhendy2000@gmail.com> and HÃ¥kan Waara <hwaara@gmail.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255200 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-25 02:05:01 +00:00
mkanat%bugzilla.org
7901050645 Bug 465746: Marking bugs duplicate got a lot more annoying
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=pyrzak, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255199 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-25 01:33:52 +00:00
alqahira%ardisson.org
6461c733c9 Bug 160720 - Ability to rearrange/reorder tabs by drag and drop. Patch by Sean Murphy <murph@seanmurph.com>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255198 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 23:47:19 +00:00
dveditz%cruzio.com
d243b31e0b bug 451613 treat leading whitespace consistent with ExtractScheme, r/sr=jst, a=ss
git-svn-id: svn://10.0.0.236/trunk@255197 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 22:46:16 +00:00
stuart.morgan%alumni.case.edu
b0be322229 Camino only - Bug 335635: Combine 'import' and 'restore' in the certificate window. r=ardisson sr=pink
git-svn-id: svn://10.0.0.236/trunk@255196 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 22:25:46 +00:00
stuart.morgan%alumni.case.edu
d699412796 Camino only - Bug 335635: Combine 'import' and 'restore' in the certificate window. r=ardisson sr=pink
git-svn-id: svn://10.0.0.236/trunk@255195 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 21:43:02 +00:00
stuart.morgan%alumni.case.edu
7886694ec4 Camino only - Bug 456300: Disable the location bar and search field in Tab Overview mode. sr=pink
git-svn-id: svn://10.0.0.236/trunk@255194 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 21:32:01 +00:00
stuart.morgan%alumni.case.edu
0a54b5ed96 Camino only - Bug 410866: Add a toolbar button for Tab Overview. sr=pink
git-svn-id: svn://10.0.0.236/trunk@255193 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 21:27:29 +00:00
stuart.morgan%alumni.case.edu
e0e11771f9 Camino only - Bug 453206: Don't throw an exception when trying to read an iCab 4 bookmark file. sr=pink
git-svn-id: svn://10.0.0.236/trunk@255192 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 21:10:56 +00:00
stuart.morgan%alumni.case.edu
f05403abf7 Camino only - Bug 464575: Only annotate files that the OS has quarantined. sr=pink
git-svn-id: svn://10.0.0.236/trunk@255191 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 21:07:38 +00:00
stuart.morgan%alumni.case.edu
1bbc2994dd Camino only - Bug 465493: Don't leak when doing localized string lookup on a background thread. sr=pink
git-svn-id: svn://10.0.0.236/trunk@255190 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 20:05:02 +00:00
bhearsum%mozilla.com
7257b24a7c bug 460077: move moz2 unittest staging builds into mozilla2-staging buildbot - fix reload problems. r=me, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255188 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 19:11:40 +00:00
ccooper%deadsquid.com
f3a9fcbee0 b=464161
p=armenzg
r=ccooper
- allows l10n/schedulers to handle shipped-locales and defined "baseTag" to choose tags instead of "tip" and defined "repoPath" to handle "mozilla-1.9.1" project


git-svn-id: svn://10.0.0.236/trunk@255187 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 14:50:52 +00:00
ccooper%deadsquid.com
bfd274466a b=464164
p=armenzg
r=ccooper
- use repoPath


git-svn-id: svn://10.0.0.236/trunk@255186 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 14:07:00 +00:00
bhearsum%mozilla.com
2cc0ebcfd7 bug 464093: fix up paths to nightly dirs in pre-build cleanup step. r=me, patch=nrthomas
git-svn-id: svn://10.0.0.236/trunk@255185 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 13:32:22 +00:00
nrthomas%gmail.com
197dd37d50 Bug 466333, Nightly builds from mozilla-1.9.1 uploaded to wrong directories, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@255184 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-24 04:38:25 +00:00
lpsolit%gmail.com
1096e570b0 Bug 466319: End tag of "<kbd>docs/xml</li>" should be </kbd> - Patch by A.A. Shimono <shimono@mozilla.gr.jp> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255183 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-23 18:37:17 +00:00
lpsolit%gmail.com
f2480e4850 Fix typo, see bug 453681 comment 17
git-svn-id: svn://10.0.0.236/trunk@255182 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-23 18:30:55 +00:00
stuart.morgan%alumni.case.edu
5344301385 Camino only - Bug 395113: Icon for the Tab Overview toolbar icon. Icon by Philippe Wittenbergh <phiw@l-c-n.com>. sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255181 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-23 18:09:15 +00:00
ccooper%deadsquid.com
29b5884b62 b=465791
- use provided status to determine which result to look up
- accept testcase_id or testcase for search limiting


git-svn-id: svn://10.0.0.236/trunk@255180 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-22 00:59:26 +00:00
lpsolit%gmail.com
f905ccc7f6 Forgot to add a missing comma
git-svn-id: svn://10.0.0.236/trunk@255179 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 22:25:43 +00:00
lpsolit%gmail.com
d414a087d5 Bug 453681: Do not display the "Yes, delete" button if deleting a user account would cause FK constraint errors - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255178 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 21:56:00 +00:00
sdwilsh%shawnwilsher.com
62292fbdd3 Attempt to fix oragne. Backout should not have caused this. The test is not cleaning up after itself. No bug
git-svn-id: svn://10.0.0.236/trunk@255177 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 21:33:10 +00:00
wtc%google.com
f785f00683 Bug 465435: added a comment to explain the check against FD_SETSIZE in
_PR_MD_PR_POLL.  r=aleksey.sanin.


git-svn-id: svn://10.0.0.236/trunk@255176 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 21:22:28 +00:00
wtc%google.com
d16a6bb447 Bug 465629: Fixed the comments about PR_EnumerateAddrInfo and
PR_GetCanonNameFromAddrInfo.  r=julien.pierre.


git-svn-id: svn://10.0.0.236/trunk@255175 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 21:19:33 +00:00
wtc%google.com
b93d3e08e5 Bug 463562: load mmtimer.dll and look up timeGetTime at run time because
not all WINCE systems have mmtimer.dll.  The patch is contributed by Brad
Lassey <blassey@mozilla.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@255174 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 21:14:50 +00:00
wtc%google.com
61e118ece1 Bug 466194: CERT_DecodeTrustString should take a const char * input trusts
string.  r=alexei.volkov.


git-svn-id: svn://10.0.0.236/trunk@255173 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 21:02:39 +00:00
wtc%google.com
5ef4dc5b70 Bug 454120: removed parentheses that are no longer necessary after
"&& !defined(_WIN32_WCE)" was removed.  r=nelson.
Modified Files:
	sslmutex.c sslsnce.c


git-svn-id: svn://10.0.0.236/trunk@255172 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 21:00:13 +00:00
bhearsum%mozilla.com
6162472276 bug 464093: builds on mac take up too much space - cleanup both the i386 and ppc objdirs, deleted even more temp files. r=ccooper, patch=me
git-svn-id: svn://10.0.0.236/trunk@255171 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 20:08:59 +00:00
cltbld
a593794e4d Automated update from host egg.build.mozilla.org
git-svn-id: svn://10.0.0.236/trunk@255170 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 19:41:02 +00:00
sdwilsh%shawnwilsher.com
e08477d956 Backout of bug 464299 (SQLite upgrade to 3.6.4) due to possible dataloss regression
git-svn-id: svn://10.0.0.236/trunk@255169 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 19:38:01 +00:00
anodelman%mozilla.com
4342afbdb2 Bug 460848 (set up talos for Firefox 3.1 branch/repo)
p=anodelman, r=ccooper/catlee


git-svn-id: svn://10.0.0.236/trunk@255168 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 19:22:59 +00:00
bzbarsky%mit.edu
53f4e3fb7b Adding some images I'll want later for tests.
git-svn-id: svn://10.0.0.236/trunk@255167 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 19:10:39 +00:00
bhearsum%mozilla.com
339dee2020 Syntax error fixes for bug 460848. r=me, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255166 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 16:49:49 +00:00
anodelman%mozilla.com
01f9f2cb1d Bug 450607 - talos reports moz-central as being on '2.0', should be '1.9.2'
p=anodelman r=bhearsum


git-svn-id: svn://10.0.0.236/trunk@255165 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 16:43:50 +00:00
kaie%kuix.de
3d6959ce34 Bug 452855 - README.txt for mozilla/security/nss/tests/
r=wtc


git-svn-id: svn://10.0.0.236/trunk@255164 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 15:42:25 +00:00
bhearsum%mozilla.com
f52d8364ff bug 460848: set up talos for Firefox 3.1 maintenance branch builds. r=ccooper,anodelman, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255163 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 14:38:44 +00:00
hannes%helma.at
6d0e37e0bc Patch for bug 464898: check skip list for partial paths in StandardTests
git-svn-id: svn://10.0.0.236/trunk@255162 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-21 11:26:46 +00:00
alexei.volkov.bugs%sun.com
4057251df3 464223 - Certutil didn't accept certificate request to sign. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255161 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 22:30:55 +00:00
dolske%mozilla.com
843a504808 Bug 463206 - SessionStore does not always correctly restore text data. p=zeniko@gmail.com, r=dietrich, a1905=dveditz
git-svn-id: svn://10.0.0.236/trunk@255159 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 22:03:52 +00:00
dolske%mozilla.com
bef7dcbac5 Bug 464146 - about:rights notification sometimes not shown with session restore. r=gavin, ui-r=beltzner, a1905=ss
git-svn-id: svn://10.0.0.236/trunk@255158 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 21:47:58 +00:00
hannes%helma.at
14e80184c1 Patch from Marc Guillemot for Bug 464898: Add ../tests/src/jstests.jar to test classpath
git-svn-id: svn://10.0.0.236/trunk@255157 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 20:22:05 +00:00
bhearsum%mozilla.com
08bbd3bd93 bug 464692: unit test builders should have a BuildFactory - don't pass in env keyword to Mercurial build step. r=me, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255155 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 19:28:36 +00:00
bhearsum%mozilla.com
6806f3b56e bug update AUS' config-dist.php for Firefox 3.1 maintenance branch. r=morgamic, patch=me
git-svn-id: svn://10.0.0.236/trunk@255153 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 17:45:24 +00:00
glen.beasley%sun.com
a92c36bf98 Bug 465850 - Expose the TLS session ticket extension (STE) r=wan-teh
git-svn-id: svn://10.0.0.236/trunk@255152 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 15:49:43 +00:00
glen.beasley%sun.com
7f16a45054 Bug 347037 - Make shlibsign depend on the softoken only r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@255151 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 15:44:24 +00:00
slavomir.katuscak%sun.com
25481ee502 Bug 464246: Split Tinderbox configuration file. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255150 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 13:23:49 +00:00
slavomir.katuscak%sun.com
8c5a163bae Bug 464907: Patch to log return values. r=alexei
git-svn-id: svn://10.0.0.236/trunk@255149 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 13:13:36 +00:00
nelson%bolyard.com
e61ba41ed5 Back out last patch, because it seems to have made tinderboxes fail on
Windows. Sheriff Nelson


git-svn-id: svn://10.0.0.236/trunk@255148 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 07:37:25 +00:00
alqahira%ardisson.org
ecdddeafbe Bug 465824 - Flashblock placeholders not visible; upgrade to Flashblock 1.5.7 to pick up fix for bug 463839. r=hendy, sr=smorgan, with additional sanity-check from Philip Chee
git-svn-id: svn://10.0.0.236/trunk@255147 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 05:51:39 +00:00
alqahira%ardisson.org
539da02c37 Bug 465878 - Stop recreating Preferences Manager on shutdown. Patch by Chris Lawson <cl-bugs-new@chrislawson.net>, r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255146 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 05:43:05 +00:00
nelson%bolyard.com
1ac3bab648 Bug 444850: NSS misbehaves badly in the presence of a disabled PKCS#11 slot
This patch commits the difference between v5 and v6 of the patch named
"create token object, even when there is no session". v6 was r=julien


git-svn-id: svn://10.0.0.236/trunk@255145 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 04:53:44 +00:00
nelson%bolyard.com
7aa2b49d91 Bug 454120: Problems Compiling SECURITY module for WinMobile
Patch by Doug Turner <doug.turner@gmail.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@255144 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 04:39:59 +00:00
nelson%bolyard.com
d01e7081c1 Bug 464406: Fix signtool regressions, make signtool work again
part 3 - reenable peer trust flags, r=Alexei


git-svn-id: svn://10.0.0.236/trunk@255143 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 03:52:22 +00:00
nelson%bolyard.com
d23ab8ae4b Bug 464406: Fix signtool regressions, make signtool work again
part 2 - detect missing jar signatures, r=Alexei


git-svn-id: svn://10.0.0.236/trunk@255142 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 03:50:27 +00:00
nelson%bolyard.com
57cce7ecb3 Bug 464406: Fix signtool regressions, make signtool work again
part 1 - Fix signtool -l and -L commands, r=Alexei


git-svn-id: svn://10.0.0.236/trunk@255141 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 03:49:06 +00:00
wtc%google.com
c1c00513fe Bug 390527: include "prprf.h" for PR_snprintf, otherwise the "implicit
function declaration" warnings break the Linux build.  TBR=alexei.volkov.
Modified Files:
	pkix_error.c pkix_logger.c


git-svn-id: svn://10.0.0.236/trunk@255140 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 03:32:20 +00:00
alqahira%ardisson.org
ee6cabb03c Bug 394105 - Make Gecko .properties files localizable (step 2, with minimal automation). r/sr=smorgan
git-svn-id: svn://10.0.0.236/trunk@255139 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 03:16:15 +00:00
nelson%bolyard.com
9196c7463d Bug 462874: Can not reliably wait for close_notify
Patch by Miloslav Trmac <mitr@redhat.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@255138 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 00:45:25 +00:00
alexei.volkov.bugs%sun.com
4d83b9e468 390527 - get rid of pkixErrorMsg variable in PKIX_Error. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255137 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 00:38:14 +00:00
mrbkap%gmail.com
4185ee6ae0 Bug 464174 - Pass a principal in when compiling fields. r+sr=sicking a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255136 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-20 00:03:55 +00:00
lpsolit%gmail.com
156cc452d8 Bug 465817: The sudo session UI lets you select several users to impersonate at once - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255135 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 22:11:39 +00:00
kairo%kairo.at
a8a4897143 bug 465545 - Add chatzilla si to all-locales
git-svn-id: svn://10.0.0.236/trunk@255134 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 21:25:38 +00:00
kairo%kairo.at
9954c51e66 bug 465527 - include chatzilla pt-PT
git-svn-id: svn://10.0.0.236/trunk@255133 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 21:21:28 +00:00
nelson%bolyard.com
7d27f8dad6 Bug 431958: Improve DES and SHA512 for x86_64 platform
Patch by Makoto Kato <m_kato@ga2.so-net.ne.jp>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@255132 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 21:10:52 +00:00
lpsolit%gmail.com
21fae2f733 Bug 465803: The default assignee field in editcomponents.cgi has emptyok = 1 despite this field cannot be blank - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@255131 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 21:06:39 +00:00
nelson%bolyard.com
b0b004906e Bug 465270: uninitialised value in devutil.c::create_object()
Bug 465273: dead assignment in devutil.c::nssSlotArray_Clone()
Patch by Constantine A. Murenin <cnst+bmo@bugmail.mojo.ru>
r=nelson.  Found with LLVM/Clang Static Analyser.


git-svn-id: svn://10.0.0.236/trunk@255130 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 20:44:35 +00:00
hannes%helma.at
4554360400 Make java.util.Map implementing code compile and work with Java 1.5.
git-svn-id: svn://10.0.0.236/trunk@255129 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 20:21:20 +00:00
christophe.ravel.bugs%sun.com
15ebacce7e Bug 463678 - Need to add RPATH to 64-bit libraries on HP-UX
r=julien


git-svn-id: svn://10.0.0.236/trunk@255128 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 20:09:51 +00:00
lpsolit%gmail.com
9eb0bef1cc Bug 465606: If a user doesn't have privs to change the target milestone, it gets set back to default - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255127 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 19:32:57 +00:00
guy.pyrzak%gmail.com
79209b0bd8 Bug 464732: There is no label next to the Status drop-down
Patch By Guy Pyrzak<guy.pyrzak@gmail.com> r=mkanat, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255125 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 19:13:26 +00:00
bhearsum%mozilla.com
731fd7a636 bug 463340: add more slaves to try server host pools. r=me, patch=asasaki
git-svn-id: svn://10.0.0.236/trunk@255124 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 19:12:30 +00:00
lpsolit%gmail.com
bd80e71906 Bug 465741: Resolution display at top of bug doesn't display what the duplicate bug is - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@255123 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 18:55:31 +00:00
nelson%bolyard.com
6ca17d8449 Bug 462948 - lint warnings for source files that include keythi.h, r=julien.pierre
git-svn-id: svn://10.0.0.236/trunk@255122 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 16:20:12 +00:00
nelson%bolyard.com
9c10b7b86a Bug 458905 - Memory leaks in PKIX bridge certificates. r=rrelyea
git-svn-id: svn://10.0.0.236/trunk@255121 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 16:08:05 +00:00
nelson%bolyard.com
7ea34e3614 Bug 461085 - RFE: export function CERT_CompareCerts, r=julien.pierre
git-svn-id: svn://10.0.0.236/trunk@255120 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 16:04:38 +00:00
dveditz%cruzio.com
1b267e0a4a bug 405239 let cookie prompts come from the active tab instead of the one doing the load.
patch=jst, r/sr=sicking, a=dveditz


git-svn-id: svn://10.0.0.236/trunk@255119 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 08:58:40 +00:00
dveditz%cruzio.com
fed4d7017f bug 460993 prevent external-app deadlock on unix. patch=Jason Evans, r=pavlov, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255117 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 07:16:19 +00:00
jonas%sicking.cc
ad78be4c4b Test changes for bug 458248
git-svn-id: svn://10.0.0.236/trunk@255116 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 06:32:19 +00:00
dveditz%cruzio.com
f36dd2dd96 bug 452217 make Create() error code match unix, r=neil, sr=bsmedberg, a=ss
git-svn-id: svn://10.0.0.236/trunk@255115 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 06:19:27 +00:00
mkanat%bugzilla.org
60357dd83e Bug 452732: Re-organize the comment headers to make them look better and be more readable
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@255114 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 05:33:07 +00:00
jonas%sicking.cc
dc64553621 Fix bug 458248. r/sr=mrbkap a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255112 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 03:20:17 +00:00
julien.pierre.boogz%sun.com
81f6e6cbbd Fix for bug 462293 . Fix Windows build bustage.
git-svn-id: svn://10.0.0.236/trunk@255111 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 01:34:58 +00:00
julien.pierre.boogz%sun.com
37f408c46a Fix for bug 462293 . Fix crashes on fork if softoken is dlclosed on HP-UX and AIX. r=wtc
git-svn-id: svn://10.0.0.236/trunk@255109 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-19 00:16:56 +00:00
mrbkap%gmail.com
9dac5e7dc9 Bug 370461 - Fix the scope returned from Components.utils.lookupFunction. r=bzbarsky sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255105 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 23:58:23 +00:00
nrthomas%gmail.com
725e5ee1a2 Bug 465497, Wait for AUS to notice new snippets before testing them, r=bhearsum
git-svn-id: svn://10.0.0.236/trunk@255104 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 22:09:36 +00:00
dietrich%mozilla.com
63465a80f8 Bug 464620 - prevent dataloss from incorrectly restored sessions (for zeniko@gmail.com, r=dietrich, a=devidtz)
git-svn-id: svn://10.0.0.236/trunk@255103 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 21:48:59 +00:00
dolske%mozilla.com
0e6a0f82f7 Bug 462254 - Remove EULA from Firefox installer / .dmg and related bits. r=gavin, r=rstrong, a1905=dveditz
git-svn-id: svn://10.0.0.236/trunk@255102 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 21:36:24 +00:00
dveditz%cruzio.com
ca3a1346fb bug 464998 don't need to add null terminator to length, r/sr=bsmedberg, a=ss
git-svn-id: svn://10.0.0.236/trunk@255101 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 20:45:57 +00:00
dveditz%cruzio.com
1efc176284 bug 416907 reflow crash with frameset in mroot, patch=zweinberg, r/sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255100 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 20:18:08 +00:00
dveditz%cruzio.com
f67665a1ba bug 228856 \0 is ignored in css, patch=zweinberg, r/sr=dbaron, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255099 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 20:09:42 +00:00
rrelyea%redhat.com
5756d93fb8 Bug 438870 - Free Freebl hashing code of dependencies on NSPR and libUtil
git-svn-id: svn://10.0.0.236/trunk@255098 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 19:48:24 +00:00
rrelyea%redhat.com
450b11ce05 Bug 438870: Free Freebl hashing code of dependencies on NSPR and libUtil
make static functions load nssutil3.


git-svn-id: svn://10.0.0.236/trunk@255097 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 19:47:11 +00:00
dietrich%mozilla.com
56b52fcf4d test bustage fix for bug 458683
git-svn-id: svn://10.0.0.236/trunk@255096 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 19:21:27 +00:00
bhearsum%mozilla.com
9834ec317c bug 464151: tinderbox.py fix for Buildbot 0.7.9 (call render() correctly). r=me, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255095 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 18:44:10 +00:00
dietrich%mozilla.com
569c5928ae Bug 458683 - Backup only uri nodes into tag containers (for mak77@bonardo.net, r=dietrich, a=dveditz)
git-svn-id: svn://10.0.0.236/trunk@255094 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 17:34:01 +00:00
bhearsum%mozilla.com
44e7305321 bug 464035: move l10n_master.py logic to factory.py. r=ccooper,armenzg, patch=me
git-svn-id: svn://10.0.0.236/trunk@255093 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 16:45:33 +00:00
mozilla%kewis.ch
4b3f0887bb Fix gdata part of bug 458858 - Lightning keeps asking for password on startup. r=dbo (npotdb)
git-svn-id: svn://10.0.0.236/trunk@255092 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 10:32:41 +00:00
marco.zehe%googlemail.com
ee437152f2 Another bustage fix, disabling state checks for aria-link2 as well
git-svn-id: svn://10.0.0.236/trunk@255091 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 07:00:37 +00:00
dolske%mozilla.com
2bc6c708a8 Bug 456439 - Followup to correct an entity name used. Part 2.
git-svn-id: svn://10.0.0.236/trunk@255090 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 06:26:07 +00:00
mrbkap%gmail.com
24bd801bae Fixing build bustage from the checkin from bug 448564.
git-svn-id: svn://10.0.0.236/trunk@255089 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 05:33:58 +00:00
mrbkap%gmail.com
19b8b6c40a Bug 448564. Better handling of sink context switches. Patch from Ben Newman <bnewman@mozilla.com> r=mrbkap, sr=bzbarsky, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255088 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 05:19:10 +00:00
mrbkap%gmail.com
68e2ba2266 Bug 453310 - Reparameterize GetNewOrUsed and move some work around. r+sr=brendan a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255087 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 05:03:47 +00:00
dietrich%mozilla.com
6d0919b763 Bug 457473 - Bookmark copy creates bookmark with duplicate guid - regression in FF 3.0.3 (r=mano, sr=gavin, a=dveditz)
git-svn-id: svn://10.0.0.236/trunk@255086 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 02:47:04 +00:00
mrbkap%gmail.com
bbcbc48d6e Bug 451680 - Use a more reliable function to compile and execute XBL. r+sr=bzbarsky a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255085 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 02:21:42 +00:00
mrbkap%gmail.com
f4425ce2f5 Bug 460776. Add nhs.uk as an exception to the effective TLD list. Patch from David Triendl <david+mozilla@triendl.name>, r=gerv, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255084 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 01:36:42 +00:00
bzbarsky%mit.edu
d1cfa23b9b Make createDocument-created documents UTF-8. Bug 464958, r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255083 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 01:10:08 +00:00
masayuki%d-toybox.com
2a8480b7e8 Bug 440457 AltGr+9 and AltGr+0 don't type 9 and 0 respectively in Lithuanian keyboard r=ere, sr=roc, a=mconnor
git-svn-id: svn://10.0.0.236/trunk@255082 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 00:35:09 +00:00
wtc%google.com
da3d83abea Bug 453364: start using the new NSS error codes for the vague PKCS #11
errors in PK11_MapError.  r=rrelyea.


git-svn-id: svn://10.0.0.236/trunk@255081 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 00:22:30 +00:00
wtc%google.com
2fbe220f6f Bug 453364: mapped the NSS error codes that may be set by freebl functions
to the PKCS #11 CK_RV error codes.  r=rrelyea.


git-svn-id: svn://10.0.0.236/trunk@255080 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 00:19:48 +00:00
wtc%google.com
c6f6b97ecb Bug 453364: Improved error reporting. r=rrelyea.
git-svn-id: svn://10.0.0.236/trunk@255079 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 00:17:17 +00:00
wtc%google.com
fbaa12524b Bug 335016: In mpp_pprime, do not choose 0 or 1 as 'x' (the random integer
in the Miller-Rabin probabilistic primality test).  r=nelson.


git-svn-id: svn://10.0.0.236/trunk@255078 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-18 00:14:48 +00:00
nrthomas%gmail.com
9217db71c4 Bug 464351, update configs for Fx2.0.0.18 -> 3.0.4 major update, r=ccooper
git-svn-id: svn://10.0.0.236/trunk@255077 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 22:48:17 +00:00
dtownsend%oxymoronical.com
8d79e5b8e1 Bug 453545: InstallTrigger broken when doing multiple signed XPI installs.
r=biesi, a1.9.0.5=dveditz


git-svn-id: svn://10.0.0.236/trunk@255076 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 19:53:36 +00:00
bhearsum%mozilla.com
0a525cfa8e bug 464692: unit test builders should have a BuildFactory. r=me, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255075 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 19:35:09 +00:00
bhearsum%mozilla.com
d17f002363 bug 463036: tracking bug for build and release of 3.1b2 - bump moz191 patcher config to build2 for 3.1b1. r=nrthomas, patch=me
git-svn-id: svn://10.0.0.236/trunk@255072 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 18:05:48 +00:00
masayuki%d-toybox.com
a84ba870b2 b=452979 backing out
git-svn-id: svn://10.0.0.236/trunk@255071 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 16:56:30 +00:00
bzbarsky%mit.edu
3a288960d4 Bug 460713. Sanity-check the length. r+sr=jst, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255070 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 16:06:48 +00:00
bzbarsky%mit.edu
d11c3c44dd Bug 461735. Use the final channel URI as the script URI. r+sr=jst, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255069 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 16:02:46 +00:00
bzbarsky%mit.edu
627b5e5c2a Bug 462806. Don't initialize PSM when dealing with a jar unless the jar is actually signed. r=dveditz, sr=vlad, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255068 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 15:59:29 +00:00
masayuki%d-toybox.com
325cdf2bd2 b=452979 p=Masahiro Yamada <masa141421356@gmail.com>, r=gavin, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255067 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 15:24:56 +00:00
ted.mielczarek%gmail.com
8cf4ee580c followup bustage fix from bug 444103 in the --disable-crashreporter case
git-svn-id: svn://10.0.0.236/trunk@255066 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 14:36:43 +00:00
hannes%helma.at
e42dbc60b4 Fix bug 454969 - destructuring for-in loop fails in top-level scope
git-svn-id: svn://10.0.0.236/trunk@255064 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 13:01:58 +00:00
hannes%helma.at
b4f75fed65 Fix bug 461122 - Improve handling of future reserved words
git-svn-id: svn://10.0.0.236/trunk@255063 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 10:20:00 +00:00
despotdaemon
cecfd239fa Pseudo-automatic update of changes made by nelson@bolyard.com.
git-svn-id: svn://10.0.0.236/trunk@255062 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 07:37:52 +00:00
despotdaemon
70eca50912 Pseudo-automatic update of changes made by nelson@bolyard.com.
git-svn-id: svn://10.0.0.236/trunk@255061 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-17 07:06:54 +00:00
dolske%mozilla.com
a8c149c80e Bug 456439 - Followup to correct an entity name used. rs=mconnor.
git-svn-id: svn://10.0.0.236/trunk@255060 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-16 23:56:48 +00:00
silver%warwickcompsoc.co.uk
e03bebdcbf Releasing ChatZilla 0.9.84.
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@255059 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-16 15:09:39 +00:00
silver%warwickcompsoc.co.uk
17271ba92a Bug 464917 - Process duplicated nick and quit messages synchronously so they don't get out of order.
r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@255058 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-16 14:21:34 +00:00
dolske%mozilla.com
3f755a0f7c Bug 456439 - add about:rights and a "Know Your Rights" infobar to Firefox. r=gavin, a1905=dveditz
git-svn-id: svn://10.0.0.236/trunk@255057 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-16 06:46:32 +00:00
dolske%mozilla.com
9ec796172b Bug 460334 - sessionstore-windows-restored fires too early. r=zeniko, a1905=dveditz
git-svn-id: svn://10.0.0.236/trunk@255056 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-16 06:41:34 +00:00
sayrer%gmail.com
f65469f55b Bug 442708. JS_GC with GC_SET_SLOT_REQUEST doesn't loop until all threads are satisfied. r=bent, a=mconnor. Patch by Brendan Eich <brendan@mozilla.org>.
git-svn-id: svn://10.0.0.236/trunk@255055 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-16 06:35:30 +00:00
sayrer%gmail.com
e36211f34c Bug 439765. Live-lock when running JS on multiple threads. r=brendan, a=mconnor. Patch by Ben Turner <bent@mozilla.com>.
git-svn-id: svn://10.0.0.236/trunk@255054 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-16 06:27:47 +00:00
psychoticwolf%carolina.rr.com
b0f639252f Bug 465104 - [mozbot.pl] Add a space after :-( so some clients show the face properly.
git-svn-id: svn://10.0.0.236/trunk@255053 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-15 22:29:32 +00:00
psychoticwolf%carolina.rr.com
a9a3037fa9 Bug 465103 - [mozbot.pl] Add a kick subroutine to the bot api.
git-svn-id: svn://10.0.0.236/trunk@255052 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-15 22:28:13 +00:00
psychoticwolf%carolina.rr.com
8a0cbd673b Bug 405572 - Offer alternative UUID format for CID. Patch by Cesar Oliveira <cdolivei.bugzilla@gmail.com>, r=Wolf
git-svn-id: svn://10.0.0.236/trunk@255051 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-15 19:56:45 +00:00
alexei.volkov.bugs%sun.com
c7cb816140 464223 - Certutil didn't accept certificate request to sign. Modifying cert creation by avoiding using two process pipe.
git-svn-id: svn://10.0.0.236/trunk@255050 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-15 18:06:41 +00:00
despotdaemon
363253df71 Pseudo-automatic update of changes made by daniel.boelzle@sun.com.
git-svn-id: svn://10.0.0.236/trunk@255049 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-15 11:26:46 +00:00
dcamp%mozilla.com
7309813c44 Bug 461891: switch to using v2.2 safebrowsing servers. r=tony, a1.9.0.5=dveditz
git-svn-id: svn://10.0.0.236/trunk@255048 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 23:30:11 +00:00
ted.mielczarek%gmail.com
1f2ea2a39d bustage fix
git-svn-id: svn://10.0.0.236/trunk@255047 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 20:35:30 +00:00
wtc%google.com
4a66f7a071 Bug 463073: upgraded the NSPR tag to NSPR_4_7_3_RTM. sr=dveditz.
Approved for 1.9.0.5, a=dveditz for release-drivers.


git-svn-id: svn://10.0.0.236/trunk@255046 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 20:33:48 +00:00
ted.mielczarek%gmail.com
a5b430546e bug 444103 - add ability to add string-formatted notes to crash report. r=bsmedberg. bug 451709 - include obj-c exception info in crash reports. patch by Josh Aas r=me,bent sr=roc, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255045 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 20:11:26 +00:00
slavomir.katuscak%sun.com
f043913b46 Bug 464223: Patch to use /bin/bash in memleak.sh. r=nelson
git-svn-id: svn://10.0.0.236/trunk@255044 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 18:39:24 +00:00
bhearsum%mozilla.com
264d700044 bug 464093: changes to MercurialBuildFactory to delete nightly build trees at the start of a build (to help avoid disk space issues). r=me, patch=catlee
git-svn-id: svn://10.0.0.236/trunk@255043 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 16:40:59 +00:00
despotdaemon
0a7be6c1bd Pseudo-automatic update of changes made by daniel.boelzle@sun.com.
git-svn-id: svn://10.0.0.236/trunk@255042 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 16:37:55 +00:00
hannes%helma.at
9bd04cb333 Fix bug 448816: Implement Map interface in ScriptableObject.
git-svn-id: svn://10.0.0.236/trunk@255041 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 14:46:25 +00:00
hannes%helma.at
7b2463d3bd Fix bug 329908: Throw exception if file can't be read in readFile()
git-svn-id: svn://10.0.0.236/trunk@255040 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 14:05:55 +00:00
hannes%helma.at
b0ae8632a6 Fix bug 462827: Do not wrap JavaAdapter if it implements o.m.j.Scriptable
git-svn-id: svn://10.0.0.236/trunk@255039 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 13:52:29 +00:00
slavomir.katuscak%sun.com
ff3ffecf0a Bug 464689: Patch v2. r=alexei (Was already commited by Alexei, but without redir to /dev/null).
git-svn-id: svn://10.0.0.236/trunk@255038 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 10:07:06 +00:00
marco.zehe%googlemail.com
5c6e65d85b Bustage fix, take two, fixing late-night-inspired lapse on my part
git-svn-id: svn://10.0.0.236/trunk@255037 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-14 05:58:20 +00:00
nrthomas%gmail.com
eb686250e1 Bug 464801, monitor tracemonkey nightly files
git-svn-id: svn://10.0.0.236/trunk@255036 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-13 23:48:19 +00:00
alexei.volkov.bugs%sun.com
cb9ec36768 464689 - DBX failure in memory leak testing not reported. Debug patch by Slavo. r=alexei.
git-svn-id: svn://10.0.0.236/trunk@255035 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-13 22:51:58 +00:00
sdwilsh%shawnwilsher.com
844edac145 Bug 461743. Patch by Simon Bünzli <zeniko@gmail.com>. r=mrbkap, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255029 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-13 19:50:11 +00:00
sdwilsh%shawnwilsher.com
eac6dcfc6b Bug 453831 - Focus in limbo after multi-tab launch pref set. Patch by Simon Bünzli <zeniko@gmail.com>. r=dietrich, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255028 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-13 18:54:06 +00:00
slavomir.katuscak%sun.com
882b437fc6 Bug 464689: Added better dbx logging. r=christophe
git-svn-id: svn://10.0.0.236/trunk@255027 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-13 18:42:26 +00:00
mark.finkle%gmail.com
db81c67213 b=464728, r=bhearsum. Do XULRunner 1.9.0.4 spin
git-svn-id: svn://10.0.0.236/trunk@255023 18797224-902f-48f8-a5cc-f745e15eee43
2008-11-13 18:25:41 +00:00
320 changed files with 615 additions and 113237 deletions

View File

@@ -1,851 +0,0 @@
The majority of Rhino is MPL 1.1 / GPL 2.0 dual licensed:
The Mozilla Public License (http://www.mozilla.org/MPL/MPL-1.1.txt):
============================================================================
MOZILLA PUBLIC LICENSE
Version 1.1
---------------
1. Definitions.
1.0.1. "Commercial Use" means distribution or otherwise making the
Covered Code available to a third party.
1.1. "Contributor" means each entity that creates or contributes to
the creation of Modifications.
1.2. "Contributor Version" means the combination of the Original
Code, prior Modifications used by a Contributor, and the Modifications
made by that particular Contributor.
1.3. "Covered Code" means the Original Code or Modifications or the
combination of the Original Code and Modifications, in each case
including portions thereof.
1.4. "Electronic Distribution Mechanism" means a mechanism generally
accepted in the software development community for the electronic
transfer of data.
1.5. "Executable" means Covered Code in any form other than Source
Code.
1.6. "Initial Developer" means the individual or entity identified
as the Initial Developer in the Source Code notice required by Exhibit
A.
1.7. "Larger Work" means a work which combines Covered Code or
portions thereof with code not governed by the terms of this License.
1.8. "License" means this document.
1.8.1. "Licensable" means having the right to grant, to the maximum
extent possible, whether at the time of the initial grant or
subsequently acquired, any and all of the rights conveyed herein.
1.9. "Modifications" means any addition to or deletion from the
substance or structure of either the Original Code or any previous
Modifications. When Covered Code is released as a series of files, a
Modification is:
A. Any addition to or deletion from the contents of a file
containing Original Code or previous Modifications.
B. Any new file that contains any part of the Original Code or
previous Modifications.
1.10. "Original Code" means Source Code of computer software code
which is described in the Source Code notice required by Exhibit A as
Original Code, and which, at the time of its release under this
License is not already Covered Code governed by this License.
1.10.1. "Patent Claims" means any patent claim(s), now owned or
hereafter acquired, including without limitation, method, process,
and apparatus claims, in any patent Licensable by grantor.
1.11. "Source Code" means the preferred form of the Covered Code for
making modifications to it, including all modules it contains, plus
any associated interface definition files, scripts used to control
compilation and installation of an Executable, or source code
differential comparisons against either the Original Code or another
well known, available Covered Code of the Contributor's choice. The
Source Code can be in a compressed or archival form, provided the
appropriate decompression or de-archiving software is widely available
for no charge.
1.12. "You" (or "Your") means an individual or a legal entity
exercising rights under, and complying with all of the terms of, this
License or a future version of this License issued under Section 6.1.
For legal entities, "You" includes any entity which controls, is
controlled by, or is under common control with You. For purposes of
this definition, "control" means (a) the power, direct or indirect,
to cause the direction or management of such entity, whether by
contract or otherwise, or (b) ownership of more than fifty percent
(50%) of the outstanding shares or beneficial ownership of such
entity.
2. Source Code License.
2.1. The Initial Developer Grant.
The Initial Developer hereby grants You a world-wide, royalty-free,
non-exclusive license, subject to third party intellectual property
claims:
(a) under intellectual property rights (other than patent or
trademark) Licensable by Initial Developer to use, reproduce,
modify, display, perform, sublicense and distribute the Original
Code (or portions thereof) with or without Modifications, and/or
as part of a Larger Work; and
(b) under Patents Claims infringed by the making, using or
selling of Original Code, to make, have made, use, practice,
sell, and offer for sale, and/or otherwise dispose of the
Original Code (or portions thereof).
(c) the licenses granted in this Section 2.1(a) and (b) are
effective on the date Initial Developer first distributes
Original Code under the terms of this License.
(d) Notwithstanding Section 2.1(b) above, no patent license is
granted: 1) for code that You delete from the Original Code; 2)
separate from the Original Code; or 3) for infringements caused
by: i) the modification of the Original Code or ii) the
combination of the Original Code with other software or devices.
2.2. Contributor Grant.
Subject to third party intellectual property claims, each Contributor
hereby grants You a world-wide, royalty-free, non-exclusive license
(a) under intellectual property rights (other than patent or
trademark) Licensable by Contributor, to use, reproduce, modify,
display, perform, sublicense and distribute the Modifications
created by such Contributor (or portions thereof) either on an
unmodified basis, with other Modifications, as Covered Code
and/or as part of a Larger Work; and
(b) under Patent Claims infringed by the making, using, or
selling of Modifications made by that Contributor either alone
and/or in combination with its Contributor Version (or portions
of such combination), to make, use, sell, offer for sale, have
made, and/or otherwise dispose of: 1) Modifications made by that
Contributor (or portions thereof); and 2) the combination of
Modifications made by that Contributor with its Contributor
Version (or portions of such combination).
(c) the licenses granted in Sections 2.2(a) and 2.2(b) are
effective on the date Contributor first makes Commercial Use of
the Covered Code.
(d) Notwithstanding Section 2.2(b) above, no patent license is
granted: 1) for any code that Contributor has deleted from the
Contributor Version; 2) separate from the Contributor Version;
3) for infringements caused by: i) third party modifications of
Contributor Version or ii) the combination of Modifications made
by that Contributor with other software (except as part of the
Contributor Version) or other devices; or 4) under Patent Claims
infringed by Covered Code in the absence of Modifications made by
that Contributor.
3. Distribution Obligations.
3.1. Application of License.
The Modifications which You create or to which You contribute are
governed by the terms of this License, including without limitation
Section 2.2. The Source Code version of Covered Code may be
distributed only under the terms of this License or a future version
of this License released under Section 6.1, and You must include a
copy of this License with every copy of the Source Code You
distribute. You may not offer or impose any terms on any Source Code
version that alters or restricts the applicable version of this
License or the recipients' rights hereunder. However, You may include
an additional document offering the additional rights described in
Section 3.5.
3.2. Availability of Source Code.
Any Modification which You create or to which You contribute must be
made available in Source Code form under the terms of this License
either on the same media as an Executable version or via an accepted
Electronic Distribution Mechanism to anyone to whom you made an
Executable version available; and if made available via Electronic
Distribution Mechanism, must remain available for at least twelve (12)
months after the date it initially became available, or at least six
(6) months after a subsequent version of that particular Modification
has been made available to such recipients. You are responsible for
ensuring that the Source Code version remains available even if the
Electronic Distribution Mechanism is maintained by a third party.
3.3. Description of Modifications.
You must cause all Covered Code to which You contribute to contain a
file documenting the changes You made to create that Covered Code and
the date of any change. You must include a prominent statement that
the Modification is derived, directly or indirectly, from Original
Code provided by the Initial Developer and including the name of the
Initial Developer in (a) the Source Code, and (b) in any notice in an
Executable version or related documentation in which You describe the
origin or ownership of the Covered Code.
3.4. Intellectual Property Matters
(a) Third Party Claims.
If Contributor has knowledge that a license under a third party's
intellectual property rights is required to exercise the rights
granted by such Contributor under Sections 2.1 or 2.2,
Contributor must include a text file with the Source Code
distribution titled "LEGAL" which describes the claim and the
party making the claim in sufficient detail that a recipient will
know whom to contact. If Contributor obtains such knowledge after
the Modification is made available as described in Section 3.2,
Contributor shall promptly modify the LEGAL file in all copies
Contributor makes available thereafter and shall take other steps
(such as notifying appropriate mailing lists or newsgroups)
reasonably calculated to inform those who received the Covered
Code that new knowledge has been obtained.
(b) Contributor APIs.
If Contributor's Modifications include an application programming
interface and Contributor has knowledge of patent licenses which
are reasonably necessary to implement that API, Contributor must
also include this information in the LEGAL file.
(c) Representations.
Contributor represents that, except as disclosed pursuant to
Section 3.4(a) above, Contributor believes that Contributor's
Modifications are Contributor's original creation(s) and/or
Contributor has sufficient rights to grant the rights conveyed by
this License.
3.5. Required Notices.
You must duplicate the notice in Exhibit A in each file of the Source
Code. If it is not possible to put such notice in a particular Source
Code file due to its structure, then You must include such notice in a
location (such as a relevant directory) where a user would be likely
to look for such a notice. If You created one or more Modification(s)
You may add your name as a Contributor to the notice described in
Exhibit A. You must also duplicate this License in any documentation
for the Source Code where You describe recipients' rights or ownership
rights relating to Covered Code. You may choose to offer, and to
charge a fee for, warranty, support, indemnity or liability
obligations to one or more recipients of Covered Code. However, You
may do so only on Your own behalf, and not on behalf of the Initial
Developer or any Contributor. You must make it absolutely clear than
any such warranty, support, indemnity or liability obligation is
offered by You alone, and You hereby agree to indemnify the Initial
Developer and every Contributor for any liability incurred by the
Initial Developer or such Contributor as a result of warranty,
support, indemnity or liability terms You offer.
3.6. Distribution of Executable Versions.
You may distribute Covered Code in Executable form only if the
requirements of Section 3.1-3.5 have been met for that Covered Code,
and if You include a notice stating that the Source Code version of
the Covered Code is available under the terms of this License,
including a description of how and where You have fulfilled the
obligations of Section 3.2. The notice must be conspicuously included
in any notice in an Executable version, related documentation or
collateral in which You describe recipients' rights relating to the
Covered Code. You may distribute the Executable version of Covered
Code or ownership rights under a license of Your choice, which may
contain terms different from this License, provided that You are in
compliance with the terms of this License and that the license for the
Executable version does not attempt to limit or alter the recipient's
rights in the Source Code version from the rights set forth in this
License. If You distribute the Executable version under a different
license You must make it absolutely clear that any terms which differ
from this License are offered by You alone, not by the Initial
Developer or any Contributor. You hereby agree to indemnify the
Initial Developer and every Contributor for any liability incurred by
the Initial Developer or such Contributor as a result of any such
terms You offer.
3.7. Larger Works.
You may create a Larger Work by combining Covered Code with other code
not governed by the terms of this License and distribute the Larger
Work as a single product. In such a case, You must make sure the
requirements of this License are fulfilled for the Covered Code.
4. Inability to Comply Due to Statute or Regulation.
If it is impossible for You to comply with any of the terms of this
License with respect to some or all of the Covered Code due to
statute, judicial order, or regulation then You must: (a) comply with
the terms of this License to the maximum extent possible; and (b)
describe the limitations and the code they affect. Such description
must be included in the LEGAL file described in Section 3.4 and must
be included with all distributions of the Source Code. Except to the
extent prohibited by statute or regulation, such description must be
sufficiently detailed for a recipient of ordinary skill to be able to
understand it.
5. Application of this License.
This License applies to code to which the Initial Developer has
attached the notice in Exhibit A and to related Covered Code.
6. Versions of the License.
6.1. New Versions.
Netscape Communications Corporation ("Netscape") may publish revised
and/or new versions of the License from time to time. Each version
will be given a distinguishing version number.
6.2. Effect of New Versions.
Once Covered Code has been published under a particular version of the
License, You may always continue to use it under the terms of that
version. You may also choose to use such Covered Code under the terms
of any subsequent version of the License published by Netscape. No one
other than Netscape has the right to modify the terms applicable to
Covered Code created under this License.
6.3. Derivative Works.
If You create or use a modified version of this License (which you may
only do in order to apply it to code which is not already Covered Code
governed by this License), You must (a) rename Your license so that
the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
"MPL", "NPL" or any confusingly similar phrase do not appear in your
license (except to note that your license differs from this License)
and (b) otherwise make it clear that Your version of the license
contains terms which differ from the Mozilla Public License and
Netscape Public License. (Filling in the name of the Initial
Developer, Original Code or Contributor in the notice described in
Exhibit A shall not of themselves be deemed to be modifications of
this License.)
7. DISCLAIMER OF WARRANTY.
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
8. TERMINATION.
8.1. This License and the rights granted hereunder will terminate
automatically if You fail to comply with terms herein and fail to cure
such breach within 30 days of becoming aware of the breach. All
sublicenses to the Covered Code which are properly granted shall
survive any termination of this License. Provisions which, by their
nature, must remain in effect beyond the termination of this License
shall survive.
8.2. If You initiate litigation by asserting a patent infringement
claim (excluding declatory judgment actions) against Initial Developer
or a Contributor (the Initial Developer or Contributor against whom
You file such action is referred to as "Participant") alleging that:
(a) such Participant's Contributor Version directly or indirectly
infringes any patent, then any and all rights granted by such
Participant to You under Sections 2.1 and/or 2.2 of this License
shall, upon 60 days notice from Participant terminate prospectively,
unless if within 60 days after receipt of notice You either: (i)
agree in writing to pay Participant a mutually agreeable reasonable
royalty for Your past and future use of Modifications made by such
Participant, or (ii) withdraw Your litigation claim with respect to
the Contributor Version against such Participant. If within 60 days
of notice, a reasonable royalty and payment arrangement are not
mutually agreed upon in writing by the parties or the litigation claim
is not withdrawn, the rights granted by Participant to You under
Sections 2.1 and/or 2.2 automatically terminate at the expiration of
the 60 day notice period specified above.
(b) any software, hardware, or device, other than such Participant's
Contributor Version, directly or indirectly infringes any patent, then
any rights granted to You by such Participant under Sections 2.1(b)
and 2.2(b) are revoked effective as of the date You first made, used,
sold, distributed, or had made, Modifications made by that
Participant.
8.3. If You assert a patent infringement claim against Participant
alleging that such Participant's Contributor Version directly or
indirectly infringes any patent where such claim is resolved (such as
by license or settlement) prior to the initiation of patent
infringement litigation, then the reasonable value of the licenses
granted by such Participant under Sections 2.1 or 2.2 shall be taken
into account in determining the amount or value of any payment or
license.
8.4. In the event of termination under Sections 8.1 or 8.2 above,
all end user license agreements (excluding distributors and resellers)
which have been validly granted by You or any distributor hereunder
prior to termination shall survive termination.
9. LIMITATION OF LIABILITY.
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
(INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
10. U.S. GOVERNMENT END USERS.
The Covered Code is a "commercial item," as that term is defined in
48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
software" and "commercial computer software documentation," as such
terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
all U.S. Government End Users acquire Covered Code with only those
rights set forth herein.
11. MISCELLANEOUS.
This License represents the complete agreement concerning subject
matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the extent
necessary to make it enforceable. This License shall be governed by
California law provisions (except to the extent applicable law, if
any, provides otherwise), excluding its conflict-of-law provisions.
With respect to disputes in which at least one party is a citizen of,
or an entity chartered or registered to do business in the United
States of America, any litigation relating to this License shall be
subject to the jurisdiction of the Federal Courts of the Northern
District of California, with venue lying in Santa Clara County,
California, with the losing party responsible for costs, including
without limitation, court costs and reasonable attorneys' fees and
expenses. The application of the United Nations Convention on
Contracts for the International Sale of Goods is expressly excluded.
Any law or regulation which provides that the language of a contract
shall be construed against the drafter shall not apply to this
License.
12. RESPONSIBILITY FOR CLAIMS.
As between Initial Developer and the Contributors, each party is
responsible for claims and damages arising, directly or indirectly,
out of its utilization of rights under this License and You agree to
work with Initial Developer and Contributors to distribute such
responsibility on an equitable basis. Nothing herein is intended or
shall be deemed to constitute any admission of liability.
13. MULTIPLE-LICENSED CODE.
Initial Developer may designate portions of the Covered Code as
"Multiple-Licensed". "Multiple-Licensed" means that the Initial
Developer permits you to utilize portions of the Covered Code under
Your choice of the NPL or the alternative licenses, if any, specified
by the Initial Developer in the file described in Exhibit A.
EXHIBIT A -Mozilla Public License.
``The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
License for the specific language governing rights and limitations
under the License.
The Original Code is ______________________________________.
The Initial Developer of the Original Code is ________________________.
Portions created by ______________________ are Copyright (C) ______
_______________________. All Rights Reserved.
Contributor(s): ______________________________________.
Alternatively, the contents of this file may be used under the terms
of the _____ license (the "[___] License"), in which case the
provisions of [______] License are applicable instead of those
above. If you wish to allow use of your version of this file only
under the terms of the [____] License and not to allow others to use
your version of this file under the MPL, indicate your decision by
deleting the provisions above and replace them with the notice and
other provisions required by the [___] License. If you do not delete
the provisions above, a recipient may use your version of this file
under either the MPL or the [___] License."
[NOTE: The text of this Exhibit A may differ slightly from the text of
the notices in the Source Code files of the Original Code. You should
use the text of this Exhibit A rather than the text found in the
Original Code Source Code for Your Modifications.]
============================================================================
============================================================================
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
============================================================================
Additionally, some files (currently the contents of
toolsrc/org/mozilla/javascript/tools/debugger/treetable/) are available
only under the following license:
============================================================================
* Copyright 1997, 1998 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* - Neither the name of Sun Microsystems nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
============================================================================

View File

@@ -1,48 +0,0 @@
<html>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is Rhino code, released
- May 6, 1999.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 1998-1999
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
- Norris Boyd
-
- Alternatively, the contents of this file may be used under the terms of
- the GNU General Public License Version 2 or later (the "GPL"), in which
- case the provisions of the GPL are applicable instead of those above. If
- you wish to allow use of your version of this file only under the terms of
- the GPL and not to allow others to use your version of this file under the
- MPL, indicate your decision by deleting the provisions above and replacing
- them with the notice and other provisions required by the GPL. If you do
- not delete the provisions above, a recipient may use your version of this
- file under either the MPL or the GPL.
-
- ***** END LICENSE BLOCK ***** -->
<body>
<h1>
<span CLASS=LXRSHORTDESC>
Rhino: JavaScript in Java<p>
</span>
</h1>
<span CLASS=LXRLONGDESC>
Rhino is an implementation of JavaScript in Java. Documentation can be found
<a href="http://www.mozilla.org/rhino/index.html">here</a>.
</span>
</body>
</html>

View File

@@ -1,66 +0,0 @@
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is Rhino code, released May 6, 1999.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1997-1999
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the terms of
# the GNU General Public License Version 2 or later (the "GPL"), in which
# case the provisions of the GPL are applicable instead of those above. If
# you wish to allow use of your version of this file only under the terms of
# the GPL and not to allow others to use your version of this file under the
# MPL, indicate your decision by deleting the provisions above and replacing
# them with the notice and other provisions required by the GPL. If you do
# not delete the provisions above, a recipient may use your version of this
# file under either the MPL or the GPL.
#
# ***** END LICENSE BLOCK *****
apiClasses=\
src/org/mozilla/javascript/Callable.java,\
src/org/mozilla/javascript/ClassCache.java,\
src/org/mozilla/javascript/ClassShutter.java,\
src/org/mozilla/javascript/CompilerEnvirons.java,\
src/org/mozilla/javascript/ContinuationPending.java,\
src/org/mozilla/javascript/Context.java,\
src/org/mozilla/javascript/ContextAction.java,\
src/org/mozilla/javascript/ContextFactory.java,\
src/org/mozilla/javascript/GeneratedClassLoader.java,\
src/org/mozilla/javascript/EcmaError.java,\
src/org/mozilla/javascript/ErrorReporter.java,\
src/org/mozilla/javascript/EvaluatorException.java,\
src/org/mozilla/javascript/Function.java,\
src/org/mozilla/javascript/FunctionObject.java,\
src/org/mozilla/javascript/GeneratedClassLoader.java,\
src/org/mozilla/javascript/ImporterTopLevel.java,\
src/org/mozilla/javascript/JavaScriptException.java,\
src/org/mozilla/javascript/RefCallable.java,\
src/org/mozilla/javascript/RhinoException.java,\
src/org/mozilla/javascript/Script.java,\
src/org/mozilla/javascript/Scriptable.java,\
src/org/mozilla/javascript/ScriptableObject.java,\
src/org/mozilla/javascript/SecurityController.java,\
src/org/mozilla/javascript/WrapFactory.java,\
src/org/mozilla/javascript/WrappedException.java,\
src/org/mozilla/javascript/Wrapper.java,\
src/org/mozilla/javascript/Synchronizer.java,\
src/org/mozilla/javascript/optimizer/ClassCompiler.java,\
src/org/mozilla/javascript/debug/DebuggableScript.java,\
src/org/mozilla/javascript/serialize/ScriptableInputStream.java,\
src/org/mozilla/javascript/serialize/ScriptableOutputStream.java

View File

@@ -1 +0,0 @@
This version was built on @datestamp@.

View File

@@ -1,65 +0,0 @@
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is Rhino code, released
# May 6, 1999.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1997-1999
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Igor Bukanov
#
# Alternatively, the contents of this file may be used under the terms of
# the GNU General Public License Version 2 or later (the "GPL"), in which
# case the provisions of the GPL are applicable instead of those above. If
# you wish to allow use of your version of this file only under the terms of
# the GPL and not to allow others to use your version of this file under the
# MPL, indicate your decision by deleting the provisions above and replacing
# them with the notice and other provisions required by the GPL. If you do
# not delete the provisions above, a recipient may use your version of this
# file under either the MPL or the GPL.
#
# ***** END LICENSE BLOCK *****
name: rhino
Name: Rhino
version: 1_7R3pre
# See Context#getImplementationVersion() for format of this!
implementation.version: Rhino 1.7 release 3 PRERELEASE ${implementation.date}
build.dir: build
rhino.jar: js.jar
small-rhino.jar: smalljs.jar
rhino-14.jar: js-14.jar
small-rhino-14.jar: smalljs-14.jar
dist.name: rhino${version}
dist.dir: ${build.dir}/${dist.name}
# compilation destionation
classes: ${build.dir}/classes
# compilation settings
debug: on
target-jvm: 1.5
source-level: 1.5
# jar generation settings
jar-compression: true
# optional external packages
xmlbeans: .
xbean.jar: ${xmlbeans}/lib/xbean.jar
jsr173.jar: ${xmlbeans}/lib/jsr173_1.0_api.jar

View File

@@ -1,343 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is Rhino code, released May 6, 1999.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 1997-1999
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- Alternatively, the contents of this file may be used under the terms of
- the GNU General Public License Version 2 or later (the "GPL"), in which
- case the provisions of the GPL are applicable instead of those above. If
- you wish to allow use of your version of this file only under the terms of
- the GPL and not to allow others to use your version of this file under the
- MPL, indicate your decision by deleting the provisions above and replacing
- them with the notice and other provisions required by the GPL. If you do
- not delete the provisions above, a recipient may use your version of this
- file under either the MPL or the GPL.
-
- ***** END LICENSE BLOCK ***** -->
<!--
Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
Requires Ant version 1.2 or later
Compilation currently requires JDK 1.5 or later. Can cross-compile to
support JDK 1.4.
-->
<project name="Rhino" default="help" basedir=".">
<target name="properties">
<!-- Allow user to override default settings from build.properties -->
<property file="build.local.properties" />
<tstamp>
<!-- Specify date part of Context#getImplementationVersion() -->
<format property="implementation.date" pattern="yyyy MM dd"/>
</tstamp>
<property file="build.properties"/>
<property name="dist.file" value="rhino${version}.zip"/>
<property name="dist.source-only-zip" value="rhino${version}-sources.zip"/>
<property file="apiClasses.properties"/>
<property name="xmlimplsrc-build-file"
location="xmlimplsrc/build.xml"/>
<available property="xmlimplsrc-present?"
file="${xmlimplsrc-build-file}" />
</target>
<target name="init" depends="properties">
<mkdir dir="${build.dir}"/>
<mkdir dir="${classes}"/>
<mkdir dir="${dist.dir}"/>
</target>
<target name="compile" depends="init">
<ant antfile="src/build.xml" target="compile"/>
<ant antfile="toolsrc/build.xml" target="compile"/>
<antcall target="xmlimplsrc-compile" />
</target>
<target name="compile-all" depends="compile">
<ant antfile="deprecatedsrc/build.xml" target="compile"/>
</target>
<target name="graph" depends="init">
<ant antfile="src/build.xml" target="graph"/>
</target>
<target name="shell" depends="compile">
<ant antfile="src/build.xml" target="shell"/>
</target>
<target name="copy-source" depends="init">
<ant antfile="src/build.xml" target="copy-source"/>
<ant antfile="toolsrc/build.xml" target="copy-source"/>
<ant antfile="testsrc/build.xml" target="copy-source"/>
<antcall target="xmlimplsrc-copy-source" />
<ant antfile="deprecatedsrc/build.xml" target="copy-source"/>
<copy todir="${dist.dir}" file="build.xml"/>
<copy todir="${dist.dir}" file="build.properties"/>
<copy todir="${dist.dir}" file="apiClasses.properties"/>
<copy todir="${dist.dir}" file="LICENSE.txt"/>
</target>
<target name="xmlimplsrc-compile" if="xmlimplsrc-present?">
<echo>Calling ${xmlimplsrc-build-file}</echo>
<!-- Ignore compilation errors under JDK less then 1.4 -->
<property name="xmlimpl.compile.failonerror" value="no"/>
<ant antfile="${xmlimplsrc-build-file}" target="compile"/>
</target>
<target name="xmlimplsrc-copy-source" if="xmlimplsrc-present?">
<echo>Calling ${xmlimplsrc-build-file}</echo>
<ant antfile="${xmlimplsrc-build-file}" target="copy-source"/>
</target>
<target name="jar" depends="compile-all">
<property name="jarfile" location="${dist.dir}/${rhino.jar}"/>
<jar jarfile="${jarfile}"
basedir="${classes}"
manifest="src/manifest"
compress="${jar-compression}"
/>
</target>
<target name="console" depends="jar">
<property name="jarfile" location="${dist.dir}/${rhino.jar}"/>
<java jar="${jarfile}"
fork="true">
<arg line="-version 170"/>
</java>
</target>
<target name="retrotranslator" depends="retrotranslator-check,retrotranslator-download">
<taskdef name="retrotranslator" classpath="build/download/Retrotranslator-1.2.3-bin/retrotranslator-transformer-1.2.3.jar"
classname="net.sf.retrotranslator.transformer.RetrotranslatorTask"/>
</target>
<target name="retrotranslator-check">
<condition property="retrotranslator.available">
<and>
<available file="build/download/Retrotranslator-1.2.3-bin/retrotranslator-transformer-1.2.3.jar"/>
<available file="build/download/Retrotranslator-1.2.3-bin/retrotranslator-runtime-1.2.3.jar"/>
<available file="build/download/Retrotranslator-1.2.3-bin/backport-util-concurrent-3.1.jar"/>
</and>
</condition>
</target>
<target name="retrotranslator-download" unless="retrotranslator.available">
<mkdir dir="build/download"/>
<get src="http://downloads.sourceforge.net/retrotranslator/Retrotranslator-1.2.3-bin.zip" dest="build/download/Retrotranslator-1.2.3-bin.zip" usetimestamp="true"/>
<unzip src="build/download/Retrotranslator-1.2.3-bin.zip" dest="build/download"/>
</target>
<target name="retrojar" depends="jar,retrotranslator">
<retrotranslator
srcjar="${jarfile}"
destjar="${dist.dir}/${rhino-14.jar}"
embed="org.mozilla.javascript"
/>
</target>
<target name="smalljar" depends="compile">
<property name="smalljarfile" location="${dist.dir}/${small-rhino.jar}"/>
<jar basedir="${classes}" destfile="${smalljarfile}"
compress="${jar-compression}">
<include name="org/mozilla/javascript/*.class"/>
<include name="org/mozilla/javascript/debug/*.class"/>
<include name="org/mozilla/javascript/resources/*.properties"/>
<include name="org/mozilla/javascript/xml/*.class"/>
<include name="org/mozilla/javascript/continuations/*.class"/>
<include name="org/mozilla/javascript/jdk13/*.class"/>
<!-- exclude classes that defines only int constants -->
<exclude name="org/mozilla/javascript/Token.class"/>
<!-- exclude classes that uses class generation library -->
<exclude name="org/mozilla/javascript/JavaAdapter*.class"/>
<include name="org/mozilla/javascript/regexp/*.class"
unless="no-regexp"/>
</jar>
</target>
<target name="retrosmalljar" depends="smalljar,retrotranslator">
<retrotranslator
srcjar="${smalljarfile}"
destjar="${dist.dir}/${small-rhino-14.jar}"
embed="org.mozilla.javascript"
/>
</target>
<target name="copy-examples" depends="init">
<mkdir dir="${dist.dir}/examples"/>
<copy todir="${dist.dir}/examples">
<fileset dir="examples" includes="**/*.java,**/*.js,**/*.html" />
</copy>
</target>
<target name="copy-misc" depends="init">
<filter token="datestamp" value="${TODAY}"/>
<copy todir="${dist.dir}" filtering="yes">
<fileset dir=".">
<patternset>
<include name="build-date"/>
</patternset>
</fileset>
</copy>
</target>
<target name="copy-all" depends="copy-source,copy-examples,copy-misc">
</target>
<target name="javadoc" depends="init">
<mkdir dir="${dist.dir}/javadoc"/>
<javadoc sourcefiles="${apiClasses}"
sourcepath="src"
destdir="${dist.dir}/javadoc"
version="true"
author="true"
windowtitle="${Name}" />
</target>
<target name="dev-javadoc" depends="init">
<mkdir dir="${dist.dir}/javadoc"/>
<javadoc sourcepath="src"
destdir="${dist.dir}/javadoc"
version="true"
package="true"
author="true"
windowtitle="${Name}">
<fileset
dir="."
includes="**/*.java"
excludes="**/deprecatedsrc/**/*.java"
/>
</javadoc>
</target>
<target name="dist" depends="deepclean,jar,retrojar,copy-all,javadoc">
<delete file="${dist.file}" />
<zip destfile="${dist.file}">
<fileset dir="${build.dir}" includes="${dist.name}/**"/>
</zip>
</target>
<target name="source-zip" depends="copy-source,copy-examples,javadoc">
<delete file="${dist.source-only-zip}" />
<zip destfile="${dist.source-only-zip}">
<zipfileset prefix="${dist.name}" dir="${dist.dir}">
<include name="*src/**"/>
<include name="build.xml"/>
<include name="*.properties"/>
<include name="examples/**"/>
</zipfileset>
</zip>
</target>
<target name="compile-debugger">
<ant antfile="toolsrc/build.xml" target="compile-debugger"/>
</target>
<target name="clean" depends="properties">
<delete quiet="true" file="${dist.dir}/${rhino.jar}"/>
<delete quiet="true" file="${dist.dir}/${small-rhino.jar}"/>
<delete quiet="true" dir="${build.dir}"/>
</target>
<target name="deepclean" depends="properties">
<delete quiet="true" dir="${build.dir}"/>
<delete quiet="true" file="${dist.file}"/>
<delete quiet="true" file="${dist.source-only-zip}"/>
</target>
<!--
The next two targets run the JavaScript Test Library tests. Note that these tests are quite extensive and take a long time
to run. They are not documented in the 'help' target for now.
-->
<!--
Run the tests using JUnit. Beware that if you are using Ant from the command-line, there are some difficulties you may
encounter setting this up correctly; see http://ant.apache.org/faq.html#delegating-classloader
IDEs that use Ant as the build system probably handle this fine.
-->
<target name="junit-all" depends="compile">
<ant antfile="testsrc/build.xml" target="junit-coveragereport"/>
</target>
<!--
Run the tests using the Java port of jsdriver.pl. Note that running this port
from the command-line may be more useful running this Ant target, as running
from the command line allows configuration options, such as running with a
non-default optimization level, or running only a subset of the tests.
-->
<target name="jsdriver-run" depends="compile">
<ant antfile="testsrc/build.xml" target="jsdriver" />
</target>
<!--
Compile the JsDriver test driver.
-->
<target name="jsdriver" depends="compile">
<ant antfile="testsrc/build.xml" target="clean" />
<ant antfile="testsrc/build.xml" target="compile" />
</target>
<target name="help" depends="properties">
<echo>The following targets are available with this build file:
clean remove all compiled classes and copied property files
compile compile classes and copy all property files
into ${classes} directory
excluding deprecated code
compile-all compile all classes and copy all property files
into ${classes} directory
including deprecated code
deepclean remove all generated files and directories
dist create ${dist.file} with full Rhino distribution
help print this help
jar create ${rhino.jar} in ${dist.dir}
smalljar create ${small-rhino.jar} in ${dist.dir} with
minimalist set of Rhino classes. See footprint.html
from the doc directory for details.
javadoc generate Rhino API documentation
in ${dist.dir}/javadoc
source-zip create ${dist.source-only-zip} with all Rhino
source files necessary to recreate ${dist.file}
</echo>
</target>
</project>

View File

@@ -1,61 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is Rhino code, released May 6, 1999.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 1997-1999
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- Alternatively, the contents of this file may be used under the terms of
- the GNU General Public License Version 2 or later (the "GPL"), in which
- case the provisions of the GPL are applicable instead of those above. If
- you wish to allow use of your version of this file only under the terms of
- the GPL and not to allow others to use your version of this file under the
- MPL, indicate your decision by deleting the provisions above and replacing
- them with the notice and other provisions required by the GPL. If you do
- not delete the provisions above, a recipient may use your version of this
- file under either the MPL or the GPL.
-
- ***** END LICENSE BLOCK ***** -->
<project name="src" default="compile" basedir="..">
<property file="build.properties"/>
<target name="compile">
<javac srcdir="deprecatedsrc"
destdir="${classes}"
includes="org/mozilla/javascript/*.java"
deprecation="on"
debug="${debug}"
target="${target-jvm}"
source="${source-level}"
>
</javac>
</target>
<target name="copy-source">
<mkdir dir="${dist.dir}/deprecatedsrc"/>
<copy todir="${dist.dir}/deprecatedsrc">
<fileset dir="deprecatedsrc"
includes="**/*.java,**/*.properties,**/*.xml,manifest"/>
</copy>
</target>
</project>

View File

@@ -1,53 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* @deprecated The exception is no longer thrown by Rhino runtime as
* {@link EvaluatorException} is used instead.
*/
public class ClassDefinitionException extends RuntimeException
{
static final long serialVersionUID = -5637830967241712746L;
public ClassDefinitionException(String detail) {
super(detail);
}
}

View File

@@ -1,52 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* @deprecated The exception is no longer thrown by Rhino runtime as
* {@link EvaluatorException} is used instead.
*/
public class NotAFunctionException extends RuntimeException
{
static final long serialVersionUID = 6461524852170711724L;
public NotAFunctionException() { }
}

View File

@@ -1,54 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* @deprecated This exception is no longer thrown by Rhino runtime.
*/
public class PropertyException extends RuntimeException
{
static final long serialVersionUID = -8221564865490676219L;
public PropertyException(String detail) {
super(detail);
}
}

View File

@@ -1,367 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Ethan Hugg
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript.xml.impl.xmlbeans;
import org.apache.xmlbeans.XmlCursor;
import java.util.*;
public class LogicalEquality
{
public static boolean nodesEqual(XmlCursor xmlOne, XmlCursor xmlTwo)
{
boolean result = false;
if (xmlOne.isStartdoc())
{
xmlOne.toFirstContentToken();
}
if (xmlTwo.isStartdoc())
{
xmlTwo.toFirstContentToken();
}
if (xmlOne.currentTokenType() == xmlTwo.currentTokenType())
{
if (xmlOne.isEnddoc())
{
// Both empty
result = true;
}
else if (xmlOne.isAttr())
{
result = attributesEqual(xmlOne, xmlTwo);
}
else if (xmlOne.isText())
{
result = textNodesEqual(xmlOne, xmlTwo);
}
else if (xmlOne.isComment())
{
result = commentsEqual(xmlOne, xmlTwo);
}
else if (xmlOne.isProcinst())
{
result = processingInstructionsEqual(xmlOne, xmlTwo);
}
else if (xmlOne.isStart())
{
// Compare root elements
result = elementsEqual(xmlOne, xmlTwo);
}
}
return result;
}
private static boolean elementsEqual(XmlCursor xmlOne, XmlCursor xmlTwo)
{
boolean result = true;
if (!qnamesEqual(xmlOne.getName(), xmlTwo.getName()))
{
result = false;
}
else
{
// These filter out empty text nodes.
nextToken(xmlOne);
nextToken(xmlTwo);
do
{
if (xmlOne.currentTokenType() != xmlTwo.currentTokenType())
{
// Not same token
result = false;
break;
}
else if (xmlOne.isEnd())
{
// Done with this element, step over end
break;
}
else if (xmlOne.isEnddoc())
{
// Shouldn't get here
break;
}
else if (xmlOne.isAttr())
{
// This one will move us to the first non-attr token.
result = attributeListsEqual(xmlOne, xmlTwo);
}
else
{
if (xmlOne.isText())
{
result = textNodesEqual(xmlOne, xmlTwo);
}
else if (xmlOne.isComment())
{
result = commentsEqual(xmlOne, xmlTwo);
}
else if (xmlOne.isProcinst())
{
result = processingInstructionsEqual(xmlOne, xmlTwo);
}
else if (xmlOne.isStart())
{
result = elementsEqual(xmlOne, xmlTwo);
}
else
{
//XML.log("Unknown token type" + xmlOne.currentTokenType());
}
// These filter out empty text nodes.
nextToken(xmlOne);
nextToken(xmlTwo);
}
}
while(result);
}
return result;
}
/**
*
* @param xmlOne
* @param xmlTwo
* @return
*/
private static boolean attributeListsEqual(XmlCursor xmlOne, XmlCursor xmlTwo)
{
boolean result = true;
TreeMap mapOne = loadAttributeMap(xmlOne);
TreeMap mapTwo = loadAttributeMap(xmlTwo);
if (mapOne.size() != mapTwo.size())
{
result = false;
}
else
{
Set keysOne = mapOne.keySet();
Set keysTwo = mapTwo.keySet();
Iterator itOne = keysOne.iterator();
Iterator itTwo = keysTwo.iterator();
while (result && itOne.hasNext())
{
String valueOne = (String) itOne.next();
String valueTwo = (String) itTwo.next();
if (!valueOne.equals(valueTwo))
{
result = false;
}
else
{
javax.xml.namespace.QName qnameOne = (javax.xml.namespace.QName) mapOne.get(valueOne);
javax.xml.namespace.QName qnameTwo = (javax.xml.namespace.QName) mapTwo.get(valueTwo);
if (!qnamesEqual(qnameOne, qnameTwo))
{
result = false;
}
}
}
}
return result;
}
/**
*
* @param xml
* @return
*/
private static TreeMap loadAttributeMap(XmlCursor xml)
{
TreeMap result = new TreeMap();
while (xml.isAttr())
{
result.put(xml.getTextValue(), xml.getName());
nextToken(xml);
}
return result;
}
/**
*
* @param xmlOne
* @param xmlTwo
* @return
*/
private static boolean attributesEqual(XmlCursor xmlOne, XmlCursor xmlTwo)
{
boolean result = false;
if (xmlOne.isAttr() && xmlTwo.isAttr())
{
if (qnamesEqual(xmlOne.getName(), xmlTwo.getName()))
{
if (xmlOne.getTextValue().equals(xmlTwo.getTextValue()))
{
result = true;
}
}
}
return result;
}
/**
*
* @param xmlOne
* @param xmlTwo
* @return
*/
private static boolean textNodesEqual(XmlCursor xmlOne, XmlCursor xmlTwo)
{
boolean result = false;
if (xmlOne.isText() && xmlTwo.isText())
{
if (xmlOne.getChars().equals(xmlTwo.getChars()))
{
result = true;
}
}
return result;
}
/**
*
* @param xmlOne
* @param xmlTwo
* @return
*/
private static boolean commentsEqual(XmlCursor xmlOne, XmlCursor xmlTwo)
{
boolean result = false;
if (xmlOne.isComment() && xmlTwo.isComment())
{
if (xmlOne.getTextValue().equals(xmlTwo.getTextValue()))
{
result = true;
}
}
return result;
}
/**
*
* @param xmlOne
* @param xmlTwo
* @return
*/
private static boolean processingInstructionsEqual(XmlCursor xmlOne, XmlCursor xmlTwo)
{
boolean result = false;
if (xmlOne.isProcinst() && xmlTwo.isProcinst())
{
if (qnamesEqual(xmlOne.getName(), xmlTwo.getName()))
{
if (xmlOne.getTextValue().equals(xmlTwo.getTextValue()))
{
result = true;
}
}
}
return result;
}
/**
*
* @param qnameOne
* @param qnameTwo
* @return
*/
private static boolean qnamesEqual(javax.xml.namespace.QName qnameOne, javax.xml.namespace.QName qnameTwo)
{
boolean result = false;
if (qnameOne.getNamespaceURI().equals(qnameTwo.getNamespaceURI()))
{
if (qnameOne.getLocalPart().equals(qnameTwo.getLocalPart()))
{
return true;
}
}
return result;
}
/**
* filter out empty textNodes here
*
* @param xml
*/
private static void nextToken(XmlCursor xml)
{
do
{
xml.toNextToken();
if (!xml.isText())
{
// Not a text node
break;
}
else if (xml.getChars().trim().length() > 0)
{
// Text node is not empty
break;
}
}
while (true);
}
}

View File

@@ -1,335 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Ethan Hugg
* Terry Lucas
* Milen Nankov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript.xml.impl.xmlbeans;
import org.mozilla.javascript.*;
/**
* Class Namespace
*
*/
class Namespace extends IdScriptableObject
{
static final long serialVersionUID = -5765755238131301744L;
private static final Object NAMESPACE_TAG = "Namespace";
private XMLLibImpl lib;
private String prefix;
private String uri;
public Namespace(XMLLibImpl lib, String uri)
{
super(lib.globalScope(), lib.namespacePrototype);
if (uri == null)
throw new IllegalArgumentException();
this.lib = lib;
this.prefix = (uri.length() == 0) ? "" : null;
this.uri = uri;
}
public Namespace(XMLLibImpl lib, String prefix, String uri)
{
super(lib.globalScope(), lib.namespacePrototype);
if (uri == null)
throw new IllegalArgumentException();
if (uri.length() == 0) {
// prefix should be "" for empty uri
if (prefix == null)
throw new IllegalArgumentException();
if (prefix.length() != 0)
throw new IllegalArgumentException();
}
this.lib = lib;
this.prefix = prefix;
this.uri = uri;
}
public void exportAsJSClass(boolean sealed)
{
exportAsJSClass(MAX_PROTOTYPE_ID, lib.globalScope(), sealed);
}
/**
*
* @return
*/
public String uri()
{
return uri;
}
/**
*
* @return
*/
public String prefix()
{
return prefix;
}
/**
*
* @return
*/
public String toString ()
{
return uri();
}
/**
*
* @return
*/
public String toLocaleString ()
{
return toString();
}
public boolean equals(Object obj)
{
if (!(obj instanceof Namespace)) return false;
return equals((Namespace)obj);
}
protected Object equivalentValues(Object value)
{
if (!(value instanceof Namespace)) return Scriptable.NOT_FOUND;
boolean result = equals((Namespace)value);
return result ? Boolean.TRUE : Boolean.FALSE;
}
private boolean equals(Namespace n)
{
return uri().equals(n.uri());
}
/**
*
* @return
*/
public String getClassName ()
{
return "Namespace";
}
/**
*
* @param hint
* @return
*/
public Object getDefaultValue (Class hint)
{
return uri();
}
// #string_id_map#
private static final int
Id_prefix = 1,
Id_uri = 2,
MAX_INSTANCE_ID = 2;
protected int getMaxInstanceId()
{
return super.getMaxInstanceId() + MAX_INSTANCE_ID;
}
protected int findInstanceIdInfo(String s)
{
int id;
// #generated# Last update: 2004-07-20 19:50:50 CEST
L0: { id = 0; String X = null;
int s_length = s.length();
if (s_length==3) { X="uri";id=Id_uri; }
else if (s_length==6) { X="prefix";id=Id_prefix; }
if (X!=null && X!=s && !X.equals(s)) id = 0;
}
// #/generated#
if (id == 0) return super.findInstanceIdInfo(s);
int attr;
switch (id) {
case Id_prefix:
case Id_uri:
attr = PERMANENT | READONLY;
break;
default: throw new IllegalStateException();
}
return instanceIdInfo(attr, super.getMaxInstanceId() + id);
}
// #/string_id_map#
protected String getInstanceIdName(int id)
{
switch (id - super.getMaxInstanceId()) {
case Id_prefix: return "prefix";
case Id_uri: return "uri";
}
return super.getInstanceIdName(id);
}
protected Object getInstanceIdValue(int id)
{
switch (id - super.getMaxInstanceId()) {
case Id_prefix:
if (prefix == null) return Undefined.instance;
return prefix;
case Id_uri:
return uri;
}
return super.getInstanceIdValue(id);
}
// #string_id_map#
private static final int
Id_constructor = 1,
Id_toString = 2,
Id_toSource = 3,
MAX_PROTOTYPE_ID = 3;
protected int findPrototypeId(String s)
{
int id;
// #generated# Last update: 2004-08-21 12:07:01 CEST
L0: { id = 0; String X = null; int c;
int s_length = s.length();
if (s_length==8) {
c=s.charAt(3);
if (c=='o') { X="toSource";id=Id_toSource; }
else if (c=='t') { X="toString";id=Id_toString; }
}
else if (s_length==11) { X="constructor";id=Id_constructor; }
if (X!=null && X!=s && !X.equals(s)) id = 0;
}
// #/generated#
return id;
}
// #/string_id_map#
protected void initPrototypeId(int id)
{
String s;
int arity;
switch (id) {
case Id_constructor: arity=2; s="constructor"; break;
case Id_toString: arity=0; s="toString"; break;
case Id_toSource: arity=0; s="toSource"; break;
default: throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(NAMESPACE_TAG, id, s, arity);
}
public Object execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
{
if (!f.hasTag(NAMESPACE_TAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
switch (id) {
case Id_constructor:
return jsConstructor(cx, (thisObj == null), args);
case Id_toString:
return realThis(thisObj, f).toString();
case Id_toSource:
return realThis(thisObj, f).js_toSource();
}
throw new IllegalArgumentException(String.valueOf(id));
}
private Namespace realThis(Scriptable thisObj, IdFunctionObject f)
{
if(!(thisObj instanceof Namespace))
throw incompatibleCallError(f);
return (Namespace)thisObj;
}
private Object jsConstructor(Context cx, boolean inNewExpr, Object[] args)
{
if (!inNewExpr && args.length == 1) {
return lib.castToNamespace(cx, args[0]);
}
if (args.length == 0) {
return lib.constructNamespace(cx);
} else if (args.length == 1) {
return lib.constructNamespace(cx, args[0]);
} else {
return lib.constructNamespace(cx, args[0], args[1]);
}
}
private String js_toSource()
{
StringBuffer sb = new StringBuffer();
sb.append('(');
toSourceImpl(prefix, uri, sb);
sb.append(')');
return sb.toString();
}
static void toSourceImpl(String prefix, String uri, StringBuffer sb)
{
sb.append("new Namespace(");
if (uri.length() == 0) {
if (!"".equals(prefix)) throw new IllegalArgumentException(prefix);
} else {
sb.append('\'');
if (prefix != null) {
sb.append(ScriptRuntime.escapeString(prefix, '\''));
sb.append("', '");
}
sb.append(ScriptRuntime.escapeString(uri, '\''));
sb.append('\'');
}
sb.append(')');
}
}

View File

@@ -1,350 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Milen Nankov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript.xml.impl.xmlbeans;
import java.util.*;
import org.apache.xmlbeans.XmlCursor;
import org.mozilla.javascript.*;
class NamespaceHelper
{
private XMLLibImpl lib;
private final Map prefixToURI = new HashMap();
private final Map uriToPrefix = new HashMap();
// A set of URIs that are used without explicit namespace declaration in scope.
private final Set undeclared = new HashSet();
private NamespaceHelper(XMLLibImpl lib)
{
this.lib = lib;
// Insert the default namespace
prefixToURI.put("", "");
Set prefixes = new HashSet();
prefixes.add("");
uriToPrefix.put("", prefixes);
}
/**
* Declared a new namespace
*
* @param prefix
* @param uri
* @param declarations
*/
private void declareNamespace(String prefix, String uri, ObjArray declarations)
{
Set prefixes = (Set)uriToPrefix.get(uri);
if(prefixes == null)
{
prefixes = new HashSet();
uriToPrefix.put(uri, prefixes);
}
if(!prefixes.contains(prefix))
{
String oldURI = (String)prefixToURI.get(prefix);
// Add the new mapping
prefixes.add(prefix);
prefixToURI.put(prefix, uri);
if(declarations != null)
declarations.add(new Namespace(lib, prefix, uri));
if(oldURI != null)
{
// Update the existing mapping
prefixes = (Set)uriToPrefix.get(oldURI);
prefixes.remove(prefix);
}
}
}
/**
* Updates the internal state of this NamespaceHelper to reflect the
* existance of the XML token pointed to by the cursor.
*/
private void processName(XmlCursor cursor, ObjArray declarations)
{
javax.xml.namespace.QName qname = cursor.getName();
String uri = qname.getNamespaceURI();
Set prefixes = (Set)uriToPrefix.get(uri);
if(prefixes == null || prefixes.size() == 0)
{
undeclared.add(uri);
if(declarations != null)
declarations.add(new Namespace(lib, uri));
}
}
/**
* Updates the internal state of this NamespaceHelper with the
* namespace information of the element pointed to by the cursor.
*/
private void update(XmlCursor cursor, ObjArray declarations)
{
// Process the Namespace declarations
cursor.push();
while(cursor.toNextToken().isAnyAttr())
{
if(cursor.isNamespace())
{
javax.xml.namespace.QName name = cursor.getName();
String prefix = name.getLocalPart();
String uri = name.getNamespaceURI();
declareNamespace(prefix, uri, declarations);
}
}
cursor.pop();
// Process the element
processName(cursor, declarations);
// Process the attributes
cursor.push();
boolean hasNext = cursor.toFirstAttribute();
while(hasNext)
{
processName(cursor, declarations);
hasNext = cursor.toNextAttribute();
}
cursor.pop();
}
/**
* @return Object[] array of Namespace objects in scope at the cursor.
*/
public static Object[] inScopeNamespaces(XMLLibImpl lib, XmlCursor cursor)
{
ObjArray namespaces = new ObjArray();
NamespaceHelper helper = new NamespaceHelper(lib);
cursor.push();
int depth = 0;
while(cursor.hasPrevToken())
{
if(cursor.isContainer())
{
cursor.push();
depth++;
}
cursor.toParent();
}
for(int i = 0; i < depth; i++)
{
cursor.pop();
helper.update(cursor, null);
}
Iterator i = helper.prefixToURI.entrySet().iterator();
while(i.hasNext())
{
Map.Entry entry = (Map.Entry)i.next();
Namespace ns = new Namespace(lib, (String)entry.getKey(),
(String)entry.getValue());
namespaces.add(ns);
}
i = helper.undeclared.iterator();
while(i.hasNext())
{
Namespace ns = new Namespace(lib, (String)i.next());
namespaces.add(ns);
}
cursor.pop();
return namespaces.toArray();
}
static Namespace getNamespace(XMLLibImpl lib, XmlCursor cursor,
Object[] inScopeNamespaces)
{
String uri;
String prefix;
if (cursor.isProcinst()) {
uri = "";
prefix = "";
} else {
javax.xml.namespace.QName qname = cursor.getName();
uri = qname.getNamespaceURI();
prefix = qname.getPrefix();
}
if (inScopeNamespaces == null)
return new Namespace(lib, prefix, uri);
Namespace result = null;
for (int i = 0; i != inScopeNamespaces.length; ++i) {
Namespace ns = (Namespace)inScopeNamespaces[i];
if(ns == null) continue;
String nsURI = ns.uri();
if(nsURI.equals(uri))
{
if(prefix.equals(ns.prefix()))
{
result = ns;
break;
}
if(result == null ||
(result.prefix() == null &&
ns.prefix() != null))
result = ns;
}
}
if(result == null)
result = new Namespace(lib, prefix, uri);
return result;
}
/**
* @return List of Namespace objects that are declared in the container pointed to by the cursor.
*/
public static Object[] namespaceDeclarations(XMLLibImpl lib, XmlCursor cursor)
{
ObjArray declarations = new ObjArray();
NamespaceHelper helper = new NamespaceHelper(lib);
cursor.push();
int depth = 0;
while(cursor.hasPrevToken())
{
if(cursor.isContainer())
{
cursor.push();
depth++;
}
cursor.toParent();
}
for(int i = 0; i < depth - 1; i++)
{
cursor.pop();
helper.update(cursor, null);
}
if(depth > 0)
{
cursor.pop();
helper.update(cursor, declarations);
}
cursor.pop();
return declarations.toArray();
}
/**
* @return Prefix to URI map of all namespaces in scope at the cursor.
*/
public static Map getAllNamespaces(XMLLibImpl lib, XmlCursor cursor)
{
NamespaceHelper helper = new NamespaceHelper(lib);
cursor.push();
int depth = 0;
while(cursor.hasPrevToken())
{
if(cursor.isContainer())
{
cursor.push();
depth++;
}
cursor.toParent();
}
for(int i = 0; i < depth; i++)
{
cursor.pop();
helper.update(cursor, null);
}
cursor.pop();
return helper.prefixToURI;
}
public static void getNamespaces(XmlCursor cursor, Map prefixToURI)
{
cursor.push();
while(cursor.toNextToken().isAnyAttr())
{
if(cursor.isNamespace())
{
javax.xml.namespace.QName name = cursor.getName();
String prefix = name.getLocalPart();
String uri = name.getNamespaceURI();
prefixToURI.put(prefix, uri);
}
}
cursor.pop();
}
public static void removeNamespace(XmlCursor cursor, String prefix)
{
cursor.push();
while(cursor.toNextToken().isAnyAttr())
{
if(cursor.isNamespace())
{
javax.xml.namespace.QName name = cursor.getName();
if(name.getLocalPart().equals(prefix))
{
cursor.removeXml();
break;
}
}
}
cursor.pop();
}
}

View File

@@ -1,321 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Ethan Hugg
* Terry Lucas
* Milen Nankov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript.xml.impl.xmlbeans;
import org.mozilla.javascript.*;
/**
* Class QName
*
*/
final class QName extends IdScriptableObject
{
static final long serialVersionUID = 416745167693026750L;
private static final Object QNAME_TAG = "QName";
XMLLibImpl lib;
private String prefix;
private String localName;
private String uri;
QName(XMLLibImpl lib, String uri, String localName, String prefix)
{
super(lib.globalScope(), lib.qnamePrototype);
if (localName == null) throw new IllegalArgumentException();
this.lib = lib;
this.uri = uri;
this.prefix = prefix;
this.localName = localName;
}
void exportAsJSClass(boolean sealed)
{
exportAsJSClass(MAX_PROTOTYPE_ID, lib.globalScope(), sealed);
}
/**
*
* @return
*/
public String toString()
{
String result;
if (uri == null)
{
result = "*::".concat(localName);
}
else if(uri.length() == 0)
{
result = localName;
}
else
{
result = uri + "::" + localName;
}
return result;
}
public String localName()
{
return localName;
}
String prefix()
{
return (prefix == null) ? prefix : "";
}
String uri()
{
return uri;
}
public boolean equals(Object obj)
{
if(!(obj instanceof QName)) return false;
return equals((QName)obj);
}
protected Object equivalentValues(Object value)
{
if(!(value instanceof QName)) return Scriptable.NOT_FOUND;
boolean result = equals((QName)value);
return result ? Boolean.TRUE : Boolean.FALSE;
}
private boolean equals(QName q)
{
boolean result;
if (uri == null) {
result = q.uri == null && localName.equals(q.localName);
} else {
result = uri.equals(q.uri) && localName.equals(q.localName);
}
return result;
}
/**
*
* @return
*/
public String getClassName ()
{
return "QName";
}
/**
*
* @param hint
* @return
*/
public Object getDefaultValue (Class hint)
{
return toString();
}
// #string_id_map#
private static final int
Id_localName = 1,
Id_uri = 2,
MAX_INSTANCE_ID = 2;
protected int getMaxInstanceId()
{
return super.getMaxInstanceId() + MAX_INSTANCE_ID;
}
protected int findInstanceIdInfo(String s)
{
int id;
// #generated# Last update: 2004-07-18 12:32:51 CEST
L0: { id = 0; String X = null;
int s_length = s.length();
if (s_length==3) { X="uri";id=Id_uri; }
else if (s_length==9) { X="localName";id=Id_localName; }
if (X!=null && X!=s && !X.equals(s)) id = 0;
}
// #/generated#
if (id == 0) return super.findInstanceIdInfo(s);
int attr;
switch (id) {
case Id_localName:
case Id_uri:
attr = PERMANENT | READONLY;
break;
default: throw new IllegalStateException();
}
return instanceIdInfo(attr, super.getMaxInstanceId() + id);
}
// #/string_id_map#
protected String getInstanceIdName(int id)
{
switch (id - super.getMaxInstanceId()) {
case Id_localName: return "localName";
case Id_uri: return "uri";
}
return super.getInstanceIdName(id);
}
protected Object getInstanceIdValue(int id)
{
switch (id - super.getMaxInstanceId()) {
case Id_localName: return localName;
case Id_uri: return uri;
}
return super.getInstanceIdValue(id);
}
// #string_id_map#
private static final int
Id_constructor = 1,
Id_toString = 2,
Id_toSource = 3,
MAX_PROTOTYPE_ID = 3;
protected int findPrototypeId(String s)
{
int id;
// #generated# Last update: 2004-08-21 12:45:13 CEST
L0: { id = 0; String X = null; int c;
int s_length = s.length();
if (s_length==8) {
c=s.charAt(3);
if (c=='o') { X="toSource";id=Id_toSource; }
else if (c=='t') { X="toString";id=Id_toString; }
}
else if (s_length==11) { X="constructor";id=Id_constructor; }
if (X!=null && X!=s && !X.equals(s)) id = 0;
}
// #/generated#
return id;
}
// #/string_id_map#
protected void initPrototypeId(int id)
{
String s;
int arity;
switch (id) {
case Id_constructor: arity=2; s="constructor"; break;
case Id_toString: arity=0; s="toString"; break;
case Id_toSource: arity=0; s="toSource"; break;
default: throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(QNAME_TAG, id, s, arity);
}
public Object execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
{
if (!f.hasTag(QNAME_TAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
switch (id) {
case Id_constructor:
return jsConstructor(cx, (thisObj == null), args);
case Id_toString:
return realThis(thisObj, f).toString();
case Id_toSource:
return realThis(thisObj, f).js_toSource();
}
throw new IllegalArgumentException(String.valueOf(id));
}
private QName realThis(Scriptable thisObj, IdFunctionObject f)
{
if(!(thisObj instanceof QName))
throw incompatibleCallError(f);
return (QName)thisObj;
}
private Object jsConstructor(Context cx, boolean inNewExpr, Object[] args)
{
if (!inNewExpr && args.length == 1) {
return lib.castToQName(cx, args[0]);
}
if (args.length == 0) {
return lib.constructQName(cx, Undefined.instance);
} else if (args.length == 1) {
return lib.constructQName(cx, args[0]);
} else {
return lib.constructQName(cx, args[0], args[1]);
}
}
private String js_toSource()
{
StringBuffer sb = new StringBuffer();
sb.append('(');
toSourceImpl(uri, localName, prefix, sb);
sb.append(')');
return sb.toString();
}
private static void toSourceImpl(String uri, String localName,
String prefix, StringBuffer sb)
{
sb.append("new QName(");
if (uri == null && prefix == null) {
if (!"*".equals(localName)) {
sb.append("null, ");
}
} else {
Namespace.toSourceImpl(prefix, uri, sb);
sb.append(", ");
}
sb.append('\'');
sb.append(ScriptRuntime.escapeString(localName, '\''));
sb.append("')");
}
}

View File

@@ -1,269 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript.xml.impl.xmlbeans;
import org.mozilla.javascript.*;
class XMLCtor extends IdFunctionObject
{
static final long serialVersionUID = -8708195078359817341L;
private static final Object XMLCTOR_TAG = "XMLCtor";
private XMLLibImpl lib;
XMLCtor(XML xml, Object tag, int id, int arity)
{
super(xml, tag, id, arity);
this.lib = xml.lib;
activatePrototypeMap(MAX_FUNCTION_ID);
}
private void writeSetting(Scriptable target)
{
for (int i = 1; i <= MAX_INSTANCE_ID; ++i) {
int id = super.getMaxInstanceId() + i;
String name = getInstanceIdName(id);
Object value = getInstanceIdValue(id);
ScriptableObject.putProperty(target, name, value);
}
}
private void readSettings(Scriptable source)
{
for (int i = 1; i <= MAX_INSTANCE_ID; ++i) {
int id = super.getMaxInstanceId() + i;
String name = getInstanceIdName(id);
Object value = ScriptableObject.getProperty(source, name);
if (value == Scriptable.NOT_FOUND) {
continue;
}
switch (i) {
case Id_ignoreComments:
case Id_ignoreProcessingInstructions:
case Id_ignoreWhitespace:
case Id_prettyPrinting:
if (!(value instanceof Boolean)) {
continue;
}
break;
case Id_prettyIndent:
if (!(value instanceof Number)) {
continue;
}
break;
default:
throw new IllegalStateException();
}
setInstanceIdValue(id, value);
}
}
// #string_id_map#
private static final int
Id_ignoreComments = 1,
Id_ignoreProcessingInstructions = 2,
Id_ignoreWhitespace = 3,
Id_prettyIndent = 4,
Id_prettyPrinting = 5,
MAX_INSTANCE_ID = 5;
protected int getMaxInstanceId()
{
return super.getMaxInstanceId() + MAX_INSTANCE_ID;
}
protected int findInstanceIdInfo(String s) {
int id;
// #generated# Last update: 2004-07-19 13:03:52 CEST
L0: { id = 0; String X = null; int c;
L: switch (s.length()) {
case 12: X="prettyIndent";id=Id_prettyIndent; break L;
case 14: c=s.charAt(0);
if (c=='i') { X="ignoreComments";id=Id_ignoreComments; }
else if (c=='p') { X="prettyPrinting";id=Id_prettyPrinting; }
break L;
case 16: X="ignoreWhitespace";id=Id_ignoreWhitespace; break L;
case 28: X="ignoreProcessingInstructions";id=Id_ignoreProcessingInstructions; break L;
}
if (X!=null && X!=s && !X.equals(s)) id = 0;
}
// #/generated#
if (id == 0) return super.findInstanceIdInfo(s);
int attr;
switch (id) {
case Id_ignoreComments:
case Id_ignoreProcessingInstructions:
case Id_ignoreWhitespace:
case Id_prettyIndent:
case Id_prettyPrinting:
attr = PERMANENT | DONTENUM;
break;
default: throw new IllegalStateException();
}
return instanceIdInfo(attr, super.getMaxInstanceId() + id);
}
// #/string_id_map#
protected String getInstanceIdName(int id)
{
switch (id - super.getMaxInstanceId()) {
case Id_ignoreComments: return "ignoreComments";
case Id_ignoreProcessingInstructions: return "ignoreProcessingInstructions";
case Id_ignoreWhitespace: return "ignoreWhitespace";
case Id_prettyIndent: return "prettyIndent";
case Id_prettyPrinting: return "prettyPrinting";
}
return super.getInstanceIdName(id);
}
protected Object getInstanceIdValue(int id)
{
switch (id - super.getMaxInstanceId()) {
case Id_ignoreComments:
return ScriptRuntime.wrapBoolean(lib.ignoreComments);
case Id_ignoreProcessingInstructions:
return ScriptRuntime.wrapBoolean(lib.ignoreProcessingInstructions);
case Id_ignoreWhitespace:
return ScriptRuntime.wrapBoolean(lib.ignoreWhitespace);
case Id_prettyIndent:
return ScriptRuntime.wrapInt(lib.prettyIndent);
case Id_prettyPrinting:
return ScriptRuntime.wrapBoolean(lib.prettyPrinting);
}
return super.getInstanceIdValue(id);
}
protected void setInstanceIdValue(int id, Object value)
{
switch (id - super.getMaxInstanceId()) {
case Id_ignoreComments:
lib.ignoreComments = ScriptRuntime.toBoolean(value);
return;
case Id_ignoreProcessingInstructions:
lib.ignoreProcessingInstructions = ScriptRuntime.toBoolean(value);
return;
case Id_ignoreWhitespace:
lib.ignoreWhitespace = ScriptRuntime.toBoolean(value);
return;
case Id_prettyIndent:
lib.prettyIndent = ScriptRuntime.toInt32(value);
return;
case Id_prettyPrinting:
lib.prettyPrinting = ScriptRuntime.toBoolean(value);
return;
}
super.setInstanceIdValue(id, value);
}
// #string_id_map#
private static final int
Id_defaultSettings = 1,
Id_settings = 2,
Id_setSettings = 3,
MAX_FUNCTION_ID = 3;
protected int findPrototypeId(String s)
{
int id;
// #generated# Last update: 2004-07-19 13:03:52 CEST
L0: { id = 0; String X = null;
int s_length = s.length();
if (s_length==8) { X="settings";id=Id_settings; }
else if (s_length==11) { X="setSettings";id=Id_setSettings; }
else if (s_length==15) { X="defaultSettings";id=Id_defaultSettings; }
if (X!=null && X!=s && !X.equals(s)) id = 0;
}
// #/generated#
return id;
}
// #/string_id_map#
protected void initPrototypeId(int id)
{
String s;
int arity;
switch (id) {
case Id_defaultSettings: arity=0; s="defaultSettings"; break;
case Id_settings: arity=0; s="settings"; break;
case Id_setSettings: arity=1; s="setSettings"; break;
default: throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(XMLCTOR_TAG, id, s, arity);
}
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (!f.hasTag(XMLCTOR_TAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
switch (id) {
case Id_defaultSettings: {
lib.defaultSettings();
Scriptable obj = cx.newObject(scope);
writeSetting(obj);
return obj;
}
case Id_settings: {
Scriptable obj = cx.newObject(scope);
writeSetting(obj);
return obj;
}
case Id_setSettings: {
if (args.length == 0
|| args[0] == null
|| args[0] == Undefined.instance)
{
lib.defaultSettings();
} else if (args[0] instanceof Scriptable) {
readSettings((Scriptable)args[0]);
}
return Undefined.instance;
}
}
throw new IllegalArgumentException(String.valueOf(id));
}
}

View File

@@ -1,754 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript.xml.impl.xmlbeans;
import java.io.Serializable;
import org.mozilla.javascript.*;
import org.mozilla.javascript.xml.*;
import org.apache.xmlbeans.XmlCursor;
import org.apache.xmlbeans.XmlObject;
public final class XMLLibImpl extends XMLLib implements Serializable
{
private static final long serialVersionUID = 1L;
private Scriptable globalScope;
XML xmlPrototype;
XMLList xmlListPrototype;
Namespace namespacePrototype;
QName qnamePrototype;
// Environment settings...
boolean ignoreComments;
boolean ignoreProcessingInstructions;
boolean ignoreWhitespace;
boolean prettyPrinting;
int prettyIndent;
Scriptable globalScope()
{
return globalScope;
}
private XMLLibImpl(Scriptable globalScope)
{
this.globalScope = globalScope;
defaultSettings();
}
public static void init(Context cx, Scriptable scope, boolean sealed)
{
// To force LinkageError if XmlObject is not available
XmlObject.class.getName();
XMLLibImpl lib = new XMLLibImpl(scope);
XMLLib bound = lib.bindToScope(scope);
if (bound == lib) {
lib.exportToScope(sealed);
}
}
private void exportToScope(boolean sealed)
{
xmlPrototype = XML.createEmptyXML(this);
xmlListPrototype = new XMLList(this);
namespacePrototype = new Namespace(this, "", "");
qnamePrototype = new QName(this, "", "", "");
xmlPrototype.exportAsJSClass(sealed);
xmlListPrototype.exportAsJSClass(sealed);
namespacePrototype.exportAsJSClass(sealed);
qnamePrototype.exportAsJSClass(sealed);
}
void defaultSettings()
{
ignoreComments = true;
ignoreProcessingInstructions = true;
ignoreWhitespace = true;
prettyPrinting = true;
prettyIndent = 2;
}
XMLName toAttributeName(Context cx, Object nameValue)
{
String uri;
String localName;
if (nameValue instanceof String) {
uri = "";
localName = (String)nameValue;
} else if (nameValue instanceof XMLName) {
XMLName xmlName = (XMLName)nameValue;
if (!xmlName.isAttributeName()) {
xmlName.setAttributeName();
}
return xmlName;
} else if (nameValue instanceof QName) {
QName qname = (QName)nameValue;
uri = qname.uri();
localName = qname.localName();
} else if (nameValue instanceof Boolean
|| nameValue instanceof Number
|| nameValue == Undefined.instance
|| nameValue == null)
{
throw badXMLName(nameValue);
} else {
uri = "";
localName = ScriptRuntime.toString(nameValue);
}
XMLName xmlName = XMLName.formProperty(uri, localName);
xmlName.setAttributeName();
return xmlName;
}
private static RuntimeException badXMLName(Object value)
{
String msg;
if (value instanceof Number) {
msg = "Can not construct XML name from number: ";
} else if (value instanceof Boolean) {
msg = "Can not construct XML name from boolean: ";
} else if (value == Undefined.instance || value == null) {
msg = "Can not construct XML name from ";
} else {
throw new IllegalArgumentException(value.toString());
}
return ScriptRuntime.typeError(msg+ScriptRuntime.toString(value));
}
XMLName toXMLName(Context cx, Object nameValue)
{
XMLName result;
if (nameValue instanceof XMLName) {
result = (XMLName)nameValue;
} else if (nameValue instanceof QName) {
QName qname = (QName)nameValue;
result = XMLName.formProperty(qname.uri(), qname.localName());
} else if (nameValue instanceof String) {
result = toXMLNameFromString(cx, (String)nameValue);
} else if (nameValue instanceof Boolean
|| nameValue instanceof Number
|| nameValue == Undefined.instance
|| nameValue == null)
{
throw badXMLName(nameValue);
} else {
String name = ScriptRuntime.toString(nameValue);
result = toXMLNameFromString(cx, name);
}
return result;
}
/**
* If value represents Uint32 index, make it available through
* ScriptRuntime.lastUint32Result(cx) and return null.
* Otherwise return the same value as toXMLName(cx, value).
*/
XMLName toXMLNameOrIndex(Context cx, Object value)
{
XMLName result;
if (value instanceof XMLName) {
result = (XMLName)value;
} else if (value instanceof String) {
String str = (String)value;
long test = ScriptRuntime.testUint32String(str);
if (test >= 0) {
ScriptRuntime.storeUint32Result(cx, test);
result = null;
} else {
result = toXMLNameFromString(cx, str);
}
} else if (value instanceof Number) {
double d = ((Number)value).doubleValue();
long l = (long)d;
if (l == d && 0 <= l && l <= 0xFFFFFFFFL) {
ScriptRuntime.storeUint32Result(cx, l);
result = null;
} else {
throw badXMLName(value);
}
} else if (value instanceof QName) {
QName qname = (QName)value;
String uri = qname.uri();
boolean number = false;
result = null;
if (uri != null && uri.length() == 0) {
// Only in this case qname.toString() can resemble uint32
long test = ScriptRuntime.testUint32String(uri);
if (test >= 0) {
ScriptRuntime.storeUint32Result(cx, test);
number = true;
}
}
if (!number) {
result = XMLName.formProperty(uri, qname.localName());
}
} else if (value instanceof Boolean
|| value == Undefined.instance
|| value == null)
{
throw badXMLName(value);
} else {
String str = ScriptRuntime.toString(value);
long test = ScriptRuntime.testUint32String(str);
if (test >= 0) {
ScriptRuntime.storeUint32Result(cx, test);
result = null;
} else {
result = toXMLNameFromString(cx, str);
}
}
return result;
}
XMLName toXMLNameFromString(Context cx, String name)
{
if (name == null)
throw new IllegalArgumentException();
int l = name.length();
if (l != 0) {
char firstChar = name.charAt(0);
if (firstChar == '*') {
if (l == 1) {
return XMLName.formStar();
}
} else if (firstChar == '@') {
XMLName xmlName = XMLName.formProperty("", name.substring(1));
xmlName.setAttributeName();
return xmlName;
}
}
String uri = getDefaultNamespaceURI(cx);
return XMLName.formProperty(uri, name);
}
Namespace constructNamespace(Context cx, Object uriValue)
{
String prefix;
String uri;
if (uriValue instanceof Namespace) {
Namespace ns = (Namespace)uriValue;
prefix = ns.prefix();
uri = ns.uri();
} else if (uriValue instanceof QName) {
QName qname = (QName)uriValue;
uri = qname.uri();
if (uri != null) {
prefix = qname.prefix();
} else {
uri = qname.toString();
prefix = null;
}
} else {
uri = ScriptRuntime.toString(uriValue);
prefix = (uri.length() == 0) ? "" : null;
}
return new Namespace(this, prefix, uri);
}
Namespace castToNamespace(Context cx, Object namescapeObj)
{
if (namescapeObj instanceof Namespace) {
return (Namespace)namescapeObj;
}
return constructNamespace(cx, namescapeObj);
}
Namespace constructNamespace(Context cx)
{
return new Namespace(this, "", "");
}
public Namespace constructNamespace(Context cx, Object prefixValue,
Object uriValue)
{
String prefix;
String uri;
if (uriValue instanceof QName) {
QName qname = (QName)uriValue;
uri = qname.uri();
if (uri == null) {
uri = qname.toString();
}
} else {
uri = ScriptRuntime.toString(uriValue);
}
if (uri.length() == 0) {
if (prefixValue == Undefined.instance) {
prefix = "";
} else {
prefix = ScriptRuntime.toString(prefixValue);
if (prefix.length() != 0) {
throw ScriptRuntime.typeError(
"Illegal prefix '"+prefix+"' for 'no namespace'.");
}
}
} else if (prefixValue == Undefined.instance) {
prefix = "";
} else if (!isXMLName(cx, prefixValue)) {
prefix = "";
} else {
prefix = ScriptRuntime.toString(prefixValue);
}
return new Namespace(this, prefix, uri);
}
String getDefaultNamespaceURI(Context cx)
{
String uri = "";
if (cx == null) {
cx = Context.getCurrentContext();
}
if (cx != null) {
Object ns = ScriptRuntime.searchDefaultNamespace(cx);
if (ns != null) {
if (ns instanceof Namespace) {
uri = ((Namespace)ns).uri();
} else {
// Should not happen but for now it could
// due to bad searchDefaultNamespace implementation.
}
}
}
return uri;
}
Namespace getDefaultNamespace(Context cx)
{
if (cx == null) {
cx = Context.getCurrentContext();
if (cx == null) {
return namespacePrototype;
}
}
Namespace result;
Object ns = ScriptRuntime.searchDefaultNamespace(cx);
if (ns == null) {
result = namespacePrototype;
} else {
if (ns instanceof Namespace) {
result = (Namespace)ns;
} else {
// Should not happen but for now it could
// due to bad searchDefaultNamespace implementation.
result = namespacePrototype;
}
}
return result;
}
QName castToQName(Context cx, Object qnameValue)
{
if (qnameValue instanceof QName) {
return (QName)qnameValue;
}
return constructQName(cx, qnameValue);
}
QName constructQName(Context cx, Object nameValue)
{
QName result;
if (nameValue instanceof QName) {
QName qname = (QName)nameValue;
result = new QName(this, qname.uri(), qname.localName(),
qname.prefix());
} else {
String localName = ScriptRuntime.toString(nameValue);
result = constructQNameFromString(cx, localName);
}
return result;
}
/**
* Optimized version of constructQName for String type
*/
QName constructQNameFromString(Context cx, String localName)
{
if (localName == null)
throw new IllegalArgumentException();
String uri;
String prefix;
if ("*".equals(localName)) {
uri = null;
prefix = null;
} else {
Namespace ns = getDefaultNamespace(cx);
uri = ns.uri();
prefix = ns.prefix();
}
return new QName(this, uri, localName, prefix);
}
QName constructQName(Context cx, Object namespaceValue, Object nameValue)
{
String uri;
String localName;
String prefix;
if (nameValue instanceof QName) {
QName qname = (QName)nameValue;
localName = qname.localName();
} else {
localName = ScriptRuntime.toString(nameValue);
}
Namespace ns;
if (namespaceValue == Undefined.instance) {
if ("*".equals(localName)) {
ns = null;
} else {
ns = getDefaultNamespace(cx);
}
} else if (namespaceValue == null) {
ns = null;
} else if (namespaceValue instanceof Namespace) {
ns = (Namespace)namespaceValue;
} else {
ns = constructNamespace(cx, namespaceValue);
}
if (ns == null) {
uri = null;
prefix = null;
} else {
uri = ns.uri();
prefix = ns.prefix();
}
return new QName(this, uri, localName, prefix);
}
Object addXMLObjects(Context cx, XMLObject obj1, XMLObject obj2)
{
XMLList listToAdd = new XMLList(this);
if (obj1 instanceof XMLList) {
XMLList list1 = (XMLList)obj1;
if (list1.length() == 1) {
listToAdd.addToList(list1.item(0));
} else {
// Might be xmlFragment + xmlFragment + xmlFragment + ...;
// then the result will be an XMLList which we want to be an
// rValue and allow it to be assigned to an lvalue.
listToAdd = new XMLList(this, obj1);
}
} else {
listToAdd.addToList(obj1);
}
if (obj2 instanceof XMLList) {
XMLList list2 = (XMLList)obj2;
for (int i = 0; i < list2.length(); i++) {
listToAdd.addToList(list2.item(i));
}
} else if (obj2 instanceof XML) {
listToAdd.addToList(obj2);
}
return listToAdd;
}
//
//
// Overriding XMLLib methods
//
//
/**
* See E4X 13.1.2.1.
*/
public boolean isXMLName(Context cx, Object nameObj)
{
String name;
try {
name = ScriptRuntime.toString(nameObj);
} catch (EcmaError ee) {
if ("TypeError".equals(ee.getName())) {
return false;
}
throw ee;
}
// See http://w3.org/TR/xml-names11/#NT-NCName
int length = name.length();
if (length != 0) {
if (isNCNameStartChar(name.charAt(0))) {
for (int i = 1; i != length; ++i) {
if (!isNCNameChar(name.charAt(i))) {
return false;
}
}
return true;
}
}
return false;
}
private static boolean isNCNameStartChar(int c)
{
if ((c & ~0x7F) == 0) {
// Optimize for ASCII and use A..Z < _ < a..z
if (c >= 'a') {
return c <= 'z';
} else if (c >= 'A') {
if (c <= 'Z') {
return true;
}
return c == '_';
}
} else if ((c & ~0x1FFF) == 0) {
return (0xC0 <= c && c <= 0xD6)
|| (0xD8 <= c && c <= 0xF6)
|| (0xF8 <= c && c <= 0x2FF)
|| (0x370 <= c && c <= 0x37D)
|| 0x37F <= c;
}
return (0x200C <= c && c <= 0x200D)
|| (0x2070 <= c && c <= 0x218F)
|| (0x2C00 <= c && c <= 0x2FEF)
|| (0x3001 <= c && c <= 0xD7FF)
|| (0xF900 <= c && c <= 0xFDCF)
|| (0xFDF0 <= c && c <= 0xFFFD)
|| (0x10000 <= c && c <= 0xEFFFF);
}
private static boolean isNCNameChar(int c)
{
if ((c & ~0x7F) == 0) {
// Optimize for ASCII and use - < . < 0..9 < A..Z < _ < a..z
if (c >= 'a') {
return c <= 'z';
} else if (c >= 'A') {
if (c <= 'Z') {
return true;
}
return c == '_';
} else if (c >= '0') {
return c <= '9';
} else {
return c == '-' || c == '.';
}
} else if ((c & ~0x1FFF) == 0) {
return isNCNameStartChar(c) || c == 0xB7
|| (0x300 <= c && c <= 0x36F);
}
return isNCNameStartChar(c) || (0x203F <= c && c <= 0x2040);
}
XMLName toQualifiedName(Context cx, Object namespaceValue,
Object nameValue)
{
// This is duplication of constructQName(cx, namespaceValue, nameValue)
// but for XMLName
String uri;
String localName;
if (nameValue instanceof QName) {
QName qname = (QName)nameValue;
localName = qname.localName();
} else {
localName = ScriptRuntime.toString(nameValue);
}
Namespace ns;
if (namespaceValue == Undefined.instance) {
if ("*".equals(localName)) {
ns = null;
} else {
ns = getDefaultNamespace(cx);
}
} else if (namespaceValue == null) {
ns = null;
} else if (namespaceValue instanceof Namespace) {
ns = (Namespace)namespaceValue;
} else {
ns = constructNamespace(cx, namespaceValue);
}
if (ns == null) {
uri = null;
} else {
uri = ns.uri();
}
return XMLName.formProperty(uri, localName);
}
public Ref nameRef(Context cx, Object name,
Scriptable scope, int memberTypeFlags)
{
if ((memberTypeFlags & Node.ATTRIBUTE_FLAG) == 0) {
// should only be called foir cases like @name or @[expr]
throw Kit.codeBug();
}
XMLName xmlName = toAttributeName(cx, name);
return xmlPrimaryReference(cx, xmlName, scope);
}
public Ref nameRef(Context cx, Object namespace, Object name,
Scriptable scope, int memberTypeFlags)
{
XMLName xmlName = toQualifiedName(cx, namespace, name);
if ((memberTypeFlags & Node.ATTRIBUTE_FLAG) != 0) {
if (!xmlName.isAttributeName()) {
xmlName.setAttributeName();
}
}
return xmlPrimaryReference(cx, xmlName, scope);
}
private Ref xmlPrimaryReference(Context cx, XMLName xmlName,
Scriptable scope)
{
XMLObjectImpl xmlObj;
XMLObjectImpl firstXmlObject = null;
for (;;) {
// XML object can only present on scope chain as a wrapper
// of XMLWithScope
if (scope instanceof XMLWithScope) {
xmlObj = (XMLObjectImpl)scope.getPrototype();
if (xmlObj.hasXMLProperty(xmlName)) {
break;
}
if (firstXmlObject == null) {
firstXmlObject = xmlObj;
}
}
scope = scope.getParentScope();
if (scope == null) {
xmlObj = firstXmlObject;
break;
}
}
// xmlObj == null corresponds to undefined as the target of
// the reference
if (xmlObj != null) {
xmlName.initXMLObject(xmlObj);
}
return xmlName;
}
/**
* Escapes the reserved characters in a value of an attribute
*
* @param value Unescaped text
* @return The escaped text
*/
public String escapeAttributeValue(Object value)
{
String text = ScriptRuntime.toString(value);
if (text.length() == 0) return "";
XmlObject xo = XmlObject.Factory.newInstance();
XmlCursor cursor = xo.newCursor();
cursor.toNextToken();
cursor.beginElement("a");
cursor.insertAttributeWithValue("a", text);
cursor.dispose();
String elementText = xo.toString();
int begin = elementText.indexOf('"');
int end = elementText.lastIndexOf('"');
return elementText.substring(begin + 1, end);
}
/**
* Escapes the reserved characters in a value of a text node
*
* @param value Unescaped text
* @return The escaped text
*/
public String escapeTextValue(Object value)
{
if (value instanceof XMLObjectImpl) {
return ((XMLObjectImpl)value).toXMLString(0);
}
String text = ScriptRuntime.toString(value);
if (text.length() == 0) return text;
XmlObject xo = XmlObject.Factory.newInstance();
XmlCursor cursor = xo.newCursor();
cursor.toNextToken();
cursor.beginElement("a");
cursor.insertChars(text);
cursor.dispose();
String elementText = xo.toString();
int begin = elementText.indexOf('>') + 1;
int end = elementText.lastIndexOf('<');
return (begin < end) ? elementText.substring(begin, end) : "";
}
public Object toDefaultXmlNamespace(Context cx, Object uriValue)
{
return constructNamespace(cx, uriValue);
}
}

View File

@@ -1,171 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
* Milen Nankov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript.xml.impl.xmlbeans;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Kit;
import org.mozilla.javascript.Ref;
import org.mozilla.javascript.ScriptRuntime;
import org.mozilla.javascript.Undefined;
class XMLName extends Ref
{
static final long serialVersionUID = 3832176310755686977L;
private String uri;
private String localName;
private boolean isAttributeName;
private boolean isDescendants;
private XMLObjectImpl xmlObject;
private XMLName(String uri, String localName)
{
this.uri = uri;
this.localName = localName;
}
static XMLName formStar()
{
return new XMLName(null, "*");
}
static XMLName formProperty(String uri, String localName)
{
return new XMLName(uri, localName);
}
void initXMLObject(XMLObjectImpl xmlObject)
{
if (xmlObject == null) throw new IllegalArgumentException();
if (this.xmlObject != null) throw new IllegalStateException();
this.xmlObject = xmlObject;
}
String uri()
{
return uri;
}
String localName()
{
return localName;
}
boolean isAttributeName()
{
return isAttributeName;
}
void setAttributeName()
{
if (isAttributeName) throw new IllegalStateException();
isAttributeName = true;
}
boolean isDescendants()
{
return isDescendants;
}
void setIsDescendants()
{
if (isDescendants) throw new IllegalStateException();
isDescendants = true;
}
public boolean has(Context cx)
{
if (xmlObject == null) {
return false;
}
return xmlObject.hasXMLProperty(this);
}
public Object get(Context cx)
{
if (xmlObject == null) {
throw ScriptRuntime.undefReadError(Undefined.instance,
toString());
}
return xmlObject.getXMLProperty(this);
}
public Object set(Context cx, Object value)
{
if (xmlObject == null) {
throw ScriptRuntime.undefWriteError(Undefined.instance,
toString(),
value);
}
// Assignment to descendants causes parse error on bad reference
// and this should not be called
if (isDescendants) throw Kit.codeBug();
xmlObject.putXMLProperty(this, value);
return value;
}
public boolean delete(Context cx)
{
if (xmlObject == null) {
return true;
}
xmlObject.deleteXMLProperty(this);
return !xmlObject.hasXMLProperty(this);
}
public String toString()
{
//return qname.localName();
StringBuffer buff = new StringBuffer();
if (isDescendants) buff.append("..");
if (isAttributeName) buff.append('@');
if (uri == null) {
buff.append('*');
if(localName().equals("*")) {
return buff.toString();
}
} else {
buff.append('"').append(uri()).append('"');
}
buff.append(':').append(localName());
return buff.toString();
}
}

View File

@@ -1,724 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
* Ethan Hugg
* Terry Lucas
* Milen Nankov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript.xml.impl.xmlbeans;
import org.mozilla.javascript.*;
import org.mozilla.javascript.xml.*;
/**
* This abstract class describes what all XML objects (XML, XMLList) should have in common.
*
* @see XML
*/
abstract class XMLObjectImpl extends XMLObject
{
private static final Object XMLOBJECT_TAG = "XMLObject";
protected final XMLLibImpl lib;
protected boolean prototypeFlag;
protected XMLObjectImpl(XMLLibImpl lib, XMLObject prototype)
{
super(lib.globalScope(), prototype);
this.lib = lib;
}
/**
* ecmaHas(cx, id) calls this after resolving when id to XMLName
* and checking it is not Uint32 index.
*/
abstract boolean hasXMLProperty(XMLName name);
/**
* ecmaGet(cx, id) calls this after resolving when id to XMLName
* and checking it is not Uint32 index.
*/
abstract Object getXMLProperty(XMLName name);
/**
* ecmaPut(cx, id, value) calls this after resolving when id to XMLName
* and checking it is not Uint32 index.
*/
abstract void putXMLProperty(XMLName name, Object value);
/**
* ecmaDelete(cx, id) calls this after resolving when id to XMLName
* and checking it is not Uint32 index.
*/
abstract void deleteXMLProperty(XMLName name);
/**
* Test XML equality with target the target.
*/
abstract boolean equivalentXml(Object target);
// Methods from section 12.4.4 in the spec
abstract XML addNamespace(Namespace ns);
abstract XML appendChild(Object xml);
abstract XMLList attribute(XMLName xmlName);
abstract XMLList attributes();
abstract XMLList child(long index);
abstract XMLList child(XMLName xmlName);
abstract int childIndex();
abstract XMLList children();
abstract XMLList comments();
abstract boolean contains(Object xml);
abstract Object copy();
abstract XMLList descendants(XMLName xmlName);
abstract Object[] inScopeNamespaces();
abstract XML insertChildAfter(Object child, Object xml);
abstract XML insertChildBefore(Object child, Object xml);
abstract boolean hasOwnProperty(XMLName xmlName);
abstract boolean hasComplexContent();
abstract boolean hasSimpleContent();
abstract int length();
abstract String localName();
abstract QName name();
abstract Object namespace(String prefix);
abstract Object[] namespaceDeclarations();
abstract Object nodeKind();
abstract void normalize();
abstract Object parent();
abstract XML prependChild(Object xml);
abstract Object processingInstructions(XMLName xmlName);
abstract boolean propertyIsEnumerable(Object member);
abstract XML removeNamespace(Namespace ns);
abstract XML replace(long index, Object xml);
abstract XML replace(XMLName name, Object xml);
abstract XML setChildren(Object xml);
abstract void setLocalName(String name);
abstract void setName(QName xmlName);
abstract void setNamespace(Namespace ns);
abstract XMLList text();
public abstract String toString();
abstract String toSource(int indent);
abstract String toXMLString(int indent);
abstract Object valueOf();
/**
* Extension to access native implementation from scripts
*/
abstract org.apache.xmlbeans.XmlObject getXmlObject();
protected abstract Object jsConstructor(Context cx, boolean inNewExpr,
Object[] args);
final Object getMethod(String id)
{
return super.get(id, this);
}
//
//
// Methods overriding ScriptableObject
//
//
public final Object getDefaultValue(Class hint)
{
return toString();
}
public void delete(String name)
{
throw new IllegalArgumentException("String: [" + name + "]");
}
/**
* XMLObject always compare with any value and equivalentValues
* never returns {@link Scriptable#NOT_FOUND} for them but rather
* calls equivalentXml(value) and wrap the result as Boolean.
*/
protected final Object equivalentValues(Object value)
{
boolean result = equivalentXml(value);
return result ? Boolean.TRUE : Boolean.FALSE;
}
//
//
// Methods overriding XMLObject
//
//
public final XMLLib lib()
{
return lib;
}
/**
* Implementation of ECMAScript [[Has]]
*/
public final boolean ecmaHas(Context cx, Object id)
{
if (cx == null) cx = Context.getCurrentContext();
XMLName xmlName = lib.toXMLNameOrIndex(cx, id);
if (xmlName == null) {
long index = ScriptRuntime.lastUint32Result(cx);
// XXX Fix this cast
return has((int)index, this);
}
return hasXMLProperty(xmlName);
}
/**
* Implementation of ECMAScript [[Get]]
*/
public final Object ecmaGet(Context cx, Object id)
{
if (cx == null) cx = Context.getCurrentContext();
XMLName xmlName = lib.toXMLNameOrIndex(cx, id);
if (xmlName == null) {
long index = ScriptRuntime.lastUint32Result(cx);
// XXX Fix this cast
Object result = get((int)index, this);
if (result == Scriptable.NOT_FOUND) {
result = Undefined.instance;
}
return result;
}
return getXMLProperty(xmlName);
}
/**
* Implementation of ECMAScript [[Put]]
*/
public final void ecmaPut(Context cx, Object id, Object value)
{
if (cx == null) cx = Context.getCurrentContext();
XMLName xmlName = lib.toXMLNameOrIndex(cx, id);
if (xmlName == null) {
long index = ScriptRuntime.lastUint32Result(cx);
// XXX Fix this cast
put((int)index, this, value);
return;
}
putXMLProperty(xmlName, value);
}
/**
* Implementation of ECMAScript [[Delete]].
*/
public final boolean ecmaDelete(Context cx, Object id)
{
if (cx == null) cx = Context.getCurrentContext();
XMLName xmlName = lib.toXMLNameOrIndex(cx, id);
if (xmlName == null) {
long index = ScriptRuntime.lastUint32Result(cx);
// XXX Fix this
delete((int)index);
return true;
}
deleteXMLProperty(xmlName);
return true;
}
public Ref memberRef(Context cx, Object elem, int memberTypeFlags)
{
XMLName xmlName;
if ((memberTypeFlags & Node.ATTRIBUTE_FLAG) != 0) {
xmlName = lib.toAttributeName(cx, elem);
} else {
if ((memberTypeFlags & Node.DESCENDANTS_FLAG) == 0) {
// Code generation would use ecma(Get|Has|Delete|Set) for
// normal name idenrifiers so one ATTRIBUTE_FLAG
// or DESCENDANTS_FLAG has to be set
throw Kit.codeBug();
}
xmlName = lib.toXMLName(cx, elem);
}
if ((memberTypeFlags & Node.DESCENDANTS_FLAG) != 0) {
xmlName.setIsDescendants();
}
xmlName.initXMLObject(this);
return xmlName;
}
/**
* Generic reference to implement x::ns, x.@ns::y, x..@ns::y etc.
*/
public Ref memberRef(Context cx, Object namespace, Object elem,
int memberTypeFlags)
{
XMLName xmlName = lib.toQualifiedName(cx, namespace, elem);
if ((memberTypeFlags & Node.ATTRIBUTE_FLAG) != 0) {
if (!xmlName.isAttributeName()) {
xmlName.setAttributeName();
}
}
if ((memberTypeFlags & Node.DESCENDANTS_FLAG) != 0) {
xmlName.setIsDescendants();
}
xmlName.initXMLObject(this);
return xmlName;
}
public NativeWith enterWith(Scriptable scope)
{
return new XMLWithScope(lib, scope, this);
}
public NativeWith enterDotQuery(Scriptable scope)
{
XMLWithScope xws = new XMLWithScope(lib, scope, this);
xws.initAsDotQuery();
return xws;
}
public final Object addValues(Context cx, boolean thisIsLeft,
Object value)
{
if (value instanceof XMLObject) {
XMLObject v1, v2;
if (thisIsLeft) {
v1 = this;
v2 = (XMLObject)value;
} else {
v1 = (XMLObject)value;
v2 = this;
}
return lib.addXMLObjects(cx, v1, v2);
}
if (value == Undefined.instance) {
// both "xml + undefined" and "undefined + xml" gives String(xml)
return ScriptRuntime.toString(this);
}
return super.addValues(cx, thisIsLeft, value);
}
//
//
// IdScriptableObject machinery
//
//
final void exportAsJSClass(boolean sealed)
{
prototypeFlag = true;
exportAsJSClass(MAX_PROTOTYPE_ID, lib.globalScope(), sealed);
}
// #string_id_map#
private final static int
Id_constructor = 1,
Id_addNamespace = 2,
Id_appendChild = 3,
Id_attribute = 4,
Id_attributes = 5,
Id_child = 6,
Id_childIndex = 7,
Id_children = 8,
Id_comments = 9,
Id_contains = 10,
Id_copy = 11,
Id_descendants = 12,
Id_inScopeNamespaces = 13,
Id_insertChildAfter = 14,
Id_insertChildBefore = 15,
Id_hasOwnProperty = 16,
Id_hasComplexContent = 17,
Id_hasSimpleContent = 18,
Id_length = 19,
Id_localName = 20,
Id_name = 21,
Id_namespace = 22,
Id_namespaceDeclarations = 23,
Id_nodeKind = 24,
Id_normalize = 25,
Id_parent = 26,
Id_prependChild = 27,
Id_processingInstructions = 28,
Id_propertyIsEnumerable = 29,
Id_removeNamespace = 30,
Id_replace = 31,
Id_setChildren = 32,
Id_setLocalName = 33,
Id_setName = 34,
Id_setNamespace = 35,
Id_text = 36,
Id_toString = 37,
Id_toSource = 38,
Id_toXMLString = 39,
Id_valueOf = 40,
Id_getXmlObject = 41,
MAX_PROTOTYPE_ID = 41;
protected int findPrototypeId(String s)
{
int id;
// #generated# Last update: 2004-11-10 15:38:11 CET
L0: { id = 0; String X = null; int c;
L: switch (s.length()) {
case 4: c=s.charAt(0);
if (c=='c') { X="copy";id=Id_copy; }
else if (c=='n') { X="name";id=Id_name; }
else if (c=='t') { X="text";id=Id_text; }
break L;
case 5: X="child";id=Id_child; break L;
case 6: c=s.charAt(0);
if (c=='l') { X="length";id=Id_length; }
else if (c=='p') { X="parent";id=Id_parent; }
break L;
case 7: c=s.charAt(0);
if (c=='r') { X="replace";id=Id_replace; }
else if (c=='s') { X="setName";id=Id_setName; }
else if (c=='v') { X="valueOf";id=Id_valueOf; }
break L;
case 8: switch (s.charAt(4)) {
case 'K': X="nodeKind";id=Id_nodeKind; break L;
case 'a': X="contains";id=Id_contains; break L;
case 'd': X="children";id=Id_children; break L;
case 'e': X="comments";id=Id_comments; break L;
case 'r': X="toString";id=Id_toString; break L;
case 'u': X="toSource";id=Id_toSource; break L;
} break L;
case 9: switch (s.charAt(2)) {
case 'c': X="localName";id=Id_localName; break L;
case 'm': X="namespace";id=Id_namespace; break L;
case 'r': X="normalize";id=Id_normalize; break L;
case 't': X="attribute";id=Id_attribute; break L;
} break L;
case 10: c=s.charAt(0);
if (c=='a') { X="attributes";id=Id_attributes; }
else if (c=='c') { X="childIndex";id=Id_childIndex; }
break L;
case 11: switch (s.charAt(0)) {
case 'a': X="appendChild";id=Id_appendChild; break L;
case 'c': X="constructor";id=Id_constructor; break L;
case 'd': X="descendants";id=Id_descendants; break L;
case 's': X="setChildren";id=Id_setChildren; break L;
case 't': X="toXMLString";id=Id_toXMLString; break L;
} break L;
case 12: switch (s.charAt(0)) {
case 'a': X="addNamespace";id=Id_addNamespace; break L;
case 'g': X="getXmlObject";id=Id_getXmlObject; break L;
case 'p': X="prependChild";id=Id_prependChild; break L;
case 's': c=s.charAt(3);
if (c=='L') { X="setLocalName";id=Id_setLocalName; }
else if (c=='N') { X="setNamespace";id=Id_setNamespace; }
break L;
} break L;
case 14: X="hasOwnProperty";id=Id_hasOwnProperty; break L;
case 15: X="removeNamespace";id=Id_removeNamespace; break L;
case 16: c=s.charAt(0);
if (c=='h') { X="hasSimpleContent";id=Id_hasSimpleContent; }
else if (c=='i') { X="insertChildAfter";id=Id_insertChildAfter; }
break L;
case 17: c=s.charAt(3);
if (c=='C') { X="hasComplexContent";id=Id_hasComplexContent; }
else if (c=='c') { X="inScopeNamespaces";id=Id_inScopeNamespaces; }
else if (c=='e') { X="insertChildBefore";id=Id_insertChildBefore; }
break L;
case 20: X="propertyIsEnumerable";id=Id_propertyIsEnumerable; break L;
case 21: X="namespaceDeclarations";id=Id_namespaceDeclarations; break L;
case 22: X="processingInstructions";id=Id_processingInstructions; break L;
}
if (X!=null && X!=s && !X.equals(s)) id = 0;
}
// #/generated#
return id;
}
// #/string_id_map#
protected void initPrototypeId(int id)
{
String s;
int arity;
switch (id) {
case Id_constructor: {
IdFunctionObject ctor;
if (this instanceof XML) {
ctor = new XMLCtor((XML)this, XMLOBJECT_TAG, id, 1);
} else {
ctor = new IdFunctionObject(this, XMLOBJECT_TAG, id, 1);
}
initPrototypeConstructor(ctor);
return;
}
case Id_addNamespace: arity=1; s="addNamespace"; break;
case Id_appendChild: arity=1; s="appendChild"; break;
case Id_attribute: arity=1; s="attribute"; break;
case Id_attributes: arity=0; s="attributes"; break;
case Id_child: arity=1; s="child"; break;
case Id_childIndex: arity=0; s="childIndex"; break;
case Id_children: arity=0; s="children"; break;
case Id_comments: arity=0; s="comments"; break;
case Id_contains: arity=1; s="contains"; break;
case Id_copy: arity=0; s="copy"; break;
case Id_descendants: arity=1; s="descendants"; break;
case Id_hasComplexContent: arity=0; s="hasComplexContent"; break;
case Id_hasOwnProperty: arity=1; s="hasOwnProperty"; break;
case Id_hasSimpleContent: arity=0; s="hasSimpleContent"; break;
case Id_inScopeNamespaces: arity=0; s="inScopeNamespaces"; break;
case Id_insertChildAfter: arity=2; s="insertChildAfter"; break;
case Id_insertChildBefore: arity=2; s="insertChildBefore"; break;
case Id_length: arity=0; s="length"; break;
case Id_localName: arity=0; s="localName"; break;
case Id_name: arity=0; s="name"; break;
case Id_namespace: arity=1; s="namespace"; break;
case Id_namespaceDeclarations:
arity=0; s="namespaceDeclarations"; break;
case Id_nodeKind: arity=0; s="nodeKind"; break;
case Id_normalize: arity=0; s="normalize"; break;
case Id_parent: arity=0; s="parent"; break;
case Id_prependChild: arity=1; s="prependChild"; break;
case Id_processingInstructions:
arity=1; s="processingInstructions"; break;
case Id_propertyIsEnumerable:
arity=1; s="propertyIsEnumerable"; break;
case Id_removeNamespace: arity=1; s="removeNamespace"; break;
case Id_replace: arity=2; s="replace"; break;
case Id_setChildren: arity=1; s="setChildren"; break;
case Id_setLocalName: arity=1; s="setLocalName"; break;
case Id_setName: arity=1; s="setName"; break;
case Id_setNamespace: arity=1; s="setNamespace"; break;
case Id_text: arity=0; s="text"; break;
case Id_toString: arity=0; s="toString"; break;
case Id_toSource: arity=1; s="toSource"; break;
case Id_toXMLString: arity=1; s="toXMLString"; break;
case Id_valueOf: arity=0; s="valueOf"; break;
case Id_getXmlObject: arity=0; s="getXmlObject"; break;
default: throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(XMLOBJECT_TAG, id, s, arity);
}
/**
*
* @param f
* @param cx
* @param scope
* @param thisObj
* @param args
* @return
*/
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (!f.hasTag(XMLOBJECT_TAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
if (id == Id_constructor) {
return jsConstructor(cx, thisObj == null, args);
}
// All (XML|XMLList).prototype methods require thisObj to be XML
if (!(thisObj instanceof XMLObjectImpl))
throw incompatibleCallError(f);
XMLObjectImpl realThis = (XMLObjectImpl)thisObj;
switch (id) {
case Id_addNamespace: {
Namespace ns = lib.castToNamespace(cx, arg(args, 0));
return realThis.addNamespace(ns);
}
case Id_appendChild:
return realThis.appendChild(arg(args, 0));
case Id_attribute: {
XMLName xmlName = lib.toAttributeName(cx, arg(args, 0));
return realThis.attribute(xmlName);
}
case Id_attributes:
return realThis.attributes();
case Id_child: {
XMLName xmlName = lib.toXMLNameOrIndex(cx, arg(args, 0));
if (xmlName == null) {
long index = ScriptRuntime.lastUint32Result(cx);
return realThis.child(index);
} else {
return realThis.child(xmlName);
}
}
case Id_childIndex:
return ScriptRuntime.wrapInt(realThis.childIndex());
case Id_children:
return realThis.children();
case Id_comments:
return realThis.comments();
case Id_contains:
return ScriptRuntime.wrapBoolean(
realThis.contains(arg(args, 0)));
case Id_copy:
return realThis.copy();
case Id_descendants: {
XMLName xmlName = (args.length == 0)
? XMLName.formStar()
: lib.toXMLName(cx, args[0]);
return realThis.descendants(xmlName);
}
case Id_inScopeNamespaces: {
Object[] array = realThis.inScopeNamespaces();
return cx.newArray(scope, array);
}
case Id_insertChildAfter:
return realThis.insertChildAfter(arg(args, 0), arg(args, 1));
case Id_insertChildBefore:
return realThis.insertChildBefore(arg(args, 0), arg(args, 1));
case Id_hasOwnProperty: {
XMLName xmlName = lib.toXMLName(cx, arg(args, 0));
return ScriptRuntime.wrapBoolean(
realThis.hasOwnProperty(xmlName));
}
case Id_hasComplexContent:
return ScriptRuntime.wrapBoolean(realThis.hasComplexContent());
case Id_hasSimpleContent:
return ScriptRuntime.wrapBoolean(realThis.hasSimpleContent());
case Id_length:
return ScriptRuntime.wrapInt(realThis.length());
case Id_localName:
return realThis.localName();
case Id_name:
return realThis.name();
case Id_namespace: {
String prefix = (args.length > 0)
? ScriptRuntime.toString(args[0]) : null;
return realThis.namespace(prefix);
}
case Id_namespaceDeclarations: {
Object[] array = realThis.namespaceDeclarations();
return cx.newArray(scope, array);
}
case Id_nodeKind:
return realThis.nodeKind();
case Id_normalize:
realThis.normalize();
return Undefined.instance;
case Id_parent:
return realThis.parent();
case Id_prependChild:
return realThis.prependChild(arg(args, 0));
case Id_processingInstructions: {
XMLName xmlName = (args.length > 0)
? lib.toXMLName(cx, args[0])
: XMLName.formStar();
return realThis.processingInstructions(xmlName);
}
case Id_propertyIsEnumerable: {
return ScriptRuntime.wrapBoolean(
realThis.propertyIsEnumerable(arg(args, 0)));
}
case Id_removeNamespace: {
Namespace ns = lib.castToNamespace(cx, arg(args, 0));
return realThis.removeNamespace(ns);
}
case Id_replace: {
XMLName xmlName = lib.toXMLNameOrIndex(cx, arg(args, 0));
Object arg1 = arg(args, 1);
if (xmlName == null) {
long index = ScriptRuntime.lastUint32Result(cx);
return realThis.replace(index, arg1);
} else {
return realThis.replace(xmlName, arg1);
}
}
case Id_setChildren:
return realThis.setChildren(arg(args, 0));
case Id_setLocalName: {
String localName;
Object arg = arg(args, 0);
if (arg instanceof QName) {
localName = ((QName)arg).localName();
} else {
localName = ScriptRuntime.toString(arg);
}
realThis.setLocalName(localName);
return Undefined.instance;
}
case Id_setName: {
Object arg = (args.length != 0) ? args[0] : Undefined.instance;
QName qname;
if (arg instanceof QName) {
qname = (QName)arg;
if (qname.uri() == null) {
qname = lib.constructQNameFromString(cx, qname.localName());
} else {
// E4X 13.4.4.35 requires to always construct QName
qname = lib.constructQName(cx, qname);
}
} else {
qname = lib.constructQName(cx, arg);
}
realThis.setName(qname);
return Undefined.instance;
}
case Id_setNamespace: {
Namespace ns = lib.castToNamespace(cx, arg(args, 0));
realThis.setNamespace(ns);
return Undefined.instance;
}
case Id_text:
return realThis.text();
case Id_toString:
return realThis.toString();
case Id_toSource: {
int indent = ScriptRuntime.toInt32(args, 0);
return realThis.toSource(indent);
}
case Id_toXMLString: {
int indent = ScriptRuntime.toInt32(args, 0);
return realThis.toXMLString(indent);
}
case Id_valueOf:
return realThis.valueOf();
case Id_getXmlObject: {
org.apache.xmlbeans.XmlObject xmlObject = realThis.getXmlObject();
return Context.javaToJS(xmlObject, scope);
}
}
throw new IllegalArgumentException(String.valueOf(id));
}
private static Object arg(Object[] args, int i)
{
return (i < args.length) ? args[i] : Undefined.instance;
}
}

View File

@@ -1,125 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Ethan Hugg
* Terry Lucas
* Milen Nankov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript.xml.impl.xmlbeans;
import org.mozilla.javascript.*;
import org.mozilla.javascript.xml.*;
final class XMLWithScope extends NativeWith
{
private static final long serialVersionUID = -696429282095170887L;
private XMLLibImpl lib;
private int _currIndex;
private XMLList _xmlList;
private XMLObject _dqPrototype;
XMLWithScope(XMLLibImpl lib, Scriptable parent, XMLObject prototype)
{
super(parent, prototype);
this.lib = lib;
}
void initAsDotQuery()
{
XMLObject prototype = (XMLObject)getPrototype();
// XMLWithScope also handles the .(xxx) DotQuery for XML
// basically DotQuery is a for/in/with statement and in
// the following 3 statements we setup to signal it's
// DotQuery,
// the index and the object being looped over. The
// xws.setPrototype is the scope of the object which is
// is a element of the lhs (XMLList).
_currIndex = 0;
_dqPrototype = prototype;
if (prototype instanceof XMLList) {
XMLList xl = (XMLList)prototype;
if (xl.length() > 0) {
setPrototype((Scriptable)(xl.get(0, null)));
}
}
// Always return the outer-most type of XML lValue of
// XML to left of dotQuery.
_xmlList = new XMLList(lib);
}
protected Object updateDotQuery(boolean value)
{
// Return null to continue looping
XMLObject seed = _dqPrototype;
XMLList xmlL = _xmlList;
if (seed instanceof XMLList) {
// We're a list so keep testing each element of the list if the
// result on the top of stack is true then that element is added
// to our result list. If false, we try the next element.
XMLList orgXmlL = (XMLList)seed;
int idx = _currIndex;
if (value) {
xmlL.addToList(orgXmlL.get(idx, null));
}
// More elements to test?
if (++idx < orgXmlL.length()) {
// Yes, set our new index, get the next element and
// reset the expression to run with this object as
// the WITH selector.
_currIndex = idx;
setPrototype((Scriptable)(orgXmlL.get(idx, null)));
// continue looping
return null;
}
} else {
// If we're not a XMLList then there's no looping
// just return DQPrototype if the result is true.
if (value) {
xmlL.addToList(seed);
}
}
return xmlL;
}
}

View File

@@ -1,100 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
/**
* Example of controlling the JavaScript execution engine.
*
* We evaluate a script and then manipulate the result.
*
*/
public class Control {
/**
* Main entry point.
*
* Process arguments as would a normal Java program. Also
* create a new Context and associate it with the current thread.
* Then set up the execution environment and begin to
* execute scripts.
*/
public static void main(String[] args)
{
Context cx = Context.enter();
try {
// Set version to JavaScript1.2 so that we get object-literal style
// printing instead of "[object Object]"
cx.setLanguageVersion(Context.VERSION_1_2);
// Initialize the standard objects (Object, Function, etc.)
// This must be done before scripts can be executed.
Scriptable scope = cx.initStandardObjects();
// Now we can evaluate a script. Let's create a new object
// using the object literal notation.
Object result = cx.evaluateString(scope, "obj = {a:1, b:['x','y']}",
"MySource", 1, null);
Scriptable obj = (Scriptable) scope.get("obj", scope);
// Should print "obj == result" (Since the result of an assignment
// expression is the value that was assigned)
System.out.println("obj " + (obj == result ? "==" : "!=") +
" result");
// Should print "obj.a == 1"
System.out.println("obj.a == " + obj.get("a", obj));
Scriptable b = (Scriptable) obj.get("b", obj);
// Should print "obj.b[0] == x"
System.out.println("obj.b[0] == " + b.get(0, b));
// Should print "obj.b[1] == y"
System.out.println("obj.b[1] == " + b.get(1, b));
// Should print {a:1, b:["x", "y"]}
Function fn = (Function) ScriptableObject.getProperty(obj, "toString");
System.out.println(fn.call(cx, scope, obj, new Object[0]));
} finally {
Context.exit();
}
}
}

View File

@@ -1,62 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
public class Counter extends ScriptableObject {
private static final long serialVersionUID = 438270592527335642L;
// The zero-argument constructor used by Rhino runtime to create instances
public Counter() { }
// Method jsConstructor defines the JavaScript constructor
public void jsConstructor(int a) { count = a; }
// The class name is defined by the getClassName method
@Override
public String getClassName() { return "Counter"; }
// The method jsGet_count defines the count property.
public int jsGet_count() { return count++; }
// Methods can be defined using the jsFunction_ prefix. Here we define
// resetCount for JavaScript.
public void jsFunction_resetCount() { count = 0; }
private int count;
}

View File

@@ -1,82 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
/**
* An example illustrating how to create a JavaScript object and retrieve
* properties and call methods.
* <p>
* Output should be:
* <pre>
* count = 0
* count = 1
* resetCount
* count = 0
* </pre>
*/
public class CounterTest {
public static void main(String[] args) throws Exception
{
Context cx = Context.enter();
try {
Scriptable scope = cx.initStandardObjects();
ScriptableObject.defineClass(scope, Counter.class);
Scriptable testCounter = cx.newObject(scope, "Counter");
Object count = ScriptableObject.getProperty(testCounter, "count");
System.out.println("count = " + count);
count = ScriptableObject.getProperty(testCounter, "count");
System.out.println("count = " + count);
ScriptableObject.callMethod(testCounter,
"resetCount",
new Object[0]);
System.out.println("resetCount");
count = ScriptableObject.getProperty(testCounter, "count");
System.out.println("count = " + count);
} finally {
Context.exit();
}
}
}

View File

@@ -1,205 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
/**
* Example of controlling the JavaScript with multiple scopes and threads.
*/
public class DynamicScopes {
static boolean useDynamicScope;
static class MyFactory extends ContextFactory
{
@Override
protected boolean hasFeature(Context cx, int featureIndex)
{
if (featureIndex == Context.FEATURE_DYNAMIC_SCOPE) {
return useDynamicScope;
}
return super.hasFeature(cx, featureIndex);
}
}
static {
ContextFactory.initGlobal(new MyFactory());
}
/**
* Main entry point.
*
* Set up the shared scope and then spawn new threads that execute
* relative to that shared scope. Try to run functions with and
* without dynamic scope to see the effect.
*
* The expected output is
* <pre>
* sharedScope
* nested:sharedScope
* sharedScope
* nested:sharedScope
* sharedScope
* nested:sharedScope
* thread0
* nested:thread0
* thread1
* nested:thread1
* thread2
* nested:thread2
* </pre>
* The final three lines may be permuted in any order depending on
* thread scheduling.
*/
public static void main(String[] args)
{
Context cx = Context.enter();
try {
// Precompile source only once
String source = ""
+"var x = 'sharedScope';\n"
+"function f() { return x; }\n"
// Dynamic scope works with nested function too
+"function initClosure(prefix) {\n"
+" return function test() { return prefix+x; }\n"
+"}\n"
+"var closure = initClosure('nested:');\n"
+"";
Script script = cx.compileString(source, "sharedScript", 1, null);
useDynamicScope = false;
runScripts(cx, script);
useDynamicScope = true;
runScripts(cx, script);
} finally {
Context.exit();
}
}
static void runScripts(Context cx, Script script)
{
// Initialize the standard objects (Object, Function, etc.)
// This must be done before scripts can be executed. The call
// returns a new scope that we will share.
ScriptableObject sharedScope = cx.initStandardObjects(null, true);
// Now we can execute the precompiled script against the scope
// to define x variable and f function in the shared scope.
script.exec(cx, sharedScope);
// Now we spawn some threads that execute a script that calls the
// function 'f'. The scope chain looks like this:
// <pre>
// ------------------ ------------------
// | per-thread scope | -prototype-> | shared scope |
// ------------------ ------------------
// ^
// |
// parentScope
// |
// ------------------
// | f's activation |
// ------------------
// </pre>
// Both the shared scope and the per-thread scope have variables 'x'
// defined in them. If 'f' is compiled with dynamic scope enabled,
// the 'x' from the per-thread scope will be used. Otherwise, the 'x'
// from the shared scope will be used. The 'x' defined in 'g' (which
// calls 'f') should not be seen by 'f'.
final int threadCount = 3;
Thread[] t = new Thread[threadCount];
for (int i=0; i < threadCount; i++) {
String source2 = ""
+"function g() { var x = 'local'; return f(); }\n"
+"java.lang.System.out.println(g());\n"
+"function g2() { var x = 'local'; return closure(); }\n"
+"java.lang.System.out.println(g2());\n"
+"";
t[i] = new Thread(new PerThread(sharedScope, source2,
"thread" + i));
}
for (int i=0; i < threadCount; i++)
t[i].start();
// Don't return in this thread until all the spawned threads have
// completed.
for (int i=0; i < threadCount; i++) {
try {
t[i].join();
} catch (InterruptedException e) {
}
}
}
static class PerThread implements Runnable {
PerThread(Scriptable sharedScope, String source, String x) {
this.sharedScope = sharedScope;
this.source = source;
this.x = x;
}
public void run() {
// We need a new Context for this thread.
Context cx = Context.enter();
try {
// We can share the scope.
Scriptable threadScope = cx.newObject(sharedScope);
threadScope.setPrototype(sharedScope);
// We want "threadScope" to be a new top-level
// scope, so set its parent scope to null. This
// means that any variables created by assignments
// will be properties of "threadScope".
threadScope.setParentScope(null);
// Create a JavaScript property of the thread scope named
// 'x' and save a value for it.
threadScope.put("x", threadScope, x);
cx.evaluateString(threadScope, source, "threadScript", 1, null);
} finally {
Context.exit();
}
}
private Scriptable sharedScope;
private String source;
private String x;
}
}

View File

@@ -1,223 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* John Schneider
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
print("----------------------------------------");
// Use the XML constructor to parse an string into an XML object
var John = "<employee><name>John</name><age>25</age></employee>";
var Sue ="<employee><name>Sue</name><age>32</age></employee>";
var tagName = "employees";
var employees = new XML("<" + tagName +">" + John + Sue + "</" + tagName +">");
print("The employees XML object constructed from a string is:\n" + employees);
print("----------------------------------------");
// Use an XML literal to create an XML object
var order = <order>
<customer>
<firstname>John</firstname>
<lastname>Doe</lastname>
</customer>
<item>
<description>Big Screen Television</description>
<price>1299.99</price>
<quantity>1</quantity>
</item>
</order>
// Construct the full customer name
var name = order.customer.firstname + " " + order.customer.lastname;
// Calculate the total price
var total = order.item.price * order.item.quantity;
print("The order XML object constructed using a literal is:\n" + order);
print("The total price of " + name + "'s order is " + total);
print("----------------------------------------");
// construct a new XML object using expando and super-expando properties
var order = <order/>;
order.customer.name = "Fred Jones";
order.customer.address.street = "123 Long Lang";
order.customer.address.city = "Underwood";
order.customer.address.state = "CA";
order.item[0] = "";
order.item[0].description = "Small Rodents";
order.item[0].quantity = 10;
order.item[0].price = 6.95;
print("The order custructed using expandos and super-expandos is:\n" + order);
// append a new item to the order
order.item += <item><description>Catapult</description><price>139.95</price></item>;
print("----------------------------------------");
print("The order after appending a new item is:\n" + order);
print("----------------------------------------");
// dynamically construct an XML element using embedded expressions
var tagname = "name";
var attributename = "id";
var attributevalue = 5;
var content = "Fred";
var x = <{tagname} {attributename}={attributevalue}>{content}</{tagname}>;
print("The dynamically computed element value is:\n" + x.toXMLString());
print("----------------------------------------");
// Create a SOAP message
var message = <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<soap:Body>
<m:GetLastTradePrice xmlns:m="http://mycompany.com/stocks">
<symbol>DIS</symbol>
</m:GetLastTradePrice>
</soap:Body>
</soap:Envelope>
// declare the SOAP and stocks namespaces
var soap = new Namespace("http://schemas.xmlsoap.org/soap/envelope/");
var stock = new Namespace ("http://mycompany.com/stocks");
// extract the soap encoding style and body from the soap message
var encodingStyle = message.@soap::encodingStyle;
print("The encoding style of the soap message is specified by:\n" + encodingStyle);
// change the stock symbol
message.soap::Body.stock::GetLastTradePrice.symbol = "MYCO";
var body = message.soap::Body;
print("The body of the soap message is:\n" + body);
print("----------------------------------------");
// create an manipulate an XML object using the default xml namespace
default xml namespace = "http://default.namespace.com";
var x = <x/>;
x.a = "one";
x.b = "two";
x.c = <c xmlns="http://some.other.namespace.com">three</c>;
print("XML object constructed using the default xml namespace:\n" + x);
default xml namespace="";
print("----------------------------------------");
var order = <order id = "123456" timestamp="Mon Mar 10 2003 16:03:25 GMT-0800 (PST)">
<customer>
<firstname>John</firstname>
<lastname>Doe</lastname>
</customer>
<item id="3456">
<description>Big Screen Television</description>
<price>1299.99</price>
<quantity>1</quantity>
</item>
<item id = "56789">
<description>DVD Player</description>
<price>399.99</price>
<quantity>1</quantity>
</item>
</order>;
// get the customer element from the orderprint("The customer is:\n" + order.customer);
// get the id attribute from the order
print("The order id is:" + order.@id);
// get all the child elements from the order element
print("The children of the order are:\n" + order.*);
// get the list of all item descriptions
print("The order descriptions are:\n" + order.item.description);
// get second item by numeric index
print("The second item is:\n" + order.item[1]);
// get the list of all child elements in all item elements
print("The children of the items are:\n" + order.item.*);
// get the second child element from the order by index
print("The second child of the order is:\n" + order.*[1]);
// calculate the total price of the order
var totalprice = 0;
for each (i in order.item) {
totalprice += i.price * i.quantity;
}
print("The total price of the order is: " + totalprice);
print("----------------------------------------");
var e = <employees>
<employee id="1"><name>Joe</name><age>20</age></employee>
<employee id="2"><name>Sue</name><age>30</age></employee>
</employees>;
// get all the names in e
print("All the employee names are:\n" + e..name);
// employees with name Joe
print("The employee named Joe is:\n" + e.employee.(name == "Joe"));
// employees with id's 1 & 2
print("Employees with ids 1 & 2:\n" + e.employee.(@id == 1 || @id == 2));
// name of employee with id 1
print("Name of the the employee with ID=1: " + e.employee.(@id == 1).name);
print("----------------------------------------");

View File

@@ -1,353 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
import java.io.*;
import java.util.List;
import java.util.ArrayList;
/**
* Define a simple JavaScript File object.
*
* This isn't intended to be any sort of definitive attempt at a
* standard File object for JavaScript, but instead is an example
* of a more involved definition of a host object.
*
* Example of use of the File object:
* <pre>
* js> defineClass("File")
* js> file = new File("myfile.txt");
* [object File]
* js> file.writeLine("one"); <i>only now is file actually opened</i>
* js> file.writeLine("two");
* js> file.writeLine("thr", "ee");
* js> file.close(); <i>must close file before we can reopen for reading</i>
* js> var a = file.readLines(); <i>creates and fills an array with the contents of the file</i>
* js> a;
* one,two,three
* js>
* </pre>
*
*
* File errors or end-of-file signaled by thrown Java exceptions will
* be wrapped as JavaScript exceptions when called from JavaScript,
* and may be caught within JavaScript.
*
* @author Norris Boyd
*/
public class File extends ScriptableObject {
/**
*
*/
private static final long serialVersionUID = 2549960399774237828L;
/**
* The zero-parameter constructor.
*
* When Context.defineClass is called with this class, it will
* construct File.prototype using this constructor.
*/
public File() {
}
/**
* The Java method defining the JavaScript File constructor.
*
* If the constructor has one or more arguments, and the
* first argument is not undefined, the argument is converted
* to a string as used as the filename.<p>
*
* Otherwise System.in or System.out is assumed as appropriate
* to the use.
*/
public static Scriptable jsConstructor(Context cx, Object[] args,
Function ctorObj,
boolean inNewExpr)
{
File result = new File();
if (args.length == 0 || args[0] == Context.getUndefinedValue()) {
result.name = "";
result.file = null;
} else {
result.name = Context.toString(args[0]);
result.file = new java.io.File(result.name);
}
return result;
}
/**
* Returns the name of this JavaScript class, "File".
*/
@Override
public String getClassName() {
return "File";
}
/**
* Get the name of the file.
*
* Used to define the "name" property.
*/
public String jsGet_name() {
return name;
}
/**
* Read the remaining lines in the file and return them in an array.
*
* Implements a JavaScript function.<p>
*
* This is a good example of creating a new array and setting
* elements in that array.
*
* @exception IOException if an error occurred while accessing the file
* associated with this object
*/
public Object jsFunction_readLines()
throws IOException
{
List<String> list = new ArrayList<String>();
String s;
while ((s = jsFunction_readLine()) != null) {
list.add(s);
}
String[] lines = list.toArray(new String[list.size()]);
Scriptable scope = ScriptableObject.getTopLevelScope(this);
Context cx = Context.getCurrentContext();
return cx.newObject(scope, "Array", lines);
}
/**
* Read a line.
*
* Implements a JavaScript function.
* @exception IOException if an error occurred while accessing the file
* associated with this object, or EOFException if the object
* reached the end of the file
*/
public String jsFunction_readLine() throws IOException {
return getReader().readLine();
}
/**
* Read a character.
*
* @exception IOException if an error occurred while accessing the file
* associated with this object, or EOFException if the object
* reached the end of the file
*/
public String jsFunction_readChar() throws IOException {
int i = getReader().read();
if (i == -1)
return null;
char[] charArray = { (char) i };
return new String(charArray);
}
/**
* Write strings.
*
* Implements a JavaScript function. <p>
*
* This function takes a variable number of arguments, converts
* each argument to a string, and writes that string to the file.
* @exception IOException if an error occurred while accessing the file
* associated with this object
*/
public static void jsFunction_write(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
throws IOException
{
write0(thisObj, args, false);
}
/**
* Write strings and a newline.
*
* Implements a JavaScript function.
* @exception IOException if an error occurred while accessing the file
* associated with this object
*
*/
public static void jsFunction_writeLine(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
throws IOException
{
write0(thisObj, args, true);
}
public int jsGet_lineNumber()
throws FileNotFoundException
{
return getReader().getLineNumber();
}
/**
* Close the file. It may be reopened.
*
* Implements a JavaScript function.
* @exception IOException if an error occurred while accessing the file
* associated with this object
*/
public void jsFunction_close() throws IOException {
if (reader != null) {
reader.close();
reader = null;
} else if (writer != null) {
writer.close();
writer = null;
}
}
/**
* Finalizer.
*
* Close the file when this object is collected.
*/
@Override
protected void finalize() {
try {
jsFunction_close();
}
catch (IOException e) {
}
}
/**
* Get the Java reader.
*/
public Object jsFunction_getReader() {
if (reader == null)
return null;
// Here we use toObject() to "wrap" the BufferedReader object
// in a Scriptable object so that it can be manipulated by
// JavaScript.
Scriptable parent = ScriptableObject.getTopLevelScope(this);
return Context.javaToJS(reader, parent);
}
/**
* Get the Java writer.
*
* @see File#jsFunction_getReader
*
*/
public Object jsFunction_getWriter() {
if (writer == null)
return null;
Scriptable parent = ScriptableObject.getTopLevelScope(this);
return Context.javaToJS(writer, parent);
}
/**
* Get the reader, checking that we're not already writing this file.
*/
private LineNumberReader getReader() throws FileNotFoundException {
if (writer != null) {
throw Context.reportRuntimeError("already writing file \""
+ name
+ "\"");
}
if (reader == null)
reader = new LineNumberReader(file == null
? new InputStreamReader(System.in)
: new FileReader(file));
return reader;
}
/**
* Perform the guts of write and writeLine.
*
* Since the two functions differ only in whether they write a
* newline character, move the code into a common subroutine.
*
*/
private static void write0(Scriptable thisObj, Object[] args, boolean eol)
throws IOException
{
File thisFile = checkInstance(thisObj);
if (thisFile.reader != null) {
throw Context.reportRuntimeError("already writing file \""
+ thisFile.name
+ "\"");
}
if (thisFile.writer == null)
thisFile.writer = new BufferedWriter(
thisFile.file == null ? new OutputStreamWriter(System.out)
: new FileWriter(thisFile.file));
for (int i=0; i < args.length; i++) {
String s = Context.toString(args[i]);
thisFile.writer.write(s, 0, s.length());
}
if (eol)
thisFile.writer.newLine();
}
/**
* Perform the instanceof check and return the downcasted File object.
*
* This is necessary since methods may reside in the File.prototype
* object and scripts can dynamically alter prototype chains. For example:
* <pre>
* js> defineClass("File");
* js> o = {};
* [object Object]
* js> o.__proto__ = File.prototype;
* [object File]
* js> o.write("hi");
* js: called on incompatible object
* </pre>
* The runtime will take care of such checks when non-static Java methods
* are defined as JavaScript functions.
*/
private static File checkInstance(Scriptable obj) {
if (obj == null || !(obj instanceof File)) {
throw Context.reportRuntimeError("called on incompatible object");
}
return (File) obj;
}
/**
* Some private data for this class.
*/
private String name;
private java.io.File file; // may be null, meaning to use System.out or .in
private LineNumberReader reader;
private BufferedWriter writer;
}

View File

@@ -1,171 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
/**
* An example host object class.
*
* Here's a shell session showing the Foo object in action:
* <pre>
* js> defineClass("Foo")
* js> foo = new Foo(); <i>A constructor call, see <a href="#Foo">Foo</a> below.</i>
* [object Foo] <i>The "Foo" here comes from <a href"#getClassName">getClassName</a>.</i>
* js> foo.counter; <i>The counter property is defined by the <code>defineProperty</code></i>
* 0 <i>call below and implemented by the <a href="#getCounter">getCounter</a></i>
* js> foo.counter; <i>method below.</i>
* 1
* js> foo.counter;
* 2
* js> foo.resetCounter(); <i>Results in a call to <a href="#resetCounter">resetCounter</a>.</i>
* js> foo.counter; <i>Now the counter has been reset.</i>
* 0
* js> foo.counter;
* 1
* js> bar = new Foo(37); <i>Create a new instance.</i>
* [object Foo]
* js> bar.counter; <i>This instance's counter is distinct from</i>
* 37 <i>the other instance's counter.</i>
* js> foo.varargs(3, "hi"); <i>Calls <a href="#varargs">varargs</a>.</i>
* this = [object Foo]; args = [3, hi]
* js> foo[7] = 34; <i>Since we extended ScriptableObject, we get</i>
* 34 <i>all the behavior of a JavaScript object</i>
* js> foo.a = 23; <i>for free.</i>
* 23
* js> foo.a + foo[7];
* 57
* js>
* </pre>
*
* @see org.mozilla.javascript.Context
* @see org.mozilla.javascript.Scriptable
* @see org.mozilla.javascript.ScriptableObject
*
* @author Norris Boyd
*/
public class Foo extends ScriptableObject {
private static final long serialVersionUID = -3833489808933339159L;
/**
* The zero-parameter constructor.
*
* When Context.defineClass is called with this class, it will
* construct Foo.prototype using this constructor.
*/
public Foo() {
}
/**
* The Java method defining the JavaScript Foo constructor.
*
* Takes an initial value for the counter property.
* Note that in the example Shell session above, we didn't
* supply a argument to the Foo constructor. This means that
* the Undefined value is used as the value of the argument,
* and when the argument is converted to an integer, Undefined
* becomes 0.
*/
public Foo(int counterStart) {
counter = counterStart;
}
/**
* Returns the name of this JavaScript class, "Foo".
*/
@Override
public String getClassName() {
return "Foo";
}
/**
* The Java method defining the JavaScript resetCounter function.
*
* Resets the counter to 0.
*/
public void jsFunction_resetCounter() {
counter = 0;
}
/**
* The Java method implementing the getter for the counter property.
* <p>
* If "setCounter" had been defined in this class, the runtime would
* call the setter when the property is assigned to.
*/
public int jsGet_counter() {
return counter++;
}
/**
* An example of a variable-arguments method.
*
* All variable arguments methods must have the same number and
* types of parameters, and must be static. <p>
* @param cx the Context of the current thread
* @param thisObj the JavaScript 'this' value.
* @param args the array of arguments for this call
* @param funObj the function object of the invoked JavaScript function
* This value is useful to compute a scope using
* Context.getTopLevelScope().
* @return computes the string values and types of 'this' and
* of each of the supplied arguments and returns them in a string.
*
* @see org.mozilla.javascript.ScriptableObject#getTopLevelScope
*/
public static Object jsFunction_varargs(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
{
StringBuffer buf = new StringBuffer();
buf.append("this = ");
buf.append(Context.toString(thisObj));
buf.append("; args = [");
for (int i=0; i < args.length; i++) {
buf.append(Context.toString(args[i]));
if (i+1 != args.length)
buf.append(", ");
}
buf.append("]");
return buf.toString();
}
/**
* A piece of private data for this class.
*/
private int counter;
}

View File

@@ -1,280 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
import java.util.List;
import java.util.ArrayList;
/**
* Matrix: An example host object class that implements the Scriptable interface.
*
* Built-in JavaScript arrays don't handle multiple dimensions gracefully: the
* script writer must create every array in an array of arrays. The Matrix class
* takes care of that by automatically allocating arrays for every index that
* is accessed. What's more, the Matrix constructor takes a integer argument
* that specifies the dimension of the Matrix. If m is a Matrix with dimension 3,
* then m[0] will be a Matrix with dimension 1, and m[0][0] will be an Array.
*
* Here's a shell session showing the Matrix object in action:
* <pre>
* js> defineClass("Matrix")
* js> var m = new Matrix(2); // A constructor call, see "Matrix(int dimension)"
* js> m // Object.toString will call "Matrix.getClassName()"
* [object Matrix]
* js> m[0][0] = 3;
* 3
* js> uneval(m[0]); // an array was created automatically!
* [3]
* js> uneval(m[1]); // array is created even if we don't set a value
* []
* js> m.dim; // we can access the "dim" property
* 2
* js> m.dim = 3;
* 3
* js> m.dim; // but not modify the "dim" property
* 2
* </pre>
*
* @see org.mozilla.javascript.Context
* @see org.mozilla.javascript.Scriptable
*
* @author Norris Boyd
*/
public class Matrix implements Scriptable {
/**
* The zero-parameter constructor.
*
* When ScriptableObject.defineClass is called with this class, it will
* construct Matrix.prototype using this constructor.
*/
public Matrix() {
}
/**
* The Java constructor, also used to define the JavaScript constructor.
*/
public Matrix(int dimension) {
if (dimension <= 0) {
throw Context.reportRuntimeError(
"Dimension of Matrix must be greater than zero");
}
dim = dimension;
list = new ArrayList<Object>();
}
/**
* Returns the name of this JavaScript class, "Matrix".
*/
public String getClassName() {
return "Matrix";
}
/**
* Defines the "dim" property by returning true if name is
* equal to "dim".
* <p>
* Defines no other properties, i.e., returns false for
* all other names.
*
* @param name the name of the property
* @param start the object where lookup began
*/
public boolean has(String name, Scriptable start) {
return name.equals("dim");
}
/**
* Defines all numeric properties by returning true.
*
* @param index the index of the property
* @param start the object where lookup began
*/
public boolean has(int index, Scriptable start) {
return true;
}
/**
* Get the named property.
* <p>
* Handles the "dim" property and returns NOT_FOUND for all
* other names.
* @param name the property name
* @param start the object where the lookup began
*/
public Object get(String name, Scriptable start) {
if (name.equals("dim"))
return new Integer(dim);
return NOT_FOUND;
}
/**
* Get the indexed property.
* <p>
* Look up the element in the associated list and return
* it if it exists. If it doesn't exist, create it.<p>
* @param index the index of the integral property
* @param start the object where the lookup began
*/
public Object get(int index, Scriptable start) {
while (index >= list.size()) {
list.add(null);
}
Object result = list.get(index);
if (result != null)
return result;
if (dim > 2) {
Matrix m = new Matrix(dim-1);
m.setParentScope(getParentScope());
m.setPrototype(getPrototype());
result = m;
} else {
Context cx = Context.getCurrentContext();
Scriptable scope = ScriptableObject.getTopLevelScope(start);
result = cx.newArray(scope, 0);
}
list.set(index, result);
return result;
}
/**
* Set a named property.
*
* We do nothing here, so all properties are effectively read-only.
*/
public void put(String name, Scriptable start, Object value) {
}
/**
* Set an indexed property.
*
* We do nothing here, so all properties are effectively read-only.
*/
public void put(int index, Scriptable start, Object value) {
}
/**
* Remove a named property.
*
* This method shouldn't even be called since we define all properties
* as PERMANENT.
*/
public void delete(String id) {
}
/**
* Remove an indexed property.
*
* This method shouldn't even be called since we define all properties
* as PERMANENT.
*/
public void delete(int index) {
}
/**
* Get prototype.
*/
public Scriptable getPrototype() {
return prototype;
}
/**
* Set prototype.
*/
public void setPrototype(Scriptable prototype) {
this.prototype = prototype;
}
/**
* Get parent.
*/
public Scriptable getParentScope() {
return parent;
}
/**
* Set parent.
*/
public void setParentScope(Scriptable parent) {
this.parent = parent;
}
/**
* Get properties.
*
* We return an empty array since we define all properties to be DONTENUM.
*/
public Object[] getIds() {
return new Object[0];
}
/**
* Default value.
*
* Use the convenience method from Context that takes care of calling
* toString, etc.
*/
public Object getDefaultValue(Class<?> typeHint) {
return "[object Matrix]";
}
/**
* instanceof operator.
*
* We mimick the normal JavaScript instanceof semantics, returning
* true if <code>this</code> appears in <code>value</code>'s prototype
* chain.
*/
public boolean hasInstance(Scriptable value) {
Scriptable proto = value.getPrototype();
while (proto != null) {
if (proto.equals(this))
return true;
proto = proto.getPrototype();
}
return false;
}
/**
* Some private data for this class.
*/
private int dim;
private List<Object> list;
private Scriptable prototype, parent;
}

View File

@@ -1,53 +0,0 @@
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is Rhino code, released May 6, 1999.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 1997-1999
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- Alternatively, the contents of this file may be used under the terms of
- the GNU General Public License Version 2 or later (the "GPL"), in which
- case the provisions of the GPL are applicable instead of those above. If
- you wish to allow use of your version of this file only under the terms of
- the GPL and not to allow others to use your version of this file under the
- MPL, indicate your decision by deleting the provisions above and replacing
- them with the notice and other provisions required by the GPL. If you do
- not delete the provisions above, a recipient may use your version of this
- file under either the MPL or the GPL.
-
- ***** END LICENSE BLOCK ***** -->
<html>
<body>
This is the NervousText applet in javascript:
<applet archive="js.jar" code=NervousText width=200 height=50 >
</applet>
<hr>
The test assumes that applet code is generated with:
<pre>
java -classpath js.jar org.mozilla.javascript.tools.jsc.Main \
-extends java.applet.Applet \
-implements java.lang.Runnable \
NervousText.js
</pre>
and the resulting 2 classes, NervousText.class extending java.applet.Applet and implementing java.lang.Runnable and NervousText1.class which represents compiled JavaScript code, are placed in the same directory as NervousText.html.
<p>
The test also assumes that js.jar from Rhino distribution is available in the same directory.
</body>
</html>

View File

@@ -1,109 +0,0 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// The Java "NervousText" example ported to JavaScript.
// Compile using java org.mozilla.javascript.tools.jsc.Main -extends java.applet.Applet -implements java.lang.Runnable NervousText.js
/*
Adapted from Java code by
Daniel Wyszynski
Center for Applied Large-Scale Computing (CALC)
04-12-95
Test of text animation.
kwalrath: Changed string; added thread suspension. 5-9-95
*/
var Font = java.awt.Font;
var Thread = java.lang.Thread;
var separated;
var s = null;
var killme = null;
var i;
var x_coord = 0, y_coord = 0;
var num;
var speed=35;
var counter =0;
var threadSuspended = false; //added by kwalrath
function init() {
this.resize(150,50);
this.setFont(new Font("TimesRoman",Font.BOLD,36));
s = this.getParameter("text");
if (s == null) {
s = "Rhino";
}
separated = s.split('');
}
function start() {
if(killme == null)
{
killme = new java.lang.Thread(java.lang.Runnable(this));
killme.start();
}
}
function stop() {
killme = null;
}
function run() {
while (killme != null) {
try {Thread.sleep(100);} catch (e){}
this.repaint();
}
killme = null;
}
function paint(g) {
for(i=0;i<separated.length;i++)
{
x_coord = Math.random()*10+15*i;
y_coord = Math.random()*10+36;
g.drawChars(separated, i,1,x_coord,y_coord);
}
}
/* Added by kwalrath. */
function mouseDown(evt, x, y) {
if (threadSuspended) {
killme.resume();
}
else {
killme.suspend();
}
threadSuspended = !threadSuspended;
return true;
}

View File

@@ -1,72 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
/**
* An example WrapFactory that can be used to avoid wrapping of Java types
* that can be converted to ECMA primitive values.
* So java.lang.String is mapped to ECMA string, all java.lang.Numbers are
* mapped to ECMA numbers, and java.lang.Booleans are mapped to ECMA booleans
* instead of being wrapped as objects. Additionally java.lang.Character is
* converted to ECMA string with length 1.
* Other types have the default behavior.
* <p>
* Note that calling "new java.lang.String('foo')" in JavaScript with this
* wrap factory enabled will still produce a wrapped Java object since the
* WrapFactory.wrapNewObject method is not overridden.
* <p>
* The PrimitiveWrapFactory is enabled on a Context by calling setWrapFactory
* on that context.
*/
public class PrimitiveWrapFactory extends WrapFactory {
@Override
public Object wrap(Context cx, Scriptable scope, Object obj,
Class<?> staticType)
{
if (obj instanceof String || obj instanceof Number ||
obj instanceof Boolean)
{
return obj;
} else if (obj instanceof Character) {
char[] a = { ((Character)obj).charValue() };
return new String(a);
}
return super.wrap(cx, scope, obj, staticType);
}
}

View File

@@ -1,78 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
/**
* RunScript: simplest example of controlling execution of Rhino.
*
* Collects its arguments from the command line, executes the
* script, and prints the result.
*
* @author Norris Boyd
*/
public class RunScript {
public static void main(String args[])
{
// Creates and enters a Context. The Context stores information
// about the execution environment of a script.
Context cx = Context.enter();
try {
// Initialize the standard objects (Object, Function, etc.)
// This must be done before scripts can be executed. Returns
// a scope object that we use in later calls.
Scriptable scope = cx.initStandardObjects();
// Collect the arguments into a single string.
String s = "";
for (int i=0; i < args.length; i++) {
s += args[i];
}
// Now evaluate the string we've colected.
Object result = cx.evaluateString(scope, s, "<cmd>", 1, null);
// Convert the result to a string and print it.
System.err.println(Context.toString(result));
} finally {
// Exit from the context.
Context.exit();
}
}
}

View File

@@ -1,69 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
/**
* RunScript2: Like RunScript, but reflects the System.out into JavaScript.
*
* @author Norris Boyd
*/
public class RunScript2 {
public static void main(String args[])
{
Context cx = Context.enter();
try {
Scriptable scope = cx.initStandardObjects();
// Add a global variable "out" that is a JavaScript reflection
// of System.out
Object jsOut = Context.javaToJS(System.out, scope);
ScriptableObject.putProperty(scope, "out", jsOut);
String s = "";
for (int i=0; i < args.length; i++) {
s += args[i];
}
Object result = cx.evaluateString(scope, s, "<cmd>", 1, null);
System.err.println(Context.toString(result));
} finally {
Context.exit();
}
}
}

View File

@@ -1,88 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
/**
* RunScript3: Example of using JavaScript objects
*
* Collects its arguments from the command line, executes the
* script, and then ...
*
* @author Norris Boyd
*/
public class RunScript3 {
public static void main(String args[])
{
Context cx = Context.enter();
try {
Scriptable scope = cx.initStandardObjects();
// Collect the arguments into a single string.
String s = "";
for (int i=0; i < args.length; i++) {
s += args[i];
}
// Now evaluate the string we've collected. We'll ignore the result.
cx.evaluateString(scope, s, "<cmd>", 1, null);
// Print the value of variable "x"
Object x = scope.get("x", scope);
if (x == Scriptable.NOT_FOUND) {
System.out.println("x is not defined.");
} else {
System.out.println("x = " + Context.toString(x));
}
// Call function "f('my arg')" and print its result.
Object fObj = scope.get("f", scope);
if (!(fObj instanceof Function)) {
System.out.println("f is undefined or not a function.");
} else {
Object functionArgs[] = { "my arg" };
Function f = (Function)fObj;
Object result = f.call(cx, scope, scope, functionArgs);
String report = "f('my args') = " + Context.toString(result);
System.out.println(report);
}
} finally {
Context.exit();
}
}
}

View File

@@ -1,78 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
/**
* RunScript4: Execute scripts in an environment that includes the
* example Counter class.
*
* @author Norris Boyd
*/
public class RunScript4 {
public static void main(String args[])
throws Exception
{
Context cx = Context.enter();
try {
Scriptable scope = cx.initStandardObjects();
// Use the Counter class to define a Counter constructor
// and prototype in JavaScript.
ScriptableObject.defineClass(scope, Counter.class);
// Create an instance of Counter and assign it to
// the top-level variable "myCounter". This is
// equivalent to the JavaScript code
// myCounter = new Counter(7);
Object[] arg = { new Integer(7) };
Scriptable myCounter = cx.newObject(scope, "Counter", arg);
scope.put("myCounter", scope, myCounter);
String s = "";
for (int i=0; i < args.length; i++) {
s += args[i];
}
Object result = cx.evaluateString(scope, s, "<cmd>", 1, null);
System.err.println(Context.toString(result));
} finally {
Context.exit();
}
}
}

View File

@@ -1,348 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
import org.mozilla.javascript.*;
import java.io.*;
/**
* The shell program.
*
* Can execute scripts interactively or in batch mode at the command line.
* An example of controlling the JavaScript engine.
*
* @author Norris Boyd
*/
public class Shell extends ScriptableObject
{
private static final long serialVersionUID = -5638074146250193112L;
@Override
public String getClassName()
{
return "global";
}
/**
* Main entry point.
*
* Process arguments as would a normal Java program. Also
* create a new Context and associate it with the current thread.
* Then set up the execution environment and begin to
* execute scripts.
*/
public static void main(String args[]) {
// Associate a new Context with this thread
Context cx = Context.enter();
try {
// Initialize the standard objects (Object, Function, etc.)
// This must be done before scripts can be executed.
Shell shell = new Shell();
cx.initStandardObjects(shell);
// Define some global functions particular to the shell. Note
// that these functions are not part of ECMA.
String[] names = { "print", "quit", "version", "load", "help" };
shell.defineFunctionProperties(names, Shell.class,
ScriptableObject.DONTENUM);
args = processOptions(cx, args);
// Set up "arguments" in the global scope to contain the command
// line arguments after the name of the script to execute
Object[] array;
if (args.length == 0) {
array = new Object[0];
} else {
int length = args.length - 1;
array = new Object[length];
System.arraycopy(args, 1, array, 0, length);
}
Scriptable argsObj = cx.newArray(shell, array);
shell.defineProperty("arguments", argsObj,
ScriptableObject.DONTENUM);
shell.processSource(cx, args.length == 0 ? null : args[0]);
} finally {
Context.exit();
}
}
/**
* Parse arguments.
*/
public static String[] processOptions(Context cx, String args[]) {
for (int i=0; i < args.length; i++) {
String arg = args[i];
if (!arg.startsWith("-")) {
String[] result = new String[args.length - i];
for (int j=i; j < args.length; j++)
result[j-i] = args[j];
return result;
}
if (arg.equals("-version")) {
if (++i == args.length)
usage(arg);
double d = Context.toNumber(args[i]);
if (d != d)
usage(arg);
cx.setLanguageVersion((int) d);
continue;
}
usage(arg);
}
return new String[0];
}
/**
* Print a usage message.
*/
private static void usage(String s) {
p("Didn't understand \"" + s + "\".");
p("Valid arguments are:");
p("-version 100|110|120|130|140|150|160|170");
System.exit(1);
}
/**
* Print a help message.
*
* This method is defined as a JavaScript function.
*/
public void help() {
p("");
p("Command Description");
p("======= ===========");
p("help() Display usage and help messages. ");
p("defineClass(className) Define an extension using the Java class");
p(" named with the string argument. ");
p(" Uses ScriptableObject.defineClass(). ");
p("load(['foo.js', ...]) Load JavaScript source files named by ");
p(" string arguments. ");
p("loadClass(className) Load a class named by a string argument.");
p(" The class must be a script compiled to a");
p(" class file. ");
p("print([expr ...]) Evaluate and print expressions. ");
p("quit() Quit the shell. ");
p("version([number]) Get or set the JavaScript version number.");
p("");
}
/**
* Print the string values of its arguments.
*
* This method is defined as a JavaScript function.
* Note that its arguments are of the "varargs" form, which
* allows it to handle an arbitrary number of arguments
* supplied to the JavaScript function.
*
*/
public static void print(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
{
for (int i=0; i < args.length; i++) {
if (i > 0)
System.out.print(" ");
// Convert the arbitrary JavaScript value into a string form.
String s = Context.toString(args[i]);
System.out.print(s);
}
System.out.println();
}
/**
* Quit the shell.
*
* This only affects the interactive mode.
*
* This method is defined as a JavaScript function.
*/
public void quit()
{
quitting = true;
}
/**
* Get and set the language version.
*
* This method is defined as a JavaScript function.
*/
public static double version(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
{
double result = cx.getLanguageVersion();
if (args.length > 0) {
double d = Context.toNumber(args[0]);
cx.setLanguageVersion((int) d);
}
return result;
}
/**
* Load and execute a set of JavaScript source files.
*
* This method is defined as a JavaScript function.
*
*/
public static void load(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
{
Shell shell = (Shell)getTopLevelScope(thisObj);
for (int i = 0; i < args.length; i++) {
shell.processSource(cx, Context.toString(args[i]));
}
}
/**
* Evaluate JavaScript source.
*
* @param cx the current context
* @param filename the name of the file to compile, or null
* for interactive mode.
*/
private void processSource(Context cx, String filename)
{
if (filename == null) {
BufferedReader in = new BufferedReader
(new InputStreamReader(System.in));
String sourceName = "<stdin>";
int lineno = 1;
boolean hitEOF = false;
do {
int startline = lineno;
System.err.print("js> ");
System.err.flush();
try {
String source = "";
// Collect lines of source to compile.
while(true) {
String newline;
newline = in.readLine();
if (newline == null) {
hitEOF = true;
break;
}
source = source + newline + "\n";
lineno++;
// Continue collecting as long as more lines
// are needed to complete the current
// statement. stringIsCompilableUnit is also
// true if the source statement will result in
// any error other than one that might be
// resolved by appending more source.
if (cx.stringIsCompilableUnit(source))
break;
}
Object result = cx.evaluateString(this, source,
sourceName, startline,
null);
if (result != Context.getUndefinedValue()) {
System.err.println(Context.toString(result));
}
}
catch (WrappedException we) {
// Some form of exception was caught by JavaScript and
// propagated up.
System.err.println(we.getWrappedException().toString());
we.printStackTrace();
}
catch (EvaluatorException ee) {
// Some form of JavaScript error.
System.err.println("js: " + ee.getMessage());
}
catch (JavaScriptException jse) {
// Some form of JavaScript error.
System.err.println("js: " + jse.getMessage());
}
catch (IOException ioe) {
System.err.println(ioe.toString());
}
if (quitting) {
// The user executed the quit() function.
break;
}
} while (!hitEOF);
System.err.println();
} else {
FileReader in = null;
try {
in = new FileReader(filename);
}
catch (FileNotFoundException ex) {
Context.reportError("Couldn't open file \"" + filename + "\".");
return;
}
try {
// Here we evalute the entire contents of the file as
// a script. Text is printed only if the print() function
// is called.
cx.evaluateReader(this, in, filename, 1, null);
}
catch (WrappedException we) {
System.err.println(we.getWrappedException().toString());
we.printStackTrace();
}
catch (EvaluatorException ee) {
System.err.println("js: " + ee.getMessage());
}
catch (JavaScriptException jse) {
System.err.println("js: " + jse.getMessage());
}
catch (IOException ioe) {
System.err.println(ioe.toString());
}
finally {
try {
in.close();
}
catch (IOException ioe) {
System.err.println(ioe.toString());
}
}
}
}
private static void p(String s) {
System.out.println(s);
}
private boolean quitting;
}

View File

@@ -1,111 +0,0 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
/*
* SwingApplication.js - a translation into JavaScript of
* SwingApplication.java, a java.sun.com Swing example.
*
* @author Roger E Critchlow, Jr.
*/
var swingNames = JavaImporter();
swingNames.importPackage(Packages.javax.swing);
swingNames.importPackage(Packages.java.awt);
swingNames.importPackage(Packages.java.awt.event);
function createComponents()
{
with (swingNames) {
var labelPrefix = "Number of button clicks: ";
var numClicks = 0;
var label = new JLabel(labelPrefix + numClicks);
var button = new JButton("I'm a Swing button!");
button.mnemonic = KeyEvent.VK_I;
// Since Rhino 1.5R5 JS functions can be passed to Java method if
// corresponding argument type is Java interface with single method
// or all its methods have the same number of arguments and the
// corresponding arguments has the same type. See also comments for
// frame.addWindowListener bellow
button.addActionListener(function() {
numClicks += 1;
label.setText(labelPrefix + numClicks);
});
label.setLabelFor(button);
/*
* An easy way to put space between a top-level container
* and its contents is to put the contents in a JPanel
* that has an "empty" border.
*/
var pane = new JPanel();
pane.border = BorderFactory.createEmptyBorder(30, //top
30, //left
10, //bottom
30); //right
pane.setLayout(new GridLayout(0, 1));
pane.add(button);
pane.add(label);
return pane;
}
}
with (swingNames) {
try {
UIManager.
setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
} catch (e) { }
//Create the top-level container and add contents to it.
var frame = new swingNames.JFrame("SwingApplication");
frame.getContentPane().add(createComponents(), BorderLayout.CENTER);
// Pass JS function as implementation of WindowListener. It is allowed since
// all methods in WindowListener have the same signature. To distinguish
// between methods Rhino passes to JS function the name of corresponding
// method as the last argument
frame.addWindowListener(function(event, methodName) {
if (methodName == "windowClosing") {
java.lang.System.exit(0);
}
});
//Finish setting up the frame, and show it.
frame.pack();
frame.setVisible(true);
}

View File

@@ -1,137 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
/**
* checkParam.js
*
* The files given as arguments on the command line are assumed to be
* Java source code files. This program checks to see that the @param
* tags in the documentation comments match with the parameters for
* the associated Java methods.
* <p>
* Any errors found are reported.
*
*/
defineClass("File")
// Return true if "str" ends with "suffix".
function stringEndsWith(str, suffix) {
return str.substring(str.length - suffix.length) == suffix;
}
/**
* Perform processing once the end of a documentation comment is seen.
*
* Look for a parameter list following the end of the comment and
* collect the parameters and compare to the @param entries.
* Report any discrepancies.
* @param f the current file
* @param a an array of parameters from @param comments
* @param line the string containing the comment end (in case the
* parameters are on the same line)
*/
function processCommentEnd(f, a, line) {
while (line != null && !line.match(/\(/))
line = f.readLine();
while (line != null && !line.match(/\)/))
line += f.readLine();
if (line === null)
return;
var m = line.match(/\(([^\)]+)\)/);
var args = m ? m[1].split(",") : [];
if (a.length != args.length) {
print('"' + f.name +
'"; line ' + f.lineNumber +
' mismatch: had a different number' +
' of @param entries and parameters.');
} else {
for (var i=0; i < a.length; i++) {
if (!stringEndsWith(args[i], a[i])) {
print('"' + f.name +
'"; line ' + f.lineNumber +
' mismatch: had "' + a[i] +
'" and "' + args[i] + '".');
break;
}
}
}
}
/**
* Process the given file, looking for mismatched @param lists and
* parameter lists.
* @param f the file to process
*/
function processFile(f) {
var line;
var m;
var i = 0;
var a = [];
outer:
while ((line = f.readLine()) != null) {
if (line.match(/@param/)) {
while (m = line.match(/@param[ ]+([^ ]+)/)) {
a[i++] = m[1];
line = f.readLine();
if (line == null)
break outer;
}
}
if (i != 0 && line.match(/\*\//)) {
processCommentEnd(f, a, line);
i = 0;
a = [];
}
}
if (i != 0) {
print('"' + f.name +
'"; line ' + f.lineNumber +
' missing parameters at end of file.');
}
}
// main script: process each file in arguments list
for (var i=0; i < arguments.length; i++) {
var filename = String(arguments[i]);
print("Checking " + filename + "...");
var f = new File(filename);
processFile(f);
}
print("done.");

View File

@@ -1,69 +0,0 @@
/* -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Patrick Beard
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
/*
Implementing the interface java.util.Enumeration passing the object
with JavaScript implementation directly to the constructor.
This is a shorthand for JavaAdapter constructor:
elements = new JavaAdapter(java.util.Enumeration, {
index: 0,
elements: array,
hasMoreElements: function ...
nextElement: function ...
});
*/
// an array to enumerate.
var array = [0, 1, 2];
// create an array enumeration.
var elements = new java.util.Enumeration({
index: 0,
elements: array,
hasMoreElements: function() {
return (this.index < this.elements.length);
},
nextElement: function() {
return this.elements[this.index++];
}
});
// now print out the array by enumerating through the Enumeration
while (elements.hasMoreElements())
print(elements.nextElement());

View File

@@ -1,556 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Roland Pennings
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
/**
* Process a JavaScript source file and process special comments
* to produce an HTML file of documentation, similar to javadoc.
* @author Norris Boyd
* @see rhinotip.jar
* @lastmodified xx
* @version 1.2 Roland Pennings: Allow multiple files for a function.
* @version 1.3 Roland Pennings: Removes ../.. from the input directory name
*/
defineClass("File")
var functionDocArray = [];
var inputDirName = "";
var indexFileArray = [];
var indexFile = "";
var indexFileName = "index_files";
var indexFunctionArray = [];
var indexFunction = "";
var indexFunctionName = "index_functions";
var FileList = [];
var DirList = [];
var outputdir = null;
var debug = 0;
/**
* Process JavaScript source file <code>f</code>, writing jsdoc to
* file <code>out</code>.
* @param f input file
* @param fname name of the input file (without the path)
* @param inputdir directory of the input file
* @param out output file
*/
function processFile(f, fname, inputdir, out) {
var s;
var firstLine = true;
indexFileArray[fname] = "";
// write the header of the output file
out.writeLine('<HTML><HEADER><TITLE>' + fname + '</TITLE><BODY>');
if (inputdir != null) {
outstr = '<a name=\"_top_\"></a><pre><a href=\"' + indexFile + '\">Index Files</a> ';
outstr += '<a href=\"' + indexFunction + '\">Index Functions</a></pre><hr>';
out.writeLine(outstr);
}
// process the input file
var comment = "";
while ((s = f.readLine()) != null) {
var m = s.match(/\/\*\*(.*)/);
if (m != null) {
// Found a comment start.
s = "*" + m[1];
do {
m = s.match(/(.*)\*\//);
if (m != null) {
// Found end of comment.
comment += m[1];
break;
}
// Strip leading whitespace and "*".
comment += s.replace(/^\s*\*/, "");
s = f.readLine();
} while (s != null);
if (debug)
print("Found comment " + comment);
if (firstLine) {
// We have a comment for the whole file.
out.writeLine('<H1>File ' + fname + '</H1>');
out.writeLine(processComment(comment,firstLine,fname));
out.writeLine('<HR>');
firstLine = false;
comment = "";
continue;
}
}
// match the beginning of the function
// NB we also match functions without a comment!
// if we have two comments one after another only the last one will be taken
m = s.match(/^\s*function\s+((\w+)|(\w+)(\s+))\(([^)]*)\)/);
if (m != null)
{
// Found a function start
var htmlText = processFunction(m[1], m[5], comment); // sjm changed from 2nd to 5th arg
// Save the text in a global variable, so we
// can write out a table of contents first.
functionDocArray[functionDocArray.length] = {name:m[1], text:htmlText};
// Store the function also in the indexFunctionArray
// so we can have a separate file with the function table of contents
if (indexFunctionArray[m[1]]) {
// print("ERROR: function: " + m[1] + " is defined more than once!");
// Allow multiple files for a function
with (indexFunctionArray[m[1]]) {
filename = filename + "|" + fname;
// print("filename = " + filename);
}
}
else {
indexFunctionArray[m[1]] = {filename:fname};
}
//reset comment
comment = "";
}
// match a method being bound to a prototype
m = s.match(/^\s*(\w*)\.prototype\.(\w*)\s*=\s*function\s*\(([^)]*)\)/);
if (m != null)
{
// Found a method being bound to a prototype.
var htmlText = processPrototypeMethod(m[1], m[2], m[3], comment);
// Save the text in a global variable, so we
// can write out a table of contents first.
functionDocArray[functionDocArray.length] = {name:m[1]+".prototype."+m[2], text:htmlText};
// Store the function also in the indexFunctionArray
// so we can have a separate file with the function table of contents
if (indexFunctionArray[m[1]]) {
// print("ERROR: function: " + m[1] + " is defined more than once!");
// Allow multiple files for a function
with (indexFunctionArray[m[1]]) {
filename = filename + "|" + fname;
// print("filename = " + filename);
}
}
else {
indexFunctionArray[m[1]] = {filename:fname};
}
//reset comment
comment = "";
}
firstLine = false;
}
// Write table of contents.
for (var i=0; i < functionDocArray.length; i++) {
with (functionDocArray[i]) {
out.writeLine('function <A HREF=#' + name +
'>' + name + '</A><BR>');
}
}
out.writeLine('<HR>');
// Now write the saved function documentation.
for (i=0; i < functionDocArray.length; i++) {
with (functionDocArray[i]) {
out.writeLine('<A NAME=' + name + '>');
out.writeLine(text);
}
}
out.writeLine('</BODY></HTML>');
// Now clean up the doc array
functionDocArray = [];
}
/**
* Process function and associated comment.
* @param name the name of the function
* @param args the args of the function as a single string
* @param comment the text of the comment
* @return a string for the HTML text of the documentation
*/
function processFunction(name, args, comment) {
if (debug)
print("Processing " + name + " " + args + " " + comment);
return "<H2>Function " + name + "</H2>" +
"<PRE>" +
"function " + name + "(" + args + ")" +
"</PRE>" +
processComment(comment,0,name) +
"<P><BR><BR>";
}
/**
* Process a method being bound to a prototype.
* @param proto the name of the prototype
* @param name the name of the function
* @param args the args of the function as a single string
* @param comment the text of the comment
* @return a string for the HTML text of the documentation
*/
function processPrototypeMethod(proto, name, args, comment) {
if (debug)
print("Processing " + proto + ".prototype." + name + " " + args + " " + comment);
return "<H2> Method " + proto + ".prototype." + name + "</H2>" +
"<PRE>" +
proto + ".prototype." + name + " = function(" + args + ")" +
"</PRE>" +
processComment(comment,0,name) +
"<P><BR><BR>";
}
/**
* Process comment.
* @param comment the text of the comment
* @param firstLine shows if comment is at the beginning of the file
* @param fname name of the file (without path)
* @return a string for the HTML text of the documentation
*/
function processComment(comment,firstLine,fname) {
var tags = {};
// Use the "lambda" form of regular expression replace,
// where the replacement object is a function rather
// than a string. The function is called with the
// matched text and any parenthetical matches as
// arguments, and the result of the function used as the
// replacement text.
// Here we use the function to build up the "tags" object,
// which has a property for each "@" tag that is the name
// of the tag, and whose value is an array of the
// text following that tag.
comment = comment.replace(/@(\w+)\s+([^@]*)/g,
function (s, name, text) {
var a = tags[name] || [];
a.push(text);
tags[name] = a;
return "";
});
// if we have a comment at the beginning of a file
// store the comment for the index file
if (firstLine) {
indexFileArray[fname] = comment;
}
var out = comment + '<P>';
if (tags["param"]) {
// Create a table of parameters and their descriptions.
var array = tags["param"];
var params = "";
for (var i=0; i < array.length; i++) {
var m = array[i].match(/(\w+)\s+(.*)/);
params += '<TR><TD><I>'+m[1]+'</I></TD>' +
'<TD>'+m[2]+'</TD></TR>';
}
out += '<TABLE WIDTH="90%" BORDER=1>';
out += '<TR BGCOLOR=0xdddddddd>';
out += '<TD><B>Parameter</B></TD>';
out += '<TD><B>Description</B></TD></TR>';
out += params;
out += '</TABLE><P>';
}
if (tags["return"]) {
out += "<DT><B>Returns:</B><DD>";
out += tags["return"][0] + "</DL><P>";
}
if (tags["author"]) {
// List the authors together, separated by commas.
out += '<DT><B>Author:</B><DD>';
var array = tags["author"];
for (var i=0; i < array.length; i++) {
out += array[i];
if (i+1 < array.length)
out += ", ";
}
out += '</DL><P>';
}
if (tags["version"]) {
// Show the version.
out += '<DT><B>Version:</B><DD>';
var array = tags["version"];
for (var i=0; i < array.length; i++) {
out += array[i];
if (i+1 < array.length)
out += "<BR><DD>";
}
out += '</DL><P>';
}
if (tags["see"]) {
// List the see modules together, separated by <BR>.
out += '<DT><B>Dependencies:</B><DD>';
var array = tags["see"];
for (var i=0; i < array.length; i++) {
out += array[i];
if (i+1 < array.length)
out += "<BR><DD>";
}
out += '</DL><P>';
}
if (tags["lastmodified"]) {
// Shows a last modified description with client-side js.
out += '<DT><B>Last modified:</B><DD>';
out += '<script><!--\n';
out += 'document.writeln(document.lastModified);\n';
out += '// ---></script>\n';
out += '</DL><P>';
}
// additional tags can be added here (i.e., "if (tags["see"])...")
return out;
}
/**
* Create an html output file
* @param outputdir directory to put the file
* @param htmlfile name of the file
*/
function CreateOutputFile(outputdir,htmlfile)
{
if (outputdir==null)
{
var outname = htmlfile;
}
else
{
var separator = Packages.java.io.File.separator;
var outname = outputdir + separator + htmlfile.substring(htmlfile.lastIndexOf(separator),htmlfile.length);
}
print("output file: " + outname);
return new File(outname);
}
/**
* Process a javascript file. Puts the generated HTML file in the outdir
* @param filename name of the javascript file
* @inputdir input directory of the file (default null)
*/
function processJSFile(filename,inputdir)
{
if (debug) print("filename = " + filename + " inputdir = " + inputdir);
if (!filename.match(/\.js$/)) {
print("Expected filename to end in '.js'; had instead " +
filename + ". I don't treat the file.");
} else {
if (inputdir==null)
{
var inname = filename;
}
else
{
var separator = Packages.java.io.File.separator;
var inname = inputdir + separator + filename;
}
print("Processing file " + inname);
var f = new File(inname);
// create the output file
var htmlfile = filename.replace(/\.js$/, ".html");
var out = CreateOutputFile(outputdir,htmlfile);
processFile(f, filename, inputdir, out);
out.close();
}
}
/**
* Generate index files containing links to the processed javascript files
* and the generated functions
*/
function GenerateIndex(dirname)
{
// construct the files index file
var out = CreateOutputFile(outputdir,indexFile);
// write the beginning of the file
out.writeLine('<HTML><HEADER><TITLE>File Index - directory: ' + dirname + '</TITLE><BODY>');
out.writeLine('<H1>File Index - directory: ' + dirname + '</H1>\n');
out.writeLine('<TABLE WIDTH="90%" BORDER=1>');
out.writeLine('<TR BGCOLOR=0xdddddddd>');
out.writeLine('<TD><B>File</B></TD>');
out.writeLine('<TD><B>Description</B></TD></TR>');
var separator = Packages.java.io.File.separator;
// sort the index file array
var SortedFileArray = [];
for (var fname in indexFileArray)
SortedFileArray.push(fname);
SortedFileArray.sort();
for (var i=0; i < SortedFileArray.length; i++) {
var fname = SortedFileArray[i];
var htmlfile = fname.replace(/\.js$/, ".html");
out.writeLine('<TR><TD><A HREF=\"' + htmlfile + '\">' + fname + '</A></TD></TD><TD>');
if (indexFileArray[fname])
out.writeLine(indexFileArray[fname]);
else
out.writeLine('No comments');
out.writeLine('</TD></TR>\n');
}
out.writeLine('</TABLE></BODY></HTML>');
out.close();
// construct the functions index file
var out = CreateOutputFile(outputdir,indexFunction);
// write the beginning of the file
out.writeLine('<HTML><HEADER><TITLE>Function Index - directory: ' + dirname + '</TITLE><BODY>');
out.writeLine('<H1>Function Index - directory: ' + dirname + '</H1>\n');
out.writeLine('<TABLE WIDTH="90%" BORDER=1>');
out.writeLine('<TR BGCOLOR=0xdddddddd>');
out.writeLine('<TD><B>Function</B></TD>');
out.writeLine('<TD><B>Files</B></TD></TR>');
// sort the function array
var SortedFunctionArray = [];
for (var functionname in indexFunctionArray)
SortedFunctionArray.push(functionname);
SortedFunctionArray.sort();
for (var j=0; j < SortedFunctionArray.length; j++) {
var funcname = SortedFunctionArray[j];
with (indexFunctionArray[funcname]) {
var outstr = '<TR><TD>' + funcname + '</TD><TD>';
var filelst = filename.split("|");
for (var i in filelst) {
var htmlfile = filelst[i].replace(/\.js$/, ".html");
outstr += '<A HREF=\"' + htmlfile + '#' + funcname + '\">' + filelst[i] + '</A>&nbsp;';
}
outstr += '</TD></TR>';
out.writeLine(outstr);
}
}
out.writeLine('</TABLE></BODY></HTML>');
out.close();
}
/**
* prints the options for JSDoc
*/
function PrintOptions()
{
print("You can use the following options:\n");
print("-d: specify an output directory for the generated html files\n");
print("-i: processes all files in an input directory (you can specify several directories)\n");
quit();
}
// Main Script
// first read the arguments
if (! arguments)
PrintOptions();
for (var i=0; i < arguments.length; i++) {
if (debug) print("argument: + \'" + arguments[i] + "\'");
if (arguments[i].match(/^\-/)) {
if (String(arguments[i])=="-d"){
// output directory for the generated html files
outputdir = String(arguments[i+1]);
if (debug) print("outputdir: + \'" + outputdir + "\'");
i++;
}
else if (String(arguments[i])=="-i"){
// process all files in an input directory
DirList.push(String(arguments[i+1]));
if (debug) print("inputdir: + \'" + arguments[i+1] + "\'");
i++;
}
else {
print("Unknown option: " + arguments[i] + "\n");
PrintOptions();
}
}
else
{
// we have a single file
if (debug) print("file: + \'" + arguments[i] + "\'");
FileList.push(String(arguments[i]));
}
}
// first handle the single files
for (var i in FileList)
processJSFile(FileList[i],null);
// then handle the input directories
for (var j in DirList) {
var inputdir = String(DirList[j]);
print("Process input directory: " + inputdir);
// clean up index arrays
var indexFileArray = [];
var indexFunctionArray = [];
// for the directory name get rid of ../../ or ..\..\
inputDirName = inputdir.replace(/\.\.\/|\.\.\\/g,"");
indexFile = indexFileName + "_" + inputDirName + ".html";
indexFunction = indexFunctionName + "_" + inputDirName + ".html";
print("indexFile = " + indexFile);
print("indexFunction = " + indexFunction);
// read the files in the directory
var DirFile = new java.io.File(inputdir);
var lst = DirFile.list();
var separator = Packages.java.io.File.separator;
for (var i=0; i < lst.length; i++)
{
processJSFile(String(lst[i]),inputdir);
}
// generate the index files for the input directory
GenerateIndex(inputDirName);
}

View File

@@ -1,57 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
/**
* liveConnect.js: a simple demonstration of JavaScript-to-Java connectivity
*/
// Create a new StringBuffer. Note that the class name must be fully qualified
// by its package. Packages other than "java" must start with "Packages", i.e.,
// "Packages.javax.servlet...".
var sb = new java.lang.StringBuffer();
// Now add some stuff to the buffer.
sb.append("hi, mom");
sb.append(3); // this will add "3.0" to the buffer since all JS numbers
// are doubles by default
sb.append(true);
// Now print it out. (The toString() method of sb is automatically called
// to convert the buffer to a string.)
// Should print "hi, mom3.0true".
print(sb);

View File

@@ -1,56 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// unique.js: read the contents of a file and print out the unique lines
defineClass("File")
// "arguments[0]" refers to the first argument at the command line to the
// script, if present. If not present, "arguments[0]" will be undefined,
// which will cause f to read from System.in.
var f = new File(arguments[0]);
var o = {}
var line;
while ((line = f.readLine()) != null) {
// Use JavaScript objects' inherent nature as an associative
// array to provide uniqueness
o[line] = true;
}
for (i in o) {
print(i);
}

View File

@@ -1,106 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is Rhino code, released May 6, 1999.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 1997-1999
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- Alternatively, the contents of this file may be used under the terms of
- the GNU General Public License Version 2 or later (the "GPL"), in which
- case the provisions of the GPL are applicable instead of those above. If
- you wish to allow use of your version of this file only under the terms of
- the GPL and not to allow others to use your version of this file under the
- MPL, indicate your decision by deleting the provisions above and replacing
- them with the notice and other provisions required by the GPL. If you do
- not delete the provisions above, a recipient may use your version of this
- file under either the MPL or the GPL.
-
- ***** END LICENSE BLOCK ***** -->
<!--
Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
Requires Ant version 1.2
-->
<project name="src" default="compile" basedir="..">
<property file="build.properties"/>
<available property="jdk15"
classname="java.lang.reflect.ParameterizedType" />
<target name="compile" depends="compile-most,compile-jdk15">
</target>
<target name="shell" depends="compile">
<java classname="org.mozilla.javascript.tools.shell.Main"
classpath="${classes}"
fork="true">
<arg line="-version 170"/>
</java>
</target>
<target name="compile-most">
<javac srcdir="src"
destdir="${classes}"
includes="org/**/*.java"
excludes="org/**/jdk15/*.java"
deprecation="on"
debug="${debug}"
target="${target-jvm}"
source="${source-level}"
>
</javac>
<copy todir="${classes}">
<fileset dir="src" includes="org/**/*.properties" />
<filterset>
<filter token="IMPLEMENTATION.VERSION"
value="${implementation.version}"/>
</filterset>
</copy>
</target>
<target name="compile-jdk15" if="jdk15">
<javac srcdir="src"
destdir="${classes}"
includes="org/**/jdk15/*.java"
deprecation="on"
debug="${debug}"
target="${target-jvm}"
source="${source-level}"
>
</javac>
</target>
<target name="copy-source">
<mkdir dir="${dist.dir}/src"/>
<copy todir="${dist.dir}/src">
<fileset dir="src"
includes="**/*.java,**/*.properties,**/*.xml,manifest"/>
</copy>
</target>
<target name="clean">
<delete includeEmptyDirs="true">
<fileset dir="${classes}"
excludes="org/mozilla/javascript/tools/**"/>
</delete>
</target>
</project>

View File

@@ -1,3 +0,0 @@
Manifest-Version: 1.0
Main-Class: org.mozilla.javascript.tools.shell.Main
Class-Path: xbean.jar

View File

@@ -1,274 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Roger Lawrence
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.classfile;
/**
* This class provides opcode values expected by the JVM in Java class files.
*
* It also provides tables for internal use by the ClassFileWriter.
*
* @author Roger Lawrence
*/
public class ByteCode {
/**
* The byte opcodes defined by the Java Virtual Machine.
*/
public static final int
NOP = 0x00,
ACONST_NULL = 0x01,
ICONST_M1 = 0x02,
ICONST_0 = 0x03,
ICONST_1 = 0x04,
ICONST_2 = 0x05,
ICONST_3 = 0x06,
ICONST_4 = 0x07,
ICONST_5 = 0x08,
LCONST_0 = 0x09,
LCONST_1 = 0x0A,
FCONST_0 = 0x0B,
FCONST_1 = 0x0C,
FCONST_2 = 0x0D,
DCONST_0 = 0x0E,
DCONST_1 = 0x0F,
BIPUSH = 0x10,
SIPUSH = 0x11,
LDC = 0x12,
LDC_W = 0x13,
LDC2_W = 0x14,
ILOAD = 0x15,
LLOAD = 0x16,
FLOAD = 0x17,
DLOAD = 0x18,
ALOAD = 0x19,
ILOAD_0 = 0x1A,
ILOAD_1 = 0x1B,
ILOAD_2 = 0x1C,
ILOAD_3 = 0x1D,
LLOAD_0 = 0x1E,
LLOAD_1 = 0x1F,
LLOAD_2 = 0x20,
LLOAD_3 = 0x21,
FLOAD_0 = 0x22,
FLOAD_1 = 0x23,
FLOAD_2 = 0x24,
FLOAD_3 = 0x25,
DLOAD_0 = 0x26,
DLOAD_1 = 0x27,
DLOAD_2 = 0x28,
DLOAD_3 = 0x29,
ALOAD_0 = 0x2A,
ALOAD_1 = 0x2B,
ALOAD_2 = 0x2C,
ALOAD_3 = 0x2D,
IALOAD = 0x2E,
LALOAD = 0x2F,
FALOAD = 0x30,
DALOAD = 0x31,
AALOAD = 0x32,
BALOAD = 0x33,
CALOAD = 0x34,
SALOAD = 0x35,
ISTORE = 0x36,
LSTORE = 0x37,
FSTORE = 0x38,
DSTORE = 0x39,
ASTORE = 0x3A,
ISTORE_0 = 0x3B,
ISTORE_1 = 0x3C,
ISTORE_2 = 0x3D,
ISTORE_3 = 0x3E,
LSTORE_0 = 0x3F,
LSTORE_1 = 0x40,
LSTORE_2 = 0x41,
LSTORE_3 = 0x42,
FSTORE_0 = 0x43,
FSTORE_1 = 0x44,
FSTORE_2 = 0x45,
FSTORE_3 = 0x46,
DSTORE_0 = 0x47,
DSTORE_1 = 0x48,
DSTORE_2 = 0x49,
DSTORE_3 = 0x4A,
ASTORE_0 = 0x4B,
ASTORE_1 = 0x4C,
ASTORE_2 = 0x4D,
ASTORE_3 = 0x4E,
IASTORE = 0x4F,
LASTORE = 0x50,
FASTORE = 0x51,
DASTORE = 0x52,
AASTORE = 0x53,
BASTORE = 0x54,
CASTORE = 0x55,
SASTORE = 0x56,
POP = 0x57,
POP2 = 0x58,
DUP = 0x59,
DUP_X1 = 0x5A,
DUP_X2 = 0x5B,
DUP2 = 0x5C,
DUP2_X1 = 0x5D,
DUP2_X2 = 0x5E,
SWAP = 0x5F,
IADD = 0x60,
LADD = 0x61,
FADD = 0x62,
DADD = 0x63,
ISUB = 0x64,
LSUB = 0x65,
FSUB = 0x66,
DSUB = 0x67,
IMUL = 0x68,
LMUL = 0x69,
FMUL = 0x6A,
DMUL = 0x6B,
IDIV = 0x6C,
LDIV = 0x6D,
FDIV = 0x6E,
DDIV = 0x6F,
IREM = 0x70,
LREM = 0x71,
FREM = 0x72,
DREM = 0x73,
INEG = 0x74,
LNEG = 0x75,
FNEG = 0x76,
DNEG = 0x77,
ISHL = 0x78,
LSHL = 0x79,
ISHR = 0x7A,
LSHR = 0x7B,
IUSHR = 0x7C,
LUSHR = 0x7D,
IAND = 0x7E,
LAND = 0x7F,
IOR = 0x80,
LOR = 0x81,
IXOR = 0x82,
LXOR = 0x83,
IINC = 0x84,
I2L = 0x85,
I2F = 0x86,
I2D = 0x87,
L2I = 0x88,
L2F = 0x89,
L2D = 0x8A,
F2I = 0x8B,
F2L = 0x8C,
F2D = 0x8D,
D2I = 0x8E,
D2L = 0x8F,
D2F = 0x90,
I2B = 0x91,
I2C = 0x92,
I2S = 0x93,
LCMP = 0x94,
FCMPL = 0x95,
FCMPG = 0x96,
DCMPL = 0x97,
DCMPG = 0x98,
IFEQ = 0x99,
IFNE = 0x9A,
IFLT = 0x9B,
IFGE = 0x9C,
IFGT = 0x9D,
IFLE = 0x9E,
IF_ICMPEQ = 0x9F,
IF_ICMPNE = 0xA0,
IF_ICMPLT = 0xA1,
IF_ICMPGE = 0xA2,
IF_ICMPGT = 0xA3,
IF_ICMPLE = 0xA4,
IF_ACMPEQ = 0xA5,
IF_ACMPNE = 0xA6,
GOTO = 0xA7,
JSR = 0xA8,
RET = 0xA9,
TABLESWITCH = 0xAA,
LOOKUPSWITCH = 0xAB,
IRETURN = 0xAC,
LRETURN = 0xAD,
FRETURN = 0xAE,
DRETURN = 0xAF,
ARETURN = 0xB0,
RETURN = 0xB1,
GETSTATIC = 0xB2,
PUTSTATIC = 0xB3,
GETFIELD = 0xB4,
PUTFIELD = 0xB5,
INVOKEVIRTUAL = 0xB6,
INVOKESPECIAL = 0xB7,
INVOKESTATIC = 0xB8,
INVOKEINTERFACE = 0xB9,
NEW = 0xBB,
NEWARRAY = 0xBC,
ANEWARRAY = 0xBD,
ARRAYLENGTH = 0xBE,
ATHROW = 0xBF,
CHECKCAST = 0xC0,
INSTANCEOF = 0xC1,
MONITORENTER = 0xC2,
MONITOREXIT = 0xC3,
WIDE = 0xC4,
MULTIANEWARRAY = 0xC5,
IFNULL = 0xC6,
IFNONNULL = 0xC7,
GOTO_W = 0xC8,
JSR_W = 0xC9,
BREAKPOINT = 0xCA,
IMPDEP1 = 0xFE,
IMPDEP2 = 0xFF;
/**
* Types for the NEWARRAY opcode.
*/
public static final byte
T_BOOLEAN = 4,
T_CHAR = 5,
T_FLOAT = 6,
T_DOUBLE = 7,
T_BYTE = 8,
T_SHORT = 9,
T_INT = 10,
T_LONG = 11;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,322 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
* This class implements the "arguments" object.
*
* See ECMA 10.1.8
*
* @see org.mozilla.javascript.NativeCall
* @author Norris Boyd
*/
final class Arguments extends IdScriptableObject
{
static final long serialVersionUID = 4275508002492040609L;
public Arguments(NativeCall activation)
{
this.activation = activation;
Scriptable parent = activation.getParentScope();
setParentScope(parent);
setPrototype(ScriptableObject.getObjectPrototype(parent));
args = activation.originalArgs;
lengthObj = Integer.valueOf(args.length);
NativeFunction f = activation.function;
calleeObj = f;
int version = f.getLanguageVersion();
if (version <= Context.VERSION_1_3
&& version != Context.VERSION_DEFAULT)
{
callerObj = null;
} else {
callerObj = NOT_FOUND;
}
}
@Override
public String getClassName()
{
return "Object";
}
@Override
public boolean has(int index, Scriptable start)
{
if (0 <= index && index < args.length) {
if (args[index] != NOT_FOUND) {
return true;
}
}
return super.has(index, start);
}
@Override
public Object get(int index, Scriptable start)
{
if (0 <= index && index < args.length) {
Object value = args[index];
if (value != NOT_FOUND) {
if (sharedWithActivation(index)) {
NativeFunction f = activation.function;
String argName = f.getParamOrVarName(index);
value = activation.get(argName, activation);
if (value == NOT_FOUND) Kit.codeBug();
}
return value;
}
}
return super.get(index, start);
}
private boolean sharedWithActivation(int index)
{
NativeFunction f = activation.function;
int definedCount = f.getParamCount();
if (index < definedCount) {
// Check if argument is not hidden by later argument with the same
// name as hidden arguments are not shared with activation
if (index < definedCount - 1) {
String argName = f.getParamOrVarName(index);
for (int i = index + 1; i < definedCount; i++) {
if (argName.equals(f.getParamOrVarName(i))) {
return false;
}
}
}
return true;
}
return false;
}
@Override
public void put(int index, Scriptable start, Object value)
{
if (0 <= index && index < args.length) {
if (args[index] != NOT_FOUND) {
if (sharedWithActivation(index)) {
String argName;
argName = activation.function.getParamOrVarName(index);
activation.put(argName, activation, value);
return;
}
synchronized (this) {
if (args[index] != NOT_FOUND) {
if (args == activation.originalArgs) {
args = args.clone();
}
args[index] = value;
return;
}
}
}
}
super.put(index, start, value);
}
@Override
public void delete(int index)
{
if (0 <= index && index < args.length) {
synchronized (this) {
if (args[index] != NOT_FOUND) {
if (args == activation.originalArgs) {
args = args.clone();
}
args[index] = NOT_FOUND;
return;
}
}
}
super.delete(index);
}
// #string_id_map#
private static final int
Id_callee = 1,
Id_length = 2,
Id_caller = 3,
MAX_INSTANCE_ID = 3;
@Override
protected int getMaxInstanceId()
{
return MAX_INSTANCE_ID;
}
@Override
protected int findInstanceIdInfo(String s)
{
int id;
// #generated# Last update: 2007-05-09 08:15:04 EDT
L0: { id = 0; String X = null; int c;
if (s.length()==6) {
c=s.charAt(5);
if (c=='e') { X="callee";id=Id_callee; }
else if (c=='h') { X="length";id=Id_length; }
else if (c=='r') { X="caller";id=Id_caller; }
}
if (X!=null && X!=s && !X.equals(s)) id = 0;
break L0;
}
// #/generated#
if (id == 0) return super.findInstanceIdInfo(s);
int attr;
switch (id) {
case Id_callee:
case Id_caller:
case Id_length:
attr = DONTENUM;
break;
default: throw new IllegalStateException();
}
return instanceIdInfo(attr, id);
}
// #/string_id_map#
@Override
protected String getInstanceIdName(int id)
{
switch (id) {
case Id_callee: return "callee";
case Id_length: return "length";
case Id_caller: return "caller";
}
return null;
}
@Override
protected Object getInstanceIdValue(int id)
{
switch (id) {
case Id_callee: return calleeObj;
case Id_length: return lengthObj;
case Id_caller: {
Object value = callerObj;
if (value == UniqueTag.NULL_VALUE) { value = null; }
else if (value == null) {
NativeCall caller = activation.parentActivationCall;
if (caller != null) {
value = caller.get("arguments", caller);
}
}
return value;
}
}
return super.getInstanceIdValue(id);
}
@Override
protected void setInstanceIdValue(int id, Object value)
{
switch (id) {
case Id_callee: calleeObj = value; return;
case Id_length: lengthObj = value; return;
case Id_caller:
callerObj = (value != null) ? value : UniqueTag.NULL_VALUE;
return;
}
super.setInstanceIdValue(id, value);
}
@Override
Object[] getIds(boolean getAll)
{
Object[] ids = super.getIds(getAll);
if (getAll && args.length != 0) {
boolean[] present = null;
int extraCount = args.length;
for (int i = 0; i != ids.length; ++i) {
Object id = ids[i];
if (id instanceof Integer) {
int index = ((Integer)id).intValue();
if (0 <= index && index < args.length) {
if (present == null) {
present = new boolean[args.length];
}
if (!present[index]) {
present[index] = true;
extraCount--;
}
}
}
}
if (extraCount != 0) {
Object[] tmp = new Object[extraCount + ids.length];
System.arraycopy(ids, 0, tmp, extraCount, ids.length);
ids = tmp;
int offset = 0;
for (int i = 0; i != args.length; ++i) {
if (present == null || !present[i]) {
ids[offset] = Integer.valueOf(i);
++offset;
}
}
if (offset != extraCount) Kit.codeBug();
}
}
return ids;
}
// Fields to hold caller, callee and length properties,
// where NOT_FOUND value tags deleted properties.
// In addition if callerObj == NULL_VALUE, it tags null for scripts, as
// initial callerObj == null means access to caller arguments available
// only in JS <= 1.3 scripts
private Object callerObj;
private Object calleeObj;
private Object lengthObj;
private NativeCall activation;
// Initially args holds activation.getOriginalArgs(), but any modification
// of its elements triggers creation of a copy. If its element holds NOT_FOUND,
// it indicates deleted index, in which case super class is queried.
private Object[] args;
}

View File

@@ -1,564 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
* Roger Lawrence
* Mike McCabe
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
* The base class for Function objects
* See ECMA 15.3.
* @author Norris Boyd
*/
public class BaseFunction extends IdScriptableObject implements Function
{
static final long serialVersionUID = 5311394446546053859L;
private static final Object FUNCTION_TAG = "Function";
static void init(Scriptable scope, boolean sealed)
{
BaseFunction obj = new BaseFunction();
// Function.prototype attributes: see ECMA 15.3.3.1
obj.prototypePropertyAttributes = DONTENUM | READONLY | PERMANENT;
obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed);
}
public BaseFunction()
{
}
public BaseFunction(Scriptable scope, Scriptable prototype)
{
super(scope, prototype);
}
@Override
public String getClassName() {
return "Function";
}
/**
* Implements the instanceof operator for JavaScript Function objects.
* <p>
* <code>
* foo = new Foo();<br>
* foo instanceof Foo; // true<br>
* </code>
*
* @param instance The value that appeared on the LHS of the instanceof
* operator
* @return true if the "prototype" property of "this" appears in
* value's prototype chain
*
*/
@Override
public boolean hasInstance(Scriptable instance)
{
Object protoProp = ScriptableObject.getProperty(this, "prototype");
if (protoProp instanceof Scriptable) {
return ScriptRuntime.jsDelegatesTo(instance, (Scriptable)protoProp);
}
throw ScriptRuntime.typeError1("msg.instanceof.bad.prototype",
getFunctionName());
}
// #string_id_map#
private static final int
Id_length = 1,
Id_arity = 2,
Id_name = 3,
Id_prototype = 4,
Id_arguments = 5,
MAX_INSTANCE_ID = 5;
@Override
protected int getMaxInstanceId()
{
return MAX_INSTANCE_ID;
}
@Override
protected int findInstanceIdInfo(String s)
{
int id;
// #generated# Last update: 2007-05-09 08:15:15 EDT
L0: { id = 0; String X = null; int c;
L: switch (s.length()) {
case 4: X="name";id=Id_name; break L;
case 5: X="arity";id=Id_arity; break L;
case 6: X="length";id=Id_length; break L;
case 9: c=s.charAt(0);
if (c=='a') { X="arguments";id=Id_arguments; }
else if (c=='p') { X="prototype";id=Id_prototype; }
break L;
}
if (X!=null && X!=s && !X.equals(s)) id = 0;
break L0;
}
// #/generated#
// #/string_id_map#
if (id == 0) return super.findInstanceIdInfo(s);
int attr;
switch (id) {
case Id_length:
case Id_arity:
case Id_name:
attr = DONTENUM | READONLY | PERMANENT;
break;
case Id_prototype:
attr = prototypePropertyAttributes;
break;
case Id_arguments:
attr = DONTENUM | PERMANENT;
break;
default: throw new IllegalStateException();
}
return instanceIdInfo(attr, id);
}
@Override
protected String getInstanceIdName(int id)
{
switch (id) {
case Id_length: return "length";
case Id_arity: return "arity";
case Id_name: return "name";
case Id_prototype: return "prototype";
case Id_arguments: return "arguments";
}
return super.getInstanceIdName(id);
}
@Override
protected Object getInstanceIdValue(int id)
{
switch (id) {
case Id_length: return ScriptRuntime.wrapInt(getLength());
case Id_arity: return ScriptRuntime.wrapInt(getArity());
case Id_name: return getFunctionName();
case Id_prototype: return getPrototypeProperty();
case Id_arguments: return getArguments();
}
return super.getInstanceIdValue(id);
}
@Override
protected void setInstanceIdValue(int id, Object value)
{
if (id == Id_prototype) {
if ((prototypePropertyAttributes & READONLY) == 0) {
prototypeProperty = (value != null)
? value : UniqueTag.NULL_VALUE;
}
return;
} else if (id == Id_arguments) {
if (value == NOT_FOUND) {
// This should not be called since "arguments" is PERMANENT
Kit.codeBug();
}
defaultPut("arguments", value);
}
super.setInstanceIdValue(id, value);
}
@Override
protected void fillConstructorProperties(IdFunctionObject ctor)
{
// Fix up bootstrapping problem: getPrototype of the IdFunctionObject
// can not return Function.prototype because Function object is not
// yet defined.
ctor.setPrototype(this);
super.fillConstructorProperties(ctor);
}
@Override
protected void initPrototypeId(int id)
{
String s;
int arity;
switch (id) {
case Id_constructor: arity=1; s="constructor"; break;
case Id_toString: arity=1; s="toString"; break;
case Id_toSource: arity=1; s="toSource"; break;
case Id_apply: arity=2; s="apply"; break;
case Id_call: arity=1; s="call"; break;
default: throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(FUNCTION_TAG, id, s, arity);
}
static boolean isApply(IdFunctionObject f) {
return f.hasTag(FUNCTION_TAG) && f.methodId() == Id_apply;
}
static boolean isApplyOrCall(IdFunctionObject f) {
if(f.hasTag(FUNCTION_TAG)) {
switch(f.methodId()) {
case Id_apply:
case Id_call:
return true;
}
}
return false;
}
@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (!f.hasTag(FUNCTION_TAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
switch (id) {
case Id_constructor:
return jsConstructor(cx, scope, args);
case Id_toString: {
BaseFunction realf = realFunction(thisObj, f);
int indent = ScriptRuntime.toInt32(args, 0);
return realf.decompile(indent, 0);
}
case Id_toSource: {
BaseFunction realf = realFunction(thisObj, f);
int indent = 0;
int flags = Decompiler.TO_SOURCE_FLAG;
if (args.length != 0) {
indent = ScriptRuntime.toInt32(args[0]);
if (indent >= 0) {
flags = 0;
} else {
indent = 0;
}
}
return realf.decompile(indent, flags);
}
case Id_apply:
case Id_call:
return ScriptRuntime.applyOrCall(id == Id_apply,
cx, scope, thisObj, args);
}
throw new IllegalArgumentException(String.valueOf(id));
}
private BaseFunction realFunction(Scriptable thisObj, IdFunctionObject f)
{
Object x = thisObj.getDefaultValue(ScriptRuntime.FunctionClass);
if (x instanceof BaseFunction) {
return (BaseFunction)x;
}
throw ScriptRuntime.typeError1("msg.incompat.call",
f.getFunctionName());
}
/**
* Make value as DontEnum, DontDelete, ReadOnly
* prototype property of this Function object
*/
public void setImmunePrototypeProperty(Object value)
{
if ((prototypePropertyAttributes & READONLY) != 0) {
throw new IllegalStateException();
}
prototypeProperty = (value != null) ? value : UniqueTag.NULL_VALUE;
prototypePropertyAttributes = DONTENUM | PERMANENT | READONLY;
}
protected Scriptable getClassPrototype()
{
Object protoVal = getPrototypeProperty();
if (protoVal instanceof Scriptable) {
return (Scriptable) protoVal;
}
return getClassPrototype(this, "Object");
}
/**
* Should be overridden.
*/
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
{
return Undefined.instance;
}
public Scriptable construct(Context cx, Scriptable scope, Object[] args)
{
Scriptable result = createObject(cx, scope);
if (result != null) {
Object val = call(cx, scope, result, args);
if (val instanceof Scriptable) {
result = (Scriptable)val;
}
} else {
Object val = call(cx, scope, null, args);
if (!(val instanceof Scriptable)) {
// It is program error not to return Scriptable from
// the call method if createObject returns null.
throw new IllegalStateException(
"Bad implementaion of call as constructor, name="
+getFunctionName()+" in "+getClass().getName());
}
result = (Scriptable)val;
if (result.getPrototype() == null) {
result.setPrototype(getClassPrototype());
}
if (result.getParentScope() == null) {
Scriptable parent = getParentScope();
if (result != parent) {
result.setParentScope(parent);
}
}
}
return result;
}
/**
* Creates new script object.
* The default implementation of {@link #construct} uses the method to
* to get the value for <tt>thisObj</tt> argument when invoking
* {@link #call}.
* The methos is allowed to return <tt>null</tt> to indicate that
* {@link #call} will create a new object itself. In this case
* {@link #construct} will set scope and prototype on the result
* {@link #call} unless they are already set.
*/
public Scriptable createObject(Context cx, Scriptable scope)
{
Scriptable newInstance = new NativeObject();
newInstance.setPrototype(getClassPrototype());
newInstance.setParentScope(getParentScope());
return newInstance;
}
/**
* Decompile the source information associated with this js
* function/script back into a string.
*
* @param indent How much to indent the decompiled result.
*
* @param flags Flags specifying format of decompilation output.
*/
String decompile(int indent, int flags)
{
StringBuffer sb = new StringBuffer();
boolean justbody = (0 != (flags & Decompiler.ONLY_BODY_FLAG));
if (!justbody) {
sb.append("function ");
sb.append(getFunctionName());
sb.append("() {\n\t");
}
sb.append("[native code, arity=");
sb.append(getArity());
sb.append("]\n");
if (!justbody) {
sb.append("}\n");
}
return sb.toString();
}
public int getArity() { return 0; }
public int getLength() { return 0; }
public String getFunctionName()
{
return "";
}
final Object getPrototypeProperty() {
Object result = prototypeProperty;
if (result == null) {
synchronized (this) {
result = prototypeProperty;
if (result == null) {
setupDefaultPrototype();
result = prototypeProperty;
}
}
}
else if (result == UniqueTag.NULL_VALUE) { result = null; }
return result;
}
private void setupDefaultPrototype()
{
NativeObject obj = new NativeObject();
final int attr = ScriptableObject.DONTENUM;
obj.defineProperty("constructor", this, attr);
// put the prototype property into the object now, then in the
// wacky case of a user defining a function Object(), we don't
// get an infinite loop trying to find the prototype.
prototypeProperty = obj;
Scriptable proto = getObjectPrototype(this);
if (proto != obj) {
// not the one we just made, it must remain grounded
obj.setPrototype(proto);
}
}
private Object getArguments()
{
// <Function name>.arguments is deprecated, so we use a slow
// way of getting it that doesn't add to the invocation cost.
// TODO: add warning, error based on version
Object value = defaultGet("arguments");
if (value != NOT_FOUND) {
// Should after changing <Function name>.arguments its
// activation still be available during Function call?
// This code assumes it should not:
// defaultGet("arguments") != NOT_FOUND
// means assigned arguments
return value;
}
Context cx = Context.getContext();
NativeCall activation = ScriptRuntime.findFunctionActivation(cx, this);
return (activation == null)
? null
: activation.get("arguments", activation);
}
private static Object jsConstructor(Context cx, Scriptable scope,
Object[] args)
{
int arglen = args.length;
StringBuffer sourceBuf = new StringBuffer();
sourceBuf.append("function ");
/* version != 1.2 Function constructor behavior -
* print 'anonymous' as the function name if the
* version (under which the function was compiled) is
* less than 1.2... or if it's greater than 1.2, because
* we need to be closer to ECMA.
*/
if (cx.getLanguageVersion() != Context.VERSION_1_2) {
sourceBuf.append("anonymous");
}
sourceBuf.append('(');
// Append arguments as coma separated strings
for (int i = 0; i < arglen - 1; i++) {
if (i > 0) {
sourceBuf.append(',');
}
sourceBuf.append(ScriptRuntime.toString(args[i]));
}
sourceBuf.append(") {");
if (arglen != 0) {
// append function body
String funBody = ScriptRuntime.toString(args[arglen - 1]);
sourceBuf.append(funBody);
}
sourceBuf.append('}');
String source = sourceBuf.toString();
int[] linep = new int[1];
String filename = Context.getSourcePositionFromStack(linep);
if (filename == null) {
filename = "<eval'ed string>";
linep[0] = 1;
}
String sourceURI = ScriptRuntime.
makeUrlForGeneratedScript(false, filename, linep[0]);
Scriptable global = ScriptableObject.getTopLevelScope(scope);
ErrorReporter reporter;
reporter = DefaultErrorReporter.forEval(cx.getErrorReporter());
Evaluator evaluator = Context.createInterpreter();
if (evaluator == null) {
throw new JavaScriptException("Interpreter not present",
filename, linep[0]);
}
// Compile with explicit interpreter instance to force interpreter
// mode.
return cx.compileFunction(global, source, evaluator, reporter,
sourceURI, 1, null);
}
@Override
protected int findPrototypeId(String s)
{
int id;
// #string_id_map#
// #generated# Last update: 2007-05-09 08:15:15 EDT
L0: { id = 0; String X = null; int c;
L: switch (s.length()) {
case 4: X="call";id=Id_call; break L;
case 5: X="apply";id=Id_apply; break L;
case 8: c=s.charAt(3);
if (c=='o') { X="toSource";id=Id_toSource; }
else if (c=='t') { X="toString";id=Id_toString; }
break L;
case 11: X="constructor";id=Id_constructor; break L;
}
if (X!=null && X!=s && !X.equals(s)) id = 0;
break L0;
}
// #/generated#
return id;
}
private static final int
Id_constructor = 1,
Id_toString = 2,
Id_toSource = 3,
Id_apply = 4,
Id_call = 5,
MAX_PROTOTYPE_ID = 5;
// #/string_id_map#
private Object prototypeProperty;
// For function object instances, attribute is PERMANENT; see ECMA 15.3.5.2
private int prototypePropertyAttributes = PERMANENT;
}

View File

@@ -1,59 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov, igor@fastmail.fm
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
* Generic notion of callable object that can execute some script-related code
* upon request with specified values for script scope and this objects.
*/
public interface Callable
{
/**
* Perform the call.
*
* @param cx the current Context for this thread
* @param scope the scope to use to resolve properties.
* @param thisObj the JavaScript <code>this</code> object
* @param args the array of arguments
* @return the result of the call
*/
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args);
}

View File

@@ -1,223 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov, igor@fastmail.fm
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
/**
* Cache of generated classes and data structures to access Java runtime
* from JavaScript.
*
* @author Igor Bukanov
*
* @since Rhino 1.5 Release 5
*/
public class ClassCache implements Serializable
{
private static final long serialVersionUID = -8866246036237312215L;
private static final Object AKEY = "ClassCache";
private volatile boolean cachingIsEnabled = true;
private transient HashMap<Class<?>,JavaMembers> classTable;
private transient HashMap<JavaAdapter.JavaAdapterSignature,Class<?>> classAdapterCache;
private transient HashMap<Class<?>,Object> interfaceAdapterCache;
private int generatedClassSerial;
/**
* Search for ClassCache object in the given scope.
* The method first calls
* {@link ScriptableObject#getTopLevelScope(Scriptable scope)}
* to get the top most scope and then tries to locate associated
* ClassCache object in the prototype chain of the top scope.
*
* @param scope scope to search for ClassCache object.
* @return previously associated ClassCache object or a new instance of
* ClassCache if no ClassCache object was found.
*
* @see #associate(ScriptableObject topScope)
*/
public static ClassCache get(Scriptable scope)
{
ClassCache cache = (ClassCache)
ScriptableObject.getTopScopeValue(scope, AKEY);
if (cache == null) {
throw new RuntimeException("Can't find top level scope for " +
"ClassCache.get");
}
return cache;
}
/**
* Associate ClassCache object with the given top-level scope.
* The ClassCache object can only be associated with the given scope once.
*
* @param topScope scope to associate this ClassCache object with.
* @return true if no previous ClassCache objects were embedded into
* the scope and this ClassCache were successfully associated
* or false otherwise.
*
* @see #get(Scriptable scope)
*/
public boolean associate(ScriptableObject topScope)
{
if (topScope.getParentScope() != null) {
// Can only associate cache with top level scope
throw new IllegalArgumentException();
}
if (this == topScope.associateValue(AKEY, this)) {
return true;
}
return false;
}
/**
* Empty caches of generated Java classes and Java reflection information.
*/
public synchronized void clearCaches()
{
classTable = null;
classAdapterCache = null;
interfaceAdapterCache = null;
}
/**
* Check if generated Java classes and Java reflection information
* is cached.
*/
public final boolean isCachingEnabled()
{
return cachingIsEnabled;
}
/**
* Set whether to cache some values.
* <p>
* By default, the engine will cache the results of
* <tt>Class.getMethods()</tt> and similar calls.
* This can speed execution dramatically, but increases the memory
* footprint. Also, with caching enabled, references may be held to
* objects past the lifetime of any real usage.
* <p>
* If caching is enabled and this method is called with a
* <code>false</code> argument, the caches will be emptied.
* <p>
* Caching is enabled by default.
*
* @param enabled if true, caching is enabled
*
* @see #clearCaches()
*/
public synchronized void setCachingEnabled(boolean enabled)
{
if (enabled == cachingIsEnabled)
return;
if (!enabled)
clearCaches();
cachingIsEnabled = enabled;
}
/**
* @return a map from classes to associated JavaMembers objects
*/
Map<Class<?>,JavaMembers> getClassCacheMap() {
if (classTable == null) {
classTable = new HashMap<Class<?>,JavaMembers>();
}
return classTable;
}
Map<JavaAdapter.JavaAdapterSignature,Class<?>> getInterfaceAdapterCacheMap()
{
if (classAdapterCache == null) {
classAdapterCache = new HashMap<JavaAdapter.JavaAdapterSignature,Class<?>>();
}
return classAdapterCache;
}
/**
* @deprecated
* The method always returns false.
* @see #setInvokerOptimizationEnabled(boolean enabled)
*/
public boolean isInvokerOptimizationEnabled()
{
return false;
}
/**
* @deprecated
* The method does nothing.
* Invoker optimization is no longer used by Rhino.
* On modern JDK like 1.4 or 1.5 the disadvantages of the optimization
* like increased memory usage or longer initialization time overweight
* small speed increase that can be gained using generated proxy class
* to replace reflection.
*/
public synchronized void setInvokerOptimizationEnabled(boolean enabled)
{
}
/**
* Internal engine method to return serial number for generated classes
* to ensure name uniqueness.
*/
public final synchronized int newClassSerialNumber()
{
return ++generatedClassSerial;
}
Object getInterfaceAdapter(Class<?> cl)
{
return interfaceAdapterCache == null
? null
: interfaceAdapterCache.get(cl);
}
synchronized void cacheInterfaceAdapter(Class<?> cl, Object iadapter)
{
if (cachingIsEnabled) {
if (interfaceAdapterCache == null) {
interfaceAdapterCache = new HashMap<Class<?>,Object>();
}
interfaceAdapterCache.put(cl, iadapter);
}
}
}

View File

@@ -1,89 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
Embeddings that wish to filter Java classes that are visible to scripts
through the LiveConnect, should implement this interface.
@see Context#setClassShutter(ClassShutter)
@since 1.5 Release 4
@author Norris Boyd
*/
public interface ClassShutter {
/**
* Return true iff the Java class with the given name should be exposed
* to scripts.
* <p>
* An embedding may filter which Java classes are exposed through
* LiveConnect to JavaScript scripts.
* <p>
* Due to the fact that there is no package reflection in Java,
* this method will also be called with package names. There
* is no way for Rhino to tell if "Packages.a.b" is a package name
* or a class that doesn't exist. What Rhino does is attempt
* to load each segment of "Packages.a.b.c": It first attempts to
* load class "a", then attempts to load class "a.b", then
* finally attempts to load class "a.b.c". On a Rhino installation
* without any ClassShutter set, and without any of the
* above classes, the expression "Packages.a.b.c" will result in
* a [JavaPackage a.b.c] and not an error.
* <p>
* With ClassShutter supplied, Rhino will first call
* visibleToScripts before attempting to look up the class name. If
* visibleToScripts returns false, the class name lookup is not
* performed and subsequent Rhino execution assumes the class is
* not present. So for "java.lang.System.out.println" the lookup
* of "java.lang.System" is skipped and thus Rhino assumes that
* "java.lang.System" doesn't exist. So then for "java.lang.System.out",
* Rhino attempts to load the class "java.lang.System.out" because
* it assumes that "java.lang.System" is a package name.
* <p>
* @param fullClassName the full name of the class (including the package
* name, with '.' as a delimiter). For example the
* standard string class is "java.lang.String"
* @return whether or not to reveal this class to scripts
*/
public boolean visibleToScripts(String fullClassName);
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,328 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov, igor@fastmail.fm
* Bob Jervis
* Steve Yegge
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.util.Set;
import org.mozilla.javascript.ast.ErrorCollector;
public class CompilerEnvirons
{
public CompilerEnvirons()
{
errorReporter = DefaultErrorReporter.instance;
languageVersion = Context.VERSION_DEFAULT;
generateDebugInfo = true;
useDynamicScope = false;
reservedKeywordAsIdentifier = false;
allowMemberExprAsFunctionName = false;
xmlAvailable = true;
optimizationLevel = 0;
generatingSource = true;
strictMode = false;
warningAsError = false;
generateObserverCount = false;
allowSharpComments = false;
}
public void initFromContext(Context cx)
{
setErrorReporter(cx.getErrorReporter());
this.languageVersion = cx.getLanguageVersion();
useDynamicScope = cx.compileFunctionsWithDynamicScopeFlag;
generateDebugInfo = (!cx.isGeneratingDebugChanged()
|| cx.isGeneratingDebug());
reservedKeywordAsIdentifier
= cx.hasFeature(Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER);
allowMemberExprAsFunctionName
= cx.hasFeature(Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME);
strictMode
= cx.hasFeature(Context.FEATURE_STRICT_MODE);
warningAsError = cx.hasFeature(Context.FEATURE_WARNING_AS_ERROR);
xmlAvailable
= cx.hasFeature(Context.FEATURE_E4X);
optimizationLevel = cx.getOptimizationLevel();
generatingSource = cx.isGeneratingSource();
activationNames = cx.activationNames;
// Observer code generation in compiled code :
generateObserverCount = cx.generateObserverCount;
}
public final ErrorReporter getErrorReporter()
{
return errorReporter;
}
public void setErrorReporter(ErrorReporter errorReporter)
{
if (errorReporter == null) throw new IllegalArgumentException();
this.errorReporter = errorReporter;
}
public final int getLanguageVersion()
{
return languageVersion;
}
public void setLanguageVersion(int languageVersion)
{
Context.checkLanguageVersion(languageVersion);
this.languageVersion = languageVersion;
}
public final boolean isGenerateDebugInfo()
{
return generateDebugInfo;
}
public void setGenerateDebugInfo(boolean flag)
{
this.generateDebugInfo = flag;
}
public final boolean isUseDynamicScope()
{
return useDynamicScope;
}
public final boolean isReservedKeywordAsIdentifier()
{
return reservedKeywordAsIdentifier;
}
public void setReservedKeywordAsIdentifier(boolean flag)
{
reservedKeywordAsIdentifier = flag;
}
/**
* Extension to ECMA: if 'function &lt;name&gt;' is not followed
* by '(', assume &lt;name&gt; starts a {@code memberExpr}
*/
public final boolean isAllowMemberExprAsFunctionName()
{
return allowMemberExprAsFunctionName;
}
public void setAllowMemberExprAsFunctionName(boolean flag)
{
allowMemberExprAsFunctionName = flag;
}
public final boolean isXmlAvailable()
{
return xmlAvailable;
}
public void setXmlAvailable(boolean flag)
{
xmlAvailable = flag;
}
public final int getOptimizationLevel()
{
return optimizationLevel;
}
public void setOptimizationLevel(int level)
{
Context.checkOptimizationLevel(level);
this.optimizationLevel = level;
}
public final boolean isGeneratingSource()
{
return generatingSource;
}
public boolean getWarnTrailingComma() {
return warnTrailingComma;
}
public void setWarnTrailingComma(boolean warn) {
warnTrailingComma = warn;
}
public final boolean isStrictMode()
{
return strictMode;
}
public void setStrictMode(boolean strict)
{
strictMode = strict;
}
public final boolean reportWarningAsError()
{
return warningAsError;
}
/**
* Specify whether or not source information should be generated.
* <p>
* Without source information, evaluating the "toString" method
* on JavaScript functions produces only "[native code]" for
* the body of the function.
* Note that code generated without source is not fully ECMA
* conformant.
*/
public void setGeneratingSource(boolean generatingSource)
{
this.generatingSource = generatingSource;
}
/**
* @return true iff code will be generated with callbacks to enable
* instruction thresholds
*/
public boolean isGenerateObserverCount() {
return generateObserverCount;
}
/**
* Turn on or off generation of code with callbacks to
* track the count of executed instructions.
* Currently only affects JVM byte code generation: this slows down the
* generated code, but code generated without the callbacks will not
* be counted toward instruction thresholds. Rhino's interpretive
* mode does instruction counting without inserting callbacks, so
* there is no requirement to compile code differently.
* @param generateObserverCount if true, generated code will contain
* calls to accumulate an estimate of the instructions executed.
*/
public void setGenerateObserverCount(boolean generateObserverCount) {
this.generateObserverCount = generateObserverCount;
}
public boolean isRecordingComments() {
return recordingComments;
}
public void setRecordingComments(boolean record) {
recordingComments = record;
}
/**
* Turn on or off full error recovery. In this mode, parse errors do not
* throw an exception, and the parser attempts to build a full syntax tree
* from the input. Useful for IDEs and other frontends.
*/
public void setRecoverFromErrors(boolean recover) {
recoverFromErrors = recover;
}
public boolean recoverFromErrors() {
return recoverFromErrors;
}
/**
* Puts the parser in "IDE" mode. This enables some slightly more expensive
* computations, such as figuring out helpful error bounds.
*/
public void setIdeMode(boolean ide) {
ideMode = ide;
}
public boolean isIdeMode() {
return ideMode;
}
public Set<String> getActivationNames() {
return activationNames;
}
public void setActivationNames(Set<String> activationNames) {
this.activationNames = activationNames;
}
/**
* Mozilla sources use the C preprocessor.
*/
public void setAllowSharpComments(boolean allow) {
allowSharpComments = allow;
}
public boolean getAllowSharpComments() {
return allowSharpComments;
}
/**
* Returns a {@code CompilerEnvirons} suitable for using Rhino
* in an IDE environment. Most features are enabled by default.
* The {@link ErrorReporter} is set to an {@link ErrorCollector}.
*/
public static CompilerEnvirons ideEnvirons() {
CompilerEnvirons env = new CompilerEnvirons();
env.setRecoverFromErrors(true);
env.setRecordingComments(true);
env.setStrictMode(true);
env.setWarnTrailingComma(true);
env.setLanguageVersion(170);
env.setReservedKeywordAsIdentifier(true);
env.setIdeMode(true);
env.setErrorReporter(new ErrorCollector());
return env;
}
private ErrorReporter errorReporter;
private int languageVersion;
private boolean generateDebugInfo;
private boolean useDynamicScope;
private boolean reservedKeywordAsIdentifier;
private boolean allowMemberExprAsFunctionName;
private boolean xmlAvailable;
private int optimizationLevel;
private boolean generatingSource;
private boolean strictMode;
private boolean warningAsError;
private boolean generateObserverCount;
private boolean recordingComments;
private boolean recoverFromErrors;
private boolean warnTrailingComma;
private boolean ideMode;
private boolean allowSharpComments;
Set<String> activationNames;
}

View File

@@ -1,109 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Bob Jervis
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
public interface ConstProperties {
/**
* Sets a named const property in this object.
* <p>
* The property is specified by a string name
* as defined for <code>Scriptable.get</code>.
* <p>
* The possible values that may be passed in are as defined for
* <code>Scriptable.get</code>. A class that implements this method may choose
* to ignore calls to set certain properties, in which case those
* properties are effectively read-only.<p>
* For properties defined in a prototype chain,
* use <code>putProperty</code> in ScriptableObject. <p>
* Note that if a property <i>a</i> is defined in the prototype <i>p</i>
* of an object <i>o</i>, then evaluating <code>o.a = 23</code> will cause
* <code>set</code> to be called on the prototype <i>p</i> with
* <i>o</i> as the <i>start</i> parameter.
* To preserve JavaScript semantics, it is the Scriptable
* object's responsibility to modify <i>o</i>. <p>
* This design allows properties to be defined in prototypes and implemented
* in terms of getters and setters of Java values without consuming slots
* in each instance.<p>
* <p>
* The values that may be set are limited to the following:
* <UL>
* <LI>java.lang.Boolean objects</LI>
* <LI>java.lang.String objects</LI>
* <LI>java.lang.Number objects</LI>
* <LI>org.mozilla.javascript.Scriptable objects</LI>
* <LI>null</LI>
* <LI>The value returned by Context.getUndefinedValue()</LI>
* </UL><p>
* Arbitrary Java objects may be wrapped in a Scriptable by first calling
* <code>Context.toObject</code>. This allows the property of a JavaScript
* object to contain an arbitrary Java object as a value.<p>
* Note that <code>has</code> will be called by the runtime first before
* <code>set</code> is called to determine in which object the
* property is defined.
* Note that this method is not expected to traverse the prototype chain,
* which is different from the ECMA [[Put]] operation.
* @param name the name of the property
* @param start the object whose property is being set
* @param value value to set the property to
* @see org.mozilla.javascript.Scriptable#has(String, Scriptable)
* @see org.mozilla.javascript.Scriptable#get(String, Scriptable)
* @see org.mozilla.javascript.ScriptableObject#putProperty(Scriptable, String, Object)
* @see org.mozilla.javascript.Context#toObject(Object, Scriptable)
*/
public void putConst(String name, Scriptable start, Object value);
/**
* Reserves a definition spot for a const. This will set up a definition
* of the const property, but set its value to undefined. The semantics of
* the start parameter is the same as for putConst.
* @param name The name of the property.
* @param start The object whose property is being reserved.
*/
public void defineConst(String name, Scriptable start);
/**
* Returns true if the named property is defined as a const on this object.
* @param name
* @return true if the named property is defined as a const, false
* otherwise.
*/
public boolean isConst(String name);
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,58 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov, igor@fastmail.fm
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* Interface to represent arbitrary action that requires to have Context
* object associated with the current thread for its execution.
*/
public interface ContextAction
{
/**
* Execute action using the supplied Context instance.
* When Rhino runtime calls the method, <tt>cx</tt> will be associated
* with the current thread as active context.
*
* @see ContextFactory#call(ContextAction)
*/
public Object run(Context cx);
}

View File

@@ -1,597 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov, igor@fastmail.fm
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
import java.security.AccessController;
import java.security.PrivilegedAction;
/**
* Factory class that Rhino runtime uses to create new {@link Context}
* instances. A <code>ContextFactory</code> can also notify listeners
* about context creation and release.
* <p>
* When the Rhino runtime needs to create new {@link Context} instance during
* execution of {@link Context#enter()} or {@link Context}, it will call
* {@link #makeContext()} of the current global ContextFactory.
* See {@link #getGlobal()} and {@link #initGlobal(ContextFactory)}.
* <p>
* It is also possible to use explicit ContextFactory instances for Context
* creation. This is useful to have a set of independent Rhino runtime
* instances under single JVM. See {@link #call(ContextAction)}.
* <p>
* The following example demonstrates Context customization to terminate
* scripts running more then 10 seconds and to provide better compatibility
* with JavaScript code using MSIE-specific features.
* <pre>
* import org.mozilla.javascript.*;
*
* class MyFactory extends ContextFactory
* {
*
* // Custom {@link Context} to store execution time.
* private static class MyContext extends Context
* {
* long startTime;
* }
*
* static {
* // Initialize GlobalFactory with custom factory
* ContextFactory.initGlobal(new MyFactory());
* }
*
* // Override {@link #makeContext()}
* protected Context makeContext()
* {
* MyContext cx = new MyContext();
* // Make Rhino runtime to call observeInstructionCount
* // each 10000 bytecode instructions
* cx.setInstructionObserverThreshold(10000);
* return cx;
* }
*
* // Override {@link #hasFeature(Context, int)}
* public boolean hasFeature(Context cx, int featureIndex)
* {
* // Turn on maximum compatibility with MSIE scripts
* switch (featureIndex) {
* case {@link Context#FEATURE_NON_ECMA_GET_YEAR}:
* return true;
*
* case {@link Context#FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME}:
* return true;
*
* case {@link Context#FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER}:
* return true;
*
* case {@link Context#FEATURE_PARENT_PROTO_PROPERTIES}:
* return false;
* }
* return super.hasFeature(cx, featureIndex);
* }
*
* // Override {@link #observeInstructionCount(Context, int)}
* protected void observeInstructionCount(Context cx, int instructionCount)
* {
* MyContext mcx = (MyContext)cx;
* long currentTime = System.currentTimeMillis();
* if (currentTime - mcx.startTime > 10*1000) {
* // More then 10 seconds from Context creation time:
* // it is time to stop the script.
* // Throw Error instance to ensure that script will never
* // get control back through catch or finally.
* throw new Error();
* }
* }
*
* // Override {@link #doTopCall(Callable,
Context, Scriptable,
Scriptable, Object[])}
* protected Object doTopCall(Callable callable,
* Context cx, Scriptable scope,
* Scriptable thisObj, Object[] args)
* {
* MyContext mcx = (MyContext)cx;
* mcx.startTime = System.currentTimeMillis();
*
* return super.doTopCall(callable, cx, scope, thisObj, args);
* }
*
* }
*
* </pre>
*/
public class ContextFactory
{
private static volatile boolean hasCustomGlobal;
private static ContextFactory global = new ContextFactory();
private volatile boolean sealed;
private final Object listenersLock = new Object();
private volatile Object listeners;
private boolean disabledListening;
private ClassLoader applicationClassLoader;
/**
* Listener of {@link Context} creation and release events.
*/
public interface Listener
{
/**
* Notify about newly created {@link Context} object.
*/
public void contextCreated(Context cx);
/**
* Notify that the specified {@link Context} instance is no longer
* associated with the current thread.
*/
public void contextReleased(Context cx);
}
/**
* Get global ContextFactory.
*
* @see #hasExplicitGlobal()
* @see #initGlobal(ContextFactory)
*/
public static ContextFactory getGlobal()
{
return global;
}
/**
* Check if global factory was set.
* Return true to indicate that {@link #initGlobal(ContextFactory)} was
* already called and false to indicate that the global factory was not
* explicitly set.
*
* @see #getGlobal()
* @see #initGlobal(ContextFactory)
*/
public static boolean hasExplicitGlobal()
{
return hasCustomGlobal;
}
/**
* Set global ContextFactory.
* The method can only be called once.
*
* @see #getGlobal()
* @see #hasExplicitGlobal()
*/
public synchronized static void initGlobal(ContextFactory factory)
{
if (factory == null) {
throw new IllegalArgumentException();
}
if (hasCustomGlobal) {
throw new IllegalStateException();
}
hasCustomGlobal = true;
global = factory;
}
/**
* Create new {@link Context} instance to be associated with the current
* thread.
* This is a callback method used by Rhino to create {@link Context}
* instance when it is necessary to associate one with the current
* execution thread. <tt>makeContext()</tt> is allowed to call
* {@link Context#seal(Object)} on the result to prevent
* {@link Context} changes by hostile scripts or applets.
*/
protected Context makeContext()
{
return new Context(this);
}
/**
* Implementation of {@link Context#hasFeature(int featureIndex)}.
* This can be used to customize {@link Context} without introducing
* additional subclasses.
*/
protected boolean hasFeature(Context cx, int featureIndex)
{
int version;
switch (featureIndex) {
case Context.FEATURE_NON_ECMA_GET_YEAR:
/*
* During the great date rewrite of 1.3, we tried to track the
* evolving ECMA standard, which then had a definition of
* getYear which always subtracted 1900. Which we
* implemented, not realizing that it was incompatible with
* the old behavior... now, rather than thrash the behavior
* yet again, we've decided to leave it with the - 1900
* behavior and point people to the getFullYear method. But
* we try to protect existing scripts that have specified a
* version...
*/
version = cx.getLanguageVersion();
return (version == Context.VERSION_1_0
|| version == Context.VERSION_1_1
|| version == Context.VERSION_1_2);
case Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME:
return false;
case Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER:
return false;
case Context.FEATURE_TO_STRING_AS_SOURCE:
version = cx.getLanguageVersion();
return version == Context.VERSION_1_2;
case Context.FEATURE_PARENT_PROTO_PROPERTIES:
return true;
case Context.FEATURE_E4X:
version = cx.getLanguageVersion();
return (version == Context.VERSION_DEFAULT
|| version >= Context.VERSION_1_6);
case Context.FEATURE_DYNAMIC_SCOPE:
return false;
case Context.FEATURE_STRICT_VARS:
return false;
case Context.FEATURE_STRICT_EVAL:
return false;
case Context.FEATURE_LOCATION_INFORMATION_IN_ERROR:
return false;
case Context.FEATURE_STRICT_MODE:
return false;
case Context.FEATURE_WARNING_AS_ERROR:
return false;
case Context.FEATURE_ENHANCED_JAVA_ACCESS:
return false;
}
// It is a bug to call the method with unknown featureIndex
throw new IllegalArgumentException(String.valueOf(featureIndex));
}
private boolean isDom3Present() {
Class<?> nodeClass = Kit.classOrNull("org.w3c.dom.Node");
if (nodeClass == null) return false;
// Check to see whether DOM3 is present; use a new method defined in
// DOM3 that is vital to our implementation
try {
nodeClass.getMethod("getUserData", new Class<?>[] { String.class });
return true;
} catch (NoSuchMethodException e) {
return false;
}
}
/**
* Provides a default
* {@link org.mozilla.javascript.xml.XMLLib.Factory XMLLib.Factory}
* to be used by the <code>Context</code> instances produced by this
* factory. See {@link Context#getE4xImplementationFactory} for details.
*
* May return null, in which case E4X functionality is not supported in
* Rhino.
*
* The default implementation now prefers the DOM3 E4X implementation.
*/
protected org.mozilla.javascript.xml.XMLLib.Factory
getE4xImplementationFactory()
{
// Must provide default implementation, rather than abstract method,
// so that past implementors of ContextFactory do not fail at runtime
// upon invocation of this method.
// Note that the default implementation returns null if we
// neither have XMLBeans nor a DOM3 implementation present.
if (isDom3Present()) {
return org.mozilla.javascript.xml.XMLLib.Factory.create(
"org.mozilla.javascript.xmlimpl.XMLLibImpl"
);
} else if (Kit.classOrNull("org.apache.xmlbeans.XmlCursor") != null) {
return org.mozilla.javascript.xml.XMLLib.Factory.create(
"org.mozilla.javascript.xml.impl.xmlbeans.XMLLibImpl"
);
} else {
return null;
}
}
/**
* Create class loader for generated classes.
* This method creates an instance of the default implementation
* of {@link GeneratedClassLoader}. Rhino uses this interface to load
* generated JVM classes when no {@link SecurityController}
* is installed.
* Application can override the method to provide custom class loading.
*/
protected GeneratedClassLoader createClassLoader(final ClassLoader parent)
{
return AccessController.doPrivileged(new PrivilegedAction<DefiningClassLoader>() {
public DefiningClassLoader run(){
return new DefiningClassLoader(parent);
}
});
}
/**
* Get ClassLoader to use when searching for Java classes.
* Unless it was explicitly initialized with
* {@link #initApplicationClassLoader(ClassLoader)} the method returns
* null to indicate that Thread.getContextClassLoader() should be used.
*/
public final ClassLoader getApplicationClassLoader()
{
return applicationClassLoader;
}
/**
* Set explicit class loader to use when searching for Java classes.
*
* @see #getApplicationClassLoader()
*/
public final void initApplicationClassLoader(ClassLoader loader)
{
if (loader == null)
throw new IllegalArgumentException("loader is null");
if (!Kit.testIfCanLoadRhinoClasses(loader))
throw new IllegalArgumentException(
"Loader can not resolve Rhino classes");
if (this.applicationClassLoader != null)
throw new IllegalStateException(
"applicationClassLoader can only be set once");
checkNotSealed();
this.applicationClassLoader = loader;
}
/**
* Execute top call to script or function.
* When the runtime is about to execute a script or function that will
* create the first stack frame with scriptable code, it calls this method
* to perform the real call. In this way execution of any script
* happens inside this function.
*/
protected Object doTopCall(Callable callable,
Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
return callable.call(cx, scope, thisObj, args);
}
/**
* Implementation of
* {@link Context#observeInstructionCount(int instructionCount)}.
* This can be used to customize {@link Context} without introducing
* additional subclasses.
*/
protected void observeInstructionCount(Context cx, int instructionCount) {
}
protected void onContextCreated(Context cx)
{
Object listeners = this.listeners;
for (int i = 0; ; ++i) {
Listener l = (Listener)Kit.getListener(listeners, i);
if (l == null)
break;
l.contextCreated(cx);
}
}
protected void onContextReleased(Context cx)
{
Object listeners = this.listeners;
for (int i = 0; ; ++i) {
Listener l = (Listener)Kit.getListener(listeners, i);
if (l == null)
break;
l.contextReleased(cx);
}
}
public final void addListener(Listener listener)
{
checkNotSealed();
synchronized (listenersLock) {
if (disabledListening) {
throw new IllegalStateException();
}
listeners = Kit.addListener(listeners, listener);
}
}
public final void removeListener(Listener listener)
{
checkNotSealed();
synchronized (listenersLock) {
if (disabledListening) {
throw new IllegalStateException();
}
listeners = Kit.removeListener(listeners, listener);
}
}
/**
* The method is used only to implement
* Context.disableStaticContextListening()
*/
final void disableContextListening()
{
checkNotSealed();
synchronized (listenersLock) {
disabledListening = true;
listeners = null;
}
}
/**
* Checks if this is a sealed ContextFactory.
* @see #seal()
*/
public final boolean isSealed()
{
return sealed;
}
/**
* Seal this ContextFactory so any attempt to modify it like to add or
* remove its listeners will throw an exception.
* @see #isSealed()
*/
public final void seal()
{
checkNotSealed();
sealed = true;
}
protected final void checkNotSealed()
{
if (sealed) throw new IllegalStateException();
}
/**
* Call {@link ContextAction#run(Context cx)}
* using the {@link Context} instance associated with the current thread.
* If no Context is associated with the thread, then
* {@link #makeContext()} will be called to construct
* new Context instance. The instance will be temporary associated
* with the thread during call to {@link ContextAction#run(Context)}.
*
* @see ContextFactory#call(ContextAction)
* @see Context#call(ContextFactory factory, Callable callable,
* Scriptable scope, Scriptable thisObj,
* Object[] args)
*/
public final Object call(ContextAction action)
{
return Context.call(this, action);
}
/**
* Get a context associated with the current thread, creating one if need
* be. The Context stores the execution state of the JavaScript engine, so
* it is required that the context be entered before execution may begin.
* Once a thread has entered a Context, then getCurrentContext() may be
* called to find the context that is associated with the current thread.
* <p>
* Calling <code>enterContext()</code> will return either the Context
* currently associated with the thread, or will create a new context and
* associate it with the current thread. Each call to
* <code>enterContext()</code> must have a matching call to
* {@link Context#exit()}.
* <pre>
* Context cx = contextFactory.enterContext();
* try {
* ...
* cx.evaluateString(...);
* } finally {
* Context.exit();
* }
* </pre>
* Instead of using <tt>enterContext()</tt>, <tt>exit()</tt> pair consider
* using {@link #call(ContextAction)} which guarantees proper association
* of Context instances with the current thread.
* With this method the above example becomes:
* <pre>
* ContextFactory.call(new ContextAction() {
* public Object run(Context cx) {
* ...
* cx.evaluateString(...);
* return null;
* }
* });
* </pre>
* @return a Context associated with the current thread
* @see Context#getCurrentContext()
* @see Context#exit()
* @see #call(ContextAction)
*/
public Context enterContext()
{
return enterContext(null);
}
/**
* @deprecated use {@link #enterContext()} instead
* @return a Context associated with the current thread
*/
public final Context enter()
{
return enterContext(null);
}
/**
* @deprecated Use {@link Context#exit()} instead.
*/
public final void exit()
{
Context.exit();
}
/**
* Get a Context associated with the current thread, using the given
* Context if need be.
* <p>
* The same as <code>enterContext()</code> except that <code>cx</code>
* is associated with the current thread and returned if the current thread
* has no associated context and <code>cx</code> is not associated with any
* other thread.
* @param cx a Context to associate with the thread if possible
* @return a Context associated with the current thread
* @see #enterContext()
* @see #call(ContextAction)
* @throws IllegalStateException if <code>cx</code> is already associated
* with a different thread
*/
public final Context enterContext(Context cx)
{
return Context.enter(cx, this);
}
}

View File

@@ -1,60 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* @deprecated Embeddings that wish to customize newly created
* {@link Context} instances should implement
* {@link ContextFactory.Listener}.
*/
public interface ContextListener extends ContextFactory.Listener
{
/**
* @deprecated Rhino runtime never calls the method.
*/
public void contextEntered(Context cx);
/**
* @deprecated Rhino runtime never calls the method.
*/
public void contextExited(Context cx);
}

View File

@@ -1,62 +0,0 @@
package org.mozilla.javascript;
/**
* Exception thrown by
* {@link org.mozilla.javascript.Context#executeScriptWithContinuations(Script, Scriptable)}
* and {@link org.mozilla.javascript.Context#callFunctionWithContinuations(Callable, Scriptable, Object[])}
* when execution encounters a continuation captured by
* {@link org.mozilla.javascript.Context#captureContinuation()}.
* Exception will contain the captured state needed to restart the continuation
* with {@link org.mozilla.javascript.Context#resumeContinuation(Object, Scriptable, Object)}.
* @author Norris Boyd
*/
public class ContinuationPending extends RuntimeException {
private static final long serialVersionUID = 4956008116771118856L;
private NativeContinuation continuationState;
private Object applicationState;
/**
* Construct a ContinuationPending exception. Internal call only;
* users of the API should get continuations created on their behalf by
* calling {@link org.mozilla.javascript.Context#executeScriptWithContinuations(Script, Scriptable)}
* and {@link org.mozilla.javascript.Context#callFunctionWithContinuations(Callable, Scriptable, Object[])}
* @param continuationState Internal Continuation object
*/
ContinuationPending(NativeContinuation continuationState) {
this.continuationState = continuationState;
}
/**
* Get continuation object. The only
* use for this object is to be passed to
* {@link org.mozilla.javascript.Context#resumeContinuation(Object, Scriptable, Object)}.
* @return continuation object
*/
public Object getContinuation() {
return continuationState;
}
/**
* @return internal continuation state
*/
NativeContinuation getContinuationState() {
return continuationState;
}
/**
* Store an arbitrary object that applications can use to associate
* their state with the continuation.
* @param applicationState arbitrary application state
*/
public void setApplicationState(Object applicationState) {
this.applicationState = applicationState;
}
/**
* @return arbitrary application state
*/
public Object getApplicationState() {
return applicationState;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,920 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Mike Ang
* Igor Bukanov
* Bob Jervis
* Mike McCabe
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import org.mozilla.javascript.ast.FunctionNode;
/**
* The following class save decompilation information about the source.
* Source information is returned from the parser as a String
* associated with function nodes and with the toplevel script. When
* saved in the constant pool of a class, this string will be UTF-8
* encoded, and token values will occupy a single byte.
* Source is saved (mostly) as token numbers. The tokens saved pretty
* much correspond to the token stream of a 'canonical' representation
* of the input program, as directed by the parser. (There were a few
* cases where tokens could have been left out where decompiler could
* easily reconstruct them, but I left them in for clarity). (I also
* looked adding source collection to TokenStream instead, where I
* could have limited the changes to a few lines in getToken... but
* this wouldn't have saved any space in the resulting source
* representation, and would have meant that I'd have to duplicate
* parser logic in the decompiler to disambiguate situations where
* newlines are important.) The function decompile expands the
* tokens back into their string representations, using simple
* lookahead to correct spacing and indentation.
*
* Assignments are saved as two-token pairs (Token.ASSIGN, op). Number tokens
* are stored inline, as a NUMBER token, a character representing the type, and
* either 1 or 4 characters representing the bit-encoding of the number. String
* types NAME, STRING and OBJECT are currently stored as a token type,
* followed by a character giving the length of the string (assumed to
* be less than 2^16), followed by the characters of the string
* inlined into the source string. Changing this to some reference to
* to the string in the compiled class' constant pool would probably
* save a lot of space... but would require some method of deriving
* the final constant pool entry from information available at parse
* time.
*/
public class Decompiler
{
/**
* Flag to indicate that the decompilation should omit the
* function header and trailing brace.
*/
public static final int ONLY_BODY_FLAG = 1 << 0;
/**
* Flag to indicate that the decompilation generates toSource result.
*/
public static final int TO_SOURCE_FLAG = 1 << 1;
/**
* Decompilation property to specify initial ident value.
*/
public static final int INITIAL_INDENT_PROP = 1;
/**
* Decompilation property to specify default identation offset.
*/
public static final int INDENT_GAP_PROP = 2;
/**
* Decompilation property to specify identation offset for case labels.
*/
public static final int CASE_GAP_PROP = 3;
// Marker to denote the last RC of function so it can be distinguished from
// the last RC of object literals in case of function expressions
private static final int FUNCTION_END = Token.LAST_TOKEN + 1;
String getEncodedSource()
{
return sourceToString(0);
}
int getCurrentOffset()
{
return sourceTop;
}
int markFunctionStart(int functionType)
{
int savedOffset = getCurrentOffset();
addToken(Token.FUNCTION);
append((char)functionType);
return savedOffset;
}
int markFunctionEnd(int functionStart)
{
int offset = getCurrentOffset();
append((char)FUNCTION_END);
return offset;
}
void addToken(int token)
{
if (!(0 <= token && token <= Token.LAST_TOKEN))
throw new IllegalArgumentException();
append((char)token);
}
void addEOL(int token)
{
if (!(0 <= token && token <= Token.LAST_TOKEN))
throw new IllegalArgumentException();
append((char)token);
append((char)Token.EOL);
}
void addName(String str)
{
addToken(Token.NAME);
appendString(str);
}
void addString(String str)
{
addToken(Token.STRING);
appendString(str);
}
void addRegexp(String regexp, String flags)
{
addToken(Token.REGEXP);
appendString('/' + regexp + '/' + flags);
}
void addNumber(double n)
{
addToken(Token.NUMBER);
/* encode the number in the source stream.
* Save as NUMBER type (char | char char char char)
* where type is
* 'D' - double, 'S' - short, 'J' - long.
* We need to retain float vs. integer type info to keep the
* behavior of liveconnect type-guessing the same after
* decompilation. (Liveconnect tries to present 1.0 to Java
* as a float/double)
* OPT: This is no longer true. We could compress the format.
* This may not be the most space-efficient encoding;
* the chars created below may take up to 3 bytes in
* constant pool UTF-8 encoding, so a Double could take
* up to 12 bytes.
*/
long lbits = (long)n;
if (lbits != n) {
// if it's floating point, save as a Double bit pattern.
// (12/15/97 our scanner only returns Double for f.p.)
lbits = Double.doubleToLongBits(n);
append('D');
append((char)(lbits >> 48));
append((char)(lbits >> 32));
append((char)(lbits >> 16));
append((char)lbits);
}
else {
// we can ignore negative values, bc they're already prefixed
// by NEG
if (lbits < 0) Kit.codeBug();
// will it fit in a char?
// this gives a short encoding for integer values up to 2^16.
if (lbits <= Character.MAX_VALUE) {
append('S');
append((char)lbits);
}
else { // Integral, but won't fit in a char. Store as a long.
append('J');
append((char)(lbits >> 48));
append((char)(lbits >> 32));
append((char)(lbits >> 16));
append((char)lbits);
}
}
}
private void appendString(String str)
{
int L = str.length();
int lengthEncodingSize = 1;
if (L >= 0x8000) {
lengthEncodingSize = 2;
}
int nextTop = sourceTop + lengthEncodingSize + L;
if (nextTop > sourceBuffer.length) {
increaseSourceCapacity(nextTop);
}
if (L >= 0x8000) {
// Use 2 chars to encode strings exceeding 32K, were the highest
// bit in the first char indicates presence of the next byte
sourceBuffer[sourceTop] = (char)(0x8000 | (L >>> 16));
++sourceTop;
}
sourceBuffer[sourceTop] = (char)L;
++sourceTop;
str.getChars(0, L, sourceBuffer, sourceTop);
sourceTop = nextTop;
}
private void append(char c)
{
if (sourceTop == sourceBuffer.length) {
increaseSourceCapacity(sourceTop + 1);
}
sourceBuffer[sourceTop] = c;
++sourceTop;
}
private void increaseSourceCapacity(int minimalCapacity)
{
// Call this only when capacity increase is must
if (minimalCapacity <= sourceBuffer.length) Kit.codeBug();
int newCapacity = sourceBuffer.length * 2;
if (newCapacity < minimalCapacity) {
newCapacity = minimalCapacity;
}
char[] tmp = new char[newCapacity];
System.arraycopy(sourceBuffer, 0, tmp, 0, sourceTop);
sourceBuffer = tmp;
}
private String sourceToString(int offset)
{
if (offset < 0 || sourceTop < offset) Kit.codeBug();
return new String(sourceBuffer, offset, sourceTop - offset);
}
/**
* Decompile the source information associated with this js
* function/script back into a string. For the most part, this
* just means translating tokens back to their string
* representations; there's a little bit of lookahead logic to
* decide the proper spacing/indentation. Most of the work in
* mapping the original source to the prettyprinted decompiled
* version is done by the parser.
*
* @param source encoded source tree presentation
*
* @param flags flags to select output format
*
* @param properties indentation properties
*
*/
public static String decompile(String source, int flags,
UintMap properties)
{
int length = source.length();
if (length == 0) { return ""; }
int indent = properties.getInt(INITIAL_INDENT_PROP, 0);
if (indent < 0) throw new IllegalArgumentException();
int indentGap = properties.getInt(INDENT_GAP_PROP, 4);
if (indentGap < 0) throw new IllegalArgumentException();
int caseGap = properties.getInt(CASE_GAP_PROP, 2);
if (caseGap < 0) throw new IllegalArgumentException();
StringBuffer result = new StringBuffer();
boolean justFunctionBody = (0 != (flags & Decompiler.ONLY_BODY_FLAG));
boolean toSource = (0 != (flags & Decompiler.TO_SOURCE_FLAG));
// Spew tokens in source, for debugging.
// as TYPE number char
if (printSource) {
System.err.println("length:" + length);
for (int i = 0; i < length; ++i) {
// Note that tokenToName will fail unless Context.printTrees
// is true.
String tokenname = null;
if (Token.printNames) {
tokenname = Token.name(source.charAt(i));
}
if (tokenname == null) {
tokenname = "---";
}
String pad = tokenname.length() > 7
? "\t"
: "\t\t";
System.err.println
(tokenname
+ pad + (int)source.charAt(i)
+ "\t'" + ScriptRuntime.escapeString
(source.substring(i, i+1))
+ "'");
}
System.err.println();
}
int braceNesting = 0;
boolean afterFirstEOL = false;
int i = 0;
int topFunctionType;
if (source.charAt(i) == Token.SCRIPT) {
++i;
topFunctionType = -1;
} else {
topFunctionType = source.charAt(i + 1);
}
if (!toSource) {
// add an initial newline to exactly match js.
result.append('\n');
for (int j = 0; j < indent; j++)
result.append(' ');
} else {
if (topFunctionType == FunctionNode.FUNCTION_EXPRESSION) {
result.append('(');
}
}
while (i < length) {
switch(source.charAt(i)) {
case Token.GET:
case Token.SET:
result.append(source.charAt(i) == Token.GET ? "get " : "set ");
++i;
i = printSourceString(source, i + 1, false, result);
// Now increment one more to get past the FUNCTION token
++i;
break;
case Token.NAME:
case Token.REGEXP: // re-wrapped in '/'s in parser...
i = printSourceString(source, i + 1, false, result);
continue;
case Token.STRING:
i = printSourceString(source, i + 1, true, result);
continue;
case Token.NUMBER:
i = printSourceNumber(source, i + 1, result);
continue;
case Token.TRUE:
result.append("true");
break;
case Token.FALSE:
result.append("false");
break;
case Token.NULL:
result.append("null");
break;
case Token.THIS:
result.append("this");
break;
case Token.FUNCTION:
++i; // skip function type
result.append("function ");
break;
case FUNCTION_END:
// Do nothing
break;
case Token.COMMA:
result.append(", ");
break;
case Token.LC:
++braceNesting;
if (Token.EOL == getNext(source, length, i))
indent += indentGap;
result.append('{');
break;
case Token.RC: {
--braceNesting;
/* don't print the closing RC if it closes the
* toplevel function and we're called from
* decompileFunctionBody.
*/
if (justFunctionBody && braceNesting == 0)
break;
result.append('}');
switch (getNext(source, length, i)) {
case Token.EOL:
case FUNCTION_END:
indent -= indentGap;
break;
case Token.WHILE:
case Token.ELSE:
indent -= indentGap;
result.append(' ');
break;
}
break;
}
case Token.LP:
result.append('(');
break;
case Token.RP:
result.append(')');
if (Token.LC == getNext(source, length, i))
result.append(' ');
break;
case Token.LB:
result.append('[');
break;
case Token.RB:
result.append(']');
break;
case Token.EOL: {
if (toSource) break;
boolean newLine = true;
if (!afterFirstEOL) {
afterFirstEOL = true;
if (justFunctionBody) {
/* throw away just added 'function name(...) {'
* and restore the original indent
*/
result.setLength(0);
indent -= indentGap;
newLine = false;
}
}
if (newLine) {
result.append('\n');
}
/* add indent if any tokens remain,
* less setback if next token is
* a label, case or default.
*/
if (i + 1 < length) {
int less = 0;
int nextToken = source.charAt(i + 1);
if (nextToken == Token.CASE
|| nextToken == Token.DEFAULT)
{
less = indentGap - caseGap;
} else if (nextToken == Token.RC) {
less = indentGap;
}
/* elaborate check against label... skip past a
* following inlined NAME and look for a COLON.
*/
else if (nextToken == Token.NAME) {
int afterName = getSourceStringEnd(source, i + 2);
if (source.charAt(afterName) == Token.COLON)
less = indentGap;
}
for (; less < indent; less++)
result.append(' ');
}
break;
}
case Token.DOT:
result.append('.');
break;
case Token.NEW:
result.append("new ");
break;
case Token.DELPROP:
result.append("delete ");
break;
case Token.IF:
result.append("if ");
break;
case Token.ELSE:
result.append("else ");
break;
case Token.FOR:
result.append("for ");
break;
case Token.IN:
result.append(" in ");
break;
case Token.WITH:
result.append("with ");
break;
case Token.WHILE:
result.append("while ");
break;
case Token.DO:
result.append("do ");
break;
case Token.TRY:
result.append("try ");
break;
case Token.CATCH:
result.append("catch ");
break;
case Token.FINALLY:
result.append("finally ");
break;
case Token.THROW:
result.append("throw ");
break;
case Token.SWITCH:
result.append("switch ");
break;
case Token.BREAK:
result.append("break");
if (Token.NAME == getNext(source, length, i))
result.append(' ');
break;
case Token.CONTINUE:
result.append("continue");
if (Token.NAME == getNext(source, length, i))
result.append(' ');
break;
case Token.CASE:
result.append("case ");
break;
case Token.DEFAULT:
result.append("default");
break;
case Token.RETURN:
result.append("return");
if (Token.SEMI != getNext(source, length, i))
result.append(' ');
break;
case Token.VAR:
result.append("var ");
break;
case Token.LET:
result.append("let ");
break;
case Token.SEMI:
result.append(';');
if (Token.EOL != getNext(source, length, i)) {
// separators in FOR
result.append(' ');
}
break;
case Token.ASSIGN:
result.append(" = ");
break;
case Token.ASSIGN_ADD:
result.append(" += ");
break;
case Token.ASSIGN_SUB:
result.append(" -= ");
break;
case Token.ASSIGN_MUL:
result.append(" *= ");
break;
case Token.ASSIGN_DIV:
result.append(" /= ");
break;
case Token.ASSIGN_MOD:
result.append(" %= ");
break;
case Token.ASSIGN_BITOR:
result.append(" |= ");
break;
case Token.ASSIGN_BITXOR:
result.append(" ^= ");
break;
case Token.ASSIGN_BITAND:
result.append(" &= ");
break;
case Token.ASSIGN_LSH:
result.append(" <<= ");
break;
case Token.ASSIGN_RSH:
result.append(" >>= ");
break;
case Token.ASSIGN_URSH:
result.append(" >>>= ");
break;
case Token.HOOK:
result.append(" ? ");
break;
case Token.OBJECTLIT:
// pun OBJECTLIT to mean colon in objlit property
// initialization.
// This needs to be distinct from COLON in the general case
// to distinguish from the colon in a ternary... which needs
// different spacing.
result.append(':');
break;
case Token.COLON:
if (Token.EOL == getNext(source, length, i))
// it's the end of a label
result.append(':');
else
// it's the middle part of a ternary
result.append(" : ");
break;
case Token.OR:
result.append(" || ");
break;
case Token.AND:
result.append(" && ");
break;
case Token.BITOR:
result.append(" | ");
break;
case Token.BITXOR:
result.append(" ^ ");
break;
case Token.BITAND:
result.append(" & ");
break;
case Token.SHEQ:
result.append(" === ");
break;
case Token.SHNE:
result.append(" !== ");
break;
case Token.EQ:
result.append(" == ");
break;
case Token.NE:
result.append(" != ");
break;
case Token.LE:
result.append(" <= ");
break;
case Token.LT:
result.append(" < ");
break;
case Token.GE:
result.append(" >= ");
break;
case Token.GT:
result.append(" > ");
break;
case Token.INSTANCEOF:
result.append(" instanceof ");
break;
case Token.LSH:
result.append(" << ");
break;
case Token.RSH:
result.append(" >> ");
break;
case Token.URSH:
result.append(" >>> ");
break;
case Token.TYPEOF:
result.append("typeof ");
break;
case Token.VOID:
result.append("void ");
break;
case Token.CONST:
result.append("const ");
break;
case Token.YIELD:
result.append("yield ");
break;
case Token.NOT:
result.append('!');
break;
case Token.BITNOT:
result.append('~');
break;
case Token.POS:
result.append('+');
break;
case Token.NEG:
result.append('-');
break;
case Token.INC:
result.append("++");
break;
case Token.DEC:
result.append("--");
break;
case Token.ADD:
result.append(" + ");
break;
case Token.SUB:
result.append(" - ");
break;
case Token.MUL:
result.append(" * ");
break;
case Token.DIV:
result.append(" / ");
break;
case Token.MOD:
result.append(" % ");
break;
case Token.COLONCOLON:
result.append("::");
break;
case Token.DOTDOT:
result.append("..");
break;
case Token.DOTQUERY:
result.append(".(");
break;
case Token.XMLATTR:
result.append('@');
break;
default:
// If we don't know how to decompile it, raise an exception.
throw new RuntimeException("Token: " +
Token.name(source.charAt(i)));
}
++i;
}
if (!toSource) {
// add that trailing newline if it's an outermost function.
if (!justFunctionBody)
result.append('\n');
} else {
if (topFunctionType == FunctionNode.FUNCTION_EXPRESSION) {
result.append(')');
}
}
return result.toString();
}
private static int getNext(String source, int length, int i)
{
return (i + 1 < length) ? source.charAt(i + 1) : Token.EOF;
}
private static int getSourceStringEnd(String source, int offset)
{
return printSourceString(source, offset, false, null);
}
private static int printSourceString(String source, int offset,
boolean asQuotedString,
StringBuffer sb)
{
int length = source.charAt(offset);
++offset;
if ((0x8000 & length) != 0) {
length = ((0x7FFF & length) << 16) | source.charAt(offset);
++offset;
}
if (sb != null) {
String str = source.substring(offset, offset + length);
if (!asQuotedString) {
sb.append(str);
} else {
sb.append('"');
sb.append(ScriptRuntime.escapeString(str));
sb.append('"');
}
}
return offset + length;
}
private static int printSourceNumber(String source, int offset,
StringBuffer sb)
{
double number = 0.0;
char type = source.charAt(offset);
++offset;
if (type == 'S') {
if (sb != null) {
int ival = source.charAt(offset);
number = ival;
}
++offset;
} else if (type == 'J' || type == 'D') {
if (sb != null) {
long lbits;
lbits = (long)source.charAt(offset) << 48;
lbits |= (long)source.charAt(offset + 1) << 32;
lbits |= (long)source.charAt(offset + 2) << 16;
lbits |= source.charAt(offset + 3);
if (type == 'J') {
number = lbits;
} else {
number = Double.longBitsToDouble(lbits);
}
}
offset += 4;
} else {
// Bad source
throw new RuntimeException();
}
if (sb != null) {
sb.append(ScriptRuntime.numberToString(number, 10));
}
return offset;
}
private char[] sourceBuffer = new char[128];
// Per script/function source buffer top: parent source does not include a
// nested functions source and uses function index as a reference instead.
private int sourceTop;
// whether to do a debug print of the source information, when decompiling.
private static final boolean printSource = false;
}

View File

@@ -1,113 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
* This is the default error reporter for JavaScript.
*
* @author Norris Boyd
*/
class DefaultErrorReporter implements ErrorReporter
{
static final DefaultErrorReporter instance = new DefaultErrorReporter();
private boolean forEval;
private ErrorReporter chainedReporter;
private DefaultErrorReporter() { }
static ErrorReporter forEval(ErrorReporter reporter)
{
DefaultErrorReporter r = new DefaultErrorReporter();
r.forEval = true;
r.chainedReporter = reporter;
return r;
}
public void warning(String message, String sourceURI, int line,
String lineText, int lineOffset)
{
if (chainedReporter != null) {
chainedReporter.warning(
message, sourceURI, line, lineText, lineOffset);
} else {
// Do nothing
}
}
public void error(String message, String sourceURI, int line,
String lineText, int lineOffset)
{
if (forEval) {
// Assume error message strings that start with "TypeError: "
// should become TypeError exceptions. A bit of a hack, but we
// don't want to change the ErrorReporter interface.
String error = "SyntaxError";
final String TYPE_ERROR_NAME = "TypeError";
final String DELIMETER = ": ";
final String prefix = TYPE_ERROR_NAME + DELIMETER;
if (message.startsWith(prefix)) {
error = TYPE_ERROR_NAME;
message = message.substring(prefix.length());
}
throw ScriptRuntime.constructError(error, message, sourceURI,
line, lineText, lineOffset);
}
if (chainedReporter != null) {
chainedReporter.error(
message, sourceURI, line, lineText, lineOffset);
} else {
throw runtimeError(
message, sourceURI, line, lineText, lineOffset);
}
}
public EvaluatorException runtimeError(String message, String sourceURI,
int line, String lineText,
int lineOffset)
{
if (chainedReporter != null) {
return chainedReporter.runtimeError(
message, sourceURI, line, lineText, lineOffset);
} else {
return new EvaluatorException(
message, sourceURI, line, lineText, lineOffset);
}
}
}

View File

@@ -1,89 +0,0 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Roger Lawrence
* Patrick Beard
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
* Load generated classes.
*
* @author Norris Boyd
*/
public class DefiningClassLoader extends ClassLoader
implements GeneratedClassLoader
{
public DefiningClassLoader() {
this.parentLoader = getClass().getClassLoader();
}
public DefiningClassLoader(ClassLoader parentLoader) {
this.parentLoader = parentLoader;
}
public Class<?> defineClass(String name, byte[] data) {
// Use our own protection domain for the generated classes.
// TODO: we might want to use a separate protection domain for classes
// compiled from scripts, based on where the script was loaded from.
return super.defineClass(name, data, 0, data.length,
SecurityUtilities.getProtectionDomain(getClass()));
}
public void linkClass(Class<?> cl) {
resolveClass(cl);
}
@Override
public Class<?> loadClass(String name, boolean resolve)
throws ClassNotFoundException
{
Class<?> cl = findLoadedClass(name);
if (cl == null) {
if (parentLoader != null) {
cl = parentLoader.loadClass(name);
} else {
cl = findSystemClass(name);
}
}
if (resolve) {
resolveClass(cl);
}
return cl;
}
private final ClassLoader parentLoader;
}

View File

@@ -1,266 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Delegator.java, released
* Sep 27, 2000.
*
* The Initial Developer of the Original Code is
* Matthias Radestock. <matthias@sorted.org>.
* Portions created by the Initial Developer are Copyright (C) 2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* This is a helper class for implementing wrappers around Scriptable
* objects. It implements the Function interface and delegates all
* invocations to a delegee Scriptable object. The normal use of this
* class involves creating a sub-class and overriding one or more of
* the methods.
*
* A useful application is the implementation of interceptors,
* pre/post conditions, debugging.
*
* @see Function
* @see Scriptable
* @author Matthias Radestock
*/
public class Delegator implements Function {
protected Scriptable obj = null;
/**
* Create a Delegator prototype.
*
* This constructor should only be used for creating prototype
* objects of Delegator.
*
* @see org.mozilla.javascript.Delegator#construct
*/
public Delegator() {
}
/**
* Create a new Delegator that forwards requests to a delegee
* Scriptable object.
*
* @param obj the delegee
* @see org.mozilla.javascript.Scriptable
*/
public Delegator(Scriptable obj) {
this.obj = obj;
}
/**
* Crete new Delegator instance.
* The default implementation calls this.getClass().newInstance().
*
* @see #construct(Context cx, Scriptable scope, Object[] args)
*/
protected Delegator newInstance()
{
try {
return this.getClass().newInstance();
} catch (Exception ex) {
throw Context.throwAsScriptRuntimeEx(ex);
}
}
/**
* Retrieve the delegee.
*
* @return the delegee
*/
public Scriptable getDelegee() {
return obj;
}
/**
* Set the delegee.
*
* @param obj the delegee
* @see org.mozilla.javascript.Scriptable
*/
public void setDelegee(Scriptable obj) {
this.obj = obj;
}
/**
* @see org.mozilla.javascript.Scriptable#getClassName
*/
public String getClassName() {
return obj.getClassName();
}
/**
* @see org.mozilla.javascript.Scriptable#get(String, Scriptable)
*/
public Object get(String name, Scriptable start) {
return obj.get(name,start);
}
/**
* @see org.mozilla.javascript.Scriptable#get(int, Scriptable)
*/
public Object get(int index, Scriptable start) {
return obj.get(index,start);
}
/**
* @see org.mozilla.javascript.Scriptable#has(String, Scriptable)
*/
public boolean has(String name, Scriptable start) {
return obj.has(name,start);
}
/**
* @see org.mozilla.javascript.Scriptable#has(int, Scriptable)
*/
public boolean has(int index, Scriptable start) {
return obj.has(index,start);
}
/**
* @see org.mozilla.javascript.Scriptable#put(String, Scriptable, Object)
*/
public void put(String name, Scriptable start, Object value) {
obj.put(name,start,value);
}
/**
* @see org.mozilla.javascript.Scriptable#put(int, Scriptable, Object)
*/
public void put(int index, Scriptable start, Object value) {
obj.put(index,start,value);
}
/**
* @see org.mozilla.javascript.Scriptable#delete(String)
*/
public void delete(String name) {
obj.delete(name);
}
/**
* @see org.mozilla.javascript.Scriptable#delete(int)
*/
public void delete(int index) {
obj.delete(index);
}
/**
* @see org.mozilla.javascript.Scriptable#getPrototype
*/
public Scriptable getPrototype() {
return obj.getPrototype();
}
/**
* @see org.mozilla.javascript.Scriptable#setPrototype
*/
public void setPrototype(Scriptable prototype) {
obj.setPrototype(prototype);
}
/**
* @see org.mozilla.javascript.Scriptable#getParentScope
*/
public Scriptable getParentScope() {
return obj.getParentScope();
}
/**
* @see org.mozilla.javascript.Scriptable#setParentScope
*/
public void setParentScope(Scriptable parent) {
obj.setParentScope(parent);
}
/**
* @see org.mozilla.javascript.Scriptable#getIds
*/
public Object[] getIds() {
return obj.getIds();
}
/**
* Note that this method does not get forwarded to the delegee if
* the <code>hint</code> parameter is null,
* <code>ScriptRuntime.ScriptableClass</code> or
* <code>ScriptRuntime.FunctionClass</code>. Instead the object
* itself is returned.
*
* @param hint the type hint
* @return the default value
*
* @see org.mozilla.javascript.Scriptable#getDefaultValue
*/
public Object getDefaultValue(Class<?> hint) {
return (hint == null ||
hint == ScriptRuntime.ScriptableClass ||
hint == ScriptRuntime.FunctionClass) ?
this : obj.getDefaultValue(hint);
}
/**
* @see org.mozilla.javascript.Scriptable#hasInstance
*/
public boolean hasInstance(Scriptable instance) {
return obj.hasInstance(instance);
}
/**
* @see org.mozilla.javascript.Function#call
*/
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
{
return ((Function)obj).call(cx,scope,thisObj,args);
}
/**
* Note that if the <code>delegee</code> is <code>null</code>,
* this method creates a new instance of the Delegator itself
* rathert than forwarding the call to the
* <code>delegee</code>. This permits the use of Delegator
* prototypes.
*
* @param cx the current Context for this thread
* @param scope an enclosing scope of the caller except
* when the function is called from a closure.
* @param args the array of arguments
* @return the allocated object
*
* @see Function#construct(Context, Scriptable, Object[])
*/
public Scriptable construct(Context cx, Scriptable scope, Object[] args)
{
if (obj == null) {
//this little trick allows us to declare prototype objects for
//Delegators
Delegator n = newInstance();
Scriptable delegee;
if (args.length == 0) {
delegee = new NativeObject();
} else {
delegee = ScriptRuntime.toObject(cx, scope, args[0]);
}
n.setDelegee(delegee);
return n;
}
else {
return ((Function)obj).construct(cx,scope,args);
}
}
}

View File

@@ -1,161 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Roger Lawrence
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* The class of exceptions raised by the engine as described in
* ECMA edition 3. See section 15.11.6 in particular.
*/
public class EcmaError extends RhinoException
{
static final long serialVersionUID = -6261226256957286699L;
private String errorName;
private String errorMessage;
/**
* Create an exception with the specified detail message.
*
* Errors internal to the JavaScript engine will simply throw a
* RuntimeException.
*
* @param sourceName the name of the source responsible for the error
* @param lineNumber the line number of the source
* @param columnNumber the columnNumber of the source (may be zero if
* unknown)
* @param lineSource the source of the line containing the error (may be
* null if unknown)
*/
EcmaError(String errorName, String errorMessage,
String sourceName, int lineNumber,
String lineSource, int columnNumber)
{
recordErrorOrigin(sourceName, lineNumber, lineSource, columnNumber);
this.errorName = errorName;
this.errorMessage = errorMessage;
}
/**
* @deprecated EcmaError error instances should not be constructed
* explicitly since they are generated by the engine.
*/
public EcmaError(Scriptable nativeError, String sourceName,
int lineNumber, int columnNumber, String lineSource)
{
this("InternalError", ScriptRuntime.toString(nativeError),
sourceName, lineNumber, lineSource, columnNumber);
}
@Override
public String details()
{
return errorName+": "+errorMessage;
}
/**
* Gets the name of the error.
*
* ECMA edition 3 defines the following
* errors: EvalError, RangeError, ReferenceError,
* SyntaxError, TypeError, and URIError. Additional error names
* may be added in the future.
*
* See ECMA edition 3, 15.11.7.9.
*
* @return the name of the error.
*/
public String getName()
{
return errorName;
}
/**
* Gets the message corresponding to the error.
*
* See ECMA edition 3, 15.11.7.10.
*
* @return an implementation-defined string describing the error.
*/
public String getErrorMessage()
{
return errorMessage;
}
/**
* @deprecated Use {@link RhinoException#sourceName()} from the super class.
*/
public String getSourceName()
{
return sourceName();
}
/**
* @deprecated Use {@link RhinoException#lineNumber()} from the super class.
*/
public int getLineNumber()
{
return lineNumber();
}
/**
* @deprecated
* Use {@link RhinoException#columnNumber()} from the super class.
*/
public int getColumnNumber() {
return columnNumber();
}
/**
* @deprecated Use {@link RhinoException#lineSource()} from the super class.
*/
public String getLineSource() {
return lineSource();
}
/**
* @deprecated
* Always returns <b>null</b>.
*/
public Scriptable getErrorObject()
{
return null;
}
}

View File

@@ -1,106 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* This is interface defines a protocol for the reporting of
* errors during JavaScript translation or execution.
*
* @author Norris Boyd
*/
public interface ErrorReporter {
/**
* Report a warning.
*
* The implementing class may choose to ignore the warning
* if it desires.
*
* @param message a String describing the warning
* @param sourceName a String describing the JavaScript source
* where the warning occured; typically a filename or URL
* @param line the line number associated with the warning
* @param lineSource the text of the line (may be null)
* @param lineOffset the offset into lineSource where problem was detected
*/
void warning(String message, String sourceName, int line,
String lineSource, int lineOffset);
/**
* Report an error.
*
* The implementing class is free to throw an exception if
* it desires.
*
* If execution has not yet begun, the JavaScript engine is
* free to find additional errors rather than terminating
* the translation. It will not execute a script that had
* errors, however.
*
* @param message a String describing the error
* @param sourceName a String describing the JavaScript source
* where the error occured; typically a filename or URL
* @param line the line number associated with the error
* @param lineSource the text of the line (may be null)
* @param lineOffset the offset into lineSource where problem was detected
*/
void error(String message, String sourceName, int line,
String lineSource, int lineOffset);
/**
* Creates an EvaluatorException that may be thrown.
*
* runtimeErrors, unlike errors, will always terminate the
* current script.
*
* @param message a String describing the error
* @param sourceName a String describing the JavaScript source
* where the error occured; typically a filename or URL
* @param line the line number associated with the error
* @param lineSource the text of the line (may be null)
* @param lineOffset the offset into lineSource where problem was detected
* @return an EvaluatorException that will be thrown.
*/
EvaluatorException runtimeError(String message, String sourceName,
int line, String lineSource,
int lineOffset);
}

View File

@@ -1,120 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import org.mozilla.javascript.ast.ScriptNode;
import java.util.List;
/**
* Abstraction of evaluation, which can be implemented either by an
* interpreter or compiler.
*/
public interface Evaluator {
/**
* Compile the script or function from intermediate representation
* tree into an executable form.
*
* @param compilerEnv Compiler environment
* @param tree parse tree
* @param encodedSource encoding of the source code for decompilation
* @param returnFunction if true, compiling a function
* @return an opaque object that can be passed to either
* createFunctionObject or createScriptObject, depending on the
* value of returnFunction
*/
public Object compile(CompilerEnvirons compilerEnv,
ScriptNode tree,
String encodedSource,
boolean returnFunction);
/**
* Create a function object.
*
* @param cx Current context
* @param scope scope of the function
* @param bytecode opaque object returned by compile
* @param staticSecurityDomain security domain
* @return Function object that can be called
*/
public Function createFunctionObject(Context cx, Scriptable scope,
Object bytecode, Object staticSecurityDomain);
/**
* Create a script object.
*
* @param bytecode opaque object returned by compile
* @param staticSecurityDomain security domain
* @return Script object that can be evaluated
*/
public Script createScriptObject(Object bytecode,
Object staticSecurityDomain);
/**
* Capture stack information from the given exception.
* @param ex an exception thrown during execution
*/
public void captureStackInfo(RhinoException ex);
/**
* Get the source position information by examining the stack.
* @param cx Context
* @param linep Array object of length >= 1; getSourcePositionFromStack
* will assign the line number to linep[0].
* @return the name of the file or other source container
*/
public String getSourcePositionFromStack(Context cx, int[] linep);
/**
* Given a native stack trace, patch it with script-specific source
* and line information
* @param ex exception
* @param nativeStackTrace the native stack trace
* @return patched stack trace
*/
public String getPatchedStack(RhinoException ex,
String nativeStackTrace);
/**
* Get the script stack for the given exception
* @param ex exception from execution
* @return list of strings for the stack trace
*/
public List<String> getScriptStack(RhinoException ex);
/**
* Mark the given script to indicate it was created by a call to
* eval() or to a Function constructor.
* @param script script to mark as from eval
*/
public void setEvalScriptFlag(Script script);
}

View File

@@ -1,123 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
* The class of exceptions thrown by the JavaScript engine.
*/
public class EvaluatorException extends RhinoException
{
static final long serialVersionUID = -8743165779676009808L;
public EvaluatorException(String detail)
{
super(detail);
}
/**
* Create an exception with the specified detail message.
*
* Errors internal to the JavaScript engine will simply throw a
* RuntimeException.
*
* @param detail the error message
* @param sourceName the name of the source reponsible for the error
* @param lineNumber the line number of the source
*/
public EvaluatorException(String detail, String sourceName,
int lineNumber)
{
this(detail, sourceName, lineNumber, null, 0);
}
/**
* Create an exception with the specified detail message.
*
* Errors internal to the JavaScript engine will simply throw a
* RuntimeException.
*
* @param detail the error message
* @param sourceName the name of the source responsible for the error
* @param lineNumber the line number of the source
* @param columnNumber the columnNumber of the source (may be zero if
* unknown)
* @param lineSource the source of the line containing the error (may be
* null if unknown)
*/
public EvaluatorException(String detail, String sourceName, int lineNumber,
String lineSource, int columnNumber)
{
super(detail);
recordErrorOrigin(sourceName, lineNumber, lineSource, columnNumber);
}
/**
* @deprecated Use {@link RhinoException#sourceName()} from the super class.
*/
public String getSourceName()
{
return sourceName();
}
/**
* @deprecated Use {@link RhinoException#lineNumber()} from the super class.
*/
public int getLineNumber()
{
return lineNumber();
}
/**
* @deprecated Use {@link RhinoException#columnNumber()} from the super class.
*/
public int getColumnNumber()
{
return columnNumber();
}
/**
* @deprecated Use {@link RhinoException#lineSource()} from the super class.
*/
public String getLineSource()
{
return lineSource();
}
}

View File

@@ -1,84 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* This is interface that all functions in JavaScript must implement.
* The interface provides for calling functions and constructors.
*
* @see org.mozilla.javascript.Scriptable
* @author Norris Boyd
*/
public interface Function extends Scriptable, Callable
{
/**
* Call the function.
*
* Note that the array of arguments is not guaranteed to have
* length greater than 0.
*
* @param cx the current Context for this thread
* @param scope the scope to execute the function relative to. This is
* set to the value returned by getParentScope() except
* when the function is called from a closure.
* @param thisObj the JavaScript <code>this</code> object
* @param args the array of arguments
* @return the result of the call
*/
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args);
/**
* Call the function as a constructor.
*
* This method is invoked by the runtime in order to satisfy a use
* of the JavaScript <code>new</code> operator. This method is
* expected to create a new object and return it.
*
* @param cx the current Context for this thread
* @param scope an enclosing scope of the caller except
* when the function is called from a closure.
* @param args the array of arguments
* @return the allocated object
*/
public Scriptable construct(Context cx, Scriptable scope, Object[] args);
}

View File

@@ -1,572 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
* David C. Navas
* Ted Neward
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
import java.lang.reflect.*;
import java.io.*;
public class FunctionObject extends BaseFunction
{
static final long serialVersionUID = -5332312783643935019L;
/**
* Create a JavaScript function object from a Java method.
*
* <p>The <code>member</code> argument must be either a java.lang.reflect.Method
* or a java.lang.reflect.Constructor and must match one of two forms.<p>
*
* The first form is a member with zero or more parameters
* of the following types: Object, String, boolean, Scriptable,
* int, or double. The Long type is not supported
* because the double representation of a long (which is the
* EMCA-mandated storage type for Numbers) may lose precision.
* If the member is a Method, the return value must be void or one
* of the types allowed for parameters.<p>
*
* The runtime will perform appropriate conversions based
* upon the type of the parameter. A parameter type of
* Object specifies that no conversions are to be done. A parameter
* of type String will use Context.toString to convert arguments.
* Similarly, parameters of type double, boolean, and Scriptable
* will cause Context.toNumber, Context.toBoolean, and
* Context.toObject, respectively, to be called.<p>
*
* If the method is not static, the Java 'this' value will
* correspond to the JavaScript 'this' value. Any attempt
* to call the function with a 'this' value that is not
* of the right Java type will result in an error.<p>
*
* The second form is the variable arguments (or "varargs")
* form. If the FunctionObject will be used as a constructor,
* the member must have the following parameters
* <pre>
* (Context cx, Object[] args, Function ctorObj,
* boolean inNewExpr)</pre>
* and if it is a Method, be static and return an Object result.<p>
*
* Otherwise, if the FunctionObject will <i>not</i> be used to define a
* constructor, the member must be a static Method with parameters
* (Context cx, Scriptable thisObj, Object[] args,
* Function funObj) </pre>
* <pre>
* and an Object result.<p>
*
* When the function varargs form is called as part of a function call,
* the <code>args</code> parameter contains the
* arguments, with <code>thisObj</code>
* set to the JavaScript 'this' value. <code>funObj</code>
* is the function object for the invoked function.<p>
*
* When the constructor varargs form is called or invoked while evaluating
* a <code>new</code> expression, <code>args</code> contains the
* arguments, <code>ctorObj</code> refers to this FunctionObject, and
* <code>inNewExpr</code> is true if and only if a <code>new</code>
* expression caused the call. This supports defining a function that
* has different behavior when called as a constructor than when
* invoked as a normal function call. (For example, the Boolean
* constructor, when called as a function,
* will convert to boolean rather than creating a new object.)<p>
*
* @param name the name of the function
* @param methodOrConstructor a java.lang.reflect.Method or a java.lang.reflect.Constructor
* that defines the object
* @param scope enclosing scope of function
* @see org.mozilla.javascript.Scriptable
*/
public FunctionObject(String name, Member methodOrConstructor,
Scriptable scope)
{
if (methodOrConstructor instanceof Constructor) {
member = new MemberBox((Constructor<?>) methodOrConstructor);
isStatic = true; // well, doesn't take a 'this'
} else {
member = new MemberBox((Method) methodOrConstructor);
isStatic = member.isStatic();
}
String methodName = member.getName();
this.functionName = name;
Class<?>[] types = member.argTypes;
int arity = types.length;
if (arity == 4 && (types[1].isArray() || types[2].isArray())) {
// Either variable args or an error.
if (types[1].isArray()) {
if (!isStatic ||
types[0] != ScriptRuntime.ContextClass ||
types[1].getComponentType() != ScriptRuntime.ObjectClass ||
types[2] != ScriptRuntime.FunctionClass ||
types[3] != Boolean.TYPE)
{
throw Context.reportRuntimeError1(
"msg.varargs.ctor", methodName);
}
parmsLength = VARARGS_CTOR;
} else {
if (!isStatic ||
types[0] != ScriptRuntime.ContextClass ||
types[1] != ScriptRuntime.ScriptableClass ||
types[2].getComponentType() != ScriptRuntime.ObjectClass ||
types[3] != ScriptRuntime.FunctionClass)
{
throw Context.reportRuntimeError1(
"msg.varargs.fun", methodName);
}
parmsLength = VARARGS_METHOD;
}
} else {
parmsLength = arity;
if (arity > 0) {
typeTags = new byte[arity];
for (int i = 0; i != arity; ++i) {
int tag = getTypeTag(types[i]);
if (tag == JAVA_UNSUPPORTED_TYPE) {
throw Context.reportRuntimeError2(
"msg.bad.parms", types[i].getName(), methodName);
}
typeTags[i] = (byte)tag;
}
}
}
if (member.isMethod()) {
Method method = member.method();
Class<?> returnType = method.getReturnType();
if (returnType == Void.TYPE) {
hasVoidReturn = true;
} else {
returnTypeTag = getTypeTag(returnType);
}
} else {
Class<?> ctorType = member.getDeclaringClass();
if (!ScriptRuntime.ScriptableClass.isAssignableFrom(ctorType)) {
throw Context.reportRuntimeError1(
"msg.bad.ctor.return", ctorType.getName());
}
}
ScriptRuntime.setFunctionProtoAndParent(this, scope);
}
/**
* @return One of <tt>JAVA_*_TYPE</tt> constants to indicate desired type
* or {@link #JAVA_UNSUPPORTED_TYPE} if the convertion is not
* possible
*/
public static int getTypeTag(Class<?> type)
{
if (type == ScriptRuntime.StringClass)
return JAVA_STRING_TYPE;
if (type == ScriptRuntime.IntegerClass || type == Integer.TYPE)
return JAVA_INT_TYPE;
if (type == ScriptRuntime.BooleanClass || type == Boolean.TYPE)
return JAVA_BOOLEAN_TYPE;
if (type == ScriptRuntime.DoubleClass || type == Double.TYPE)
return JAVA_DOUBLE_TYPE;
if (ScriptRuntime.ScriptableClass.isAssignableFrom(type))
return JAVA_SCRIPTABLE_TYPE;
if (type == ScriptRuntime.ObjectClass)
return JAVA_OBJECT_TYPE;
// Note that the long type is not supported; see the javadoc for
// the constructor for this class
return JAVA_UNSUPPORTED_TYPE;
}
public static Object convertArg(Context cx, Scriptable scope,
Object arg, int typeTag)
{
switch (typeTag) {
case JAVA_STRING_TYPE:
if (arg instanceof String)
return arg;
return ScriptRuntime.toString(arg);
case JAVA_INT_TYPE:
if (arg instanceof Integer)
return arg;
return Integer.valueOf(ScriptRuntime.toInt32(arg));
case JAVA_BOOLEAN_TYPE:
if (arg instanceof Boolean)
return arg;
return ScriptRuntime.toBoolean(arg) ? Boolean.TRUE
: Boolean.FALSE;
case JAVA_DOUBLE_TYPE:
if (arg instanceof Double)
return arg;
return new Double(ScriptRuntime.toNumber(arg));
case JAVA_SCRIPTABLE_TYPE:
return ScriptRuntime.toObjectOrNull(cx, arg, scope);
case JAVA_OBJECT_TYPE:
return arg;
default:
throw new IllegalArgumentException();
}
}
/**
* Return the value defined by the method used to construct the object
* (number of parameters of the method, or 1 if the method is a "varargs"
* form).
*/
@Override
public int getArity() {
return parmsLength < 0 ? 1 : parmsLength;
}
/**
* Return the same value as {@link #getArity()}.
*/
@Override
public int getLength() {
return getArity();
}
@Override
public String getFunctionName()
{
return (functionName == null) ? "" : functionName;
}
/**
* Get Java method or constructor this function represent.
*/
public Member getMethodOrConstructor()
{
if (member.isMethod()) {
return member.method();
} else {
return member.ctor();
}
}
static Method findSingleMethod(Method[] methods, String name)
{
Method found = null;
for (int i = 0, N = methods.length; i != N; ++i) {
Method method = methods[i];
if (method != null && name.equals(method.getName())) {
if (found != null) {
throw Context.reportRuntimeError2(
"msg.no.overload", name,
method.getDeclaringClass().getName());
}
found = method;
}
}
return found;
}
/**
* Returns all public methods declared by the specified class. This excludes
* inherited methods.
*
* @param clazz the class from which to pull public declared methods
* @return the public methods declared in the specified class
* @see Class#getDeclaredMethods()
*/
static Method[] getMethodList(Class<?> clazz) {
Method[] methods = null;
try {
// getDeclaredMethods may be rejected by the security manager
// but getMethods is more expensive
if (!sawSecurityException)
methods = clazz.getDeclaredMethods();
} catch (SecurityException e) {
// If we get an exception once, give up on getDeclaredMethods
sawSecurityException = true;
}
if (methods == null) {
methods = clazz.getMethods();
}
int count = 0;
for (int i=0; i < methods.length; i++) {
if (sawSecurityException
? methods[i].getDeclaringClass() != clazz
: !Modifier.isPublic(methods[i].getModifiers()))
{
methods[i] = null;
} else {
count++;
}
}
Method[] result = new Method[count];
int j=0;
for (int i=0; i < methods.length; i++) {
if (methods[i] != null)
result[j++] = methods[i];
}
return result;
}
/**
* Define this function as a JavaScript constructor.
* <p>
* Sets up the "prototype" and "constructor" properties. Also
* calls setParent and setPrototype with appropriate values.
* Then adds the function object as a property of the given scope, using
* <code>prototype.getClassName()</code>
* as the name of the property.
*
* @param scope the scope in which to define the constructor (typically
* the global object)
* @param prototype the prototype object
* @see org.mozilla.javascript.Scriptable#setParentScope
* @see org.mozilla.javascript.Scriptable#setPrototype
* @see org.mozilla.javascript.Scriptable#getClassName
*/
public void addAsConstructor(Scriptable scope, Scriptable prototype)
{
initAsConstructor(scope, prototype);
defineProperty(scope, prototype.getClassName(),
this, ScriptableObject.DONTENUM);
}
void initAsConstructor(Scriptable scope, Scriptable prototype)
{
ScriptRuntime.setFunctionProtoAndParent(this, scope);
setImmunePrototypeProperty(prototype);
prototype.setParentScope(this);
defineProperty(prototype, "constructor", this,
ScriptableObject.DONTENUM |
ScriptableObject.PERMANENT |
ScriptableObject.READONLY);
setParentScope(scope);
}
/**
* @deprecated Use {@link #getTypeTag(Class)}
* and {@link #convertArg(Context, Scriptable, Object, int)}
* for type conversion.
*/
public static Object convertArg(Context cx, Scriptable scope,
Object arg, Class<?> desired)
{
int tag = getTypeTag(desired);
if (tag == JAVA_UNSUPPORTED_TYPE) {
throw Context.reportRuntimeError1
("msg.cant.convert", desired.getName());
}
return convertArg(cx, scope, arg, tag);
}
/**
* Performs conversions on argument types if needed and
* invokes the underlying Java method or constructor.
* <p>
* Implements Function.call.
*
* @see org.mozilla.javascript.Function#call(
* Context, Scriptable, Scriptable, Object[])
*/
@Override
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
{
Object result;
boolean checkMethodResult = false;
if (parmsLength < 0) {
if (parmsLength == VARARGS_METHOD) {
Object[] invokeArgs = { cx, thisObj, args, this };
result = member.invoke(null, invokeArgs);
checkMethodResult = true;
} else {
boolean inNewExpr = (thisObj == null);
Boolean b = inNewExpr ? Boolean.TRUE : Boolean.FALSE;
Object[] invokeArgs = { cx, args, this, b };
result = (member.isCtor())
? member.newInstance(invokeArgs)
: member.invoke(null, invokeArgs);
}
} else {
if (!isStatic) {
Class<?> clazz = member.getDeclaringClass();
if (!clazz.isInstance(thisObj)) {
boolean compatible = false;
if (thisObj == scope) {
Scriptable parentScope = getParentScope();
if (scope != parentScope) {
// Call with dynamic scope for standalone function,
// use parentScope as thisObj
compatible = clazz.isInstance(parentScope);
if (compatible) {
thisObj = parentScope;
}
}
}
if (!compatible) {
// Couldn't find an object to call this on.
throw ScriptRuntime.typeError1("msg.incompat.call",
functionName);
}
}
}
Object[] invokeArgs;
if (parmsLength == args.length) {
// Do not allocate new argument array if java arguments are
// the same as the original js ones.
invokeArgs = args;
for (int i = 0; i != parmsLength; ++i) {
Object arg = args[i];
Object converted = convertArg(cx, scope, arg, typeTags[i]);
if (arg != converted) {
if (invokeArgs == args) {
invokeArgs = args.clone();
}
invokeArgs[i] = converted;
}
}
} else if (parmsLength == 0) {
invokeArgs = ScriptRuntime.emptyArgs;
} else {
invokeArgs = new Object[parmsLength];
for (int i = 0; i != parmsLength; ++i) {
Object arg = (i < args.length)
? args[i]
: Undefined.instance;
invokeArgs[i] = convertArg(cx, scope, arg, typeTags[i]);
}
}
if (member.isMethod()) {
result = member.invoke(thisObj, invokeArgs);
checkMethodResult = true;
} else {
result = member.newInstance(invokeArgs);
}
}
if (checkMethodResult) {
if (hasVoidReturn) {
result = Undefined.instance;
} else if (returnTypeTag == JAVA_UNSUPPORTED_TYPE) {
result = cx.getWrapFactory().wrap(cx, scope, result, null);
}
// XXX: the code assumes that if returnTypeTag == JAVA_OBJECT_TYPE
// then the Java method did a proper job of converting the
// result to JS primitive or Scriptable to avoid
// potentially costly Context.javaToJS call.
}
return result;
}
/**
* Return new {@link Scriptable} instance using the default
* constructor for the class of the underlying Java method.
* Return null to indicate that the call method should be used to create
* new objects.
*/
@Override
public Scriptable createObject(Context cx, Scriptable scope) {
if (member.isCtor() || parmsLength == VARARGS_CTOR) {
return null;
}
Scriptable result;
try {
result = (Scriptable) member.getDeclaringClass().newInstance();
} catch (Exception ex) {
throw Context.throwAsScriptRuntimeEx(ex);
}
result.setPrototype(getClassPrototype());
result.setParentScope(getParentScope());
return result;
}
boolean isVarArgsMethod() {
return parmsLength == VARARGS_METHOD;
}
boolean isVarArgsConstructor() {
return parmsLength == VARARGS_CTOR;
}
private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException
{
in.defaultReadObject();
if (parmsLength > 0) {
Class<?>[] types = member.argTypes;
typeTags = new byte[parmsLength];
for (int i = 0; i != parmsLength; ++i) {
typeTags[i] = (byte)getTypeTag(types[i]);
}
}
if (member.isMethod()) {
Method method = member.method();
Class<?> returnType = method.getReturnType();
if (returnType == Void.TYPE) {
hasVoidReturn = true;
} else {
returnTypeTag = getTypeTag(returnType);
}
}
}
private static final short VARARGS_METHOD = -1;
private static final short VARARGS_CTOR = -2;
private static boolean sawSecurityException;
public static final int JAVA_UNSUPPORTED_TYPE = 0;
public static final int JAVA_STRING_TYPE = 1;
public static final int JAVA_INT_TYPE = 2;
public static final int JAVA_BOOLEAN_TYPE = 3;
public static final int JAVA_DOUBLE_TYPE = 4;
public static final int JAVA_SCRIPTABLE_TYPE = 5;
public static final int JAVA_OBJECT_TYPE = 6;
MemberBox member;
private String functionName;
private transient byte[] typeTags;
private int parmsLength;
private transient boolean hasVoidReturn;
private transient int returnTypeTag;
private boolean isStatic;
}

View File

@@ -1,66 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* Interface to define classes from generated byte code.
*/
public interface GeneratedClassLoader {
/**
* Define a new Java class.
* Classes created via this method should have the same class loader.
*
* @param name fully qualified class name
* @param data class byte code
* @return new class object
*/
public Class<?> defineClass(String name, byte[] data);
/**
* Link the given class.
*
* @param cl Class instance returned from the previous call to
* {@link #defineClass(String, byte[])}
* @see java.lang.ClassLoader
*/
public void linkClass(Class<?> cl);
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,279 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Mike Ang
* Igor Bukanov
* Yuh-Ruey Chen
* Ethan Hugg
* Bob Jervis
* Terry Lucas
* Mike McCabe
* Milen Nankov
* Norris Boyd
* Steve Yegge
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
* Additional interpreter-specific codes
*/
abstract class Icode {
static final int
// Stack: ... value1 -> ... value1 value1
Icode_DUP = -1,
// Stack: ... value2 value1 -> ... value2 value1 value2 value1
Icode_DUP2 = -2,
// Stack: ... value2 value1 -> ... value1 value2
Icode_SWAP = -3,
// Stack: ... value1 -> ...
Icode_POP = -4,
// Store stack top into return register and then pop it
Icode_POP_RESULT = -5,
// To jump conditionally and pop additional stack value
Icode_IFEQ_POP = -6,
// various types of ++/--
Icode_VAR_INC_DEC = -7,
Icode_NAME_INC_DEC = -8,
Icode_PROP_INC_DEC = -9,
Icode_ELEM_INC_DEC = -10,
Icode_REF_INC_DEC = -11,
// load/save scope from/to local
Icode_SCOPE_LOAD = -12,
Icode_SCOPE_SAVE = -13,
Icode_TYPEOFNAME = -14,
// helper for function calls
Icode_NAME_AND_THIS = -15,
Icode_PROP_AND_THIS = -16,
Icode_ELEM_AND_THIS = -17,
Icode_VALUE_AND_THIS = -18,
// Create closure object for nested functions
Icode_CLOSURE_EXPR = -19,
Icode_CLOSURE_STMT = -20,
// Special calls
Icode_CALLSPECIAL = -21,
// To return undefined value
Icode_RETUNDEF = -22,
// Exception handling implementation
Icode_GOSUB = -23,
Icode_STARTSUB = -24,
Icode_RETSUB = -25,
// To indicating a line number change in icodes.
Icode_LINE = -26,
// To store shorts and ints inline
Icode_SHORTNUMBER = -27,
Icode_INTNUMBER = -28,
// To create and populate array to hold values for [] and {} literals
Icode_LITERAL_NEW = -29,
Icode_LITERAL_SET = -30,
// Array literal with skipped index like [1,,2]
Icode_SPARE_ARRAYLIT = -31,
// Load index register to prepare for the following index operation
Icode_REG_IND_C0 = -32,
Icode_REG_IND_C1 = -33,
Icode_REG_IND_C2 = -34,
Icode_REG_IND_C3 = -35,
Icode_REG_IND_C4 = -36,
Icode_REG_IND_C5 = -37,
Icode_REG_IND1 = -38,
Icode_REG_IND2 = -39,
Icode_REG_IND4 = -40,
// Load string register to prepare for the following string operation
Icode_REG_STR_C0 = -41,
Icode_REG_STR_C1 = -42,
Icode_REG_STR_C2 = -43,
Icode_REG_STR_C3 = -44,
Icode_REG_STR1 = -45,
Icode_REG_STR2 = -46,
Icode_REG_STR4 = -47,
// Version of getvar/setvar that read var index directly from bytecode
Icode_GETVAR1 = -48,
Icode_SETVAR1 = -49,
// Load unefined
Icode_UNDEF = -50,
Icode_ZERO = -51,
Icode_ONE = -52,
// entrance and exit from .()
Icode_ENTERDQ = -53,
Icode_LEAVEDQ = -54,
Icode_TAIL_CALL = -55,
// Clear local to allow GC its context
Icode_LOCAL_CLEAR = -56,
// Literal get/set
Icode_LITERAL_GETTER = -57,
Icode_LITERAL_SETTER = -58,
// const
Icode_SETCONST = -59,
Icode_SETCONSTVAR = -60,
Icode_SETCONSTVAR1 = -61,
// Generator opcodes (along with Token.YIELD)
Icode_GENERATOR = -62,
Icode_GENERATOR_END = -63,
Icode_DEBUGGER = -64,
// Last icode
MIN_ICODE = -64;
static String bytecodeName(int bytecode)
{
if (!validBytecode(bytecode)) {
throw new IllegalArgumentException(String.valueOf(bytecode));
}
if (!Token.printICode) {
return String.valueOf(bytecode);
}
if (validTokenCode(bytecode)) {
return Token.name(bytecode);
}
switch (bytecode) {
case Icode_DUP: return "DUP";
case Icode_DUP2: return "DUP2";
case Icode_SWAP: return "SWAP";
case Icode_POP: return "POP";
case Icode_POP_RESULT: return "POP_RESULT";
case Icode_IFEQ_POP: return "IFEQ_POP";
case Icode_VAR_INC_DEC: return "VAR_INC_DEC";
case Icode_NAME_INC_DEC: return "NAME_INC_DEC";
case Icode_PROP_INC_DEC: return "PROP_INC_DEC";
case Icode_ELEM_INC_DEC: return "ELEM_INC_DEC";
case Icode_REF_INC_DEC: return "REF_INC_DEC";
case Icode_SCOPE_LOAD: return "SCOPE_LOAD";
case Icode_SCOPE_SAVE: return "SCOPE_SAVE";
case Icode_TYPEOFNAME: return "TYPEOFNAME";
case Icode_NAME_AND_THIS: return "NAME_AND_THIS";
case Icode_PROP_AND_THIS: return "PROP_AND_THIS";
case Icode_ELEM_AND_THIS: return "ELEM_AND_THIS";
case Icode_VALUE_AND_THIS: return "VALUE_AND_THIS";
case Icode_CLOSURE_EXPR: return "CLOSURE_EXPR";
case Icode_CLOSURE_STMT: return "CLOSURE_STMT";
case Icode_CALLSPECIAL: return "CALLSPECIAL";
case Icode_RETUNDEF: return "RETUNDEF";
case Icode_GOSUB: return "GOSUB";
case Icode_STARTSUB: return "STARTSUB";
case Icode_RETSUB: return "RETSUB";
case Icode_LINE: return "LINE";
case Icode_SHORTNUMBER: return "SHORTNUMBER";
case Icode_INTNUMBER: return "INTNUMBER";
case Icode_LITERAL_NEW: return "LITERAL_NEW";
case Icode_LITERAL_SET: return "LITERAL_SET";
case Icode_SPARE_ARRAYLIT: return "SPARE_ARRAYLIT";
case Icode_REG_IND_C0: return "REG_IND_C0";
case Icode_REG_IND_C1: return "REG_IND_C1";
case Icode_REG_IND_C2: return "REG_IND_C2";
case Icode_REG_IND_C3: return "REG_IND_C3";
case Icode_REG_IND_C4: return "REG_IND_C4";
case Icode_REG_IND_C5: return "REG_IND_C5";
case Icode_REG_IND1: return "LOAD_IND1";
case Icode_REG_IND2: return "LOAD_IND2";
case Icode_REG_IND4: return "LOAD_IND4";
case Icode_REG_STR_C0: return "REG_STR_C0";
case Icode_REG_STR_C1: return "REG_STR_C1";
case Icode_REG_STR_C2: return "REG_STR_C2";
case Icode_REG_STR_C3: return "REG_STR_C3";
case Icode_REG_STR1: return "LOAD_STR1";
case Icode_REG_STR2: return "LOAD_STR2";
case Icode_REG_STR4: return "LOAD_STR4";
case Icode_GETVAR1: return "GETVAR1";
case Icode_SETVAR1: return "SETVAR1";
case Icode_UNDEF: return "UNDEF";
case Icode_ZERO: return "ZERO";
case Icode_ONE: return "ONE";
case Icode_ENTERDQ: return "ENTERDQ";
case Icode_LEAVEDQ: return "LEAVEDQ";
case Icode_TAIL_CALL: return "TAIL_CALL";
case Icode_LOCAL_CLEAR: return "LOCAL_CLEAR";
case Icode_LITERAL_GETTER: return "LITERAL_GETTER";
case Icode_LITERAL_SETTER: return "LITERAL_SETTER";
case Icode_SETCONST: return "SETCONST";
case Icode_SETCONSTVAR: return "SETCONSTVAR";
case Icode_SETCONSTVAR1: return "SETCONSTVAR1";
case Icode_GENERATOR: return "GENERATOR";
case Icode_GENERATOR_END: return "GENERATOR_END";
case Icode_DEBUGGER: return "DEBUGGER";
}
// icode without name
throw new IllegalStateException(String.valueOf(bytecode));
}
static boolean validIcode(int icode)
{
return MIN_ICODE <= icode && icode <= -1;
}
static boolean validTokenCode(int token)
{
return Token.FIRST_BYTECODE_TOKEN <= token
&& token <= Token.LAST_BYTECODE_TOKEN;
}
static boolean validBytecode(int bytecode)
{
return validIcode(bytecode) || validTokenCode(bytecode);
}
}

View File

@@ -1,55 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
* Master for id-based functions that knows their properties and how to
* execute them.
*/
public interface IdFunctionCall
{
/**
* 'thisObj' will be null if invoked as constructor, in which case
* instance of Scriptable should be returned
*/
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args);
}

View File

@@ -1,196 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
public class IdFunctionObject extends BaseFunction
{
static final long serialVersionUID = -5332312783643935019L;
public IdFunctionObject(IdFunctionCall idcall, Object tag, int id, int arity)
{
if (arity < 0)
throw new IllegalArgumentException();
this.idcall = idcall;
this.tag = tag;
this.methodId = id;
this.arity = arity;
if (arity < 0) throw new IllegalArgumentException();
}
public IdFunctionObject(IdFunctionCall idcall, Object tag, int id,
String name, int arity, Scriptable scope)
{
super(scope, null);
if (arity < 0)
throw new IllegalArgumentException();
if (name == null)
throw new IllegalArgumentException();
this.idcall = idcall;
this.tag = tag;
this.methodId = id;
this.arity = arity;
this.functionName = name;
}
public void initFunction(String name, Scriptable scope)
{
if (name == null) throw new IllegalArgumentException();
if (scope == null) throw new IllegalArgumentException();
this.functionName = name;
setParentScope(scope);
}
public final boolean hasTag(Object tag)
{
return this.tag == tag;
}
public final int methodId()
{
return methodId;
}
public final void markAsConstructor(Scriptable prototypeProperty)
{
useCallAsConstructor = true;
setImmunePrototypeProperty(prototypeProperty);
}
public final void addAsProperty(Scriptable target)
{
ScriptableObject.defineProperty(target, functionName, this,
ScriptableObject.DONTENUM);
}
public void exportAsScopeProperty()
{
addAsProperty(getParentScope());
}
@Override
public Scriptable getPrototype()
{
// Lazy initialization of prototype: for native functions this
// may not be called at all
Scriptable proto = super.getPrototype();
if (proto == null) {
proto = getFunctionPrototype(getParentScope());
setPrototype(proto);
}
return proto;
}
@Override
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
{
return idcall.execIdCall(this, cx, scope, thisObj, args);
}
@Override
public Scriptable createObject(Context cx, Scriptable scope)
{
if (useCallAsConstructor) {
return null;
}
// Throw error if not explicitly coded to be used as constructor,
// to satisfy ECMAScript standard (see bugzilla 202019).
// To follow current (2003-05-01) SpiderMonkey behavior, change it to:
// return super.createObject(cx, scope);
throw ScriptRuntime.typeError1("msg.not.ctor", functionName);
}
@Override
String decompile(int indent, int flags)
{
StringBuffer sb = new StringBuffer();
boolean justbody = (0 != (flags & Decompiler.ONLY_BODY_FLAG));
if (!justbody) {
sb.append("function ");
sb.append(getFunctionName());
sb.append("() { ");
}
sb.append("[native code for ");
if (idcall instanceof Scriptable) {
Scriptable sobj = (Scriptable)idcall;
sb.append(sobj.getClassName());
sb.append('.');
}
sb.append(getFunctionName());
sb.append(", arity=");
sb.append(getArity());
sb.append(justbody ? "]\n" : "] }\n");
return sb.toString();
}
@Override
public int getArity()
{
return arity;
}
@Override
public int getLength() { return getArity(); }
@Override
public String getFunctionName()
{
return (functionName == null) ? "" : functionName;
}
public final RuntimeException unknown()
{
// It is program error to call id-like methods for unknown function
return new IllegalArgumentException(
"BAD FUNCTION ID="+methodId+" MASTER="+idcall);
}
private final IdFunctionCall idcall;
private final Object tag;
private final int methodId;
private int arity;
private boolean useCallAsConstructor;
private String functionName;
}

View File

@@ -1,741 +0,0 @@
/* -*- Mode: java; tab-width: 4; indent-tabs-mode: 1; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.io.*;
/**
Base class for native object implementation that uses IdFunctionObject to export its methods to script via <class-name>.prototype object.
Any descendant should implement at least the following methods:
findInstanceIdInfo
getInstanceIdName
execIdCall
methodArity
To define non-function properties, the descendant should override
getInstanceIdValue
setInstanceIdValue
to get/set property value and provide its default attributes.
To customize initializition of constructor and protype objects, descendant
may override scopeInit or fillConstructorProperties methods.
*/
public abstract class IdScriptableObject extends ScriptableObject
implements IdFunctionCall
{
private transient volatile PrototypeValues prototypeValues;
private static final class PrototypeValues implements Serializable
{
static final long serialVersionUID = 3038645279153854371L;
private static final int VALUE_SLOT = 0;
private static final int NAME_SLOT = 1;
private static final int SLOT_SPAN = 2;
private IdScriptableObject obj;
private int maxId;
private volatile Object[] valueArray;
private volatile short[] attributeArray;
private volatile int lastFoundId = 1;
// The following helps to avoid creation of valueArray during runtime
// initialization for common case of "constructor" property
int constructorId;
private IdFunctionObject constructor;
private short constructorAttrs;
PrototypeValues(IdScriptableObject obj, int maxId)
{
if (obj == null) throw new IllegalArgumentException();
if (maxId < 1) throw new IllegalArgumentException();
this.obj = obj;
this.maxId = maxId;
}
final int getMaxId()
{
return maxId;
}
final void initValue(int id, String name, Object value, int attributes)
{
if (!(1 <= id && id <= maxId))
throw new IllegalArgumentException();
if (name == null)
throw new IllegalArgumentException();
if (value == NOT_FOUND)
throw new IllegalArgumentException();
ScriptableObject.checkValidAttributes(attributes);
if (obj.findPrototypeId(name) != id)
throw new IllegalArgumentException(name);
if (id == constructorId) {
if (!(value instanceof IdFunctionObject)) {
throw new IllegalArgumentException("consructor should be initialized with IdFunctionObject");
}
constructor = (IdFunctionObject)value;
constructorAttrs = (short)attributes;
return;
}
initSlot(id, name, value, attributes);
}
private void initSlot(int id, String name, Object value,
int attributes)
{
Object[] array = valueArray;
if (array == null)
throw new IllegalStateException();
if (value == null) {
value = UniqueTag.NULL_VALUE;
}
int index = (id - 1) * SLOT_SPAN;
synchronized (this) {
Object value2 = array[index + VALUE_SLOT];
if (value2 == null) {
array[index + VALUE_SLOT] = value;
array[index + NAME_SLOT] = name;
attributeArray[id - 1] = (short)attributes;
} else {
if (!name.equals(array[index + NAME_SLOT]))
throw new IllegalStateException();
}
}
}
final IdFunctionObject createPrecachedConstructor()
{
if (constructorId != 0) throw new IllegalStateException();
constructorId = obj.findPrototypeId("constructor");
if (constructorId == 0) {
throw new IllegalStateException(
"No id for constructor property");
}
obj.initPrototypeId(constructorId);
if (constructor == null) {
throw new IllegalStateException(
obj.getClass().getName()+".initPrototypeId() did not "
+"initialize id="+constructorId);
}
constructor.initFunction(obj.getClassName(),
ScriptableObject.getTopLevelScope(obj));
constructor.markAsConstructor(obj);
return constructor;
}
final int findId(String name)
{
Object[] array = valueArray;
if (array == null) {
return obj.findPrototypeId(name);
}
int id = lastFoundId;
if (name == array[(id - 1) * SLOT_SPAN + NAME_SLOT]) {
return id;
}
id = obj.findPrototypeId(name);
if (id != 0) {
int nameSlot = (id - 1) * SLOT_SPAN + NAME_SLOT;
// Make cache to work!
array[nameSlot] = name;
lastFoundId = id;
}
return id;
}
final boolean has(int id)
{
Object[] array = valueArray;
if (array == null) {
// Not yet initialized, assume all exists
return true;
}
int valueSlot = (id - 1) * SLOT_SPAN + VALUE_SLOT;
Object value = array[valueSlot];
if (value == null) {
// The particular entry has not been yet initialized
return true;
}
return value != NOT_FOUND;
}
final Object get(int id)
{
Object value = ensureId(id);
if (value == UniqueTag.NULL_VALUE) {
value = null;
}
return value;
}
final void set(int id, Scriptable start, Object value)
{
if (value == NOT_FOUND) throw new IllegalArgumentException();
ensureId(id);
int attr = attributeArray[id - 1];
if ((attr & READONLY) == 0) {
if (start == obj) {
if (value == null) {
value = UniqueTag.NULL_VALUE;
}
int valueSlot = (id - 1) * SLOT_SPAN + VALUE_SLOT;
synchronized (this) {
valueArray[valueSlot] = value;
}
}
else {
int nameSlot = (id - 1) * SLOT_SPAN + NAME_SLOT;
String name = (String)valueArray[nameSlot];
start.put(name, start, value);
}
}
}
final void delete(int id)
{
ensureId(id);
int attr = attributeArray[id - 1];
if ((attr & PERMANENT) == 0) {
int valueSlot = (id - 1) * SLOT_SPAN + VALUE_SLOT;
synchronized (this) {
valueArray[valueSlot] = NOT_FOUND;
attributeArray[id - 1] = EMPTY;
}
}
}
final int getAttributes(int id)
{
ensureId(id);
return attributeArray[id - 1];
}
final void setAttributes(int id, int attributes)
{
ScriptableObject.checkValidAttributes(attributes);
ensureId(id);
synchronized (this) {
attributeArray[id - 1] = (short)attributes;
}
}
final Object[] getNames(boolean getAll, Object[] extraEntries)
{
Object[] names = null;
int count = 0;
for (int id = 1; id <= maxId; ++id) {
Object value = ensureId(id);
if (getAll || (attributeArray[id - 1] & DONTENUM) == 0) {
if (value != NOT_FOUND) {
int nameSlot = (id - 1) * SLOT_SPAN + NAME_SLOT;
String name = (String)valueArray[nameSlot];
if (names == null) {
names = new Object[maxId];
}
names[count++] = name;
}
}
}
if (count == 0) {
return extraEntries;
} else if (extraEntries == null || extraEntries.length == 0) {
if (count != names.length) {
Object[] tmp = new Object[count];
System.arraycopy(names, 0, tmp, 0, count);
names = tmp;
}
return names;
} else {
int extra = extraEntries.length;
Object[] tmp = new Object[extra + count];
System.arraycopy(extraEntries, 0, tmp, 0, extra);
System.arraycopy(names, 0, tmp, extra, count);
return tmp;
}
}
private Object ensureId(int id)
{
Object[] array = valueArray;
if (array == null) {
synchronized (this) {
array = valueArray;
if (array == null) {
array = new Object[maxId * SLOT_SPAN];
valueArray = array;
attributeArray = new short[maxId];
}
}
}
int valueSlot = (id - 1) * SLOT_SPAN + VALUE_SLOT;
Object value = array[valueSlot];
if (value == null) {
if (id == constructorId) {
initSlot(constructorId, "constructor",
constructor, constructorAttrs);
constructor = null; // no need to refer it any longer
} else {
obj.initPrototypeId(id);
}
value = array[valueSlot];
if (value == null) {
throw new IllegalStateException(
obj.getClass().getName()+".initPrototypeId(int id) "
+"did not initialize id="+id);
}
}
return value;
}
}
public IdScriptableObject()
{
}
public IdScriptableObject(Scriptable scope, Scriptable prototype)
{
super(scope, prototype);
}
protected final Object defaultGet(String name)
{
return super.get(name, this);
}
protected final void defaultPut(String name, Object value)
{
super.put(name, this, value);
}
@Override
public boolean has(String name, Scriptable start)
{
int info = findInstanceIdInfo(name);
if (info != 0) {
int attr = (info >>> 16);
if ((attr & PERMANENT) != 0) {
return true;
}
int id = (info & 0xFFFF);
return NOT_FOUND != getInstanceIdValue(id);
}
if (prototypeValues != null) {
int id = prototypeValues.findId(name);
if (id != 0) {
return prototypeValues.has(id);
}
}
return super.has(name, start);
}
@Override
public Object get(String name, Scriptable start)
{
int info = findInstanceIdInfo(name);
if (info != 0) {
int id = (info & 0xFFFF);
return getInstanceIdValue(id);
}
if (prototypeValues != null) {
int id = prototypeValues.findId(name);
if (id != 0) {
return prototypeValues.get(id);
}
}
return super.get(name, start);
}
@Override
public void put(String name, Scriptable start, Object value)
{
int info = findInstanceIdInfo(name);
if (info != 0) {
if (start == this && isSealed()) {
throw Context.reportRuntimeError1("msg.modify.sealed",
name);
}
int attr = (info >>> 16);
if ((attr & READONLY) == 0) {
if (start == this) {
int id = (info & 0xFFFF);
setInstanceIdValue(id, value);
}
else {
start.put(name, start, value);
}
}
return;
}
if (prototypeValues != null) {
int id = prototypeValues.findId(name);
if (id != 0) {
if (start == this && isSealed()) {
throw Context.reportRuntimeError1("msg.modify.sealed",
name);
}
prototypeValues.set(id, start, value);
return;
}
}
super.put(name, start, value);
}
@Override
public void delete(String name)
{
int info = findInstanceIdInfo(name);
if (info != 0) {
// Let the super class to throw exceptions for sealed objects
if (!isSealed()) {
int attr = (info >>> 16);
if ((attr & PERMANENT) == 0) {
int id = (info & 0xFFFF);
setInstanceIdValue(id, NOT_FOUND);
}
return;
}
}
if (prototypeValues != null) {
int id = prototypeValues.findId(name);
if (id != 0) {
if (!isSealed()) {
prototypeValues.delete(id);
}
return;
}
}
super.delete(name);
}
@Override
public int getAttributes(String name)
{
int info = findInstanceIdInfo(name);
if (info != 0) {
int attr = (info >>> 16);
return attr;
}
if (prototypeValues != null) {
int id = prototypeValues.findId(name);
if (id != 0) {
return prototypeValues.getAttributes(id);
}
}
return super.getAttributes(name);
}
@Override
public void setAttributes(String name, int attributes)
{
ScriptableObject.checkValidAttributes(attributes);
int info = findInstanceIdInfo(name);
if (info != 0) {
int currentAttributes = (info >>> 16);
if (attributes != currentAttributes) {
throw new RuntimeException(
"Change of attributes for this id is not supported");
}
return;
}
if (prototypeValues != null) {
int id = prototypeValues.findId(name);
if (id != 0) {
prototypeValues.setAttributes(id, attributes);
return;
}
}
super.setAttributes(name, attributes);
}
@Override
Object[] getIds(boolean getAll)
{
Object[] result = super.getIds(getAll);
if (prototypeValues != null) {
result = prototypeValues.getNames(getAll, result);
}
int maxInstanceId = getMaxInstanceId();
if (maxInstanceId != 0) {
Object[] ids = null;
int count = 0;
for (int id = maxInstanceId; id != 0; --id) {
String name = getInstanceIdName(id);
int info = findInstanceIdInfo(name);
if (info != 0) {
int attr = (info >>> 16);
if ((attr & PERMANENT) == 0) {
if (NOT_FOUND == getInstanceIdValue(id)) {
continue;
}
}
if (getAll || (attr & DONTENUM) == 0) {
if (count == 0) {
// Need extra room for no more then [1..id] names
ids = new Object[id];
}
ids[count++] = name;
}
}
}
if (count != 0) {
if (result.length == 0 && ids.length == count) {
result = ids;
}
else {
Object[] tmp = new Object[result.length + count];
System.arraycopy(result, 0, tmp, 0, result.length);
System.arraycopy(ids, 0, tmp, result.length, count);
result = tmp;
}
}
}
return result;
}
/**
* Get maximum id findInstanceIdInfo can generate.
*/
protected int getMaxInstanceId()
{
return 0;
}
protected static int instanceIdInfo(int attributes, int id)
{
return (attributes << 16) | id;
}
/**
* Map name to id of instance property.
* Should return 0 if not found or the result of
* {@link #instanceIdInfo(int, int)}.
*/
protected int findInstanceIdInfo(String name)
{
return 0;
}
/** Map id back to property name it defines.
*/
protected String getInstanceIdName(int id)
{
throw new IllegalArgumentException(String.valueOf(id));
}
/** Get id value.
** If id value is constant, descendant can call cacheIdValue to store
** value in the permanent cache.
** Default implementation creates IdFunctionObject instance for given id
** and cache its value
*/
protected Object getInstanceIdValue(int id)
{
throw new IllegalStateException(String.valueOf(id));
}
/**
* Set or delete id value. If value == NOT_FOUND , the implementation
* should make sure that the following getInstanceIdValue return NOT_FOUND.
*/
protected void setInstanceIdValue(int id, Object value)
{
throw new IllegalStateException(String.valueOf(id));
}
/** 'thisObj' will be null if invoked as constructor, in which case
** instance of Scriptable should be returned. */
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
throw f.unknown();
}
public final IdFunctionObject exportAsJSClass(int maxPrototypeId,
Scriptable scope,
boolean sealed)
{
// Set scope and prototype unless this is top level scope itself
if (scope != this && scope != null) {
setParentScope(scope);
setPrototype(getObjectPrototype(scope));
}
activatePrototypeMap(maxPrototypeId);
IdFunctionObject ctor = prototypeValues.createPrecachedConstructor();
if (sealed) {
sealObject();
}
fillConstructorProperties(ctor);
if (sealed) {
ctor.sealObject();
}
ctor.exportAsScopeProperty();
return ctor;
}
public final boolean hasPrototypeMap()
{
return prototypeValues != null;
}
public final void activatePrototypeMap(int maxPrototypeId)
{
PrototypeValues values = new PrototypeValues(this, maxPrototypeId);
synchronized (this) {
if (prototypeValues != null)
throw new IllegalStateException();
prototypeValues = values;
}
}
public final void initPrototypeMethod(Object tag, int id, String name,
int arity)
{
Scriptable scope = ScriptableObject.getTopLevelScope(this);
IdFunctionObject f = newIdFunction(tag, id, name, arity, scope);
prototypeValues.initValue(id, name, f, DONTENUM);
}
public final void initPrototypeConstructor(IdFunctionObject f)
{
int id = prototypeValues.constructorId;
if (id == 0)
throw new IllegalStateException();
if (f.methodId() != id)
throw new IllegalArgumentException();
if (isSealed()) { f.sealObject(); }
prototypeValues.initValue(id, "constructor", f, DONTENUM);
}
public final void initPrototypeValue(int id, String name, Object value,
int attributes)
{
prototypeValues.initValue(id, name, value, attributes);
}
protected void initPrototypeId(int id)
{
throw new IllegalStateException(String.valueOf(id));
}
protected int findPrototypeId(String name)
{
throw new IllegalStateException(name);
}
protected void fillConstructorProperties(IdFunctionObject ctor)
{
}
protected void addIdFunctionProperty(Scriptable obj, Object tag, int id,
String name, int arity)
{
Scriptable scope = ScriptableObject.getTopLevelScope(obj);
IdFunctionObject f = newIdFunction(tag, id, name, arity, scope);
f.addAsProperty(obj);
}
/**
* Utility method to construct type error to indicate incompatible call
* when converting script thisObj to a particular type is not possible.
* Possible usage would be to have a private function like realThis:
* <pre>
* private static NativeSomething realThis(Scriptable thisObj,
* IdFunctionObject f)
* {
* if (!(thisObj instanceof NativeSomething))
* throw incompatibleCallError(f);
* return (NativeSomething)thisObj;
* }
* </pre>
* Note that although such function can be implemented universally via
* java.lang.Class.isInstance(), it would be much more slower.
* @param f function that is attempting to convert 'this'
* object.
* @return Scriptable object suitable for a check by the instanceof
* operator.
* @throws RuntimeException if no more instanceof target can be found
*/
protected static EcmaError incompatibleCallError(IdFunctionObject f)
{
throw ScriptRuntime.typeError1("msg.incompat.call",
f.getFunctionName());
}
private IdFunctionObject newIdFunction(Object tag, int id, String name,
int arity, Scriptable scope)
{
IdFunctionObject f = new IdFunctionObject(this, tag, id, name, arity,
scope);
if (isSealed()) { f.sealObject(); }
return f;
}
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException
{
stream.defaultReadObject();
int maxPrototypeId = stream.readInt();
if (maxPrototypeId != 0) {
activatePrototypeMap(maxPrototypeId);
}
}
private void writeObject(ObjectOutputStream stream)
throws IOException
{
stream.defaultWriteObject();
int maxPrototypeId = 0;
if (prototypeValues != null) {
maxPrototypeId = prototypeValues.getMaxId();
}
stream.writeInt(maxPrototypeId);
}
}

View File

@@ -1,324 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
* Matthias Radestock
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* Class ImporterTopLevel
*
* This class defines a ScriptableObject that can be instantiated
* as a top-level ("global") object to provide functionality similar
* to Java's "import" statement.
* <p>
* This class can be used to create a top-level scope using the following code:
* <pre>
* Scriptable scope = new ImporterTopLevel(cx);
* </pre>
* Then JavaScript code will have access to the following methods:
* <ul>
* <li>importClass - will "import" a class by making its unqualified name
* available as a property of the top-level scope
* <li>importPackage - will "import" all the classes of the package by
* searching for unqualified names as classes qualified
* by the given package.
* </ul>
* The following code from the shell illustrates this use:
* <pre>
* js> importClass(java.io.File)
* js> f = new File('help.txt')
* help.txt
* js> importPackage(java.util)
* js> v = new Vector()
* []
*
* @author Norris Boyd
*/
public class ImporterTopLevel extends IdScriptableObject
{
static final long serialVersionUID = -9095380847465315412L;
private static final Object IMPORTER_TAG = "Importer";
public ImporterTopLevel() { }
public ImporterTopLevel(Context cx) {
this(cx, false);
}
public ImporterTopLevel(Context cx, boolean sealed)
{
initStandardObjects(cx, sealed);
}
@Override
public String getClassName()
{
return (topScopeFlag) ? "global" : "JavaImporter";
}
public static void init(Context cx, Scriptable scope, boolean sealed)
{
ImporterTopLevel obj = new ImporterTopLevel();
obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed);
}
public void initStandardObjects(Context cx, boolean sealed)
{
// Assume that Context.initStandardObjects initialize JavaImporter
// property lazily so the above init call is not yet called
cx.initStandardObjects(this, sealed);
topScopeFlag = true;
// If seal is true then exportAsJSClass(cx, seal) would seal
// this obj. Since this is scope as well, it would not allow
// to add variables.
IdFunctionObject ctor = exportAsJSClass(MAX_PROTOTYPE_ID, this, false);
if (sealed) {
ctor.sealObject();
}
// delete "constructor" defined by exportAsJSClass so "constructor"
// name would refer to Object.constructor
// and not to JavaImporter.prototype.constructor.
delete("constructor");
}
@Override
public boolean has(String name, Scriptable start) {
return super.has(name, start)
|| getPackageProperty(name, start) != NOT_FOUND;
}
@Override
public Object get(String name, Scriptable start) {
Object result = super.get(name, start);
if (result != NOT_FOUND)
return result;
result = getPackageProperty(name, start);
return result;
}
private Object getPackageProperty(String name, Scriptable start) {
Object result = NOT_FOUND;
Object[] elements;
synchronized (importedPackages) {
elements = importedPackages.toArray();
}
for (int i=0; i < elements.length; i++) {
NativeJavaPackage p = (NativeJavaPackage) elements[i];
Object v = p.getPkgProperty(name, start, false);
if (v != null && !(v instanceof NativeJavaPackage)) {
if (result == NOT_FOUND) {
result = v;
} else {
throw Context.reportRuntimeError2(
"msg.ambig.import", result.toString(), v.toString());
}
}
}
return result;
}
/**
* @deprecated Kept only for compatibility.
*/
public void importPackage(Context cx, Scriptable thisObj, Object[] args,
Function funObj)
{
js_importPackage(args);
}
private Object js_construct(Scriptable scope, Object[] args)
{
ImporterTopLevel result = new ImporterTopLevel();
for (int i = 0; i != args.length; ++i) {
Object arg = args[i];
if (arg instanceof NativeJavaClass) {
result.importClass((NativeJavaClass)arg);
} else if (arg instanceof NativeJavaPackage) {
result.importPackage((NativeJavaPackage)arg);
} else {
throw Context.reportRuntimeError1(
"msg.not.class.not.pkg", Context.toString(arg));
}
}
// set explicitly prototype and scope
// as otherwise in top scope mode BaseFunction.construct
// would keep them set to null. It also allow to use
// JavaImporter without new and still get properly
// initialized object.
result.setParentScope(scope);
result.setPrototype(this);
return result;
}
private Object js_importClass(Object[] args)
{
for (int i = 0; i != args.length; i++) {
Object arg = args[i];
if (!(arg instanceof NativeJavaClass)) {
throw Context.reportRuntimeError1(
"msg.not.class", Context.toString(arg));
}
importClass((NativeJavaClass)arg);
}
return Undefined.instance;
}
private Object js_importPackage(Object[] args)
{
for (int i = 0; i != args.length; i++) {
Object arg = args[i];
if (!(arg instanceof NativeJavaPackage)) {
throw Context.reportRuntimeError1(
"msg.not.pkg", Context.toString(arg));
}
importPackage((NativeJavaPackage)arg);
}
return Undefined.instance;
}
private void importPackage(NativeJavaPackage pkg)
{
if(pkg == null) {
return;
}
synchronized (importedPackages) {
for (int j = 0; j != importedPackages.size(); j++) {
if (pkg.equals(importedPackages.get(j))) {
return;
}
}
importedPackages.add(pkg);
}
}
private void importClass(NativeJavaClass cl)
{
String s = cl.getClassObject().getName();
String n = s.substring(s.lastIndexOf('.')+1);
Object val = get(n, this);
if (val != NOT_FOUND && val != cl) {
throw Context.reportRuntimeError1("msg.prop.defined", n);
}
//defineProperty(n, cl, DONTENUM);
put(n, this, cl);
}
@Override
protected void initPrototypeId(int id)
{
String s;
int arity;
switch (id) {
case Id_constructor: arity=0; s="constructor"; break;
case Id_importClass: arity=1; s="importClass"; break;
case Id_importPackage: arity=1; s="importPackage"; break;
default: throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(IMPORTER_TAG, id, s, arity);
}
@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (!f.hasTag(IMPORTER_TAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
switch (id) {
case Id_constructor:
return js_construct(scope, args);
case Id_importClass:
return realThis(thisObj, f).js_importClass(args);
case Id_importPackage:
return realThis(thisObj, f).js_importPackage(args);
}
throw new IllegalArgumentException(String.valueOf(id));
}
private ImporterTopLevel realThis(Scriptable thisObj, IdFunctionObject f)
{
if (topScopeFlag) {
// when used as top scope importPackage and importClass are global
// function that ignore thisObj
return this;
}
if (!(thisObj instanceof ImporterTopLevel))
throw incompatibleCallError(f);
return (ImporterTopLevel)thisObj;
}
// #string_id_map#
@Override
protected int findPrototypeId(String s)
{
int id;
// #generated# Last update: 2007-05-09 08:15:24 EDT
L0: { id = 0; String X = null; int c;
int s_length = s.length();
if (s_length==11) {
c=s.charAt(0);
if (c=='c') { X="constructor";id=Id_constructor; }
else if (c=='i') { X="importClass";id=Id_importClass; }
}
else if (s_length==13) { X="importPackage";id=Id_importPackage; }
if (X!=null && X!=s && !X.equals(s)) id = 0;
break L0;
}
// #/generated#
return id;
}
private static final int
Id_constructor = 1,
Id_importClass = 2,
Id_importPackage = 3,
MAX_PROTOTYPE_ID = 3;
// #/string_id_map#
private ObjArray importedPackages = new ObjArray();
private boolean topScopeFlag;
}

View File

@@ -1,156 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.lang.reflect.Method;
/**
* Adapter to use JS function as implementation of Java interfaces with
* single method or multiple methods with the same signature.
*/
public class InterfaceAdapter
{
private final Object proxyHelper;
/**
* Make glue object implementing interface cl that will
* call the supplied JS function when called.
* Only interfaces were all methods have the same signature is supported.
*
* @return The glue object or null if <tt>cl</tt> is not interface or
* has methods with different signatures.
*/
static Object create(Context cx, Class<?> cl, Callable function)
{
if (!cl.isInterface()) throw new IllegalArgumentException();
Scriptable topScope = ScriptRuntime.getTopCallScope(cx);
ClassCache cache = ClassCache.get(topScope);
InterfaceAdapter adapter;
adapter = (InterfaceAdapter)cache.getInterfaceAdapter(cl);
ContextFactory cf = cx.getFactory();
if (adapter == null) {
Method[] methods = cl.getMethods();
if (methods.length == 0) {
throw Context.reportRuntimeError2(
"msg.no.empty.interface.conversion",
String.valueOf(function),
cl.getClass().getName());
}
boolean canCallFunction = false;
canCallFunctionChecks: {
Class<?>[] argTypes = methods[0].getParameterTypes();
// check that the rest of methods has the same signature
for (int i = 1; i != methods.length; ++i) {
Class<?>[] types2 = methods[i].getParameterTypes();
if (types2.length != argTypes.length) {
break canCallFunctionChecks;
}
for (int j = 0; j != argTypes.length; ++j) {
if (types2[j] != argTypes[j]) {
break canCallFunctionChecks;
}
}
}
canCallFunction= true;
}
if (!canCallFunction) {
throw Context.reportRuntimeError2(
"msg.no.function.interface.conversion",
String.valueOf(function),
cl.getClass().getName());
}
adapter = new InterfaceAdapter(cf, cl);
cache.cacheInterfaceAdapter(cl, adapter);
}
return VMBridge.instance.newInterfaceProxy(
adapter.proxyHelper, cf, adapter, function, topScope);
}
private InterfaceAdapter(ContextFactory cf, Class<?> cl)
{
this.proxyHelper
= VMBridge.instance.getInterfaceProxyHelper(
cf, new Class[] { cl });
}
public Object invoke(ContextFactory cf,
final Object target,
final Scriptable topScope,
final Method method,
final Object[] args)
{
ContextAction action = new ContextAction() {
public Object run(Context cx)
{
return invokeImpl(cx, target, topScope, method, args);
}
};
return cf.call(action);
}
Object invokeImpl(Context cx,
Object target,
Scriptable topScope,
Method method,
Object[] args)
{
int N = (args == null) ? 0 : args.length;
Callable function = (Callable)target;
Scriptable thisObj = topScope;
Object[] jsargs = new Object[N + 1];
jsargs[N] = method.getName();
if (N != 0) {
WrapFactory wf = cx.getWrapFactory();
for (int i = 0; i != N; ++i) {
jsargs[i] = wf.wrap(cx, topScope, args[i], null);
}
}
Object result = function.call(cx, topScope, thisObj, jsargs);
Class<?> javaResultType = method.getReturnType();
if (javaResultType == Void.TYPE) {
result = null;
} else {
result = Context.jsToJava(result, javaResultType);
}
return result;
}
}

View File

@@ -1,235 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
* Bob Jervis
* Roger Lawrence
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import org.mozilla.javascript.debug.DebuggableScript;
final class InterpretedFunction extends NativeFunction implements Script
{
static final long serialVersionUID = 541475680333911468L;
InterpreterData idata;
SecurityController securityController;
Object securityDomain;
Scriptable[] functionRegExps;
private InterpretedFunction(InterpreterData idata,
Object staticSecurityDomain)
{
this.idata = idata;
// Always get Context from the current thread to
// avoid security breaches via passing mangled Context instances
// with bogus SecurityController
Context cx = Context.getContext();
SecurityController sc = cx.getSecurityController();
Object dynamicDomain;
if (sc != null) {
dynamicDomain = sc.getDynamicSecurityDomain(staticSecurityDomain);
} else {
if (staticSecurityDomain != null) {
throw new IllegalArgumentException();
}
dynamicDomain = null;
}
this.securityController = sc;
this.securityDomain = dynamicDomain;
}
private InterpretedFunction(InterpretedFunction parent, int index)
{
this.idata = parent.idata.itsNestedFunctions[index];
this.securityController = parent.securityController;
this.securityDomain = parent.securityDomain;
}
/**
* Create script from compiled bytecode.
*/
static InterpretedFunction createScript(InterpreterData idata,
Object staticSecurityDomain)
{
InterpretedFunction f;
f = new InterpretedFunction(idata, staticSecurityDomain);
return f;
}
/**
* Create function compiled from Function(...) constructor.
*/
static InterpretedFunction createFunction(Context cx,Scriptable scope,
InterpreterData idata,
Object staticSecurityDomain)
{
InterpretedFunction f;
f = new InterpretedFunction(idata, staticSecurityDomain);
f.initInterpretedFunction(cx, scope);
return f;
}
/**
* Create function embedded in script or another function.
*/
static InterpretedFunction createFunction(Context cx, Scriptable scope,
InterpretedFunction parent,
int index)
{
InterpretedFunction f = new InterpretedFunction(parent, index);
f.initInterpretedFunction(cx, scope);
return f;
}
Scriptable[] createRegExpWraps(Context cx, Scriptable scope)
{
if (idata.itsRegExpLiterals == null) Kit.codeBug();
RegExpProxy rep = ScriptRuntime.checkRegExpProxy(cx);
int N = idata.itsRegExpLiterals.length;
Scriptable[] array = new Scriptable[N];
for (int i = 0; i != N; ++i) {
array[i] = rep.wrapRegExp(cx, scope, idata.itsRegExpLiterals[i]);
}
return array;
}
private void initInterpretedFunction(Context cx, Scriptable scope)
{
initScriptFunction(cx, scope);
if (idata.itsRegExpLiterals != null) {
functionRegExps = createRegExpWraps(cx, scope);
}
}
@Override
public String getFunctionName()
{
return (idata.itsName == null) ? "" : idata.itsName;
}
/**
* Calls the function.
* @param cx the current context
* @param scope the scope used for the call
* @param thisObj the value of "this"
* @param args function arguments. Must not be null. You can use
* {@link ScriptRuntime#emptyArgs} to pass empty arguments.
* @return the result of the function call.
*/
@Override
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
{
if (!ScriptRuntime.hasTopCall(cx)) {
return ScriptRuntime.doTopCall(this, cx, scope, thisObj, args);
}
return Interpreter.interpret(this, cx, scope, thisObj, args);
}
public Object exec(Context cx, Scriptable scope)
{
if (!isScript()) {
// Can only be applied to scripts
throw new IllegalStateException();
}
if (!ScriptRuntime.hasTopCall(cx)) {
// It will go through "call" path. but they are equivalent
return ScriptRuntime.doTopCall(
this, cx, scope, scope, ScriptRuntime.emptyArgs);
}
return Interpreter.interpret(
this, cx, scope, scope, ScriptRuntime.emptyArgs);
}
public boolean isScript() {
return idata.itsFunctionType == 0;
}
@Override
public String getEncodedSource()
{
return Interpreter.getEncodedSource(idata);
}
@Override
public DebuggableScript getDebuggableView()
{
return idata;
}
@Override
public Object resumeGenerator(Context cx, Scriptable scope, int operation,
Object state, Object value)
{
return Interpreter.resumeGenerator(cx, scope, operation, state, value);
}
@Override
protected int getLanguageVersion()
{
return idata.languageVersion;
}
@Override
protected int getParamCount()
{
return idata.argCount;
}
@Override
protected int getParamAndVarCount()
{
return idata.argNames.length;
}
@Override
protected String getParamOrVarName(int index)
{
return idata.argNames[index];
}
@Override
protected boolean getParamOrVarConst(int index)
{
return idata.argIsConst[index];
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,192 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Bob Jervis
* Roger Lawrence
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.io.Serializable;
import org.mozilla.javascript.debug.DebuggableScript;
final class InterpreterData implements Serializable, DebuggableScript
{
static final long serialVersionUID = 5067677351589230234L;
static final int INITIAL_MAX_ICODE_LENGTH = 1024;
static final int INITIAL_STRINGTABLE_SIZE = 64;
static final int INITIAL_NUMBERTABLE_SIZE = 64;
InterpreterData(int languageVersion,
String sourceFile, String encodedSource)
{
this.languageVersion = languageVersion;
this.itsSourceFile = sourceFile;
this.encodedSource = encodedSource;
init();
}
InterpreterData(InterpreterData parent)
{
this.parentData = parent;
this.languageVersion = parent.languageVersion;
this.itsSourceFile = parent.itsSourceFile;
this.encodedSource = parent.encodedSource;
init();
}
private void init()
{
itsICode = new byte[INITIAL_MAX_ICODE_LENGTH];
itsStringTable = new String[INITIAL_STRINGTABLE_SIZE];
}
String itsName;
String itsSourceFile;
boolean itsNeedsActivation;
int itsFunctionType;
String[] itsStringTable;
double[] itsDoubleTable;
InterpreterData[] itsNestedFunctions;
Object[] itsRegExpLiterals;
byte[] itsICode;
int[] itsExceptionTable;
int itsMaxVars;
int itsMaxLocals;
int itsMaxStack;
int itsMaxFrameArray;
// see comments in NativeFuncion for definition of argNames and argCount
String[] argNames;
boolean[] argIsConst;
int argCount;
int itsMaxCalleeArgs;
String encodedSource;
int encodedSourceStart;
int encodedSourceEnd;
int languageVersion;
boolean useDynamicScope;
boolean topLevel;
Object[] literalIds;
UintMap longJumps;
int firstLinePC = -1; // PC for the first LINE icode
InterpreterData parentData;
boolean evalScriptFlag; // true if script corresponds to eval() code
public boolean isTopLevel()
{
return topLevel;
}
public boolean isFunction()
{
return itsFunctionType != 0;
}
public String getFunctionName()
{
return itsName;
}
public int getParamCount()
{
return argCount;
}
public int getParamAndVarCount()
{
return argNames.length;
}
public String getParamOrVarName(int index)
{
return argNames[index];
}
public boolean getParamOrVarConst(int index)
{
return argIsConst[index];
}
public String getSourceName()
{
return itsSourceFile;
}
public boolean isGeneratedScript()
{
return ScriptRuntime.isGeneratedScript(itsSourceFile);
}
public int[] getLineNumbers()
{
return Interpreter.getLineNumbers(this);
}
public int getFunctionCount()
{
return (itsNestedFunctions == null) ? 0 : itsNestedFunctions.length;
}
public DebuggableScript getFunction(int index)
{
return itsNestedFunctions[index];
}
public DebuggableScript getParent()
{
return parentData;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,932 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Cameron McCormack
* Frank Mitchell
* Mike Shaver
* Kurt Westerfeld
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.lang.reflect.*;
import java.util.*;
/**
*
* @author Mike Shaver
* @author Norris Boyd
* @see NativeJavaObject
* @see NativeJavaClass
*/
class JavaMembers
{
JavaMembers(Scriptable scope, Class<?> cl)
{
this(scope, cl, false);
}
JavaMembers(Scriptable scope, Class<?> cl, boolean includeProtected)
{
try {
Context cx = ContextFactory.getGlobal().enterContext();
ClassShutter shutter = cx.getClassShutter();
if (shutter != null && !shutter.visibleToScripts(cl.getName())) {
throw Context.reportRuntimeError1("msg.access.prohibited",
cl.getName());
}
this.includePrivate = cx.hasFeature(
Context.FEATURE_ENHANCED_JAVA_ACCESS);
this.members = new HashMap<String,Object>();
this.staticMembers = new HashMap<String,Object>();
this.cl = cl;
reflect(scope, includeProtected);
} finally {
Context.exit();
}
}
boolean has(String name, boolean isStatic)
{
Map<String,Object> ht = isStatic ? staticMembers : members;
Object obj = ht.get(name);
if (obj != null) {
return true;
}
return findExplicitFunction(name, isStatic) != null;
}
Object get(Scriptable scope, String name, Object javaObject,
boolean isStatic)
{
Map<String,Object> ht = isStatic ? staticMembers : members;
Object member = ht.get(name);
if (!isStatic && member == null) {
// Try to get static member from instance (LC3)
member = staticMembers.get(name);
}
if (member == null) {
member = this.getExplicitFunction(scope, name,
javaObject, isStatic);
if (member == null)
return Scriptable.NOT_FOUND;
}
if (member instanceof Scriptable) {
return member;
}
Context cx = Context.getContext();
Object rval;
Class<?> type;
try {
if (member instanceof BeanProperty) {
BeanProperty bp = (BeanProperty) member;
if (bp.getter == null)
return Scriptable.NOT_FOUND;
rval = bp.getter.invoke(javaObject, Context.emptyArgs);
type = bp.getter.method().getReturnType();
} else {
Field field = (Field) member;
rval = field.get(isStatic ? null : javaObject);
type = field.getType();
}
} catch (Exception ex) {
throw Context.throwAsScriptRuntimeEx(ex);
}
// Need to wrap the object before we return it.
scope = ScriptableObject.getTopLevelScope(scope);
return cx.getWrapFactory().wrap(cx, scope, rval, type);
}
void put(Scriptable scope, String name, Object javaObject,
Object value, boolean isStatic)
{
Map<String,Object> ht = isStatic ? staticMembers : members;
Object member = ht.get(name);
if (!isStatic && member == null) {
// Try to get static member from instance (LC3)
member = staticMembers.get(name);
}
if (member == null)
throw reportMemberNotFound(name);
if (member instanceof FieldAndMethods) {
FieldAndMethods fam = (FieldAndMethods) ht.get(name);
member = fam.field;
}
// Is this a bean property "set"?
if (member instanceof BeanProperty) {
BeanProperty bp = (BeanProperty)member;
if (bp.setter == null) {
throw reportMemberNotFound(name);
}
// If there's only one setter or if the value is null, use the
// main setter. Otherwise, let the NativeJavaMethod decide which
// setter to use:
if (bp.setters == null || value == null) {
Class<?> setType = bp.setter.argTypes[0];
Object[] args = { Context.jsToJava(value, setType) };
try {
bp.setter.invoke(javaObject, args);
} catch (Exception ex) {
throw Context.throwAsScriptRuntimeEx(ex);
}
} else {
Object[] args = { value };
bp.setters.call(Context.getContext(),
ScriptableObject.getTopLevelScope(scope),
scope, args);
}
}
else {
if (!(member instanceof Field)) {
String str = (member == null) ? "msg.java.internal.private"
: "msg.java.method.assign";
throw Context.reportRuntimeError1(str, name);
}
Field field = (Field)member;
Object javaValue = Context.jsToJava(value, field.getType());
try {
field.set(javaObject, javaValue);
} catch (IllegalAccessException accessEx) {
if ((field.getModifiers() & Modifier.FINAL) != 0) {
// treat Java final the same as JavaScript [[READONLY]]
return;
}
throw Context.throwAsScriptRuntimeEx(accessEx);
} catch (IllegalArgumentException argEx) {
throw Context.reportRuntimeError3(
"msg.java.internal.field.type",
value.getClass().getName(), field,
javaObject.getClass().getName());
}
}
}
Object[] getIds(boolean isStatic)
{
Map<String,Object> map = isStatic ? staticMembers : members;
return map.keySet().toArray(new Object[map.size()]);
}
static String javaSignature(Class<?> type)
{
if (!type.isArray()) {
return type.getName();
} else {
int arrayDimension = 0;
do {
++arrayDimension;
type = type.getComponentType();
} while (type.isArray());
String name = type.getName();
String suffix = "[]";
if (arrayDimension == 1) {
return name.concat(suffix);
} else {
int length = name.length() + arrayDimension * suffix.length();
StringBuffer sb = new StringBuffer(length);
sb.append(name);
while (arrayDimension != 0) {
--arrayDimension;
sb.append(suffix);
}
return sb.toString();
}
}
}
static String liveConnectSignature(Class<?>[] argTypes)
{
int N = argTypes.length;
if (N == 0) { return "()"; }
StringBuffer sb = new StringBuffer();
sb.append('(');
for (int i = 0; i != N; ++i) {
if (i != 0) {
sb.append(',');
}
sb.append(javaSignature(argTypes[i]));
}
sb.append(')');
return sb.toString();
}
private MemberBox findExplicitFunction(String name, boolean isStatic)
{
int sigStart = name.indexOf('(');
if (sigStart < 0) { return null; }
Map<String,Object> ht = isStatic ? staticMembers : members;
MemberBox[] methodsOrCtors = null;
boolean isCtor = (isStatic && sigStart == 0);
if (isCtor) {
// Explicit request for an overloaded constructor
methodsOrCtors = ctors;
} else {
// Explicit request for an overloaded method
String trueName = name.substring(0,sigStart);
Object obj = ht.get(trueName);
if (!isStatic && obj == null) {
// Try to get static member from instance (LC3)
obj = staticMembers.get(trueName);
}
if (obj instanceof NativeJavaMethod) {
NativeJavaMethod njm = (NativeJavaMethod)obj;
methodsOrCtors = njm.methods;
}
}
if (methodsOrCtors != null) {
for (int i = 0; i < methodsOrCtors.length; i++) {
Class<?>[] type = methodsOrCtors[i].argTypes;
String sig = liveConnectSignature(type);
if (sigStart + sig.length() == name.length()
&& name.regionMatches(sigStart, sig, 0, sig.length()))
{
return methodsOrCtors[i];
}
}
}
return null;
}
private Object getExplicitFunction(Scriptable scope, String name,
Object javaObject, boolean isStatic)
{
Map<String,Object> ht = isStatic ? staticMembers : members;
Object member = null;
MemberBox methodOrCtor = findExplicitFunction(name, isStatic);
if (methodOrCtor != null) {
Scriptable prototype =
ScriptableObject.getFunctionPrototype(scope);
if (methodOrCtor.isCtor()) {
NativeJavaConstructor fun =
new NativeJavaConstructor(methodOrCtor);
fun.setPrototype(prototype);
member = fun;
ht.put(name, fun);
} else {
String trueName = methodOrCtor.getName();
member = ht.get(trueName);
if (member instanceof NativeJavaMethod &&
((NativeJavaMethod)member).methods.length > 1 ) {
NativeJavaMethod fun =
new NativeJavaMethod(methodOrCtor, name);
fun.setPrototype(prototype);
ht.put(name, fun);
member = fun;
}
}
}
return member;
}
/**
* Retrieves mapping of methods to accessible methods for a class.
* In case the class is not public, retrieves methods with same
* signature as its public methods from public superclasses and
* interfaces (if they exist). Basically upcasts every method to the
* nearest accessible method.
*/
private static Method[] discoverAccessibleMethods(Class<?> clazz,
boolean includeProtected,
boolean includePrivate)
{
Map<MethodSignature,Method> map = new HashMap<MethodSignature,Method>();
discoverAccessibleMethods(clazz, map, includeProtected, includePrivate);
return map.values().toArray(new Method[map.size()]);
}
private static void discoverAccessibleMethods(Class<?> clazz,
Map<MethodSignature,Method> map, boolean includeProtected,
boolean includePrivate)
{
if (Modifier.isPublic(clazz.getModifiers()) || includePrivate) {
try {
if (includeProtected || includePrivate) {
while (clazz != null) {
try {
Method[] methods = clazz.getDeclaredMethods();
for (int i = 0; i < methods.length; i++) {
Method method = methods[i];
int mods = method.getModifiers();
if (Modifier.isPublic(mods) ||
Modifier.isProtected(mods) ||
includePrivate)
{
if (includePrivate)
method.setAccessible(true);
map.put(new MethodSignature(method), method);
}
}
clazz = clazz.getSuperclass();
} catch (SecurityException e) {
// Some security settings (i.e., applets) disallow
// access to Class.getDeclaredMethods. Fall back to
// Class.getMethods.
Method[] methods = clazz.getMethods();
for (int i = 0; i < methods.length; i++) {
Method method = methods[i];
MethodSignature sig
= new MethodSignature(method);
if (map.get(sig) == null)
map.put(sig, method);
}
break; // getMethods gets superclass methods, no
// need to loop any more
}
}
} else {
Method[] methods = clazz.getMethods();
for (int i = 0; i < methods.length; i++) {
Method method = methods[i];
MethodSignature sig = new MethodSignature(method);
map.put(sig, method);
}
}
return;
} catch (SecurityException e) {
Context.reportWarning(
"Could not discover accessible methods of class " +
clazz.getName() + " due to lack of privileges, " +
"attemping superclasses/interfaces.");
// Fall through and attempt to discover superclass/interface
// methods
}
}
Class<?>[] interfaces = clazz.getInterfaces();
for (int i = 0; i < interfaces.length; i++) {
discoverAccessibleMethods(interfaces[i], map, includeProtected,
includePrivate);
}
Class<?> superclass = clazz.getSuperclass();
if (superclass != null) {
discoverAccessibleMethods(superclass, map, includeProtected,
includePrivate);
}
}
private static final class MethodSignature
{
private final String name;
private final Class<?>[] args;
private MethodSignature(String name, Class<?>[] args)
{
this.name = name;
this.args = args;
}
MethodSignature(Method method)
{
this(method.getName(), method.getParameterTypes());
}
@Override
public boolean equals(Object o)
{
if(o instanceof MethodSignature)
{
MethodSignature ms = (MethodSignature)o;
return ms.name.equals(name) && Arrays.equals(args, ms.args);
}
return false;
}
@Override
public int hashCode()
{
return name.hashCode() ^ args.length;
}
}
private void reflect(Scriptable scope, boolean includeProtected)
{
// We reflect methods first, because we want overloaded field/method
// names to be allocated to the NativeJavaMethod before the field
// gets in the way.
Method[] methods = discoverAccessibleMethods(cl, includeProtected,
includePrivate);
for (int i = 0; i < methods.length; i++) {
Method method = methods[i];
int mods = method.getModifiers();
boolean isStatic = Modifier.isStatic(mods);
Map<String,Object> ht = isStatic ? staticMembers : members;
String name = method.getName();
Object value = ht.get(name);
if (value == null) {
ht.put(name, method);
} else {
ObjArray overloadedMethods;
if (value instanceof ObjArray) {
overloadedMethods = (ObjArray)value;
} else {
if (!(value instanceof Method)) Kit.codeBug();
// value should be instance of Method as at this stage
// staticMembers and members can only contain methods
overloadedMethods = new ObjArray();
overloadedMethods.add(value);
ht.put(name, overloadedMethods);
}
overloadedMethods.add(method);
}
}
// replace Method instances by wrapped NativeJavaMethod objects
// first in staticMembers and then in members
for (int tableCursor = 0; tableCursor != 2; ++tableCursor) {
boolean isStatic = (tableCursor == 0);
Map<String,Object> ht = isStatic ? staticMembers : members;
for (Map.Entry<String, Object> entry: ht.entrySet()) {
MemberBox[] methodBoxes;
Object value = entry.getValue();
if (value instanceof Method) {
methodBoxes = new MemberBox[1];
methodBoxes[0] = new MemberBox((Method)value);
} else {
ObjArray overloadedMethods = (ObjArray)value;
int N = overloadedMethods.size();
if (N < 2) Kit.codeBug();
methodBoxes = new MemberBox[N];
for (int i = 0; i != N; ++i) {
Method method = (Method)overloadedMethods.get(i);
methodBoxes[i] = new MemberBox(method);
}
}
NativeJavaMethod fun = new NativeJavaMethod(methodBoxes);
if (scope != null) {
ScriptRuntime.setFunctionProtoAndParent(fun, scope);
}
ht.put(entry.getKey(), fun);
}
}
// Reflect fields.
Field[] fields = getAccessibleFields();
for (int i = 0; i < fields.length; i++) {
Field field = fields[i];
String name = field.getName();
int mods = field.getModifiers();
if (!includePrivate && !Modifier.isPublic(mods)) {
continue;
}
try {
boolean isStatic = Modifier.isStatic(mods);
Map<String,Object> ht = isStatic ? staticMembers : members;
Object member = ht.get(name);
if (member == null) {
ht.put(name, field);
} else if (member instanceof NativeJavaMethod) {
NativeJavaMethod method = (NativeJavaMethod) member;
FieldAndMethods fam
= new FieldAndMethods(scope, method.methods, field);
Map<String,FieldAndMethods> fmht = isStatic ? staticFieldAndMethods
: fieldAndMethods;
if (fmht == null) {
fmht = new HashMap<String,FieldAndMethods>();
if (isStatic) {
staticFieldAndMethods = fmht;
} else {
fieldAndMethods = fmht;
}
}
fmht.put(name, fam);
ht.put(name, fam);
} else if (member instanceof Field) {
Field oldField = (Field) member;
// If this newly reflected field shadows an inherited field,
// then replace it. Otherwise, since access to the field
// would be ambiguous from Java, no field should be
// reflected.
// For now, the first field found wins, unless another field
// explicitly shadows it.
if (oldField.getDeclaringClass().
isAssignableFrom(field.getDeclaringClass()))
{
ht.put(name, field);
}
} else {
// "unknown member type"
Kit.codeBug();
}
} catch (SecurityException e) {
// skip this field
Context.reportWarning("Could not access field "
+ name + " of class " + cl.getName() +
" due to lack of privileges.");
}
}
// Create bean properties from corresponding get/set methods first for
// static members and then for instance members
for (int tableCursor = 0; tableCursor != 2; ++tableCursor) {
boolean isStatic = (tableCursor == 0);
Map<String,Object> ht = isStatic ? staticMembers : members;
Map<String,BeanProperty> toAdd = new HashMap<String,BeanProperty>();
// Now, For each member, make "bean" properties.
for (String name: ht.keySet()) {
// Is this a getter?
boolean memberIsGetMethod = name.startsWith("get");
boolean memberIsSetMethod = name.startsWith("set");
boolean memberIsIsMethod = name.startsWith("is");
if (memberIsGetMethod || memberIsIsMethod
|| memberIsSetMethod) {
// Double check name component.
String nameComponent
= name.substring(memberIsIsMethod ? 2 : 3);
if (nameComponent.length() == 0)
continue;
// Make the bean property name.
String beanPropertyName = nameComponent;
char ch0 = nameComponent.charAt(0);
if (Character.isUpperCase(ch0)) {
if (nameComponent.length() == 1) {
beanPropertyName = nameComponent.toLowerCase();
} else {
char ch1 = nameComponent.charAt(1);
if (!Character.isUpperCase(ch1)) {
beanPropertyName = Character.toLowerCase(ch0)
+nameComponent.substring(1);
}
}
}
// If we already have a member by this name, don't do this
// property.
if (toAdd.containsKey(beanPropertyName))
continue;
Object v = ht.get(beanPropertyName);
if (v != null) {
// A private field shouldn't mask a public getter/setter
if (!includePrivate ||
!Modifier.isPrivate(((Member)v).getModifiers()))
{
continue;
}
}
// Find the getter method, or if there is none, the is-
// method.
MemberBox getter = null;
getter = findGetter(isStatic, ht, "get", nameComponent);
// If there was no valid getter, check for an is- method.
if (getter == null) {
getter = findGetter(isStatic, ht, "is", nameComponent);
}
// setter
MemberBox setter = null;
NativeJavaMethod setters = null;
String setterName = "set".concat(nameComponent);
if (ht.containsKey(setterName)) {
// Is this value a method?
Object member = ht.get(setterName);
if (member instanceof NativeJavaMethod) {
NativeJavaMethod njmSet = (NativeJavaMethod)member;
if (getter != null) {
// We have a getter. Now, do we have a matching
// setter?
Class<?> type = getter.method().getReturnType();
setter = extractSetMethod(type, njmSet.methods,
isStatic);
} else {
// No getter, find any set method
setter = extractSetMethod(njmSet.methods,
isStatic);
}
if (njmSet.methods.length > 1) {
setters = njmSet;
}
}
}
// Make the property.
BeanProperty bp = new BeanProperty(getter, setter,
setters);
toAdd.put(beanPropertyName, bp);
}
}
// Add the new bean properties.
for (String key: toAdd.keySet()) {
Object value = toAdd.get(key);
ht.put(key, value);
}
}
// Reflect constructors
Constructor<?>[] constructors = getAccessibleConstructors();
ctors = new MemberBox[constructors.length];
for (int i = 0; i != constructors.length; ++i) {
ctors[i] = new MemberBox(constructors[i]);
}
}
private Constructor<?>[] getAccessibleConstructors()
{
// The JVM currently doesn't allow changing access on java.lang.Class
// constructors, so don't try
if (includePrivate && cl != ScriptRuntime.ClassClass) {
try {
Constructor<?>[] cons = cl.getDeclaredConstructors();
AccessibleObject.setAccessible(cons, true);
return cons;
} catch (SecurityException e) {
// Fall through to !includePrivate case
Context.reportWarning("Could not access constructor " +
" of class " + cl.getName() +
" due to lack of privileges.");
}
}
return cl.getConstructors();
}
private Field[] getAccessibleFields() {
if (includePrivate) {
try {
List<Field> fieldsList = new ArrayList<Field>();
Class<?> currentClass = cl;
while (currentClass != null) {
// get all declared fields in this class, make them
// accessible, and save
Field[] declared = currentClass.getDeclaredFields();
for (int i = 0; i < declared.length; i++) {
declared[i].setAccessible(true);
fieldsList.add(declared[i]);
}
// walk up superclass chain. no need to deal specially with
// interfaces, since they can't have fields
currentClass = currentClass.getSuperclass();
}
return fieldsList.toArray(new Field[fieldsList.size()]);
} catch (SecurityException e) {
// fall through to !includePrivate case
}
}
return cl.getFields();
}
private MemberBox findGetter(boolean isStatic, Map<String,Object> ht, String prefix,
String propertyName)
{
String getterName = prefix.concat(propertyName);
if (ht.containsKey(getterName)) {
// Check that the getter is a method.
Object member = ht.get(getterName);
if (member instanceof NativeJavaMethod) {
NativeJavaMethod njmGet = (NativeJavaMethod) member;
return extractGetMethod(njmGet.methods, isStatic);
}
}
return null;
}
private static MemberBox extractGetMethod(MemberBox[] methods,
boolean isStatic)
{
// Inspect the list of all MemberBox for the only one having no
// parameters
for (int methodIdx = 0; methodIdx < methods.length; methodIdx++) {
MemberBox method = methods[methodIdx];
// Does getter method have an empty parameter list with a return
// value (eg. a getSomething() or isSomething())?
if (method.argTypes.length == 0
&& (!isStatic || method.isStatic()))
{
Class<?> type = method.method().getReturnType();
if (type != Void.TYPE) {
return method;
}
break;
}
}
return null;
}
private static MemberBox extractSetMethod(Class<?> type, MemberBox[] methods,
boolean isStatic)
{
//
// Note: it may be preferable to allow NativeJavaMethod.findFunction()
// to find the appropriate setter; unfortunately, it requires an
// instance of the target arg to determine that.
//
// Make two passes: one to find a method with direct type assignment,
// and one to find a widening conversion.
for (int pass = 1; pass <= 2; ++pass) {
for (int i = 0; i < methods.length; ++i) {
MemberBox method = methods[i];
if (!isStatic || method.isStatic()) {
Class<?>[] params = method.argTypes;
if (params.length == 1) {
if (pass == 1) {
if (params[0] == type) {
return method;
}
} else {
if (pass != 2) Kit.codeBug();
if (params[0].isAssignableFrom(type)) {
return method;
}
}
}
}
}
}
return null;
}
private static MemberBox extractSetMethod(MemberBox[] methods,
boolean isStatic)
{
for (int i = 0; i < methods.length; ++i) {
MemberBox method = methods[i];
if (!isStatic || method.isStatic()) {
if (method.method().getReturnType() == Void.TYPE) {
if (method.argTypes.length == 1) {
return method;
}
}
}
}
return null;
}
Map<String,FieldAndMethods> getFieldAndMethodsObjects(Scriptable scope,
Object javaObject, boolean isStatic)
{
Map<String,FieldAndMethods> ht = isStatic ? staticFieldAndMethods : fieldAndMethods;
if (ht == null)
return null;
int len = ht.size();
Map<String,FieldAndMethods> result = new HashMap<String,FieldAndMethods>(len);
for (FieldAndMethods fam: ht.values()) {
FieldAndMethods famNew = new FieldAndMethods(scope, fam.methods,
fam.field);
famNew.javaObject = javaObject;
result.put(fam.field.getName(), famNew);
}
return result;
}
static JavaMembers lookupClass(Scriptable scope, Class<?> dynamicType,
Class<?> staticType, boolean includeProtected)
{
JavaMembers members;
scope = ScriptableObject.getTopLevelScope(scope);
ClassCache cache = ClassCache.get(scope);
Map<Class<?>,JavaMembers> ct = cache.getClassCacheMap();
Class<?> cl = dynamicType;
for (;;) {
members = ct.get(cl);
if (members != null) {
return members;
}
try {
members = new JavaMembers(scope, cl, includeProtected);
break;
} catch (SecurityException e) {
// Reflection may fail for objects that are in a restricted
// access package (e.g. sun.*). If we get a security
// exception, try again with the static type if it is interface.
// Otherwise, try superclass
if (staticType != null && staticType.isInterface()) {
cl = staticType;
staticType = null; // try staticType only once
} else {
Class<?> parent = cl.getSuperclass();
if (parent == null) {
if (cl.isInterface()) {
// last resort after failed staticType interface
parent = ScriptRuntime.ObjectClass;
} else {
throw e;
}
}
cl = parent;
}
}
}
if (cache.isCachingEnabled())
ct.put(cl, members);
return members;
}
RuntimeException reportMemberNotFound(String memberName)
{
return Context.reportRuntimeError2(
"msg.java.member.not.found", cl.getName(), memberName);
}
private Class<?> cl;
private Map<String,Object> members;
private Map<String,FieldAndMethods> fieldAndMethods;
private Map<String,Object> staticMembers;
private Map<String,FieldAndMethods> staticFieldAndMethods;
MemberBox[] ctors;
private boolean includePrivate;
}
class BeanProperty
{
BeanProperty(MemberBox getter, MemberBox setter, NativeJavaMethod setters)
{
this.getter = getter;
this.setter = setter;
this.setters = setters;
}
MemberBox getter;
MemberBox setter;
NativeJavaMethod setters;
}
class FieldAndMethods extends NativeJavaMethod
{
static final long serialVersionUID = -9222428244284796755L;
FieldAndMethods(Scriptable scope, MemberBox[] methods, Field field)
{
super(methods);
this.field = field;
setParentScope(scope);
setPrototype(ScriptableObject.getFunctionPrototype(scope));
}
@Override
public Object getDefaultValue(Class<?> hint)
{
if (hint == ScriptRuntime.FunctionClass)
return this;
Object rval;
Class<?> type;
try {
rval = field.get(javaObject);
type = field.getType();
} catch (IllegalAccessException accEx) {
throw Context.reportRuntimeError1(
"msg.java.internal.private", field.getName());
}
Context cx = Context.getContext();
rval = cx.getWrapFactory().wrap(cx, this, rval, type);
if (rval instanceof Scriptable) {
rval = ((Scriptable) rval).getDefaultValue(hint);
}
return rval;
}
Field field;
Object javaObject;
}

View File

@@ -1,118 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Bojan Cekrlic
* Hannes Wallnoefer
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
// API class
package org.mozilla.javascript;
/**
* Java reflection of JavaScript exceptions.
* Instances of this class are thrown by the JavaScript 'throw' keyword.
*
* @author Mike McCabe
*/
public class JavaScriptException extends RhinoException
{
static final long serialVersionUID = -7666130513694669293L;
/**
* @deprecated
* Use {@link WrappedException#WrappedException(Throwable)} to report
* exceptions in Java code.
*/
public JavaScriptException(Object value)
{
this(value, "", 0);
}
/**
* Create a JavaScript exception wrapping the given JavaScript value
*
* @param value the JavaScript value thrown.
*/
public JavaScriptException(Object value, String sourceName, int lineNumber)
{
recordErrorOrigin(sourceName, lineNumber, null, 0);
this.value = value;
}
@Override
public String details()
{
try {
return ScriptRuntime.toString(value);
} catch (RuntimeException rte) {
// ScriptRuntime.toString may throw a RuntimeException
if (value == null) {
return "null";
} else if (value instanceof Scriptable) {
return ScriptRuntime.defaultObjectToString((Scriptable)value);
} else {
return value.toString();
}
}
}
/**
* @return the value wrapped by this exception
*/
public Object getValue()
{
return value;
}
/**
* @deprecated Use {@link RhinoException#sourceName()} from the super class.
*/
public String getSourceName()
{
return sourceName();
}
/**
* @deprecated Use {@link RhinoException#lineNumber()} from the super class.
*/
public int getLineNumber()
{
return lineNumber();
}
private Object value;
}

View File

@@ -1,470 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov, igor@fastmail.fm
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.lang.reflect.Method;
import java.util.Map;
/**
* Collection of utilities
*/
public class Kit
{
/**
* Reflection of Throwable.initCause(Throwable) from JDK 1.4
* or nul if it is not available.
*/
private static Method Throwable_initCause = null;
static {
// Are we running on a JDK 1.4 or later system?
try {
Class<?> ThrowableClass = Kit.classOrNull("java.lang.Throwable");
Class<?>[] signature = { ThrowableClass };
Throwable_initCause
= ThrowableClass.getMethod("initCause", signature);
} catch (Exception ex) {
// Assume any exceptions means the method does not exist.
}
}
public static Class<?> classOrNull(String className)
{
try {
return Class.forName(className);
} catch (ClassNotFoundException ex) {
} catch (SecurityException ex) {
} catch (LinkageError ex) {
} catch (IllegalArgumentException e) {
// Can be thrown if name has characters that a class name
// can not contain
}
return null;
}
/**
* Attempt to load the class of the given name. Note that the type parameter
* isn't checked.
*/
public static Class<?> classOrNull(ClassLoader loader, String className)
{
try {
return loader.loadClass(className);
} catch (ClassNotFoundException ex) {
} catch (SecurityException ex) {
} catch (LinkageError ex) {
} catch (IllegalArgumentException e) {
// Can be thrown if name has characters that a class name
// can not contain
}
return null;
}
static Object newInstanceOrNull(Class<?> cl)
{
try {
return cl.newInstance();
} catch (SecurityException x) {
} catch (LinkageError ex) {
} catch (InstantiationException x) {
} catch (IllegalAccessException x) {
}
return null;
}
/**
* Check that testClass is accessible from the given loader.
*/
static boolean testIfCanLoadRhinoClasses(ClassLoader loader)
{
Class<?> testClass = ScriptRuntime.ContextFactoryClass;
Class<?> x = Kit.classOrNull(loader, testClass.getName());
if (x != testClass) {
// The check covers the case when x == null =>
// loader does not know about testClass or the case
// when x != null && x != testClass =>
// loader loads a class unrelated to testClass
return false;
}
return true;
}
/**
* If initCause methods exists in Throwable, call
* <tt>ex.initCause(cause)</tt> or otherwise do nothing.
* @return The <tt>ex</tt> argument.
*/
public static RuntimeException initCause(RuntimeException ex,
Throwable cause)
{
if (Throwable_initCause != null) {
Object[] args = { cause };
try {
Throwable_initCause.invoke(ex, args);
} catch (Exception e) {
// Ignore any exceptions
}
}
return ex;
}
/**
* If character <tt>c</tt> is a hexadecimal digit, return
* <tt>accumulator</tt> * 16 plus corresponding
* number. Otherise return -1.
*/
public static int xDigitToInt(int c, int accumulator)
{
check: {
// Use 0..9 < A..Z < a..z
if (c <= '9') {
c -= '0';
if (0 <= c) { break check; }
} else if (c <= 'F') {
if ('A' <= c) {
c -= ('A' - 10);
break check;
}
} else if (c <= 'f') {
if ('a' <= c) {
c -= ('a' - 10);
break check;
}
}
return -1;
}
return (accumulator << 4) | c;
}
/**
* Add <i>listener</i> to <i>bag</i> of listeners.
* The function does not modify <i>bag</i> and return a new collection
* containing <i>listener</i> and all listeners from <i>bag</i>.
* Bag without listeners always represented as the null value.
* <p>
* Usage example:
* <pre>
* private volatile Object changeListeners;
*
* public void addMyListener(PropertyChangeListener l)
* {
* synchronized (this) {
* changeListeners = Kit.addListener(changeListeners, l);
* }
* }
*
* public void removeTextListener(PropertyChangeListener l)
* {
* synchronized (this) {
* changeListeners = Kit.removeListener(changeListeners, l);
* }
* }
*
* public void fireChangeEvent(Object oldValue, Object newValue)
* {
* // Get immune local copy
* Object listeners = changeListeners;
* if (listeners != null) {
* PropertyChangeEvent e = new PropertyChangeEvent(
* this, "someProperty" oldValue, newValue);
* for (int i = 0; ; ++i) {
* Object l = Kit.getListener(listeners, i);
* if (l == null)
* break;
* ((PropertyChangeListener)l).propertyChange(e);
* }
* }
* }
* </pre>
*
* @param listener Listener to add to <i>bag</i>
* @param bag Current collection of listeners.
* @return A new bag containing all listeners from <i>bag</i> and
* <i>listener</i>.
* @see #removeListener(Object bag, Object listener)
* @see #getListener(Object bag, int index)
*/
public static Object addListener(Object bag, Object listener)
{
if (listener == null) throw new IllegalArgumentException();
if (listener instanceof Object[]) throw new IllegalArgumentException();
if (bag == null) {
bag = listener;
} else if (!(bag instanceof Object[])) {
bag = new Object[] { bag, listener };
} else {
Object[] array = (Object[])bag;
int L = array.length;
// bag has at least 2 elements if it is array
if (L < 2) throw new IllegalArgumentException();
Object[] tmp = new Object[L + 1];
System.arraycopy(array, 0, tmp, 0, L);
tmp[L] = listener;
bag = tmp;
}
return bag;
}
/**
* Remove <i>listener</i> from <i>bag</i> of listeners.
* The function does not modify <i>bag</i> and return a new collection
* containing all listeners from <i>bag</i> except <i>listener</i>.
* If <i>bag</i> does not contain <i>listener</i>, the function returns
* <i>bag</i>.
* <p>
* For usage example, see {@link #addListener(Object bag, Object listener)}.
*
* @param listener Listener to remove from <i>bag</i>
* @param bag Current collection of listeners.
* @return A new bag containing all listeners from <i>bag</i> except
* <i>listener</i>.
* @see #addListener(Object bag, Object listener)
* @see #getListener(Object bag, int index)
*/
public static Object removeListener(Object bag, Object listener)
{
if (listener == null) throw new IllegalArgumentException();
if (listener instanceof Object[]) throw new IllegalArgumentException();
if (bag == listener) {
bag = null;
} else if (bag instanceof Object[]) {
Object[] array = (Object[])bag;
int L = array.length;
// bag has at least 2 elements if it is array
if (L < 2) throw new IllegalArgumentException();
if (L == 2) {
if (array[1] == listener) {
bag = array[0];
} else if (array[0] == listener) {
bag = array[1];
}
} else {
int i = L;
do {
--i;
if (array[i] == listener) {
Object[] tmp = new Object[L - 1];
System.arraycopy(array, 0, tmp, 0, i);
System.arraycopy(array, i + 1, tmp, i, L - (i + 1));
bag = tmp;
break;
}
} while (i != 0);
}
}
return bag;
}
/**
* Get listener at <i>index</i> position in <i>bag</i> or null if
* <i>index</i> equals to number of listeners in <i>bag</i>.
* <p>
* For usage example, see {@link #addListener(Object bag, Object listener)}.
*
* @param bag Current collection of listeners.
* @param index Index of the listener to access.
* @return Listener at the given index or null.
* @see #addListener(Object bag, Object listener)
* @see #removeListener(Object bag, Object listener)
*/
public static Object getListener(Object bag, int index)
{
if (index == 0) {
if (bag == null)
return null;
if (!(bag instanceof Object[]))
return bag;
Object[] array = (Object[])bag;
// bag has at least 2 elements if it is array
if (array.length < 2) throw new IllegalArgumentException();
return array[0];
} else if (index == 1) {
if (!(bag instanceof Object[])) {
if (bag == null) throw new IllegalArgumentException();
return null;
}
Object[] array = (Object[])bag;
// the array access will check for index on its own
return array[1];
} else {
// bag has to array
Object[] array = (Object[])bag;
int L = array.length;
if (L < 2) throw new IllegalArgumentException();
if (index == L)
return null;
return array[index];
}
}
static Object initHash(Map<Object,Object> h, Object key, Object initialValue)
{
synchronized (h) {
Object current = h.get(key);
if (current == null) {
h.put(key, initialValue);
} else {
initialValue = current;
}
}
return initialValue;
}
private final static class ComplexKey
{
private Object key1;
private Object key2;
private int hash;
ComplexKey(Object key1, Object key2)
{
this.key1 = key1;
this.key2 = key2;
}
@Override
public boolean equals(Object anotherObj)
{
if (!(anotherObj instanceof ComplexKey))
return false;
ComplexKey another = (ComplexKey)anotherObj;
return key1.equals(another.key1) && key2.equals(another.key2);
}
@Override
public int hashCode()
{
if (hash == 0) {
hash = key1.hashCode() ^ key2.hashCode();
}
return hash;
}
}
public static Object makeHashKeyFromPair(Object key1, Object key2)
{
if (key1 == null) throw new IllegalArgumentException();
if (key2 == null) throw new IllegalArgumentException();
return new ComplexKey(key1, key2);
}
public static String readReader(Reader r)
throws IOException
{
char[] buffer = new char[512];
int cursor = 0;
for (;;) {
int n = r.read(buffer, cursor, buffer.length - cursor);
if (n < 0) { break; }
cursor += n;
if (cursor == buffer.length) {
char[] tmp = new char[buffer.length * 2];
System.arraycopy(buffer, 0, tmp, 0, cursor);
buffer = tmp;
}
}
return new String(buffer, 0, cursor);
}
public static byte[] readStream(InputStream is, int initialBufferCapacity)
throws IOException
{
if (initialBufferCapacity <= 0) {
throw new IllegalArgumentException(
"Bad initialBufferCapacity: "+initialBufferCapacity);
}
byte[] buffer = new byte[initialBufferCapacity];
int cursor = 0;
for (;;) {
int n = is.read(buffer, cursor, buffer.length - cursor);
if (n < 0) { break; }
cursor += n;
if (cursor == buffer.length) {
byte[] tmp = new byte[buffer.length * 2];
System.arraycopy(buffer, 0, tmp, 0, cursor);
buffer = tmp;
}
}
if (cursor != buffer.length) {
byte[] tmp = new byte[cursor];
System.arraycopy(buffer, 0, tmp, 0, cursor);
buffer = tmp;
}
return buffer;
}
/**
* Throws RuntimeException to indicate failed assertion.
* The function never returns and its return type is RuntimeException
* only to be able to write <tt>throw Kit.codeBug()</tt> if plain
* <tt>Kit.codeBug()</tt> triggers unreachable code error.
*/
public static RuntimeException codeBug()
throws RuntimeException
{
RuntimeException ex = new IllegalStateException("FAILED ASSERTION");
// Print stack trace ASAP
ex.printStackTrace(System.err);
throw ex;
}
/**
* Throws RuntimeException to indicate failed assertion.
* The function never returns and its return type is RuntimeException
* only to be able to write <tt>throw Kit.codeBug()</tt> if plain
* <tt>Kit.codeBug()</tt> triggers unreachable code error.
*/
public static RuntimeException codeBug(String msg)
throws RuntimeException
{
msg = "FAILED ASSERTION: " + msg;
RuntimeException ex = new IllegalStateException(msg);
// Print stack trace ASAP
ex.printStackTrace(System.err);
throw ex;
}
}

View File

@@ -1,141 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.lang.reflect.*;
/**
* Avoid loading classes unless they are used.
*
* <p> This improves startup time and average memory usage.
*/
public final class LazilyLoadedCtor implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private static final int STATE_BEFORE_INIT = 0;
private static final int STATE_INITIALIZING = 1;
private static final int STATE_WITH_VALUE = 2;
private final ScriptableObject scope;
private final String propertyName;
private final String className;
private final boolean sealed;
private Object initializedValue;
private int state;
public LazilyLoadedCtor(ScriptableObject scope, String propertyName,
String className, boolean sealed)
{
this.scope = scope;
this.propertyName = propertyName;
this.className = className;
this.sealed = sealed;
this.state = STATE_BEFORE_INIT;
scope.addLazilyInitializedValue(propertyName, 0, this,
ScriptableObject.DONTENUM);
}
void init()
{
synchronized (this) {
if (state == STATE_INITIALIZING)
throw new IllegalStateException(
"Recursive initialization for "+propertyName);
if (state == STATE_BEFORE_INIT) {
state = STATE_INITIALIZING;
// Set value now to have something to set in finally block if
// buildValue throws.
Object value = Scriptable.NOT_FOUND;
try {
value = buildValue();
} finally {
initializedValue = value;
state = STATE_WITH_VALUE;
}
}
}
}
Object getValue()
{
if (state != STATE_WITH_VALUE)
throw new IllegalStateException(propertyName);
return initializedValue;
}
private Object buildValue()
{
Class<? extends Scriptable> cl = cast(Kit.classOrNull(className));
if (cl != null) {
try {
Object value = ScriptableObject.buildClassCtor(scope, cl,
sealed, false);
if (value != null) {
return value;
}
else {
// cl has own static initializer which is expected
// to set the property on its own.
value = scope.get(propertyName, scope);
if (value != Scriptable.NOT_FOUND)
return value;
}
} catch (InvocationTargetException ex) {
Throwable target = ex.getTargetException();
if (target instanceof RuntimeException) {
throw (RuntimeException)target;
}
} catch (RhinoException ex) {
} catch (InstantiationException ex) {
} catch (IllegalAccessException ex) {
} catch (SecurityException ex) {
}
}
return Scriptable.NOT_FOUND;
}
@SuppressWarnings({"unchecked"})
private Class<? extends Scriptable> cast(Class<?> cl) {
return (Class<? extends Scriptable>)cl;
}
}

View File

@@ -1,372 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
* Felix Meschberger
* Norris Boyd
* Ulrike Mueller <umueller@demandware.com>
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.lang.reflect.*;
import java.io.*;
/**
* Wrappper class for Method and Constructor instances to cache
* getParameterTypes() results, recover from IllegalAccessException
* in some cases and provide serialization support.
*
* @author Igor Bukanov
*/
final class MemberBox implements Serializable
{
static final long serialVersionUID = 6358550398665688245L;
private transient Member memberObject;
transient Class<?>[] argTypes;
transient Object delegateTo;
transient boolean vararg;
MemberBox(Method method)
{
init(method);
}
MemberBox(Constructor<?> constructor)
{
init(constructor);
}
private void init(Method method)
{
this.memberObject = method;
this.argTypes = method.getParameterTypes();
this.vararg = VMBridge.instance.isVarArgs(method);
}
private void init(Constructor<?> constructor)
{
this.memberObject = constructor;
this.argTypes = constructor.getParameterTypes();
this.vararg = VMBridge.instance.isVarArgs(constructor);
}
Method method()
{
return (Method)memberObject;
}
Constructor<?> ctor()
{
return (Constructor<?>)memberObject;
}
Member member()
{
return memberObject;
}
boolean isMethod()
{
return memberObject instanceof Method;
}
boolean isCtor()
{
return memberObject instanceof Constructor;
}
boolean isStatic()
{
return Modifier.isStatic(memberObject.getModifiers());
}
String getName()
{
return memberObject.getName();
}
Class<?> getDeclaringClass()
{
return memberObject.getDeclaringClass();
}
String toJavaDeclaration()
{
StringBuffer sb = new StringBuffer();
if (isMethod()) {
Method method = method();
sb.append(method.getReturnType());
sb.append(' ');
sb.append(method.getName());
} else {
Constructor<?> ctor = ctor();
String name = ctor.getDeclaringClass().getName();
int lastDot = name.lastIndexOf('.');
if (lastDot >= 0) {
name = name.substring(lastDot + 1);
}
sb.append(name);
}
sb.append(JavaMembers.liveConnectSignature(argTypes));
return sb.toString();
}
@Override
public String toString()
{
return memberObject.toString();
}
Object invoke(Object target, Object[] args)
{
Method method = method();
try {
try {
return method.invoke(target, args);
} catch (IllegalAccessException ex) {
Method accessible = searchAccessibleMethod(method, argTypes);
if (accessible != null) {
memberObject = accessible;
method = accessible;
} else {
if (!VMBridge.instance.tryToMakeAccessible(method)) {
throw Context.throwAsScriptRuntimeEx(ex);
}
}
// Retry after recovery
return method.invoke(target, args);
}
} catch (InvocationTargetException ite) {
// Must allow ContinuationPending exceptions to propagate unhindered
Throwable e = ite;
do {
e = ((InvocationTargetException) e).getTargetException();
} while ((e instanceof InvocationTargetException));
if (e instanceof ContinuationPending)
throw (ContinuationPending) e;
throw Context.throwAsScriptRuntimeEx(e);
} catch (Exception ex) {
throw Context.throwAsScriptRuntimeEx(ex);
}
}
Object newInstance(Object[] args)
{
Constructor<?> ctor = ctor();
try {
try {
return ctor.newInstance(args);
} catch (IllegalAccessException ex) {
if (!VMBridge.instance.tryToMakeAccessible(ctor)) {
throw Context.throwAsScriptRuntimeEx(ex);
}
}
return ctor.newInstance(args);
} catch (Exception ex) {
throw Context.throwAsScriptRuntimeEx(ex);
}
}
private static Method searchAccessibleMethod(Method method, Class<?>[] params)
{
int modifiers = method.getModifiers();
if (Modifier.isPublic(modifiers) && !Modifier.isStatic(modifiers)) {
Class<?> c = method.getDeclaringClass();
if (!Modifier.isPublic(c.getModifiers())) {
String name = method.getName();
Class<?>[] intfs = c.getInterfaces();
for (int i = 0, N = intfs.length; i != N; ++i) {
Class<?> intf = intfs[i];
if (Modifier.isPublic(intf.getModifiers())) {
try {
return intf.getMethod(name, params);
} catch (NoSuchMethodException ex) {
} catch (SecurityException ex) { }
}
}
for (;;) {
c = c.getSuperclass();
if (c == null) { break; }
if (Modifier.isPublic(c.getModifiers())) {
try {
Method m = c.getMethod(name, params);
int mModifiers = m.getModifiers();
if (Modifier.isPublic(mModifiers)
&& !Modifier.isStatic(mModifiers))
{
return m;
}
} catch (NoSuchMethodException ex) {
} catch (SecurityException ex) { }
}
}
}
}
return null;
}
private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException
{
in.defaultReadObject();
Member member = readMember(in);
if (member instanceof Method) {
init((Method)member);
} else {
init((Constructor<?>)member);
}
}
private void writeObject(ObjectOutputStream out)
throws IOException
{
out.defaultWriteObject();
writeMember(out, memberObject);
}
/**
* Writes a Constructor or Method object.
*
* Methods and Constructors are not serializable, so we must serialize
* information about the class, the name, and the parameters and
* recreate upon deserialization.
*/
private static void writeMember(ObjectOutputStream out, Member member)
throws IOException
{
if (member == null) {
out.writeBoolean(false);
return;
}
out.writeBoolean(true);
if (!(member instanceof Method || member instanceof Constructor))
throw new IllegalArgumentException("not Method or Constructor");
out.writeBoolean(member instanceof Method);
out.writeObject(member.getName());
out.writeObject(member.getDeclaringClass());
if (member instanceof Method) {
writeParameters(out, ((Method) member).getParameterTypes());
} else {
writeParameters(out, ((Constructor<?>) member).getParameterTypes());
}
}
/**
* Reads a Method or a Constructor from the stream.
*/
private static Member readMember(ObjectInputStream in)
throws IOException, ClassNotFoundException
{
if (!in.readBoolean())
return null;
boolean isMethod = in.readBoolean();
String name = (String) in.readObject();
Class<?> declaring = (Class<?>) in.readObject();
Class<?>[] parms = readParameters(in);
try {
if (isMethod) {
return declaring.getMethod(name, parms);
} else {
return declaring.getConstructor(parms);
}
} catch (NoSuchMethodException e) {
throw new IOException("Cannot find member: " + e);
}
}
private static final Class<?>[] primitives = {
Boolean.TYPE,
Byte.TYPE,
Character.TYPE,
Double.TYPE,
Float.TYPE,
Integer.TYPE,
Long.TYPE,
Short.TYPE,
Void.TYPE
};
/**
* Writes an array of parameter types to the stream.
*
* Requires special handling because primitive types cannot be
* found upon deserialization by the default Java implementation.
*/
private static void writeParameters(ObjectOutputStream out, Class<?>[] parms)
throws IOException
{
out.writeShort(parms.length);
outer:
for (int i=0; i < parms.length; i++) {
Class<?> parm = parms[i];
boolean primitive = parm.isPrimitive();
out.writeBoolean(primitive);
if (!primitive) {
out.writeObject(parm);
continue;
}
for (int j=0; j < primitives.length; j++) {
if (parm.equals(primitives[j])) {
out.writeByte(j);
continue outer;
}
}
throw new IllegalArgumentException("Primitive " + parm +
" not found");
}
}
/**
* Reads an array of parameter types from the stream.
*/
private static Class<?>[] readParameters(ObjectInputStream in)
throws IOException, ClassNotFoundException
{
Class<?>[] result = new Class[in.readShort()];
for (int i=0; i < result.length; i++) {
if (!in.readBoolean()) {
result[i] = (Class<?>) in.readObject();
continue;
}
result[i] = primitives[in.readByte()];
}
return result;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,175 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
* Mike McCabe
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
* This class implements the Boolean native object.
* See ECMA 15.6.
* @author Norris Boyd
*/
final class NativeBoolean extends IdScriptableObject
{
static final long serialVersionUID = -3716996899943880933L;
private static final Object BOOLEAN_TAG = "Boolean";
static void init(Scriptable scope, boolean sealed)
{
NativeBoolean obj = new NativeBoolean(false);
obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed);
}
private NativeBoolean(boolean b)
{
booleanValue = b;
}
@Override
public String getClassName()
{
return "Boolean";
}
@Override
public Object getDefaultValue(Class<?> typeHint) {
// This is actually non-ECMA, but will be proposed
// as a change in round 2.
if (typeHint == ScriptRuntime.BooleanClass)
return ScriptRuntime.wrapBoolean(booleanValue);
return super.getDefaultValue(typeHint);
}
@Override
protected void initPrototypeId(int id)
{
String s;
int arity;
switch (id) {
case Id_constructor: arity=1; s="constructor"; break;
case Id_toString: arity=0; s="toString"; break;
case Id_toSource: arity=0; s="toSource"; break;
case Id_valueOf: arity=0; s="valueOf"; break;
default: throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(BOOLEAN_TAG, id, s, arity);
}
@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (!f.hasTag(BOOLEAN_TAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
if (id == Id_constructor) {
boolean b;
if (args.length == 0) {
b = false;
} else {
b = args[0] instanceof ScriptableObject &&
((ScriptableObject) args[0]).avoidObjectDetection()
? true
: ScriptRuntime.toBoolean(args[0]);
}
if (thisObj == null) {
// new Boolean(val) creates a new boolean object.
return new NativeBoolean(b);
}
// Boolean(val) converts val to a boolean.
return ScriptRuntime.wrapBoolean(b);
}
// The rest of Boolean.prototype methods require thisObj to be Boolean
if (!(thisObj instanceof NativeBoolean))
throw incompatibleCallError(f);
boolean value = ((NativeBoolean)thisObj).booleanValue;
switch (id) {
case Id_toString:
return value ? "true" : "false";
case Id_toSource:
return value ? "(new Boolean(true))" : "(new Boolean(false))";
case Id_valueOf:
return ScriptRuntime.wrapBoolean(value);
}
throw new IllegalArgumentException(String.valueOf(id));
}
// #string_id_map#
@Override
protected int findPrototypeId(String s)
{
int id;
// #generated# Last update: 2007-05-09 08:15:31 EDT
L0: { id = 0; String X = null; int c;
int s_length = s.length();
if (s_length==7) { X="valueOf";id=Id_valueOf; }
else if (s_length==8) {
c=s.charAt(3);
if (c=='o') { X="toSource";id=Id_toSource; }
else if (c=='t') { X="toString";id=Id_toString; }
}
else if (s_length==11) { X="constructor";id=Id_constructor; }
if (X!=null && X!=s && !X.equals(s)) id = 0;
break L0;
}
// #/generated#
return id;
}
private static final int
Id_constructor = 1,
Id_toString = 2,
Id_toSource = 3,
Id_valueOf = 4,
MAX_PROTOTYPE_ID = 4;
// #/string_id_map#
private boolean booleanValue;
}

View File

@@ -1,158 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Bob Jervis
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
* This class implements the activation object.
*
* See ECMA 10.1.6
*
* @see org.mozilla.javascript.Arguments
* @author Norris Boyd
*/
public final class NativeCall extends IdScriptableObject
{
static final long serialVersionUID = -7471457301304454454L;
private static final Object CALL_TAG = "Call";
static void init(Scriptable scope, boolean sealed)
{
NativeCall obj = new NativeCall();
obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed);
}
NativeCall() { }
NativeCall(NativeFunction function, Scriptable scope, Object[] args)
{
this.function = function;
setParentScope(scope);
// leave prototype null
this.originalArgs = (args == null) ? ScriptRuntime.emptyArgs : args;
// initialize values of arguments
int paramAndVarCount = function.getParamAndVarCount();
int paramCount = function.getParamCount();
if (paramAndVarCount != 0) {
for (int i = 0; i < paramCount; ++i) {
String name = function.getParamOrVarName(i);
Object val = i < args.length ? args[i]
: Undefined.instance;
defineProperty(name, val, PERMANENT);
}
}
// initialize "arguments" property but only if it was not overridden by
// the parameter with the same name
if (!super.has("arguments", this)) {
defineProperty("arguments", new Arguments(this), PERMANENT);
}
if (paramAndVarCount != 0) {
for (int i = paramCount; i < paramAndVarCount; ++i) {
String name = function.getParamOrVarName(i);
if (!super.has(name, this)) {
if (function.getParamOrVarConst(i))
defineProperty(name, Undefined.instance, CONST);
else
defineProperty(name, Undefined.instance, PERMANENT);
}
}
}
}
@Override
public String getClassName()
{
return "Call";
}
@Override
protected int findPrototypeId(String s)
{
return s.equals("constructor") ? Id_constructor : 0;
}
@Override
protected void initPrototypeId(int id)
{
String s;
int arity;
if (id == Id_constructor) {
arity=1; s="constructor";
} else {
throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(CALL_TAG, id, s, arity);
}
@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (!f.hasTag(CALL_TAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
if (id == Id_constructor) {
if (thisObj != null) {
throw Context.reportRuntimeError1("msg.only.from.new", "Call");
}
ScriptRuntime.checkDeprecated(cx, "Call");
NativeCall result = new NativeCall();
result.setPrototype(getObjectPrototype(scope));
return result;
}
throw new IllegalArgumentException(String.valueOf(id));
}
private static final int
Id_constructor = 1,
MAX_PROTOTYPE_ID = 1;
NativeFunction function;
Object[] originalArgs;
transient NativeCall parentActivationCall;
}

View File

@@ -1,139 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
public final class NativeContinuation extends IdScriptableObject
implements Function
{
static final long serialVersionUID = 1794167133757605367L;
private static final Object FTAG = "Continuation";
private Object implementation;
public static void init(Context cx, Scriptable scope, boolean sealed)
{
NativeContinuation obj = new NativeContinuation();
obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed);
}
public Object getImplementation()
{
return implementation;
}
public void initImplementation(Object implementation)
{
this.implementation = implementation;
}
@Override
public String getClassName()
{
return "Continuation";
}
public Scriptable construct(Context cx, Scriptable scope, Object[] args)
{
throw Context.reportRuntimeError("Direct call is not supported");
}
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
{
return Interpreter.restartContinuation(this, cx, scope, args);
}
public static boolean isContinuationConstructor(IdFunctionObject f)
{
if (f.hasTag(FTAG) && f.methodId() == Id_constructor) {
return true;
}
return false;
}
@Override
protected void initPrototypeId(int id)
{
String s;
int arity;
switch (id) {
case Id_constructor: arity=0; s="constructor"; break;
default: throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(FTAG, id, s, arity);
}
@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (!f.hasTag(FTAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
switch (id) {
case Id_constructor:
throw Context.reportRuntimeError("Direct call is not supported");
}
throw new IllegalArgumentException(String.valueOf(id));
}
// #string_id_map#
@Override
protected int findPrototypeId(String s)
{
int id;
// #generated# Last update: 2007-05-09 08:16:40 EDT
L0: { id = 0; String X = null;
if (s.length()==11) { X="constructor";id=Id_constructor; }
if (X!=null && X!=s && !X.equals(s)) id = 0;
break L0;
}
// #/generated#
return id;
}
private static final int
Id_constructor = 1,
MAX_PROTOTYPE_ID = 1;
// #/string_id_map#
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,232 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
* Roger Lawrence
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
*
* The class of error objects
*
* ECMA 15.11
*/
final class NativeError extends IdScriptableObject
{
static final long serialVersionUID = -5338413581437645187L;
private static final Object ERROR_TAG = "Error";
static void init(Scriptable scope, boolean sealed)
{
NativeError obj = new NativeError();
ScriptableObject.putProperty(obj, "name", "Error");
ScriptableObject.putProperty(obj, "message", "");
ScriptableObject.putProperty(obj, "fileName", "");
ScriptableObject.putProperty(obj, "lineNumber", Integer.valueOf(0));
obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed);
}
static NativeError make(Context cx, Scriptable scope,
IdFunctionObject ctorObj, Object[] args)
{
Scriptable proto = (Scriptable)(ctorObj.get("prototype", ctorObj));
NativeError obj = new NativeError();
obj.setPrototype(proto);
obj.setParentScope(scope);
int arglen = args.length;
if (arglen >= 1) {
ScriptableObject.putProperty(obj, "message",
ScriptRuntime.toString(args[0]));
if (arglen >= 2) {
ScriptableObject.putProperty(obj, "fileName", args[1]);
if (arglen >= 3) {
int line = ScriptRuntime.toInt32(args[2]);
ScriptableObject.putProperty(obj, "lineNumber",
Integer.valueOf(line));
}
}
}
if(arglen < 3 && cx.hasFeature(Context.FEATURE_LOCATION_INFORMATION_IN_ERROR)) {
// Fill in fileName and lineNumber automatically when not specified
// explicitly, see Bugzilla issue #342807
int[] linep = new int[1];
String fileName = Context.getSourcePositionFromStack(linep);
ScriptableObject.putProperty(obj, "lineNumber",
Integer.valueOf(linep[0]));
if(arglen < 2) {
ScriptableObject.putProperty(obj, "fileName", fileName);
}
}
return obj;
}
@Override
public String getClassName()
{
return "Error";
}
@Override
public String toString()
{
return js_toString(this);
}
@Override
protected void initPrototypeId(int id)
{
String s;
int arity;
switch (id) {
case Id_constructor: arity=1; s="constructor"; break;
case Id_toString: arity=0; s="toString"; break;
case Id_toSource: arity=0; s="toSource"; break;
default: throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(ERROR_TAG, id, s, arity);
}
@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (!f.hasTag(ERROR_TAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
switch (id) {
case Id_constructor:
return make(cx, scope, f, args);
case Id_toString:
return js_toString(thisObj);
case Id_toSource:
return js_toSource(cx, scope, thisObj);
}
throw new IllegalArgumentException(String.valueOf(id));
}
private static String js_toString(Scriptable thisObj)
{
return getString(thisObj, "name")+": "+getString(thisObj, "message");
}
private static String js_toSource(Context cx, Scriptable scope,
Scriptable thisObj)
{
// Emulation of SpiderMonkey behavior
Object name = ScriptableObject.getProperty(thisObj, "name");
Object message = ScriptableObject.getProperty(thisObj, "message");
Object fileName = ScriptableObject.getProperty(thisObj, "fileName");
Object lineNumber = ScriptableObject.getProperty(thisObj, "lineNumber");
StringBuffer sb = new StringBuffer();
sb.append("(new ");
if (name == NOT_FOUND) {
name = Undefined.instance;
}
sb.append(ScriptRuntime.toString(name));
sb.append("(");
if (message != NOT_FOUND
|| fileName != NOT_FOUND
|| lineNumber != NOT_FOUND)
{
if (message == NOT_FOUND) {
message = "";
}
sb.append(ScriptRuntime.uneval(cx, scope, message));
if (fileName != NOT_FOUND || lineNumber != NOT_FOUND) {
sb.append(", ");
if (fileName == NOT_FOUND) {
fileName = "";
}
sb.append(ScriptRuntime.uneval(cx, scope, fileName));
if (lineNumber != NOT_FOUND) {
int line = ScriptRuntime.toInt32(lineNumber);
if (line != 0) {
sb.append(", ");
sb.append(ScriptRuntime.toString(line));
}
}
}
}
sb.append("))");
return sb.toString();
}
private static String getString(Scriptable obj, String id)
{
Object value = ScriptableObject.getProperty(obj, id);
if (value == NOT_FOUND) return "";
return ScriptRuntime.toString(value);
}
@Override
protected int findPrototypeId(String s)
{
int id;
// #string_id_map#
// #generated# Last update: 2007-05-09 08:15:45 EDT
L0: { id = 0; String X = null; int c;
int s_length = s.length();
if (s_length==8) {
c=s.charAt(3);
if (c=='o') { X="toSource";id=Id_toSource; }
else if (c=='t') { X="toString";id=Id_toString; }
}
else if (s_length==11) { X="constructor";id=Id_constructor; }
if (X!=null && X!=s && !X.equals(s)) id = 0;
break L0;
}
// #/generated#
return id;
}
private static final int
Id_constructor = 1,
Id_toString = 2,
Id_toSource = 3,
MAX_PROTOTYPE_ID = 3;
// #/string_id_map#
}

View File

@@ -1,172 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
* Bob Jervis
* Roger Lawrence
* Mike McCabe
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import org.mozilla.javascript.debug.DebuggableScript;
/**
* This class implements the Function native object.
* See ECMA 15.3.
* @author Norris Boyd
*/
public abstract class NativeFunction extends BaseFunction
{
public final void initScriptFunction(Context cx, Scriptable scope)
{
ScriptRuntime.setFunctionProtoAndParent(this, scope);
}
/**
* @param indent How much to indent the decompiled result
*
* @param flags Flags specifying format of decompilation output
*/
@Override
final String decompile(int indent, int flags)
{
String encodedSource = getEncodedSource();
if (encodedSource == null) {
return super.decompile(indent, flags);
} else {
UintMap properties = new UintMap(1);
properties.put(Decompiler.INITIAL_INDENT_PROP, indent);
return Decompiler.decompile(encodedSource, flags, properties);
}
}
@Override
public int getLength()
{
int paramCount = getParamCount();
if (getLanguageVersion() != Context.VERSION_1_2) {
return paramCount;
}
Context cx = Context.getContext();
NativeCall activation = ScriptRuntime.findFunctionActivation(cx, this);
if (activation == null) {
return paramCount;
}
return activation.originalArgs.length;
}
@Override
public int getArity()
{
return getParamCount();
}
/**
* @deprecated Use {@link BaseFunction#getFunctionName()} instead.
* For backwards compatibility keep an old method name used by
* Batik and possibly others.
*/
public String jsGet_name()
{
return getFunctionName();
}
/**
* Get encoded source string.
*/
public String getEncodedSource()
{
return null;
}
public DebuggableScript getDebuggableView()
{
return null;
}
/**
* Resume execution of a suspended generator.
* @param cx The current context
* @param scope Scope for the parent generator function
* @param operation The resumption operation (next, send, etc.. )
* @param state The generator state (has locals, stack, etc.)
* @param value The return value of yield (if required).
* @return The next yielded value (if any)
*/
public Object resumeGenerator(Context cx, Scriptable scope,
int operation, Object state, Object value)
{
throw new EvaluatorException("resumeGenerator() not implemented");
}
protected abstract int getLanguageVersion();
/**
* Get number of declared parameters. It should be 0 for scripts.
*/
protected abstract int getParamCount();
/**
* Get number of declared parameters and variables defined through var
* statements.
*/
protected abstract int getParamAndVarCount();
/**
* Get parameter or variable name.
* If <tt>index < {@link #getParamCount()}</tt>, then return the name of the
* corresponding parameter. Otherwise return the name of variable.
*/
protected abstract String getParamOrVarName(int index);
/**
* Get parameter or variable const-ness.
* If <tt>index < {@link #getParamCount()}</tt>, then return the const-ness
* of the corresponding parameter. Otherwise return whether the variable is
* const.
*/
protected boolean getParamOrVarConst(int index)
{
// By default return false to preserve compatibility with existing
// classes subclassing this class, which are mostly generated by jsc
// from earlier Rhino versions. See Bugzilla #396117.
return false;
}
}

View File

@@ -1,288 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
/**
* This class implements generator objects. See
* http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7#Generators
*
* @author Norris Boyd
*/
public final class NativeGenerator extends IdScriptableObject {
private static final long serialVersionUID = 1645892441041347273L;
private static final Object GENERATOR_TAG = "Generator";
static NativeGenerator init(ScriptableObject scope, boolean sealed) {
// Generator
// Can't use "NativeGenerator().exportAsJSClass" since we don't want
// to define "Generator" as a constructor in the top-level scope.
NativeGenerator prototype = new NativeGenerator();
if (scope != null) {
prototype.setParentScope(scope);
prototype.setPrototype(getObjectPrototype(scope));
}
prototype.activatePrototypeMap(MAX_PROTOTYPE_ID);
if (sealed) {
prototype.sealObject();
}
// Need to access Generator prototype when constructing
// Generator instances, but don't have a generator constructor
// to use to find the prototype. Use the "associateValue"
// approach instead.
if (scope != null) {
scope.associateValue(GENERATOR_TAG, prototype);
}
return prototype;
}
/**
* Only for constructing the prototype object.
*/
private NativeGenerator() { }
public NativeGenerator(Scriptable scope, NativeFunction function,
Object savedState)
{
this.function = function;
this.savedState = savedState;
// Set parent and prototype properties. Since we don't have a
// "Generator" constructor in the top scope, we stash the
// prototype in the top scope's associated value.
Scriptable top = ScriptableObject.getTopLevelScope(scope);
this.setParentScope(top);
NativeGenerator prototype = (NativeGenerator)
ScriptableObject.getTopScopeValue(top, GENERATOR_TAG);
this.setPrototype(prototype);
}
public static final int GENERATOR_SEND = 0,
GENERATOR_THROW = 1,
GENERATOR_CLOSE = 2;
@Override
public String getClassName() {
return "Generator";
}
/**
* Close the generator if it is still open.
*/
@Override
protected void finalize() throws Throwable {
if (savedState != null) {
// This is a little tricky since we are most likely running in
// a different thread. We need to get a Context to run this, and
// we must call "doTopCall" since this will likely be the outermost
// JavaScript frame on this thread.
Context cx = Context.getCurrentContext();
ContextFactory factory = cx != null ? cx.getFactory()
: ContextFactory.getGlobal();
factory.call(new CloseGeneratorAction(this));
}
}
private static class CloseGeneratorAction implements ContextAction {
private NativeGenerator generator;
CloseGeneratorAction(NativeGenerator generator) {
this.generator = generator;
}
public Object run(Context cx) {
Scriptable scope = ScriptableObject.getTopLevelScope(generator);
Callable closeGenerator = new Callable() {
public Object call(Context cx, Scriptable scope,
Scriptable thisObj, Object[] args) {
return ((NativeGenerator)thisObj).resume(cx, scope,
GENERATOR_CLOSE, new GeneratorClosedException());
}
};
return ScriptRuntime.doTopCall(closeGenerator, cx, scope,
generator, null);
}
}
@Override
protected void initPrototypeId(int id) {
String s;
int arity;
switch (id) {
case Id_close: arity=1; s="close"; break;
case Id_next: arity=1; s="next"; break;
case Id_send: arity=0; s="send"; break;
case Id_throw: arity=0; s="throw"; break;
case Id___iterator__: arity=1; s="__iterator__"; break;
default: throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(GENERATOR_TAG, id, s, arity);
}
@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (!f.hasTag(GENERATOR_TAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
if (!(thisObj instanceof NativeGenerator))
throw incompatibleCallError(f);
NativeGenerator generator = (NativeGenerator) thisObj;
switch (id) {
case Id_close:
// need to run any pending finally clauses
return generator.resume(cx, scope, GENERATOR_CLOSE,
new GeneratorClosedException());
case Id_next:
// arguments to next() are ignored
generator.firstTime = false;
return generator.resume(cx, scope, GENERATOR_SEND,
Undefined.instance);
case Id_send: {
Object arg = args.length > 0 ? args[0] : Undefined.instance;
if (generator.firstTime && !arg.equals(Undefined.instance)) {
throw ScriptRuntime.typeError0("msg.send.newborn");
}
return generator.resume(cx, scope, GENERATOR_SEND, arg);
}
case Id_throw:
return generator.resume(cx, scope, GENERATOR_THROW,
args.length > 0 ? args[0] : Undefined.instance);
case Id___iterator__:
return thisObj;
default:
throw new IllegalArgumentException(String.valueOf(id));
}
}
private Object resume(Context cx, Scriptable scope, int operation,
Object value)
{
if (savedState == null) {
if (operation == GENERATOR_CLOSE)
return Undefined.instance;
Object thrown;
if (operation == GENERATOR_THROW) {
thrown = value;
} else {
thrown = NativeIterator.getStopIterationObject(scope);
}
throw new JavaScriptException(thrown, lineSource, lineNumber);
}
try {
synchronized (this) {
// generator execution is necessarily single-threaded and
// non-reentrant.
// See https://bugzilla.mozilla.org/show_bug.cgi?id=349263
if (locked)
throw ScriptRuntime.typeError0("msg.already.exec.gen");
locked = true;
}
return function.resumeGenerator(cx, scope, operation, savedState,
value);
} catch (GeneratorClosedException e) {
// On closing a generator in the compile path, the generator
// throws a special exception. This ensures execution of all pending
// finalizers and will not get caught by user code.
return Undefined.instance;
} catch (RhinoException e) {
lineNumber = e.lineNumber();
lineSource = e.lineSource();
savedState = null;
throw e;
} finally {
synchronized (this) {
locked = false;
}
if (operation == GENERATOR_CLOSE)
savedState = null;
}
}
// #string_id_map#
@Override
protected int findPrototypeId(String s) {
int id;
// #generated# Last update: 2007-06-14 13:13:03 EDT
L0: { id = 0; String X = null; int c;
int s_length = s.length();
if (s_length==4) {
c=s.charAt(0);
if (c=='n') { X="next";id=Id_next; }
else if (c=='s') { X="send";id=Id_send; }
}
else if (s_length==5) {
c=s.charAt(0);
if (c=='c') { X="close";id=Id_close; }
else if (c=='t') { X="throw";id=Id_throw; }
}
else if (s_length==12) { X="__iterator__";id=Id___iterator__; }
if (X!=null && X!=s && !X.equals(s)) id = 0;
break L0;
}
// #/generated#
return id;
}
private static final int
Id_close = 1,
Id_next = 2,
Id_send = 3,
Id_throw = 4,
Id___iterator__ = 5,
MAX_PROTOTYPE_ID = 5;
// #/string_id_map#
private NativeFunction function;
private Object savedState;
private String lineSource;
private int lineNumber;
private boolean firstTime = true;
private boolean locked;
public static class GeneratorClosedException extends RuntimeException {
private static final long serialVersionUID = 2561315658662379681L;
}
}

View File

@@ -1,795 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
* Mike McCabe
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.io.Serializable;
import org.mozilla.javascript.xml.XMLLib;
/**
* This class implements the global native object (function and value
* properties only).
*
* See ECMA 15.1.[12].
*
* @author Mike Shaver
*/
public class NativeGlobal implements Serializable, IdFunctionCall
{
static final long serialVersionUID = 6080442165748707530L;
public static void init(Context cx, Scriptable scope, boolean sealed) {
NativeGlobal obj = new NativeGlobal();
for (int id = 1; id <= LAST_SCOPE_FUNCTION_ID; ++id) {
String name;
int arity = 1;
switch (id) {
case Id_decodeURI:
name = "decodeURI";
break;
case Id_decodeURIComponent:
name = "decodeURIComponent";
break;
case Id_encodeURI:
name = "encodeURI";
break;
case Id_encodeURIComponent:
name = "encodeURIComponent";
break;
case Id_escape:
name = "escape";
break;
case Id_eval:
name = "eval";
break;
case Id_isFinite:
name = "isFinite";
break;
case Id_isNaN:
name = "isNaN";
break;
case Id_isXMLName:
name = "isXMLName";
break;
case Id_parseFloat:
name = "parseFloat";
break;
case Id_parseInt:
name = "parseInt";
arity = 2;
break;
case Id_unescape:
name = "unescape";
break;
case Id_uneval:
name = "uneval";
break;
default:
throw Kit.codeBug();
}
IdFunctionObject f = new IdFunctionObject(obj, FTAG, id, name,
arity, scope);
if (sealed) {
f.sealObject();
}
f.exportAsScopeProperty();
}
ScriptableObject.defineProperty(
scope, "NaN", ScriptRuntime.NaNobj,
ScriptableObject.DONTENUM);
ScriptableObject.defineProperty(
scope, "Infinity",
ScriptRuntime.wrapNumber(Double.POSITIVE_INFINITY),
ScriptableObject.DONTENUM);
ScriptableObject.defineProperty(
scope, "undefined", Undefined.instance,
ScriptableObject.DONTENUM);
String[] errorMethods = {
"ConversionError",
"EvalError",
"RangeError",
"ReferenceError",
"SyntaxError",
"TypeError",
"URIError",
"InternalError",
"JavaException"
};
/*
Each error constructor gets its own Error object as a prototype,
with the 'name' property set to the name of the error.
*/
for (int i = 0; i < errorMethods.length; i++) {
String name = errorMethods[i];
Scriptable errorProto = ScriptRuntime.
newObject(cx, scope, "Error",
ScriptRuntime.emptyArgs);
errorProto.put("name", errorProto, name);
if (sealed) {
if (errorProto instanceof ScriptableObject) {
((ScriptableObject)errorProto).sealObject();
}
}
IdFunctionObject ctor = new IdFunctionObject(obj, FTAG,
Id_new_CommonError,
name, 1, scope);
ctor.markAsConstructor(errorProto);
if (sealed) {
ctor.sealObject();
}
ctor.exportAsScopeProperty();
}
}
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (f.hasTag(FTAG)) {
int methodId = f.methodId();
switch (methodId) {
case Id_decodeURI:
case Id_decodeURIComponent: {
String str = ScriptRuntime.toString(args, 0);
return decode(str, methodId == Id_decodeURI);
}
case Id_encodeURI:
case Id_encodeURIComponent: {
String str = ScriptRuntime.toString(args, 0);
return encode(str, methodId == Id_encodeURI);
}
case Id_escape:
return js_escape(args);
case Id_eval:
return js_eval(cx, scope, thisObj, args);
case Id_isFinite: {
boolean result;
if (args.length < 1) {
result = false;
} else {
double d = ScriptRuntime.toNumber(args[0]);
result = (d == d
&& d != Double.POSITIVE_INFINITY
&& d != Double.NEGATIVE_INFINITY);
}
return ScriptRuntime.wrapBoolean(result);
}
case Id_isNaN: {
// The global method isNaN, as per ECMA-262 15.1.2.6.
boolean result;
if (args.length < 1) {
result = true;
} else {
double d = ScriptRuntime.toNumber(args[0]);
result = (d != d);
}
return ScriptRuntime.wrapBoolean(result);
}
case Id_isXMLName: {
Object name = (args.length == 0)
? Undefined.instance : args[0];
XMLLib xmlLib = XMLLib.extractFromScope(scope);
return ScriptRuntime.wrapBoolean(
xmlLib.isXMLName(cx, name));
}
case Id_parseFloat:
return js_parseFloat(args);
case Id_parseInt:
return js_parseInt(args);
case Id_unescape:
return js_unescape(args);
case Id_uneval: {
Object value = (args.length != 0)
? args[0] : Undefined.instance;
return ScriptRuntime.uneval(cx, scope, value);
}
case Id_new_CommonError:
// The implementation of all the ECMA error constructors
// (SyntaxError, TypeError, etc.)
return NativeError.make(cx, scope, f, args);
}
}
throw f.unknown();
}
/**
* The global method parseInt, as per ECMA-262 15.1.2.2.
*/
private Object js_parseInt(Object[] args) {
String s = ScriptRuntime.toString(args, 0);
int radix = ScriptRuntime.toInt32(args, 1);
int len = s.length();
if (len == 0)
return ScriptRuntime.NaNobj;
boolean negative = false;
int start = 0;
char c;
do {
c = s.charAt(start);
if (!Character.isWhitespace(c))
break;
start++;
} while (start < len);
if (c == '+' || (negative = (c == '-')))
start++;
final int NO_RADIX = -1;
if (radix == 0) {
radix = NO_RADIX;
} else if (radix < 2 || radix > 36) {
return ScriptRuntime.NaNobj;
} else if (radix == 16 && len - start > 1 && s.charAt(start) == '0') {
c = s.charAt(start+1);
if (c == 'x' || c == 'X')
start += 2;
}
if (radix == NO_RADIX) {
radix = 10;
if (len - start > 1 && s.charAt(start) == '0') {
c = s.charAt(start+1);
if (c == 'x' || c == 'X') {
radix = 16;
start += 2;
} else if ('0' <= c && c <= '9') {
radix = 8;
start++;
}
}
}
double d = ScriptRuntime.stringToNumber(s, start, radix);
return ScriptRuntime.wrapNumber(negative ? -d : d);
}
/**
* The global method parseFloat, as per ECMA-262 15.1.2.3.
*
* @param args the arguments to parseFloat, ignoring args[>=1]
*/
private Object js_parseFloat(Object[] args)
{
if (args.length < 1)
return ScriptRuntime.NaNobj;
String s = ScriptRuntime.toString(args[0]);
int len = s.length();
int start = 0;
// Scan forward to skip whitespace
char c;
for (;;) {
if (start == len) {
return ScriptRuntime.NaNobj;
}
c = s.charAt(start);
if (!TokenStream.isJSSpace(c)) {
break;
}
++start;
}
int i = start;
if (c == '+' || c == '-') {
++i;
if (i == len) {
return ScriptRuntime.NaNobj;
}
c = s.charAt(i);
}
if (c == 'I') {
// check for "Infinity"
if (i+8 <= len && s.regionMatches(i, "Infinity", 0, 8)) {
double d;
if (s.charAt(start) == '-') {
d = Double.NEGATIVE_INFINITY;
} else {
d = Double.POSITIVE_INFINITY;
}
return ScriptRuntime.wrapNumber(d);
}
return ScriptRuntime.NaNobj;
}
// Find the end of the legal bit
int decimal = -1;
int exponent = -1;
for (; i < len; i++) {
switch (s.charAt(i)) {
case '.':
if (decimal != -1) // Only allow a single decimal point.
break;
decimal = i;
continue;
case 'e':
case 'E':
if (exponent != -1)
break;
exponent = i;
continue;
case '+':
case '-':
// Only allow '+' or '-' after 'e' or 'E'
if (exponent != i-1)
break;
continue;
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
continue;
default:
break;
}
break;
}
s = s.substring(start, i);
try {
return Double.valueOf(s);
}
catch (NumberFormatException ex) {
return ScriptRuntime.NaNobj;
}
}
/**
* The global method escape, as per ECMA-262 15.1.2.4.
* Includes code for the 'mask' argument supported by the C escape
* method, which used to be part of the browser imbedding. Blame
* for the strange constant names should be directed there.
*/
private Object js_escape(Object[] args) {
final int
URL_XALPHAS = 1,
URL_XPALPHAS = 2,
URL_PATH = 4;
String s = ScriptRuntime.toString(args, 0);
int mask = URL_XALPHAS | URL_XPALPHAS | URL_PATH;
if (args.length > 1) { // the 'mask' argument. Non-ECMA.
double d = ScriptRuntime.toNumber(args[1]);
if (d != d || ((mask = (int) d) != d) ||
0 != (mask & ~(URL_XALPHAS | URL_XPALPHAS | URL_PATH)))
{
throw Context.reportRuntimeError0("msg.bad.esc.mask");
}
}
StringBuffer sb = null;
for (int k = 0, L = s.length(); k != L; ++k) {
int c = s.charAt(k);
if (mask != 0
&& ((c >= '0' && c <= '9')
|| (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')
|| c == '@' || c == '*' || c == '_' || c == '-' || c == '.'
|| (0 != (mask & URL_PATH) && (c == '/' || c == '+'))))
{
if (sb != null) {
sb.append((char)c);
}
} else {
if (sb == null) {
sb = new StringBuffer(L + 3);
sb.append(s);
sb.setLength(k);
}
int hexSize;
if (c < 256) {
if (c == ' ' && mask == URL_XPALPHAS) {
sb.append('+');
continue;
}
sb.append('%');
hexSize = 2;
} else {
sb.append('%');
sb.append('u');
hexSize = 4;
}
// append hexadecimal form of c left-padded with 0
for (int shift = (hexSize - 1) * 4; shift >= 0; shift -= 4) {
int digit = 0xf & (c >> shift);
int hc = (digit < 10) ? '0' + digit : 'A' - 10 + digit;
sb.append((char)hc);
}
}
}
return (sb == null) ? s : sb.toString();
}
/**
* The global unescape method, as per ECMA-262 15.1.2.5.
*/
private Object js_unescape(Object[] args)
{
String s = ScriptRuntime.toString(args, 0);
int firstEscapePos = s.indexOf('%');
if (firstEscapePos >= 0) {
int L = s.length();
char[] buf = s.toCharArray();
int destination = firstEscapePos;
for (int k = firstEscapePos; k != L;) {
char c = buf[k];
++k;
if (c == '%' && k != L) {
int end, start;
if (buf[k] == 'u') {
start = k + 1;
end = k + 5;
} else {
start = k;
end = k + 2;
}
if (end <= L) {
int x = 0;
for (int i = start; i != end; ++i) {
x = Kit.xDigitToInt(buf[i], x);
}
if (x >= 0) {
c = (char)x;
k = end;
}
}
}
buf[destination] = c;
++destination;
}
s = new String(buf, 0, destination);
}
return s;
}
private Object js_eval(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
{
if (thisObj.getParentScope() == null) {
// We allow indirect calls to eval as long as the script will execute in
// the global scope.
return ScriptRuntime.evalSpecial(cx, scope, thisObj, args, "eval code", 1);
}
String m = ScriptRuntime.getMessage1("msg.cant.call.indirect", "eval");
throw NativeGlobal.constructError(cx, "EvalError", m, scope);
}
static boolean isEvalFunction(Object functionObj)
{
if (functionObj instanceof IdFunctionObject) {
IdFunctionObject function = (IdFunctionObject)functionObj;
if (function.hasTag(FTAG) && function.methodId() == Id_eval) {
return true;
}
}
return false;
}
/**
* @deprecated Use {@link ScriptRuntime#constructError(String,String)}
* instead.
*/
public static EcmaError constructError(Context cx,
String error,
String message,
Scriptable scope)
{
return ScriptRuntime.constructError(error, message);
}
/**
* @deprecated Use
* {@link ScriptRuntime#constructError(String,String,String,int,String,int)}
* instead.
*/
public static EcmaError constructError(Context cx,
String error,
String message,
Scriptable scope,
String sourceName,
int lineNumber,
int columnNumber,
String lineSource)
{
return ScriptRuntime.constructError(error, message,
sourceName, lineNumber,
lineSource, columnNumber);
}
/*
* ECMA 3, 15.1.3 URI Handling Function Properties
*
* The following are implementations of the algorithms
* given in the ECMA specification for the hidden functions
* 'Encode' and 'Decode'.
*/
private static String encode(String str, boolean fullUri) {
byte[] utf8buf = null;
StringBuffer sb = null;
for (int k = 0, length = str.length(); k != length; ++k) {
char C = str.charAt(k);
if (encodeUnescaped(C, fullUri)) {
if (sb != null) {
sb.append(C);
}
} else {
if (sb == null) {
sb = new StringBuffer(length + 3);
sb.append(str);
sb.setLength(k);
utf8buf = new byte[6];
}
if (0xDC00 <= C && C <= 0xDFFF) {
throw Context.reportRuntimeError0("msg.bad.uri");
}
int V;
if (C < 0xD800 || 0xDBFF < C) {
V = C;
} else {
k++;
if (k == length) {
throw Context.reportRuntimeError0("msg.bad.uri");
}
char C2 = str.charAt(k);
if (!(0xDC00 <= C2 && C2 <= 0xDFFF)) {
throw Context.reportRuntimeError0("msg.bad.uri");
}
V = ((C - 0xD800) << 10) + (C2 - 0xDC00) + 0x10000;
}
int L = oneUcs4ToUtf8Char(utf8buf, V);
for (int j = 0; j < L; j++) {
int d = 0xff & utf8buf[j];
sb.append('%');
sb.append(toHexChar(d >>> 4));
sb.append(toHexChar(d & 0xf));
}
}
}
return (sb == null) ? str : sb.toString();
}
private static char toHexChar(int i) {
if (i >> 4 != 0) Kit.codeBug();
return (char)((i < 10) ? i + '0' : i - 10 + 'A');
}
private static int unHex(char c) {
if ('A' <= c && c <= 'F') {
return c - 'A' + 10;
} else if ('a' <= c && c <= 'f') {
return c - 'a' + 10;
} else if ('0' <= c && c <= '9') {
return c - '0';
} else {
return -1;
}
}
private static int unHex(char c1, char c2) {
int i1 = unHex(c1);
int i2 = unHex(c2);
if (i1 >= 0 && i2 >= 0) {
return (i1 << 4) | i2;
}
return -1;
}
private static String decode(String str, boolean fullUri) {
char[] buf = null;
int bufTop = 0;
for (int k = 0, length = str.length(); k != length;) {
char C = str.charAt(k);
if (C != '%') {
if (buf != null) {
buf[bufTop++] = C;
}
++k;
} else {
if (buf == null) {
// decode always compress so result can not be bigger then
// str.length()
buf = new char[length];
str.getChars(0, k, buf, 0);
bufTop = k;
}
int start = k;
if (k + 3 > length)
throw Context.reportRuntimeError0("msg.bad.uri");
int B = unHex(str.charAt(k + 1), str.charAt(k + 2));
if (B < 0) throw Context.reportRuntimeError0("msg.bad.uri");
k += 3;
if ((B & 0x80) == 0) {
C = (char)B;
} else {
// Decode UTF-8 sequence into ucs4Char and encode it into
// UTF-16
int utf8Tail, ucs4Char, minUcs4Char;
if ((B & 0xC0) == 0x80) {
// First UTF-8 should be ouside 0x80..0xBF
throw Context.reportRuntimeError0("msg.bad.uri");
} else if ((B & 0x20) == 0) {
utf8Tail = 1; ucs4Char = B & 0x1F;
minUcs4Char = 0x80;
} else if ((B & 0x10) == 0) {
utf8Tail = 2; ucs4Char = B & 0x0F;
minUcs4Char = 0x800;
} else if ((B & 0x08) == 0) {
utf8Tail = 3; ucs4Char = B & 0x07;
minUcs4Char = 0x10000;
} else if ((B & 0x04) == 0) {
utf8Tail = 4; ucs4Char = B & 0x03;
minUcs4Char = 0x200000;
} else if ((B & 0x02) == 0) {
utf8Tail = 5; ucs4Char = B & 0x01;
minUcs4Char = 0x4000000;
} else {
// First UTF-8 can not be 0xFF or 0xFE
throw Context.reportRuntimeError0("msg.bad.uri");
}
if (k + 3 * utf8Tail > length)
throw Context.reportRuntimeError0("msg.bad.uri");
for (int j = 0; j != utf8Tail; j++) {
if (str.charAt(k) != '%')
throw Context.reportRuntimeError0("msg.bad.uri");
B = unHex(str.charAt(k + 1), str.charAt(k + 2));
if (B < 0 || (B & 0xC0) != 0x80)
throw Context.reportRuntimeError0("msg.bad.uri");
ucs4Char = (ucs4Char << 6) | (B & 0x3F);
k += 3;
}
// Check for overlongs and other should-not-present codes
if (ucs4Char < minUcs4Char
|| ucs4Char == 0xFFFE || ucs4Char == 0xFFFF)
{
ucs4Char = 0xFFFD;
}
if (ucs4Char >= 0x10000) {
ucs4Char -= 0x10000;
if (ucs4Char > 0xFFFFF)
throw Context.reportRuntimeError0("msg.bad.uri");
char H = (char)((ucs4Char >>> 10) + 0xD800);
C = (char)((ucs4Char & 0x3FF) + 0xDC00);
buf[bufTop++] = H;
} else {
C = (char)ucs4Char;
}
}
if (fullUri && URI_DECODE_RESERVED.indexOf(C) >= 0) {
for (int x = start; x != k; x++) {
buf[bufTop++] = str.charAt(x);
}
} else {
buf[bufTop++] = C;
}
}
}
return (buf == null) ? str : new String(buf, 0, bufTop);
}
private static boolean encodeUnescaped(char c, boolean fullUri) {
if (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')
|| ('0' <= c && c <= '9'))
{
return true;
}
if ("-_.!~*'()".indexOf(c) >= 0)
return true;
if (fullUri) {
return URI_DECODE_RESERVED.indexOf(c) >= 0;
}
return false;
}
private static final String URI_DECODE_RESERVED = ";/?:@&=+$,#";
/* Convert one UCS-4 char and write it into a UTF-8 buffer, which must be
* at least 6 bytes long. Return the number of UTF-8 bytes of data written.
*/
private static int oneUcs4ToUtf8Char(byte[] utf8Buffer, int ucs4Char) {
int utf8Length = 1;
//JS_ASSERT(ucs4Char <= 0x7FFFFFFF);
if ((ucs4Char & ~0x7F) == 0)
utf8Buffer[0] = (byte)ucs4Char;
else {
int i;
int a = ucs4Char >>> 11;
utf8Length = 2;
while (a != 0) {
a >>>= 5;
utf8Length++;
}
i = utf8Length;
while (--i > 0) {
utf8Buffer[i] = (byte)((ucs4Char & 0x3F) | 0x80);
ucs4Char >>>= 6;
}
utf8Buffer[0] = (byte)(0x100 - (1 << (8-utf8Length)) + ucs4Char);
}
return utf8Length;
}
private static final Object FTAG = "Global";
private static final int
Id_decodeURI = 1,
Id_decodeURIComponent = 2,
Id_encodeURI = 3,
Id_encodeURIComponent = 4,
Id_escape = 5,
Id_eval = 6,
Id_isFinite = 7,
Id_isNaN = 8,
Id_isXMLName = 9,
Id_parseFloat = 10,
Id_parseInt = 11,
Id_unescape = 12,
Id_uneval = 13,
LAST_SCOPE_FUNCTION_ID = 13,
Id_new_CommonError = 14;
}

View File

@@ -1,269 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.util.Iterator;
/**
* This class implements iterator objects. See
* http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7#Iterators
*
* @author Norris Boyd
*/
public final class NativeIterator extends IdScriptableObject {
private static final long serialVersionUID = -4136968203581667681L;
private static final Object ITERATOR_TAG = "Iterator";
static void init(ScriptableObject scope, boolean sealed) {
// Iterator
NativeIterator iterator = new NativeIterator();
iterator.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed);
// Generator
NativeGenerator.init(scope, sealed);
// StopIteration
NativeObject obj = new StopIteration();
obj.setPrototype(getObjectPrototype(scope));
obj.setParentScope(scope);
if (sealed) { obj.sealObject(); }
ScriptableObject.defineProperty(scope, STOP_ITERATION, obj,
ScriptableObject.DONTENUM);
// Use "associateValue" so that generators can continue to
// throw StopIteration even if the property of the global
// scope is replaced or deleted.
scope.associateValue(ITERATOR_TAG, obj);
}
/**
* Only for constructing the prototype object.
*/
private NativeIterator() {
}
private NativeIterator(Object objectIterator) {
this.objectIterator = objectIterator;
}
/**
* Get the value of the "StopIteration" object. Note that this value
* is stored in the top-level scope using "associateValue" so the
* value can still be found even if a script overwrites or deletes
* the global "StopIteration" property.
* @param scope a scope whose parent chain reaches a top-level scope
* @return the StopIteration object
*/
public static Object getStopIterationObject(Scriptable scope) {
Scriptable top = ScriptableObject.getTopLevelScope(scope);
return ScriptableObject.getTopScopeValue(top, ITERATOR_TAG);
}
private static final String STOP_ITERATION = "StopIteration";
public static final String ITERATOR_PROPERTY_NAME = "__iterator__";
static class StopIteration extends NativeObject {
private static final long serialVersionUID = 2485151085722377663L;
@Override
public String getClassName() {
return STOP_ITERATION;
}
/* StopIteration has custom instanceof behavior since it
* doesn't have a constructor.
*/
@Override
public boolean hasInstance(Scriptable instance) {
return instance instanceof StopIteration;
}
}
@Override
public String getClassName() {
return "Iterator";
}
@Override
protected void initPrototypeId(int id) {
String s;
int arity;
switch (id) {
case Id_constructor: arity=2; s="constructor"; break;
case Id_next: arity=0; s="next"; break;
case Id___iterator__: arity=1; s=ITERATOR_PROPERTY_NAME; break;
default: throw new IllegalArgumentException(String.valueOf(id));
}
initPrototypeMethod(ITERATOR_TAG, id, s, arity);
}
@Override
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (!f.hasTag(ITERATOR_TAG)) {
return super.execIdCall(f, cx, scope, thisObj, args);
}
int id = f.methodId();
if (id == Id_constructor) {
return jsConstructor(cx, scope, thisObj, args);
}
if (!(thisObj instanceof NativeIterator))
throw incompatibleCallError(f);
NativeIterator iterator = (NativeIterator) thisObj;
switch (id) {
case Id_next:
return iterator.next(cx, scope);
case Id___iterator__:
/// XXX: what about argument? SpiderMonkey apparently ignores it
return thisObj;
default:
throw new IllegalArgumentException(String.valueOf(id));
}
}
/* The JavaScript constructor */
private static Object jsConstructor(Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
{
if (args.length == 0 || args[0] == null ||
args[0] == Undefined.instance)
{
throw ScriptRuntime.typeError1("msg.no.properties",
ScriptRuntime.toString(args[0]));
}
Scriptable obj = ScriptRuntime.toObject(scope, args[0]);
boolean keyOnly = args.length > 1 && ScriptRuntime.toBoolean(args[1]);
if (thisObj != null) {
// Called as a function. Convert to iterator if possible.
// For objects that implement java.lang.Iterable or
// java.util.Iterator, have JavaScript Iterator call the underlying
// iteration methods
Iterator<?> iterator =
VMBridge.instance.getJavaIterator(cx, scope, obj);
if (iterator != null) {
scope = ScriptableObject.getTopLevelScope(scope);
return cx.getWrapFactory().wrap(cx, scope,
new WrappedJavaIterator(iterator, scope),
WrappedJavaIterator.class);
}
// Otherwise, just call the runtime routine
Scriptable jsIterator = ScriptRuntime.toIterator(cx, scope, obj,
keyOnly);
if (jsIterator != null) {
return jsIterator;
}
}
// Otherwise, just set up to iterate over the properties of the object.
// Do not call __iterator__ method.
Object objectIterator = ScriptRuntime.enumInit(obj, cx,
keyOnly ? ScriptRuntime.ENUMERATE_KEYS_NO_ITERATOR
: ScriptRuntime.ENUMERATE_ARRAY_NO_ITERATOR);
ScriptRuntime.setEnumNumbers(objectIterator, true);
NativeIterator result = new NativeIterator(objectIterator);
result.setPrototype(ScriptableObject.getClassPrototype(scope,
result.getClassName()));
result.setParentScope(scope);
return result;
}
private Object next(Context cx, Scriptable scope) {
Boolean b = ScriptRuntime.enumNext(this.objectIterator);
if (!b.booleanValue()) {
// Out of values. Throw StopIteration.
throw new JavaScriptException(
NativeIterator.getStopIterationObject(scope), null, 0);
}
return ScriptRuntime.enumId(this.objectIterator, cx);
}
static public class WrappedJavaIterator
{
WrappedJavaIterator(Iterator<?> iterator, Scriptable scope) {
this.iterator = iterator;
this.scope = scope;
}
public Object next() {
if (!iterator.hasNext()) {
// Out of values. Throw StopIteration.
throw new JavaScriptException(
NativeIterator.getStopIterationObject(scope), null, 0);
}
return iterator.next();
}
public Object __iterator__(boolean b) {
return this;
}
private Iterator<?> iterator;
private Scriptable scope;
}
// #string_id_map#
@Override
protected int findPrototypeId(String s) {
int id;
// #generated# Last update: 2007-06-11 09:43:19 EDT
L0: { id = 0; String X = null;
int s_length = s.length();
if (s_length==4) { X="next";id=Id_next; }
else if (s_length==11) { X="constructor";id=Id_constructor; }
else if (s_length==12) { X="__iterator__";id=Id___iterator__; }
if (X!=null && X!=s && !X.equals(s)) id = 0;
break L0;
}
// #/generated#
return id;
}
private static final int
Id_constructor = 1,
Id_next = 2,
Id___iterator__ = 3,
MAX_PROTOTYPE_ID = 3;
// #/string_id_map#
private Object objectIterator;
}

View File

@@ -1,180 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
* Frank Mitchell
* Mike Shaver
* Kemal Bayram
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.lang.reflect.Array;
/**
* This class reflects Java arrays into the JavaScript environment.
*
* @author Mike Shaver
* @see NativeJavaClass
* @see NativeJavaObject
* @see NativeJavaPackage
*/
public class NativeJavaArray extends NativeJavaObject
{
static final long serialVersionUID = -924022554283675333L;
@Override
public String getClassName() {
return "JavaArray";
}
public static NativeJavaArray wrap(Scriptable scope, Object array) {
return new NativeJavaArray(scope, array);
}
@Override
public Object unwrap() {
return array;
}
public NativeJavaArray(Scriptable scope, Object array) {
super(scope, null, ScriptRuntime.ObjectClass);
Class<?> cl = array.getClass();
if (!cl.isArray()) {
throw new RuntimeException("Array expected");
}
this.array = array;
this.length = Array.getLength(array);
this.cls = cl.getComponentType();
}
@Override
public boolean has(String id, Scriptable start) {
return id.equals("length") || super.has(id, start);
}
@Override
public boolean has(int index, Scriptable start) {
return 0 <= index && index < length;
}
@Override
public Object get(String id, Scriptable start) {
if (id.equals("length"))
return Integer.valueOf(length);
Object result = super.get(id, start);
if (result == NOT_FOUND &&
!ScriptableObject.hasProperty(getPrototype(), id))
{
throw Context.reportRuntimeError2(
"msg.java.member.not.found", array.getClass().getName(), id);
}
return result;
}
@Override
public Object get(int index, Scriptable start) {
if (0 <= index && index < length) {
Context cx = Context.getContext();
Object obj = Array.get(array, index);
return cx.getWrapFactory().wrap(cx, this, obj, cls);
}
return Undefined.instance;
}
@Override
public void put(String id, Scriptable start, Object value) {
// Ignore assignments to "length"--it's readonly.
if (!id.equals("length"))
throw Context.reportRuntimeError1(
"msg.java.array.member.not.found", id);
}
@Override
public void put(int index, Scriptable start, Object value) {
if (0 <= index && index < length) {
Array.set(array, index, Context.jsToJava(value, cls));
}
else {
throw Context.reportRuntimeError2(
"msg.java.array.index.out.of.bounds", String.valueOf(index),
String.valueOf(length - 1));
}
}
@Override
public Object getDefaultValue(Class<?> hint) {
if (hint == null || hint == ScriptRuntime.StringClass)
return array.toString();
if (hint == ScriptRuntime.BooleanClass)
return Boolean.TRUE;
if (hint == ScriptRuntime.NumberClass)
return ScriptRuntime.NaNobj;
return this;
}
@Override
public Object[] getIds() {
Object[] result = new Object[length];
int i = length;
while (--i >= 0)
result[i] = Integer.valueOf(i);
return result;
}
@Override
public boolean hasInstance(Scriptable value) {
if (!(value instanceof Wrapper))
return false;
Object instance = ((Wrapper)value).unwrap();
return cls.isInstance(instance);
}
@Override
public Scriptable getPrototype() {
if (prototype == null) {
prototype =
ScriptableObject.getClassPrototype(this.getParentScope(),
"Array");
}
return prototype;
}
Object array;
int length;
Class<?> cls;
}

View File

@@ -1,330 +0,0 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1997-1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Frank Mitchell
* Mike Shaver
* Kurt Westerfeld
* Kemal Bayram
* Ulrike Mueller <umueller@demandware.com>
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU General Public License Version 2 or later (the "GPL"), in which
* case the provisions of the GPL are applicable instead of those above. If
* you wish to allow use of your version of this file only under the terms of
* the GPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replacing
* them with the notice and other provisions required by the GPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the GPL.
*
* ***** END LICENSE BLOCK ***** */
package org.mozilla.javascript;
import java.lang.reflect.*;
import java.util.Map;
/**
* This class reflects Java classes into the JavaScript environment, mainly
* for constructors and static members. We lazily reflect properties,
* and currently do not guarantee that a single j.l.Class is only
* reflected once into the JS environment, although we should.
* The only known case where multiple reflections
* are possible occurs when a j.l.Class is wrapped as part of a
* method return or property access, rather than by walking the
* Packages/java tree.
*
* @author Mike Shaver
* @see NativeJavaArray
* @see NativeJavaObject
* @see NativeJavaPackage
*/
public class NativeJavaClass extends NativeJavaObject implements Function
{
static final long serialVersionUID = -6460763940409461664L;
// Special property for getting the underlying Java class object.
static final String javaClassPropertyName = "__javaObject__";
public NativeJavaClass() {
}
public NativeJavaClass(Scriptable scope, Class<?> cl) {
this.parent = scope;
this.javaObject = cl;
initMembers();
}
@Override
protected void initMembers() {
Class<?> cl = (Class<?>)javaObject;
members = JavaMembers.lookupClass(parent, cl, cl, false);
staticFieldAndMethods
= members.getFieldAndMethodsObjects(this, cl, true);
}
@Override
public String getClassName() {
return "JavaClass";
}
@Override
public boolean has(String name, Scriptable start) {
return members.has(name, true) || javaClassPropertyName.equals(name);
}
@Override
public Object get(String name, Scriptable start) {
// When used as a constructor, ScriptRuntime.newObject() asks
// for our prototype to create an object of the correct type.
// We don't really care what the object is, since we're returning
// one constructed out of whole cloth, so we return null.
if (name.equals("prototype"))
return null;
if (staticFieldAndMethods != null) {
Object result = staticFieldAndMethods.get(name);
if (result != null)
return result;
}
if (members.has(name, true)) {
return members.get(this, name, javaObject, true);
}
if (javaClassPropertyName.equals(name)) {
Context cx = Context.getContext();
Scriptable scope = ScriptableObject.getTopLevelScope(start);
return cx.getWrapFactory().wrap(cx, scope, javaObject,
ScriptRuntime.ClassClass);
}
// experimental: look for nested classes by appending $name to
// current class' name.
Class<?> nestedClass = findNestedClass(getClassObject(), name);
if (nestedClass != null) {
NativeJavaClass nestedValue = new NativeJavaClass
(ScriptableObject.getTopLevelScope(this), nestedClass);
nestedValue.setParentScope(this);
return nestedValue;
}
throw members.reportMemberNotFound(name);
}
@Override
public void put(String name, Scriptable start, Object value) {
members.put(this, name, javaObject, value, true);
}
@Override
public Object[] getIds() {
return members.getIds(true);
}
public Class<?> getClassObject() {
return (Class<?>) super.unwrap();
}
@Override
public Object getDefaultValue(Class<?> hint) {
if (hint == null || hint == ScriptRuntime.StringClass)
return this.toString();
if (hint == ScriptRuntime.BooleanClass)
return Boolean.TRUE;
if (hint == ScriptRuntime.NumberClass)
return ScriptRuntime.NaNobj;
return this;
}
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
{
// If it looks like a "cast" of an object to this class type,
// walk the prototype chain to see if there's a wrapper of a
// object that's an instanceof this class.
if (args.length == 1 && args[0] instanceof Scriptable) {
Class<?> c = getClassObject();
Scriptable p = (Scriptable) args[0];
do {
if (p instanceof Wrapper) {
Object o = ((Wrapper) p).unwrap();
if (c.isInstance(o))
return p;
}
p = p.getPrototype();
} while (p != null);
}
return construct(cx, scope, args);
}
public Scriptable construct(Context cx, Scriptable scope, Object[] args)
{
Class<?> classObject = getClassObject();
int modifiers = classObject.getModifiers();
if (! (Modifier.isInterface(modifiers) ||
Modifier.isAbstract(modifiers)))
{
MemberBox[] ctors = members.ctors;
int index = NativeJavaMethod.findFunction(cx, ctors, args);
if (index < 0) {
String sig = NativeJavaMethod.scriptSignature(args);
throw Context.reportRuntimeError2(
"msg.no.java.ctor", classObject.getName(), sig);
}
// Found the constructor, so try invoking it.
return constructSpecific(cx, scope, args, ctors[index]);
} else {
Scriptable topLevel = ScriptableObject.getTopLevelScope(this);
String msg = "";
try {
// trying to construct an interface; use JavaAdapter to
// construct a new class on the fly that implements this
// interface.
Object v = topLevel.get("JavaAdapter", topLevel);
if (v != NOT_FOUND) {
Function f = (Function) v;
// Args are (interface, js object)
Object[] adapterArgs = { this, args[0] };
return f.construct(cx, topLevel, adapterArgs);
}
} catch (Exception ex) {
// fall through to error
String m = ex.getMessage();
if (m != null)
msg = m;
}
throw Context.reportRuntimeError2(
"msg.cant.instantiate", msg, classObject.getName());
}
}
static Scriptable constructSpecific(Context cx, Scriptable scope,
Object[] args, MemberBox ctor)
{
Scriptable topLevel = ScriptableObject.getTopLevelScope(scope);
Class<?>[] argTypes = ctor.argTypes;
if (ctor.vararg) {
// marshall the explicit parameter
Object[] newArgs = new Object[argTypes.length];
for (int i = 0; i < argTypes.length-1; i++) {
newArgs[i] = Context.jsToJava(args[i], argTypes[i]);
}
Object varArgs;
// Handle special situation where a single variable parameter
// is given and it is a Java or ECMA array.
if (args.length == argTypes.length &&
(args[args.length-1] == null ||
args[args.length-1] instanceof NativeArray ||
args[args.length-1] instanceof NativeJavaArray))
{
// convert the ECMA array into a native array
varArgs = Context.jsToJava(args[args.length-1],
argTypes[argTypes.length - 1]);
} else {
// marshall the variable parameter
Class<?> componentType = argTypes[argTypes.length - 1].
getComponentType();
varArgs = Array.newInstance(componentType,
args.length - argTypes.length + 1);
for (int i=0; i < Array.getLength(varArgs); i++) {
Object value = Context.jsToJava(args[argTypes.length-1 + i],
componentType);
Array.set(varArgs, i, value);
}
}
// add varargs
newArgs[argTypes.length-1] = varArgs;
// replace the original args with the new one
args = newArgs;
} else {
Object[] origArgs = args;
for (int i = 0; i < args.length; i++) {
Object arg = args[i];
Object x = Context.jsToJava(arg, argTypes[i]);
if (x != arg) {
if (args == origArgs) {
args = origArgs.clone();
}
args[i] = x;
}
}
}
Object instance = ctor.newInstance(args);
// we need to force this to be wrapped, because construct _has_
// to return a scriptable
return cx.getWrapFactory().wrapNewObject(cx, topLevel, instance);
}
@Override
public String toString() {
return "[JavaClass " + getClassObject().getName() + "]";
}
/**
* Determines if prototype is a wrapped Java object and performs
* a Java "instanceof".
* Exception: if value is an instance of NativeJavaClass, it isn't
* considered an instance of the Java class; this forestalls any
* name conflicts between java.lang.Class's methods and the
* static methods exposed by a JavaNativeClass.
*/
@Override
public boolean hasInstance(Scriptable value) {
if (value instanceof Wrapper &&
!(value instanceof NativeJavaClass)) {
Object instance = ((Wrapper)value).unwrap();
return getClassObject().isInstance(instance);
}
// value wasn't something we understand
return false;
}
private static Class<?> findNestedClass(Class<?> parentClass, String name) {
String nestedClassName = parentClass.getName() + '$' + name;
ClassLoader loader = parentClass.getClassLoader();
if (loader == null) {
// ALERT: if loader is null, nested class should be loaded
// via system class loader which can be different from the
// loader that brought Rhino classes that Class.forName() would
// use, but ClassLoader.getSystemClassLoader() is Java 2 only
return Kit.classOrNull(nestedClassName);
} else {
return Kit.classOrNull(loader, nestedClassName);
}
}
private Map<String,FieldAndMethods> staticFieldAndMethods;
}

Some files were not shown because too many files have changed in this diff Show More