Commit Graph

909 Commits

Author SHA1 Message Date
Jonas Sicking
212d56d31f Fix build error when building with --enable-functiontimer. b=613589 r=mwu a=build bustage fix 2010-11-19 13:49:53 -08:00
Peter Van der Beken
e7ca1a1d57 Fix for bug 590612 (Speed up js-wrapping in classinfo when we already have a wrapper). r=bz, a=jst. 2010-08-28 10:04:25 +02:00
Justin Dolske
6bbb73a39b Bug 611566 - Remove Enter/LeaveModalState calls from nsGlobalWindow alert/confirm/prompt. r=jst, a=blocking+ 2010-11-17 22:44:50 -08:00
Robert Sayre
2d10c1480d Merge tracemonkey to mozilla-centra. a=blockers. 2010-11-17 13:55:14 -08:00
Jason Orendorff
3fe395d024 Bug 608171 - Make ChromeWorkers available to JSMs. r=bent.
--HG--
extra : rebase_source : 489ea909e324e1809b00ac8a812a68c54a258313
2010-11-16 14:53:47 -06:00
Robert Sayre
f8d70b12f4 Merge mozilla-central to tracemonkey. 2010-11-16 07:25:10 -08:00
Igor Bukanov
d34f057e79 bug 607292 - eliminating JS_GetStringBytes and friends. r=gal 2010-11-08 13:17:31 +01:00
Igor Bukanov
52ea348c4c bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal 2010-11-11 21:40:29 +01:00
Ben Turner
fca93ac512 Bug 580096 - 'move the cycle collector off the main thread'. r=peterv+jst 2010-11-11 14:52:30 -08:00
David Anderson
7487c14d37 Backed out changeset 8e119f847f97 (build busted) 2010-11-11 11:19:42 -08:00
Igor Bukanov
e32ba97023 bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal 2010-11-02 15:36:25 +01:00
Ginn Chen
ca98d1cfde Bug 609427 extra ";" after NS_DECL_ISUPPORTS in nsContentPermissionHelper.h r=doug.turner a=doug.turner 2010-11-16 16:22:41 +08:00
Ben Turner
d0066f07ca Bug 608170 - 'ChromeWorkers should have atob, btoa'. r=jst, a=blocking+ 2010-11-15 17:39:28 -08:00
Gavin Sharp
f9eb99961a Bug 612861: don't throw when accessing random properties off window.console, r=bz, a=blocking
--HG--
extra : rebase_source : 6d1890b58c8bd9964ad9aed9d87ac570c3b0c67f
2010-11-17 15:20:20 -05:00
Vladimir Vukicevic
e8053d8870 b=612334; fix webgl context type; r=bz
--HG--
rename : dom/interfaces/canvas/nsICanvasRenderingContextWebGL.idl => dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl
2010-11-16 20:33:04 -08:00
Mounir Lamouri
fe18c4a5a8 Bug 597809 - Makes nsScriptNameSpaceManager being aware of new category entries after Init(). r=peterv a=blocking-betaN 2010-11-16 23:09:50 +01:00
Mounir Lamouri
1eb84fddaf Bug 596511 (1/3) - Add the required attribute to the select element. r=smaug a=blocking-betaN 2010-11-16 21:06:15 +01:00
David Dahl
be0ed04ab5 Bug 587734: enable the lazy console API added in bug 568629, and hook it up to the Web Console, r=gavin, a=blocking
--HG--
extra : rebase_source : 6006c9be7e1a91748d09397b0ea08a94c0f3968e
2010-11-16 16:34:53 -05:00
Ehsan Akhgari
0252114aa7 Bug 612018 followup - Remove the extra document check, r=mats a=cleanup 2010-11-16 15:45:15 -05:00
Ehsan Akhgari
9cd3e47dd3 Bug 612018 - "ASSERTION: frame must not be dirty" and non-blinking caret; r,a=roc 2010-11-16 13:55:25 -05:00
Steven Michaud
df47b58fde Bug 601182 - Spurious focus events sent to NPAPI plugins on OS X in Cocoa event mode. Patch partly by enndeakin. r=josh,smaug a=blocking2.0BetaN+ 2010-11-15 15:12:50 -06:00
Justin Dolske
ab0ee94f15 Bug 611166 - Use window's context for tracking modal state. r=mrbkap, a=me 2010-11-11 20:51:23 -08:00
David Dahl
5aced17f45 Bug 568629: add a ConsoleAPI component used to implement window.console object exposed to web content (disabled for the moment), r=gavin/dietrich, sr=jst, a=blocking
--HG--
extra : rebase_source : 9bfe8478039ee16310f9f87da87c66d778739a73
2010-11-09 15:19:19 -05:00
Johnny Stenback
7307c2f4d5 Bug 610714: Add nsIDOMGlobalPropertyInitializer, which allows "JavaScript Global Properties" to know about the window they're being attached to, r=mrbkap, a=blocking
--HG--
extra : rebase_source : c66b23c40e111102c36364f55e01359390012612
2010-11-09 18:00:01 -05:00
Robert Sayre
78fcef6d2d Merge mozilla-central to tracemonkey. 2010-11-09 15:29:44 -05:00
Luke Wagner
a5861fe116 Bug 603045 - JM: don't optimize away JSFRAME_HAS_RVAL check in debug mode (r=bhackett)
--HG--
extra : rebase_source : 6c975694160595fa65e0acf174b9b7f6c5997d56
2010-11-08 09:28:12 -08:00
Igor Bukanov
92b67c9caf bug 607695 - Avoid unnecessary JS_GetStringBytes. r=gal 2010-10-28 17:15:53 +02:00
Gregor Wagner
805701a996 Bug 598650 - Increase JSGC_MAX_MALLOC_BYTES to 128MB, r=gal 2010-11-01 18:16:03 -07:00
Robert Sayre
03513401da Bug 595243 - Expose debugMode to JSD. Relanding test bustage fixed up. r=gal. 2010-10-30 12:13:02 -04:00
Jeff Walden
ff603e73f4 Backed out changeset 85feecf161fe (Career Limiting Move? <http://bonsai.mozilla.org/cvsquery.cgi?who=sspitzer%40netscape.com&whotype=regexp&date=explicit&mindate=2001-01-25+10%3A00&maxdate=2001-01-25+10%3A15>), seems to have turned mochitest-plain-4 orange. 2010-10-29 22:31:12 -07:00
Robert Sayre
19cc79ccf3 Bug 595243 - Expose debugMode to JSD. r=gal 2010-10-29 18:35:07 -04:00
Robert Sayre
05033a2e47 Merge m-c to tm 2010-10-28 21:26:36 -04:00
Mihai Sucan
a8cd49d408 Bug 601352 - Console does not scroll expression result into view, r+a=roc 2010-10-28 13:01:37 -03:00
Blake Kaplan
1802eb481e Bug 606585 - Make the compartment map use principals properly. r=peterv/bz
--HG--
extra : rebase_source : b4585beb4aa5f9f44cb02beb3f0f91212345f1f8
2010-10-26 23:57:31 -07:00
David Mandelin
61c89f1888 Backout merge, a=backing out changeset tried for b7 blocker 2010-10-26 18:20:20 -07:00
David Mandelin
5aa436fc27 Backed out changeset 8dd996c91f40 -- it doesn't fix the problem, but does make it harder to analyze. 2010-10-26 18:14:25 -07:00
David Mandelin
a4768a8a4b Bug 604756 first try: restrict ropes optimization to main-thread content JS, r=lw, a=b7-blocker 2010-10-25 17:28:18 -07:00
Peter Van der Beken
e1ee36142d Add testcase for bug 603531 2010-10-16 22:24:56 -07:00
Robert Sayre
7ce5faeded Merge mozilla-central to tracemonkey. 2010-10-26 14:16:43 -04:00
Blake Kaplan
6c0160af2d Bug 604341 - Ensure that we're in the right compartment when we create plugin objects' wrapper JS objects. r=jst a=blocking beta 7
--HG--
extra : transplant_source : F%91%F4%D9%C2%5Etuh%A1w%8A%23%AB%84Q%CD%AD%AA%B5
2010-10-25 12:18:20 -07:00
Blake Kaplan
4a0c50347c Bug 604449 - Protect against an outer window that has already been closed. r=jst
--HG--
extra : transplant_source : d%82D1%05%CA%B9%7F%04%7C%C7%0B%A7%85%40A%13%2B%20%20
2010-10-25 12:15:04 -07:00
Blake Kaplan
442be7263a Bug 605696 - Refuse to create location objects without an outer window. r=jst
--HG--
extra : transplant_source : 4%D9%ABJ%0A%03%E5%7D%C5%F1%3C%BDV%BB%E7%E0%CC%DFh%10
2010-10-25 12:13:36 -07:00
Andreas Gal
de49671a75 Merge from mozilla-central. 2010-10-22 19:46:37 -07:00
Bill McCloskey
58582215b9 Bug 580468 - Use loop profiling to decide whether to use TM or JM (second try) (r=dmandelin) 2010-10-21 09:36:39 -07:00
Igor Bukanov
8cd1bfa94d bug 604831 - fixing GC trigger factor setup. r=anygregor 2010-10-19 12:11:09 +02:00
Bill McCloskey
507ea140a2 Backed out changeset 55597c32701d 2010-10-19 17:40:53 -07:00
Bill McCloskey
7583dc9166 Bug 580468 - Use loop profiling to decide whether to use TM or JM (r=dmandelin) 2010-10-19 16:23:05 -07:00
Blake Kaplan
60998c4cdd Fix bug 605167. r=peterv
--HG--
extra : rebase_source : 67b5ac9708e2efe22a200ab4cbcaef76b494dfa1
2010-10-18 15:21:50 -07:00
Blake Kaplan
c49eea617d Bug 604826 - Make constructors on Xray wrappers work properly again. r=peterv
--HG--
extra : rebase_source : 147c987ad8b74f4ec3e805b3602676fa92127605
2010-10-18 15:20:47 -07:00
Blake Kaplan
29e85b9844 Merge mozilla-central into tracemonkey 2010-10-13 17:54:54 -07:00
Jonas Sicking
e7e13b2084 Bug 575946: Implement File.slice. r=khuey sr=biesi a=beltzner 2010-10-13 16:25:33 -07:00
Peter Van der Beken
51527b16fd Try to fix orange from d468bf98f7a1 (Fix for bug 603531 ("ASSERTION: bad outer object hook" and crash [@ js::gc::Cell::compartment]), compartments followup.)
--HG--
extra : rebase_source : 26ed7548f57836136162e6830034d0e40bf0853b
2010-10-12 17:25:34 -07:00
Peter Van der Beken
6c0a645775 Fix for bug 603531 ("ASSERTION: bad outer object hook" and crash [@ js::gc::Cell::compartment]), compartments followup. r=mrbkap. 2010-10-12 15:03:15 -07: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
Andreas Gal
06b37f317b Bug 580128. Don't preserve the navigator object in cross compartment navigation. r=jst@mozilla.org 2010-10-10 15:46:01 -07:00
Blake Kaplan
7e16afee03 bug 580128 - The window is named Window, not WindowProxy. r=gal 2010-10-10 15:43:01 -07:00
Johnny Stenback
1b772138d9 Bug 580128. Resolve class names on the window's own JS object, not on the passed in object. r=peterv@propagandism.org 2010-10-10 15:42:23 -07:00
Blake Kaplan
4982e8d388 bug 580128 - Distinguish between XOW XrayWrappers and XPCNW XrayWrappers and use the new knowledge in a few places. r=gal 2010-10-10 15:42:18 -07:00
Blake Kaplan
b49f4387f9 bug 580128 - Only expose same-compartment window.wrappedJSObject to chrome callers. r=jst 2010-10-10 15:42:15 -07:00
Peter Van der Beken
6594bfed65 bug 580128 - Remove old wrappers. r=mrbkap 2010-10-10 15:41:40 -07:00
Andreas Gal
4ed857a43e bug 580128 - Try to allow "XOWs" to see named frames. 2010-10-10 15:41:30 -07:00
Andreas Gal
a9cd5a763d bug 580128 - Remove vestiges of old wrappers from nsDOMClassInfo. r=mrbkap 2010-10-10 15:41:27 -07:00
Ben Turner
db39907b38 Bug 580128. Add cross compartment JSObject clone hooks. r=jst@mozilla.org 2010-10-10 15:39:11 -07:00
Peter Van der Beken
90e114e435 Bug 580128. Call JS_ClearScope on the holder object for XrayWrappers around windows when navigating. r=mrbkap 2010-10-10 15:38:10 -07:00
Blake Kaplan
454d48e5fe bug 580128 - Bad attempt to make .wrappedJSObject on raw windows only apply to chrome. Fixed later r=nobody I hope! 2010-10-10 15:38:04 -07:00
Blake Kaplan
0b191e8ccd bug 580128 - Find the true caller through the wrappers. r=jst 2010-10-10 15:36:01 -07:00
Blake Kaplan
d5907b5ac9 bug 580128 - Enter the right compartment when calling toString. r=jst 2010-10-10 15:35:51 -07:00
Blake Kaplan
55c01b4915 Bug 604341 - Ensure that we're in the right compartment when we create plugin objects' wrapper JS objects. r=jst a=blocking beta 7
--HG--
extra : rebase_source : b768cd2a13f6d4515fd2220737677adeab023b21
2010-10-25 12:18:20 -07:00
Blake Kaplan
0fd8e3573a Bug 604449 - Protect against an outer window that has already been closed. r=jst
--HG--
extra : rebase_source : 9aa28d1ab4eff66f12806893c24930fcafad1d66
2010-10-25 12:15:04 -07:00
Blake Kaplan
4439c737ab Bug 605696 - Refuse to create location objects without an outer window. r=jst
--HG--
extra : rebase_source : 1666f3d4a81c37d6e09890651b204b466d2591bd
2010-10-25 12:13:36 -07:00
Peter Van der Beken
3dae0dceb9 Bug 580128 - Always wrap Location objects in wrappers, even for same origin. r=mrbkap/gal 2010-09-29 10:00:52 -07:00
Johnny Stenback
c9ad413f3a bug 580128 - Forward to outer in AreDialogsBlocked. r=mrbkap 2010-09-28 17:02:43 -07:00
Blake Kaplan
2d6d64441c bug 580128 - Wrap values in the array. r=jst 2010-09-27 20:40:27 -07:00
Blake Kaplan
11e65685b7 bug 580128 - Avoid using the parent chain of proxies for anything because it's often wrong. r=jst 2010-09-24 18:00:58 -07:00
Blake Kaplan
cb84d63788 bug 580128 - Pass the right resolve flags to ResolveNativeHandler. r=peterv/jst 2010-09-24 15:30:00 -07:00
Olli Pettay
780b1891fd Backout Bug 508518, a=dromaeo-dom-regression 2010-10-25 00:52:17 +03:00
Olli Pettay
0ac2007026 Bug 508518 - Implement nsUITimerCallback with one-shot timer, r=jst, a=blocking-fennec
--HG--
extra : rebase_source : b486aa38fb17baacf0a5be39becd536fbec0c574
2010-10-24 21:20:53 +03:00
L. David Baron
88c9a20f8d Add test for nsStyleAnimation::ComputeDistance. (Bug 598099) r=bzbarsky a2.0=blocking-betaN 2010-10-23 16:31:55 -07:00
Blake Kaplan
964c4a31ef bug 580128 - Pass the XrayWrapper itself to scriptable helpers (and related cleanup) since the holder doesn't have enough smarts to do lookups, etc. r=gal 2010-09-23 15:56:28 -07:00
Blake Kaplan
d8815d1675 Bug 580128 - Fix compartment warnings by entering. r=gal/peterv/jst/mrbkap/jorendorff (and written by all of us too). 2010-09-22 17:34:20 -07:00
Blake Kaplan
76235d110d bug 580128 - Make sure nsDOMClassInfo uses the right compartment for objects that it defines on wrappers (both security and not). r=jst 2010-09-17 14:54:41 -07:00
Blake Kaplan
ba85ed3a91 bug 580128 - Set nsGlobalChromeWindows' principals to chrome even before they know it. r=jst 2010-09-17 14:54:41 -07:00
Blake Kaplan
b594d291ff bug 603152 - Inner windows principals must remain constant. If we want to change them, change the inner window instead. r=bz 2010-09-17 14:54:41 -07:00
Blake Kaplan
8a04a08f4f bug 580128 - Make the Window constructor be defined on new windows. r=peterv 2010-09-17 14:54:40 -07:00
Blake Kaplan
f981834205 bug 580128 - Give windows a .wrappedJSObject property to help out old consumers of XPCNativeWrappers. r=peterv 2010-09-17 14:54:40 -07:00
Chris Pearce
c22432e72c Bug 600791 - Correct DOM class info for TimeRanges class. r=jst a=blocking2.0 2010-10-13 14:01:37 +13:00
Ben Turner
758b991dab Bug 607729 - 'IndexedDB: Allow IndexedDB events to propagate, and error events to hit window.error'. r=sicking, a=blocking+ 2010-11-10 15:26:03 -08:00
Ben Turner
719ea5cedf Bug 607122 - 'IndexedDB: IDBKeyRange cleanup'. r=sicking, a=blocking+ 2010-11-10 15:26:00 -08:00
Ben Turner
52bc9dcc50 Bug 601774 - 'IndexedDB: Audit exceptions thrown from indexedDB methods'. r=sicking, a=blocking+ 2010-11-10 15:25:44 -08:00
Blake Kaplan
2c70930a60 Bug 580128 - Fix a leak caused by holding a non-cycle collectable object instead of a cycle-collectable one. r=peterv 2010-09-03 14:15:50 -07:00
Blake Kaplan
dab96e4a0d bug 580128 - Fix code that expects XPConnect to hand outer windows to C++ from JS. r=peterv 2010-09-17 14:54:40 -07:00
Blake Kaplan
5bfbd563c6 bug 580128 - Now that we use a proxy for the outer window, nsOuterWindowSH is unused (except for PreCreate). Nuke it. r=peterv 2010-09-17 14:54:40 -07:00
Blake Kaplan
0e7a7f5511 bug 580128 - Create a proxy for the outer window and use it. Note: this turns on new wrappers for all objects. r=peterv 2010-09-17 14:54:40 -07:00
Blake Kaplan
5bc789b070 Bug 580128 - Give objects a way to inform XPConnect that they implement their own JS object in a way that does not involve wrapped natives. r=peterv 2010-09-17 14:54:40 -07:00
Olli Pettay
78182c2036 Backout Bug 508518, a=regression? 2010-10-12 12:57:32 +03:00
Olli Pettay
05b9ab5a2e Backout Bug 508518, a=regression? 2010-10-12 12:55:31 +03:00
Olli Pettay
cb6e20ac9b Bug 508518, Implement nsUITimerCallback with one-shot timer, p=romaxa+me, r=jst, a=blocking-fennec 2010-10-12 11:09:06 +03:00
Honza Bambas
36d86d4adc Bug 599479 - Accessing window.localStorage with dom.storage.enabled=false causes NS_ERROR_DOM_SECURITY_ERR, r=jst, a2.0=jst 2010-10-07 16:43:18 +02:00
Kyle Huey
7d306fa717 Bug 599966: Null check argument of window.createBlobURL to avoid crashing. r=sicking a=blocking-beta-8
--HG--
rename : content/base/test/test_bug543870.html => content/base/test/test_mozfiledataurl.html
extra : rebase_source : 43ce51487370b415340cb18de74e5bf0e718067f
2010-10-02 04:24:41 -04:00