Commit Graph

26225 Commits

Author SHA1 Message Date
Dave Townsend
c9bee16a1c Merge backout of bug 482659 2009-03-17 11:09:15 +00:00
Dave Townsend
36de5ef33a Backed out changeset 55d159b75f41 from bug 482659. 2009-03-17 11:08:59 +00:00
Boris Zbarsky
c6ba3c228b Bug 416942. Give user and ua sheets the system principal. r+sr=sicking 2009-03-16 21:38:36 -04:00
Boris Zbarsky
1f8b3851ba Bug 482659. Give about:blank documents the base URI of the document that did the load. r=dcamp, sr=jst 2009-03-16 20:59:33 -04:00
Martijn Wargers
edf6ced8a0 Adding crashtest 2009-03-16 20:52:30 -04:00
Robert Sayre
a6e93ac17a Merge tracemonkey to mozilla-central. 2009-03-16 18:44:07 -04:00
Ted Mielczarek
c45f52ff48 bug 483548 - buildsymbols messes up Linux Z test results. r=bsmedberg 2009-03-16 16:46:05 -04:00
Paolo Amadini
35b96e8529 Add test for bug 471962, r=gavin 2009-03-16 14:50:30 -04:00
Gavin Sharp
b42d0c252d Bug 471962: wrong post data sent when saving an inner frame, r=bzbarsky 2009-03-16 14:47:19 -04:00
Martijn Wargers
935b45440c Mochitest for bug 478219 2009-03-16 13:21:28 -04:00
Jim Blandy
debdb32ef3 Bug 480132: Clone lexical blocks only when needed. r=igor
Terminology:

A "script block" is an object of class Block allocated by the byte
compiler and associated with a script.  Script blocks are never
modified, and may be used as a prototype for a "closure block":

A "closure block" is an object of class Block that holds variables
that have been closed over (although we actually leave the variables
on the stack until we leave their dynamic scope).  A closure block is
a clone of a script block (its prototype is a script block).

Adjust the meanings of fp->blockChain and fp->scopeChain:

  fp->blockChain is always the innermost script block in whose static
  scope we're executing.

  fp->scopeChain is the current scope chain, including 'call' objects
  and closure blocks for those function calls and blocks in whose
  static scope we are currently executing, and 'with' objects for with
  statements; the chain is typically terminated by a global object.
  However, as an optimization, the young end of the chain omits block
  objects we have not yet needed to clone.

Closures need fully reified scope chains, so have js_GetScopeChain
reify any closure blocks missing from the young end of fp->scopeChain
by cloning script blocks as needed from fp->blockChain.  Thus, if we
never actually close over a particular block, we never place a closure
block for it on fp->scopeChain.

Have JSOP_ENTERBLOCK and JSOP_LEAVEBLOCK always keep fp->blockChain
current.  When JSOP_LEAVEBLOCK pops a block from fp->blockChain that
has been cloned on fp->scopeChain, pop fp->scopeChain as well.

Remove the JSFRAME_POP_BLOCKS flag, as it is no longer needed.

Ensure that the JIT won't have to create closure blocks or call
js_PutBlockObject; it can't handle those things yet.  Note our current
script block when we begin recording.  Abort recording if we leave
that block; we can't tell in advance whether it will need to be "put"
in future trace invocations.  Leave trace if we call js_GetScopeChain
while in the static scope of lexical blocks.  Remove JIT tests based
on JSFRAME_POP_BLOCKS.

Verify that generators capture the correct value for blockChain.

Add a constructor to JSAutoTempValueRooter for rooting JSObject
pointers.
2009-03-16 09:55:06 -07:00
Boris Zbarsky
f992c9df1d Bug 478219. Put a script blocker around delayed editor init. r+sr=sicking 2009-03-16 07:50:04 -04:00
Dão Gottwald
f3a8cda6ed merge 2009-03-16 15:01:22 +01:00
Dão Gottwald
3b81a42595 Backed out changeset 12e163f4f272 2009-03-16 15:00:57 +01:00
Dão Gottwald
1de11bb224 merge 2009-03-16 15:00:13 +01:00
Dão Gottwald
a279c06229 Backed out changeset 1101f18b56f8 2009-03-16 14:59:38 +01:00
Jonathan Watt
e08bae72b5 Use CFDateFormatter instead of deprecated Carbon functions. Bug 360018, Some additional work by smontagu, r=smontagu, jdaggett 2009-03-16 05:24:15 -07:00
Simon Montagu
8777d88190 Backout previous commit 2009-03-16 05:21:55 -07:00
Jonathan Watt
a265d1d97b Use CFDateFormatter instead of deprecated Carbon functions. Some additional work by smontagu, r=smontagu, jdaggett 2009-03-16 04:59:33 -07:00
Robert Longson
cd32c05a9c Bug 483439 - text with stroke and fill causes crashes. r+sr=roc 2009-03-16 11:59:23 +00:00
Dão Gottwald
944580803e merge 2009-03-16 12:57:29 +01:00
Michael Kohler
1476cb9106 Bug 480893 - Session Restore, start new session does not follow startup page option. r=zeniko 2009-03-16 12:55:56 +01:00
Zack Weinberg
5438fdd2e3 Bug 480582 - contenteditable=true breaks mouse pointer hover style for unrelated image links. r+sr=peterv 2009-03-16 12:55:03 +01:00
Boris Zbarsky
864d26a94d Bug 478219 test. 2009-03-16 07:53:13 -04:00
Boris Zbarsky
914389430a Bug 478219. Put a script blocker around delayed editor init. r+sr=sicking 2009-03-16 07:50:04 -04:00
Boris Zbarsky
ca51308331 Bug 483341. End updates before removing script blockers. r=smaug, sr=sicking 2009-03-16 07:46:32 -04:00
Boris Zbarsky
8a3c92ef40 Bug 480880. Fix InvalidateCanvasIfNeeded callers and impl to actually work. r+sr=roc 2009-03-16 07:46:02 -04:00
Dan Witte
ff9b42dbf9 backing out. 2009-03-16 01:34:16 -07:00
Dan Witte
b08ec7cdec Backed out changeset d6a5afef5837 2009-03-16 01:33:54 -07:00
Dan Witte
f2c1f023c9 Backed out changeset 483b831b7822 2009-03-16 01:33:31 -07:00
Andreas Gal
c5b3eb193e Backed out changeset 10b781704400 (bug 457065). 2009-03-15 23:45:51 -07:00
Brendan Eich
719048c202 Fix bogus assertion (457065, r=gal). 2009-03-15 23:09:50 -07:00
Dan Witte
6fb4beaaad Bug 444600 - (cookiemonster2) Cookies go missing after a few days. r=sdwilsh, sr=mconnor 2009-03-15 21:42:11 -07:00
Dan Witte
e6d4d432f3 Bug 444600 - (cookiemonster2) Cookies go missing after a few days. r=sdwilsh, sr=mconnor 2009-03-15 21:38:56 -07:00
Phil Ringnalda
f1d6fb1791 Bug 482887 - Remove pointless and unmaintained jarlist.dat, r+sr=biesi 2009-03-15 17:51:10 -07:00
Ben Turner
91a08cc6b0 Bug 466254 - "Workers: Implement close() and onclose handlers". r+sr=jst. 2009-03-15 15:30:31 -07:00
Boris Zbarsky
8b7c54b7f2 Bug 482889 Part 3. Switch to a new algorithm for creating anonymous table objects. r=bernd, r+sr=roc 2009-03-15 16:01:48 -04:00
Boris Zbarsky
42f260732a Bug 482889 Part 2. Refactor calls to CreateRequiredPseudoFrames so that they all happen in AdjustParentFrame. r=bernd, r+sr=roc 2009-03-15 15:57:46 -04:00
Boris Zbarsky
fbd8910f21 Bug 482889 Part 1. Tests for table anonymous object construction. r=bernd, r+sr=roc 2009-03-15 15:57:46 -04:00
Dão Gottwald
ff5f3abf74 Bug 482965 - tabbrowser-tabs shouldn't have horizontal margin. ui-r=faaborg, r=gavin 2009-03-15 20:24:04 +01:00
Robert Sayre
ca09c1a74b Merge mozilla-central to tracemonkey. 2009-03-15 12:23:57 -04:00
Mike Beltzner
bd9715e64f Bug 482480 - Text on provided identity information seems contradicting. r=gavin, ui-r=johnath 2009-03-15 17:15:59 +01:00
Brad Lassey
9f9ecacac9 Bug 479382 - libmar doesn't build on windows ce (uses posix file io); r=benjamin 2009-03-15 14:59:59 +01:00
Blake Kaplan
72cef1c4ff Bug 480226 - Fix warnings in security/manager/ssl/src; r=kaie 2009-03-15 14:58:38 +01:00
Walter Meinl
7b5ea1a5af Bug 481476 - OS/2 xpidl creates headers in the srcdir, if no outputfile is specified. Let's do it like the other platforms; r=mozilla@Weilbacher.org 2009-03-15 14:55:18 +01:00
Atsushi Sakai
64018bcfda Bug 22310 - Locale conversion to support 3 letter language; Mac OS locale parser; r=smontagu 2009-03-15 14:52:08 +01:00
Dão Gottwald
5af8d6102f enable browser_420786.js, disable browser_480148.js 2009-03-15 14:33:30 +01:00
Ben Turner
e8c5ee5c56 Merge backout 2009-03-14 22:26:06 -07:00
Ben Turner
6845899b36 Backed out changeset 81a1f07cf459 2009-03-14 22:25:44 -07:00
Ben Turner
2b468055b0 Backed out changeset 7128dc947244 2009-03-14 22:25:07 -07:00