Commit Graph

3131 Commits

Author SHA1 Message Date
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
Ben Turner
b264d08919 Bug 580128 - Make IndexedDB work with compartments. r=jst 2010-10-10 15:35:42 -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
Honza Bambas
8af7913ac8 Backed out changeset 2ccadd55dc4c, a=orange-fix 2010-10-25 21:09:38 +02:00
Honza Bambas
1f1b01f3c2 Bug 527667 - DOM Storage (localStorage, sessionStorage) data is not cleared when 'Clear Recent History' is used with Time range not 'Everything', r+sr=jst, a=blocking2.0:betaN 2010-10-25 20:40:55 +02: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
Peter Van der Beken
0148dfb36c Fix dom/tests/mochitest/general/file_frameElementWrapping.html to deal with proxies. r=mrbkap 2010-09-28 17:02:43 -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
Honza Bambas
b8f4adbb18 Bug 536544 - slow window.localStorage.setItem performance, r=sdwilsh, sr=jst, a=blocking2.0:final+ 2010-10-25 18:47:23 +02: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
Chris Jones
a628adeb94 Bug 603680: Paper over lack of IPDL |discard| (and possible weirdly short-lived <browser>s). r=bsmedberg a=blocking-fennec 2010-10-26 12:51:08 -05: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
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
Boris Zbarsky
98ab983010 No bug. Remove lying comment. No review, a=NPOTB 2010-10-12 08:26:47 -04: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
Phil Ringnalda
bd1eaffe9d Bug 484994 - followup to my push with the wrong bug number, to adjust the number of tests to expect(), a=bustage 2010-10-09 21:00:29 -07:00
Phil Ringnalda
709a4cd57f Bug 585994 - comment out unreliable "All 3 still in the queue" jQuery test, a=orange 2010-10-09 20:14:57 -07:00
Alon Zakai
3fad238bbf Bug 599428 - Optimize permissions IPC. r=dwitte a=blocking-fennec 2010-10-09 11:07:38 -07:00
Oleg Romashin
aaf4b96402 Bug 603046 - nsQAppInstance::AddRef() should be used instead of QApplication. r=dougt a=npodb 2010-10-09 09:05:50 +03:00
Fabrice Desre
607c94214f Bug 600816 - Blank page at geolocation and strange behavior. r=dougt a=blocking-fennec 2010-10-08 14:48:39 -07:00
Doug Turner
281b8787aa Bug 601276 - Initalize QApplication in the child similar to what we do on GTK. r=cjones a=blocking-fennec
--HG--
extra : rebase_source : 5c2d48e5d55ce06047255affa5d9a3d7a31641c3
2010-10-08 14:48:37 -07:00
Doug Turner
3ddc96f907 Bug 602292 - removed dead code in ContentChild r=dwitte
--HG--
extra : rebase_source : fcf20ba992aa48a38a199e46f135ea2566ee7a22
2010-10-08 14:29:51 -07:00
Mark Finkle
b76f83c3bb Bug 594847 - Handle content-process crashes more gracefully (platform patch) [r=cjones a=blocking-fennec] 2010-10-08 15:12:40 -04: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
Justin Wood
49c7e1c9a8 Bug 600364 - [seamonkey] mochi-browser failures due to indexedDB issues: browser_permissionsPromptAllow.js and others. r=khuey a=tests 2010-10-07 16:23:19 +02:00
Marco Bonardo
05e8b36663 Bug 598264 - about:home search does not work if cookies behavior is "ask me every time" or "reject". r=mayhemer a=blocking 2010-10-07 10:41:19 +02:00
Jim Mathies
77765b9c3a Bug 572417 - Reset mouse capture when entering full screen mode in flash. r=bsmedberg, a=betaN. 2010-10-07 02:03:18 -05: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
Oleg Romashin
90150a79e4 Bug 599202 - Add support NPP_ImageDraw API for Maemo6. r=dougt a=npodb
--HG--
extra : rebase_source : 8486484c5c2bd25a1e1b63859a62bf41787e7004
2010-10-05 09:15:49 +03:00
Mike Kristoffersen
b819ceb9ae Bug 561244 - e10s: forward JS 'crypto' calls from content->chrome (Part 1/3 - Adding unique define to disable crypto object) r=jst a=blocking-fennec
--HG--
extra : rebase_source : 4ad7c331127b5fc75aebbad45a6a529aabe4f5e6
2010-09-29 18:56:46 +02:00
Jim Chen
53943af34f Bug 599550 - Properly sync PuppetWidget IME notifications; r=blassey,cjones a=blocking-fennec 2010-10-01 10:17:37 -04:00
Josh Matthews
ea46b24ebc Bug 548904 - Remote console messages from content to chrome via a listener. r=bzbarsky a=blocking-fennec 2010-09-23 21:39:32 -04:00
Mounir Lamouri
cc33a99998 Merging to tip. a=blocking-b7 2010-09-30 17:10:19 -07:00
Phil Ringnalda
0b59d256ed Bug 492232 - try to reduce failures in test_Scriptaculous.html's testElementMorph by doubling the timeout, a=orange 2010-09-30 07:17:30 -07:00
Joel Maher
77d017bea1 Bug 597056. Firefox browser-chrome tests are ending up in Fennec. ifdef them away for mobile builds. r=mfinkle. a=sayrer 2010-09-29 14:21:09 -04:00
Henri Sivonen
62878d9b2f Bug 591981 - Make script-inserted inline scripts run right away, make script-inserted external scripts behave like async scripts and make document.write writing an inline script return at a predictable time. r=jonas, a=blocking2.0-beta7. 2010-09-01 14:41:12 +03:00
Robert Sayre
88e70bcc25 Merge tracemonkey to mozilla-central a=blockers 2010-09-29 02:01:12 -04:00
Doug Turner
d845537c4d Bug 600110 - Pref follow up patch. Remove dead code, fix observers. r=dwitte. a=blocking-fennec
--HG--
extra : rebase_source : dd0861639f346b0c0f6103c25586f6136aa125f3
2010-09-28 10:02:37 -07:00
Robert Sayre
206a7c347c Merge mozilla-central to tracemonkey. 2010-09-28 10:38:00 -04:00
Kyle Huey
08f7f154d1 Backing out dougt. a=orange 2010-09-27 22:46:54 -04:00
Kyle Huey
ae10e27921 Doug Turner Bug 599591 - Geolocation provider not turned off when navigating away from site. r=jdm a=blocking-fennec
Backed out changeset faf497893b28
2010-09-27 22:46:30 -04:00
Jonas Sicking
5d3b067a49 Back out bug 591981 since it causes bug 599583. a=backout 2010-09-27 16:23:33 -07:00
Doug Turner
ae138d0b78 Bug 599591 - Geolocation provider not turned off when navigating away from site. r=jdm a=blocking-fennec
--HG--
extra : rebase_source : 7f10d1d8486500e569cffea937d7a06bfa67dded
2010-09-27 14:23:35 -07:00
Doug Turner
5bb521c898 Bug 599591 - Geolocation provider not turned off when navigating away from site. r=jdm a=blocking-fennec
--HG--
extra : rebase_source : 1c1018a4e176401f269aafaba71660b8192f126e
2010-09-27 14:23:35 -07:00
Doug Turner
f96b653ce0 Bug 589905 - Cache remote-preferences to improve performance. r=dwitte. a=blocking-fennec
--HG--
extra : rebase_source : 327ae1b240a0535c2ec61eb3bce15df302d83987
2010-09-27 14:23:35 -07:00
Chris Jones
dfe1b316b7 Bug 596969: Allow a document's CSS viewport to be permanently overridden by chrome script. sr=dbaron a=blocking-fennec 2010-09-24 17:41:31 -05:00
Brad Lassey
2f303b809a Bug 591047 - (7/7) Suppressing possible out-of-sync notifications; r=roc a=blocking-fennec 2010-09-23 23:34:26 -04:00
Brad Lassey
9c43d63744 Bug 591047 - (6/7) Adding IME event support to content fake widget; r=roc a=blocking-fennec 2010-09-23 23:28:15 -04:00
Brad Lassey
42c886dbb3 Bug 591047 - (5/7) Adding IME notification support to content fake widget; r=roc a=blocking-fennec 2010-09-23 23:28:15 -04:00
Brad Lassey
847fb9effa Bug 591047 - (2/7) Adding event handling support to PuppetWidget; r=cjones a=blocking-fennec 2010-09-23 23:28:15 -04:00
Brad Lassey
6878ccd6f4 Bug 591047 - (1/7) Backing out Android a1 IME code from bug 581535 and bug 582644; r=blassey a=blocking-fennec 2010-09-23 23:28:15 -04:00
Oleg Romashin
52e2bd1f57 Bug 598227 - Add support NPP_ImageDraw API for Maemo5. r=dougt a=blocking-fennec 2010-09-23 16:06:41 -07:00
Andreas Gal
1649ef6d21 Always create a dummy stack frame when crossing compartment boundaries (bug 600015, r=mrbkap). 2010-09-27 15:55:15 -07:00
Josh Aas
9ad0d0ad81 Bug 598223: Gracefully handle the failure of OOP plugins that negotiate Carbon NPAPI. r=cjones r=bsmedberg a=2.0-b7 2010-09-23 01:27:59 -04:00
Mounir Lamouri
821d68f9c0 Bug 598529 - Improve form validation messages with Alex Faaborg recommandations. r=sicking ui-r=limi a=blocking-beta7 2010-09-22 18:44:13 -07:00
Gavin Sharp
5032fe2f4d Bug 593125 followup: tweak netOffline error text to specify that "Work Offline" is a menu item, r=Pike, a=me
--HG--
extra : rebase_source : 8cb4ba782c081ff422f9a7270caba7bb11dcf0d4
2010-09-22 20:10:30 -04:00
Michael Wu
c367aa4ef6 Bug 598508 - Fix geolocation on Android, r=dougt a=blocking-fennec 2010-09-21 19:36:58 -07:00
Henri Sivonen
27395b2f77 Bug 591981 - Make script-inserted inline scripts run right away, make script-inserted external scripts behave like async scripts and make document.write writing an inline script return at a predictable time. r=sicking a=blocking2.0-beta7 2010-09-21 12:48:40 -07:00
Doug Turner
735b4b4716 Fixes build bustage on non-IPC builds such as seamonkey. r/a=dbaron 2010-09-20 22:37:32 -07:00
Doug Turner
f7d058122a Bug 587414 - e10s: Geolocation needs to set pref from content process. r=jdm a=blocking-fennec 2010-09-20 21:16:37 -07:00
Doug Turner
5250e68fcb Bug 587414 - e10s: Geolocation needs to set pref from content process. r=jdm a=blocking-fennec 2010-09-20 21:16:37 -07:00