Commit Graph

56533 Commits

Author SHA1 Message Date
Jason Orendorff
41c66a3760 Fix anyname_finalize to look in the right compartment, to avoid dangling pointer. Likely fix for bug 603270. r=mrbkap over IRC.
--HG--
extra : rebase_source : 234c1412ce5543e32222cfd292ee905634ef6741
2010-10-12 14:40:05 -05:00
Blake Kaplan
cc6236d948 Bug 603533 - We need to hold a strong reference when forwarding to the outer window. r=jst
--HG--
extra : rebase_source : e885ff63003bd52d94bb3d2bc7ea0e1c631884b6
2010-10-12 11:59:28 -07:00
Jim Blandy
713b25831a Bug 601168: Allow nsHTMLPluginObjElementSH::Call to pass through non-Object |this| values to the plugin. r=bz,gal
This introduces some new JSAPI C++ entry points, one of which allows
arbitrary jsvals to be passed as the |this| value to a call; this means we
avoid a JSVAL_TO_OBJECT call in the caller, and its corresponding
OBJECT_TO_JSVAL call in the callee.
2010-10-12 11:50:03 -07:00
Jim Blandy
d195d41b0a Bug 514570: Adapt XPConnect to new JS_GetFrameThis arguments. r=jorendorff
It used to be:
JSObject *JS_GetFrameThis(JSContext *, JSStackFrame *);

Now it is:
JSBool JS_GetFrameThis(JSContext *, JSStackFrame *, jsval *);

(In strict mode code, |this| values that are primitives don't get wrapped.)
2010-10-12 11:50:03 -07:00
Jim Blandy
112fe57db0 Bug 514570: Adapt jsd to new JS_GetFrameThis arguments. r=brendan
It used to be:
JSObject *JS_GetFrameThis(JSContext *, JSStackFrame *);

Now it is:
JSBool JS_GetFrameThis(JSContext *, JSStackFrame *, jsval *);

(In strict mode code, |this| values that are primitives don't get wrapped.)
2010-10-12 11:50:03 -07:00
Jeff Walden
0b9b58415c Bug 575522 - Object.prototype.toString should return "[object Undefined]" and "[object Null]" when called with |this === undefined| or |this === null|, respectively. r=jorendorff,brendan 2010-10-12 11:50:03 -07:00
Jeff Walden
4626f47ec6 Bug 514570 - 3 - Don't box |this| for strict mode functions. r=jorendorff 2010-10-12 11:50:03 -07:00
Jeff Walden
7f75fc0a25 Bug 514570 - 2 - Push |undefined| rather than |null| when calling functions without a specified |this| value, per ES5. r=jorendorff 2010-10-12 11:50:03 -07:00
Jeff Walden
fcbd8eb10b Bug 514570 - 1 - Convert primitive-this-of-type function flags into a single primitive-this flag, to pave way for strict mode unadulterated-this passing. r=jorendorff 2010-10-12 11:50:02 -07:00
David Anderson
036dc12001 Merge from tracemonkey. 2010-10-07 09:55:00 -07:00
David Anderson
946646277c Backed out changeset ac46097e312c 2010-10-06 19:25:49 -07:00
Robert Sayre
012db2a6ae Merge mozilla-central to tracemonkey. 2010-10-06 18:48:56 -07:00
Nicholas Nethercote
5fca2f1eb1 Bug 599251 - nanojit: make Register a non-numeric type (TM-specific part). r=edwsmith. 2010-10-06 17:39:28 -07:00
Chris Jones
b9c731f6ce Bug 602393: Fix idiotic mistake causing JITs to be blacklisted on all android devices. r=dvander a=blocking-fennec-b1+ 2010-10-06 19:39:19 -05:00
Nicholas Nethercote
72a4aabfd5 Update nanojit-import-rev stamp. 2010-10-06 17:28:51 -07:00
L. David Baron
1f3fa6c875 Change checkComplete in test_referer.html to check whether all tests are complete, rather than just the last. (Bug 600458) r=doublec a=test-fix 2010-10-07 12:35:59 +13:00
Chris Pearce
4fb016a01e Bug 598140 - Set media curentTime correctly after seek when sound is disabled. r=kinetik a=blocking2.0 2010-10-07 11:58:36 +13:00
async.processingjs@yahoo.com
9dc4c9e5c2 Bug 520100 - libsydneyaudio MacOS fix, counts amount of missed audio sample bytes. r=kinetik a=blocking2.0 2010-10-07 11:58:36 +13:00
Chris Pearce
442cac0140 Bug 600455 - Fix index in indexed ogg file. r=test-fix 2010-10-07 11:58:36 +13:00
Chris Pearce
43d505f1f4 Bug 584068 - Don't consider our canplaythrough status on live streams when moving out of buffering state. r=kinetik a=blocking2.0 2010-10-07 11:58:36 +13:00
async.processingjs@yahoo.com
23de2accd2 Bug 598812 - Fix time attribute of audio available event. r=cpearce a=blocking2.0 2010-10-07 11:58:36 +13:00
Chris Pearce
5d3d0ac73d Bug 505158 - Handle multiple error events from multiple source children in video controls. r=dolske a=blocking2.0 2010-10-07 11:58:36 +13:00
Chris Pearce
903c5bab83 Bug 505158 - Handle invalid media in video element's source children. r=roc a=blocking2.0 2010-10-07 11:58:36 +13:00
Chris Pearce
9e4234dc37 Bug 598242 - Normalize WebM buffered TimeRanges. r=kinetik a=blocking2.0 2010-10-07 11:58:36 +13:00
Nicholas Nethercote
9e870a8e7b Bustage fix: add new file that was accidentally omitted for bug 599251.
--HG--
extra : convert_revision : 661718b83d398aa4c91f522f7d08ef5cea8e20a9
2010-10-06 15:51:01 -07:00
Nicholas Nethercote
2f1f5115bb Bug 599251 - nanojit: make Register a non-numeric type. r=edwsmith.
--HG--
extra : convert_revision : c7275693cde4c740f1a53ab73b9ec1963f6fe0cc
2010-10-06 15:30:56 -07:00
Nicholas Nethercote
753fbd4232 Fix compiler warning. No bug, r=jwalden via IRC. 2010-10-06 16:16:11 -07:00
Nicholas Nethercote
4592f12901 Bug 593931 - inline js_GetPropertyHelper() and friends more aggressively. r=cdleary. 2010-10-06 16:14:01 -07:00
Chris Leary
de62ad1b1c Fix trace_tests.py when showing output. (r=jorendorff) 2010-10-06 15:15:54 -07:00
Brendan Eich
eb3502680f JSOPTION_ANONFUNFIX should be set in js shell (5595555, r=cdleary). 2010-10-06 14:58:28 -07:00
Ginn Chen
b1fc7ea706 Bug 601835 Add JS_STATIC_ASSERT back for Solaris Studio, r=brendan 2010-10-11 18:23:55 +08:00
Brendan Eich
ab966b3529 Warning fixes (one left over from 602621, the other from 584789). 2010-10-10 21:11:45 -07:00
Johnny Stenback
18174c5a4e Bug 580128 - No need to assert about commpartment mismatches in JS_Get/SetPrivate (r=gal). 2010-10-10 15:50:11 -07:00
Johnny Stenback
ab55d2919b Bug 580128 - Make nsJSNPRuntime compartment safe (r=gal). 2010-10-10 15:50:08 -07:00
Blake Kaplan
05061dd1c1 Bug 580128 - Deal with the outer object hook failing a little more gracefully. r=jst 2010-10-10 15:49:51 -07:00
Peter Van der Beken
645d07dc67 Bug 580128. Remove cross origin string wrappers from hash when the wrapped string dies. r=mrbkap.
As a note: this bug took peterv and mrbkap 7 hours to track down using replay debugging after spending hours trying to even catch it on a replay debugging box.
2010-10-10 15:49:38 -07:00
Blake Kaplan
0228224cd3 bug 580128 - Allow chrome://global/ scripts to unwrap SOWs going into C++. r=peterv/jst 2010-10-10 15:49:30 -07:00
Andreas Gal
20ff9fd18f bug 580128 - split expando properties onto a separate object and implement enumeration. r=mrbkap 2010-10-10 15:49:13 -07:00
Blake Kaplan
acf7a3ad20 bug 580128 - By default properties created by property assignment are enumerable. r=gal 2010-10-10 15:49:08 -07:00
Blake Kaplan
9eac8b4de5 bug 580128 - Create SOWs same and cross compartment. r=jst 2010-10-10 15:48:55 -07:00
Johnny Stenback
1e4b3e7640 Bug 580128. Disable tests that don't play well with brain transplants yet. r=mrbkap@gmail.com 2010-10-10 15:48:42 -07:00
Johnny Stenback
e9755cda81 Bug 580128. Remove .wrappedJSObject gets that don't work with the new wrappers. r=mrbkap@gmail.com 2010-10-10 15:48:39 -07:00
Johnny Stenback
dd9636fcf2 bug 580128 - Allow unwrapping windows via JSObject::unwrap. r=jst 2010-10-10 15:48:35 -07:00
Andreas Gal
9103300871 bug 580128 - Implement deep wrapping for .wrappedJSObject. r=mrbkap 2010-10-10 15:48:29 -07:00
Peter Van der Beken
70746efa4b bug 580128 - Fix test_printpreview.xul. r=mrbkap 2010-10-10 15:48:13 -07:00
Johnny Stenback
635dd5b01d Bug 580128. Disable reftests that don't play well with brain transplants yet. r=mrbkap@gmail.com 2010-10-10 15:48:10 -07:00
Blake Kaplan
b8df1d75e7 bug 580128 - Outerize inner windows. r=jst 2010-10-10 15:47:55 -07:00
Blake Kaplan
d1776a6e22 bug 580128 - Reparent proxies when we pull them out of the map in order to try to keep their parents sembling something current. r=jst 2010-10-10 15:47:48 -07:00
Andreas Gal
5724ba40ea bug 580128 - Cross origin wrapper needs no waive xray flag. r=mrbkap 2010-10-10 15:47:22 -07:00
Peter Van der Beken
cc3214ae02 bug 580128 - Don't create slim wrappers when crossing compartments. r=mrbkap 2010-10-10 15:47:19 -07:00