Robert O'Callahan
fede4b2197
Bug 754556. Ensure that setting scroll positions in CSS pixels doesn't unexpectedly move the scroll position, especially not in the wrong direction. r=matspal
...
If the current scroll position is fractional, e.g. y=N.4 CSS pixels, and something tries to read the
position in CSS pixels and scroll to that position (e.g. calling window.scrollTo(0, rootElem.scrollTop),
or equivalently window.scrollBy(0, 0)), it can actually end up scrolling backwards. So create a new
method nsIScrollableFrame::ScrollToCSSPixels which ensures that scrolling to a CSS pixel offset tries to
preserve the current fractional scroll position if that's possible, and if that's not possible at least does
not allow the scroll position to move in the wrong direction.
2012-05-15 17:58:09 +12:00
Bobby Holley
2d09d27412
Bug 753277 - Factor out CCW remapping from JS_TransplantObject and add comments. r=mrbkap
2012-05-14 12:52:16 +02:00
Mounir Lamouri
16367bdebc
Bug 753978 - Be able to know if a window is part of an application. r=jlebar
2012-05-10 17:56:21 -07:00
Oleg Romashin
1a9ecd549b
Bug 681192. Part 5: Make various DOM scroll APIs --- scrollTop, scrollLeft, window.scrollTo, scrollBox.scrollTo, scrollBox.scrollToLine, scrollBox.scrollBy --- use an appropriate allowed scroll destination range. r=roc,r=matspal
...
--HG--
extra : rebase_source : 83ee44530c67229686ec0dce3628da83e0e93438
2012-02-07 12:24:15 -08:00
Brian Hackett
95590a1229
Don't throw away JIT code for compartments in web pages displaying animations, bug 750834. r=billm
2012-05-09 14:14:10 -07:00
Kyle Huey
cb5a51f0ba
Bug 752877: Ensure that wrapper cutting happens after [inner|outer]-window-destroyed, to give code a chance to clean up. r=bz
2012-05-09 08:10:18 -07:00
Justin Lebar
b54abd8d84
Bug 749018 - Make OOP <iframe mozbrowser> pass current browser frame tests. r=smaug,cjones
...
--HG--
extra : rebase_source : f15018bf2c9427a0d6e8d44da348d8d7d1693219
2012-05-08 09:20:35 -07:00
Nathan Froyd
9aded0a533
Bug 751314 - fix -Wsign-compare warnings in nsGlobalWindow.cpp; r=khuey
2012-05-02 15:38:17 -04:00
Ms2ger
a147767a14
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-05-05 11:00:05 +02:00
Ms2ger
92edad47c8
Bug 745211 - Remove SetScriptContext from nsIScriptGlobalObject; r=mrbkap
2012-05-05 11:00:04 +02:00
Steve Fink
a0dd043f0c
Bug 730208 - UnmarkGray fixups for globals and contexts. r=billm
...
A common source of potential black -> gray edges is JSAPI calls made on objects with gray globals or contexts holding gray globals. (The call could potentially update a black object with a pointer to that global.) This patch mostly traps places where contexts are used, and unmarks their globals. It also includes some more global unmarking.
--HG--
extra : rebase_source : 835c1d6b4a7f7a11571412075ae8847475079edd
2012-03-14 09:32:58 -07:00
Steve Fink
d18222c292
Bug 730208 - UnmarkGray various JS objects to prevent them from being used to create black -> gray edges. r=smaug
...
--HG--
extra : rebase_source : ba0e5a7c3f9f5f4c76eaa3c8e20d406b9691be9b
2012-03-20 21:29:47 -07:00
Andrew McCreight
8f774dbad9
Bug 744103, part 2 - Change NoteScriptChild to NoteJSChild. r=smaug
2012-05-03 12:28:10 -07:00
Matt Brubeck
9f46038aeb
Bug 750051 - Disable window.find in Fennec because it breaks and/or crashes [r=jst]
2012-05-03 09:15:38 -07:00
Josh Aas
b48fb8b460
Bug 748343: Remove support for "java" and "packages" objects from the DOM. r=jst sr=smaug a=ehsan CLOSED TREE
2012-05-01 16:47:35 -04:00
Kyle Huey
8376d1446c
Bug 695480: Remove support for chrome code leaking DOM objects. r=jst,billm,bholley
2012-04-25 21:03:53 -07:00
Matt Brubeck
0d23bfe194
Back out bug 730208 and bug 747543 because of xpcshell test failures
2012-04-24 20:47:16 -07:00
Steve Fink
0d02f27af8
Bug 730208 - UnmarkGray fixups for globals and contexts. r=billm
...
A common source of potential black -> gray edges is JSAPI calls made on objects with gray globals or contexts holding gray globals. (The call could potentially update a black object with a pointer to that global.) This patch mostly traps places where contexts are used, and unmarks their globals. It also includes some more global unmarking.
--HG--
extra : rebase_source : 1286bdbc4c337956242c292e0fa385629ee8850b
2012-03-14 09:32:58 -07:00
Steve Fink
38e380f2b2
Bug 730208 - UnmarkGray various JS objects to prevent them from being used to create black -> gray edges. r=smaug
...
--HG--
extra : rebase_source : 00bd6f20a900e97173fafa9f5512e2ebbd3a0cac
2012-03-20 21:29:47 -07:00
Mark Capella
260d060e01
Bug 744332 - Remove nsXULPrototypeScript::ScriptObjectHolder::mLangID. r=jst, f=Ms2ger
2012-04-24 18:31:28 -04:00
David Anderson
3220976613
Remove more uses of JS_FrameIterator (bug 744617, r=mrbkap).
2012-04-16 12:30:04 -07:00
Ms2ger
ff14126f30
Bug 732708 - Part c: Remove dom-storage-changed observer topic; r=honzab
2012-04-14 15:06:32 +02:00
Ms2ger
dfc44fcf97
Bug 742837 - Remove dead code and cleanup around nsDOMScriptObjectFactory; r=bz
2012-04-14 15:03:16 +02:00
Ms2ger
77ca860259
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
859ca74e56
Bug 743573 - Fix a number of build warnings in dom/; r=volkmar
2012-04-14 15:09:47 +02:00
Ms2ger
b55e2f9d8c
Bug 732708 - Part c: Remove dom-storage-changed observer topic; r=honzab
2012-04-14 15:06:32 +02:00
Ms2ger
5a2d0a8476
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-04-14 15:05:01 +02:00
Ms2ger
1abb5a381a
Bug 742837 - Remove dead code and cleanup around nsDOMScriptObjectFactory; r=bz
2012-04-14 15:03:16 +02:00
Marco Bonardo
b5e7934a18
Merge central and inbound
2012-04-14 13:56:15 +02:00
Olli Pettay
fd53ed1bf7
Bug 743416, crash with showModalDialog, r=jst
2012-04-14 11:03:28 +03:00
Matt Brubeck
9ad2d653fa
Bug 735237 - Disable window.showModalDialog in Fennec [r=jst]
2012-04-12 21:55:25 -07:00
Bobby Holley
48dcb4071b
Bug 744034 - Link the script context to the outer window earlier to ensure that we always have TI for content. r=mrbkap
2012-04-12 11:21:12 -07:00
Olli Pettay
38f6c3951b
Bug 743199 - Unmark Document's and Window's ELM, r=mccr8
2012-04-07 10:12:03 +03:00
Bill McCloskey
7b50b65a30
Bug 739810 - Make cycle collector traverse nsGlobalWindow::mLocalStorage (r=smaug)
...
--HG--
extra : rebase_source : 7da46b5d1e5871dbd59078aa93f0f1d8da75799e
2012-04-05 15:38:01 -07:00
Gabor Krizsanits
0ac891d865
Bug 733035 - postMessage support for sandboxes. r=khuey
2012-04-05 18:33:20 -04:00
Nathan Froyd
4e2c3da6af
Bug 732708 - remove nsIDOMStorageList; r=honzab
2012-03-28 12:33:41 -04:00
Marco Bonardo
10bda00159
Merge central to inbound
2012-04-04 13:39:52 +02:00
Marco Bonardo
30c673af46
Merge last green PGO from inbound to central
2012-04-04 13:36:36 +02:00
Olli Pettay
76b8cd7f71
Bug 742183 - Handle MicroTasks correctly with showModalDialog, r=sicking
2012-04-04 09:23:45 +03:00
Masayuki Nakano
0ce6ee8924
Bug 668157 part.2 mozilla/dom should use mozilla::Preferences r=jst
2012-04-04 13:09:20 +09:00
Matt Brubeck
2c4e2f7b62
Merge last green changeset from inbound to mozilla-central
2012-04-02 10:41:37 -07:00
Kyle Huey
7a529aca86
Bug 722428: Fix leaks in mochitest by reworking SpecialPowers and nsDOMWindowUtils. r=mounir,ctalbert
2012-04-01 19:23:51 -07:00
Tim Taubert
e1620400a3
merge m-c to fx-team
2012-04-01 18:52:12 +02:00
Olli Pettay
c7a649ab35
Bug 641821, MutationObserver, r=sicking
...
--HG--
extra : rebase_source : a680c883b22976edf38eea23fb516215e081084f
2012-03-31 09:30:13 -07:00
Tim Taubert
122a604242
Bug 727446 - Let the window owning a storage dispatch an event when the storage changes; r=smaug
2012-03-30 19:31:16 +02:00
Marco Bonardo
932988efc9
Merge central to inbound
2012-03-30 12:27:55 +02:00
Ms2ger
339ed99017
Bug 738761 - Remove nsIScriptTimeoutHandler::GetScriptVersion and pass JSVersion to nsIScriptContext::EvaluateString; r=jst
2012-03-29 23:09:13 +02:00
Terrence Cole
2f9cd7725c
Bug 738868 - Switch JSObject2JSObjectMap to new HashTable; r=mrbkap
2012-03-27 09:55:55 -07:00
Doug Turner
cc9da83ba5
Bug 740268 - DisableDeviceSensor doomedElement isn't being set correctly. r=mwu
2012-03-28 23:54:53 -07:00
Mark Capella
62db5d9389
Bug 738380 - Remove nsINode::{GetScriptTypeID, SetScriptTypeID}, nsIScriptContext::GetScriptTypeID, nsIScriptRuntime::GetScriptTypeID; r=jst
2012-04-01 14:47:48 +02:00