Commit Graph

256 Commits

Author SHA1 Message Date
Justin Lebar
b9c544e22e Bug 741587 - Part 1: Make alert/prompt/confirm work with <iframe mozbrowser>. r=smaug
--HG--
extra : rebase_source : f418da542453f8b0f5853a8da48bea1c8c95969e
2012-06-07 10:43:23 -04:00
Nathan Froyd
8cdb29577c Bug 748464 - refactor nsGlobalWindow::RunTimeout; r=bz 2012-04-24 14:16:29 -04:00
Kyle Huey
a5d0b0a379 Bug 751999: Split SetDocShell apart to make this code easier to read. r=jst 2012-05-25 12:00:32 -07:00
Justin Lebar
d6e5466d4e Bug 754997 - For <iframe mozbrowser>, override window.{top,parent,frameElement} in C++. r=bz
--HG--
extra : rebase_source : 66d2ef018234eaa71e49d927eefdd3a8aa01bb41
2012-05-23 11:27:10 -04:00
Alexander Surkov
ed59f8856c Bug 756381 - make FocusManager::FocusedDOMNode faster, r=tbsaunde, smaug 2012-05-22 18:25:44 +09:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Mounir Lamouri
f8a14d2a40 Bug 754141 (3/4) - Get the application object from an AppsService based on the manifest URL and save it on the window object. r=fabrice,jlebar 2012-05-16 12:40:47 +02:00
Mounir Lamouri
c98b0f25fc Bug 754141 (2/4) - Add a SetApp() method that takes the manifest URL value. r=jlebar 2012-05-16 12:40:09 +02:00
Mounir Lamouri
18041509b8 Bug 753978 - Be able to know if a window is part of an application. r=jlebar 2012-05-10 17:56:21 -07:00
Kyle Huey
e88c1f60fb 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
Ms2ger
68c19b3ac7 Bug 745211 - Remove SetScriptContext from nsIScriptGlobalObject; r=mrbkap 2012-05-05 11:00:04 +02:00
Josh Aas
aed79d853a 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
Rafael Ávila de Espíndola
29bc50b92c Bug 743680 - nsGlobalWindow.h uses GetWrapper, include nsWrapperCacheInlines.h. r=dbolter.
--HG--
extra : rebase_source : 9e0b59c3b4929b7c48767be1732269133cb4e18f
2012-04-20 16:43:48 -04:00
Ms2ger
ef69954ac5 Bug 732708 - Part c: Remove dom-storage-changed observer topic; r=honzab 2012-04-14 15:06:32 +02:00
Ms2ger
f58f1b50e0 Bug 742837 - Remove dead code and cleanup around nsDOMScriptObjectFactory; r=bz 2012-04-14 15:03:16 +02:00
Ms2ger
b8ae2456b2 Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes. 2012-04-14 17:52:34 +02:00
Ms2ger
f92683ffdc Bug 732708 - Part c: Remove dom-storage-changed observer topic; r=honzab 2012-04-14 15:06:32 +02:00
Ms2ger
7fd5606557 Bug 742837 - Remove dead code and cleanup around nsDOMScriptObjectFactory; r=bz 2012-04-14 15:03:16 +02:00
Gabor Krizsanits
74922f0040 Bug 733035 - postMessage support for sandboxes. r=khuey 2012-04-05 18:33:20 -04:00
Nathan Froyd
648b4d2f3d Bug 732708 - remove nsIDOMStorageList; r=honzab 2012-03-28 12:33:41 -04:00
Kyle Huey
a19142cede Bug 722428: Fix leaks in mochitest by reworking SpecialPowers and nsDOMWindowUtils. r=mounir,ctalbert 2012-04-01 19:23:51 -07:00
Tim Taubert
35c66981b6 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
Justin Lebar
3be96b596d Bug 736688 - Part 5: Remove window.{top,parent,frameElement} mozbrowser changes in nsGlobalWindow (undoes changes from bug 725796). r=smaug
--HG--
extra : rebase_source : fdeccb7e995229cdbc6ebd945109fe8441f9f525
2012-03-28 11:36:49 -07:00
Doug Turner
59d0282757 Bug 734855 - Rename DeviceMotion to DeviceSensors. Review comments address r=mwu 2012-03-24 17:30:03 -07:00
Doug Turner
46f2d3abe9 Bug 734855 - Device Orientation - Make EnableDeviceMotion finer grain. r=mwu 2012-03-24 17:29:49 -07:00
Matt Brubeck
21e24f0ef9 Merge mozilla-central and mozilla-inbound 2012-03-24 09:05:27 -07:00
Ms2ger
57b8d41a26 Bug 734029 - Move nsJSContext::{Set,Create}OuterObject to nsGlobalWindow; r=bholley 2012-03-24 09:18:21 +01:00
Hessam Salehi
7d69570885 Bug 474505 - Replace uses of nsVoidPtrHashkey with nsPtrHashKey<T>; r=bsmedberg 2012-03-21 14:07:31 -04:00
Mark Capella
08d7239a5d Bug 734023 - Remove language arguments from nsIScriptGlobalObject methods, r=jst, f=ms2ger 2012-03-23 18:13:29 +01:00
Blake Kaplan
2c581e8da4 Bug 727884 - Make nsWrapperCache::WrapObject take a JSObject scope instead of XPCWrappedNativeScope. r=peterv 2012-03-14 16:25:40 +01:00
Olli Pettay
c58d4cc1b2 Bug 734057 - Make nsDOMEventTargetHelper to not have strong pointer to window, r=jst,bent 2012-03-13 02:56:07 +02:00
Justin Lebar
3e68e04f09 Bug 725796 - Make window.{top,parent,frameElement} respect <iframe mozbrowser>. r=bz 2012-03-04 11:02:00 -05:00
Matheus Kerschbaum
51254c73d0 Bug 687579 part 1: Remove globalStorage implementation. r=jst
Bug 687579 part 1: Remove globalStorage implementation. r=jst
2011-10-09 22:14:00 -04:00
Nicholas Nethercote
29ca78c292 Bug 723799 - Use mallocSizeOf in the DOM memory reporters. r=mounir.
--HG--
extra : rebase_source : 2eb96d2f901bbe4cc1ff6dbccdec4dc4099b08fc
2012-02-01 13:58:01 -08:00
David Mandelin
60e80d55b6 Bug 730511: remove obsolete typedefs intN, uintN, r=luke 2012-02-28 15:11:11 -08:00
Peter Van der Beken
98a0ede326 Fix for bug 637099 (Remove JS_ClearScope calls on windows). r=mrbkap.
--HG--
extra : rebase_source : 8bdadc72a0b28c78e21758fab8f1035ee1dd9f3d
2011-03-15 12:06:39 +01:00
Chris Pearce
45a6bbad67 Bug 727303 - Add nsPIDOMWindow::SetFullScreenInteral. r=roc 2012-02-20 10:02:08 +13:00
Nicholas Nethercote
4f29e66f41 Bug 671299 (part 3) - Add style sheet memory reporters. r=dbaron. 2012-01-02 18:19:14 -08:00
Olli Pettay
e45ec4dc02 Bug 720808 - Add nsJSEventListener and nsGlobalWndow to BBP, r=mccr8
--HG--
extra : rebase_source : e6512fe1b8b19b3ddd959b992ce0f2672b0b072f
2012-01-26 16:03:21 +01:00
Ms2ger
e55f25e5ac Bug 698420 - Make nsScriptObjectHolder typesafe; r=bz 2011-12-18 11:05:12 +01:00
Ms2ger
8aec725418 Bug 704593 - Remove JS-specific nsGlobalWindow::ClearTimeoutOrInterval(); r=jst 2011-11-26 11:23:25 +01:00
Ms2ger
5243eb3628 Bug 698402 - Store JSObjects in nsGlobalWindow::mCachedXBLPrototypeHandlers; r=peterv 2011-11-26 11:14:47 +01:00
Ms2ger
d75f195dee Bug 698400 - Use setObject in nsXBLPrototypeHandler::EnsureEventHandler; r=jst 2011-11-26 11:14:29 +01:00
Chris Pearce
011644c901 Bug 604682 - Remove unnecessary copy of audio data when there's no MozAudioAvailable event listener. r=smaug,kinetik 2011-11-22 13:34:21 +13:00
Mounir Lamouri
0974c60065 Bug 695287 - Move Navigator declaration and definition outside of nsGlobalWindow.{h,cpp}. r=Ms2ger
This patch is creating Navigator.h and Navigator.cpp and makes Navigator part
of the mozilla::dom namespace.
2011-11-02 14:44:16 +01:00
Ms2ger
c4446bc22d Bug 694769 - Remove nsIScriptContext::GetScriptGlobal in favour of GetGlobalJSObject; r=smaug 2011-10-29 22:09:04 +02:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Peter Van der Beken
50d6977e85 Fix for bug 694009 (crash mozilla::dom::binding::instanceIsProxy) - clear cache when wrapper is finalized. r=mrbkap.
--HG--
extra : rebase_source : 5edfb2299cf7ba4d6a86382459d045cf52999c27
2011-10-13 15:36:09 +02:00
Peter Van der Beken
ebc0b38209 Fix for bug 693301 (Remove ConstructProxyObject) - switch outer window creation to nsWrapperCache::WrapObject. r=mrbkap. 2011-08-20 15:53:34 +02:00
Fabrice Desré
82e33e773d Bug 676595 - Android orientation manager is never shut down [r=dougt] 2011-10-06 10:27:41 -07:00
Matt Brubeck
4a976aab61 Back out 2780356be1a1 (bug 675574) and 9928fb9a32b1 (bug 690220) on suspicion of causing browser-chrome shutdown hangs 2011-09-29 14:44:36 -07:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Mounir Lamouri
6c638adde5 Bug 675574 - Do not allow more than one call to window.open() when we allow popups. r=jst 2011-09-28 23:23:36 +02:00
Luke Wagner
7ff16e4820 Bug 683361, part 1 - Strip JS prefix from proxy names since they are already in namespace js (r=gal)
--HG--
extra : rebase_source : 5eded8e02c36991322c94fca1092970910c2ceea
2011-09-08 20:29:15 -07:00
Josh Matthews
46f7c7c225 Bug 683945 - Avoid using a deleted hashtable for finding window IDs. r=jst 2011-09-03 19:43:22 -04:00
Blake Kaplan
b5f259839c Bug 684135 - Protect against calling this function during shutdown. r=bzbarsky 2011-09-02 16:49:08 -07:00
Mounir Lamouri
891f797e17 Bug 667183 - Create a static nsGlobalWindow::Init method to do one-shot initializations currently in nsGlobalWindow ctor. r=jst 2011-08-31 16:54:39 +02:00
Mihai Sucan
726b8bb058 Bug 670896 - Add inner window ID and timestamp to nsIScriptError2; r=bzbarsky 2011-08-24 23:44:35 +03:00
Boris Zbarsky
8bdd1a64af Bug 659350 part 5. The guts of the change to move from storing inline event handlers on the JSObject to storing them in the event listener manager directly, so we can easily set/read them via IDL.
The changes here are as follows:
1) nsIJSEventListener now stores the handler.  This is guaranteed to be already bound properly, if needed, before being set in the nsIJSEventListener.
2) The old classinfo glue to deal with on* properties is gone.
3) IDL-based methods for on* properties have been added.
2011-08-24 15:49:25 -04:00
Boris Zbarsky
3b2d73afa7 Bug 659350 part 2. Add nsITouchEventReceiver for windows. r=smaug 2011-08-24 15:49:25 -04:00
Ms2ger
5067dcabc0 Bug 675075 - Reinstate nsIDOMWindowInternal; r=smaug
* * *
Bug 675075 - Followup: remove nsIDOMWindowInternal.h includes; r=bustage
2011-08-14 19:22:29 +02:00
Ms2ger
c046ca0ed7 Backout bug 675075 for bustage 2011-08-14 20:05:20 +02:00
Ms2ger
3980c93ae7 Bug 675075 - Reinstate nsIDOMWindowInternal; r=smaug 2011-08-14 19:22:29 +02:00
Mounir Lamouri
900f3d99a5 Bug 674112 - Make nsNavigator participate to the DOM Memory Reporter. r=jst 2011-08-09 14:58:41 +02:00
Mounir Lamouri
7f8f6d95bf Bug 670986 - Create nsLocation.h to declare nsLocation instead of doing that in nsGlobalWindow.h. r=jst 2011-08-02 21:22:40 -07:00
Ms2ger
50bcc856b0 Bug 670331 - Remove nsIDOMStorageWindow; r=sicking 2011-07-15 12:32:37 +02:00
Ms2ger
36c532ffa2 Bug 670235 - Remove nsIDOMWindowInternal; r=sicking 2011-07-15 12:31:34 +02:00
Boris Zbarsky
c8375f12ac Bug 648045. Mark the currently selected tab in a minimized window as inactive. r=gavin,smaug 2011-07-11 09:14:08 -04:00
Marco Bonardo
26bd9f0a1b Backout changesets 9e4ab3907b29, 3abc0dbbf710 due to m-oth permaorange 2011-07-11 10:27:58 -07:00
Boris Zbarsky
eaeea8e796 Bug 648045. Mark the currently selected tab in a minimized window as inactive. r=gavin,smaug 2011-07-11 09:14:08 -04:00
Boris Zbarsky
2f0d968154 Bug 669158. Don't try to unclamp the dummy timeout. r=jst 2011-07-08 14:04:25 -04:00
Ms2ger
4e883d2c6f Bug 664543 - Remove nsIDOMWindow_2_0_BRANCH interface; r=peterv 2011-07-03 11:53:41 +02:00
Emanuele Costa
57d92e763a When switching a window from background to foreground, reinitialize the timers that should fire sooner than the background clamp would have allowed. Bug 647001, r=bzbarsky 2011-06-29 15:49:42 -04:00
Mounir Lamouri
722f1a262b Bug 667485 - Add windows' document size to windows size. r=jst 2011-06-29 13:18:54 +02:00
Mounir Lamouri
b10e711112 Bug 667474 - Do a naive computation of windows' size in the DOM Memory Reporter. r=jst 2011-06-29 13:06:43 +02:00
Mounir Lamouri
08c2b853e1 Bug 667470 - Track all created windows in a global hash table. r=bz 2011-06-29 13:03:54 +02:00
Jonas Sicking
5e5e6bd544 Bug 658714 Part 10: Remove nsIDOM3EventTarget/nsIDOMEventGroup. r=smaug 2011-06-23 19:18:02 -07:00
Jonas Sicking
26f99e3cdb Bug 658714 Part 7: DeCOMtaminate nsEventListenerManager. r=smaug 2011-06-23 19:18:01 -07:00
Jonas Sicking
6a04ff1d9f Bug 658714 Part 6: Fixups after search'n'replace s/nsPIDOMEventTarget/nsIDOMEventTarget/. r=smaug 2011-06-23 19:18:01 -07:00
Jonas Sicking
e3f6b769a1 Bug 658714 Part 5: Search'n'replace nsPIDOMEventTarget to nsIDOMEventTarget. r=smaug 2011-06-23 19:18:00 -07:00
Jonas Sicking
6c4113f213 Bug 658714 Part 2: Merge nsIDOMNSEventTarget into nsIDOMEventTarget. r=smaug 2011-06-23 19:17:59 -07:00
Jonas Sicking
8fed9108b1 Bug 658714 Part 1: Merge nsPIDOMEventTarget into nsIDOMEventTarget. r=smaug,bent 2011-06-23 19:17:58 -07:00
Igor Bazarny
39a01edf21 bug 570341 Initial implementation of web timing specification
r=smaug sr=biesi
2011-06-23 12:39:48 +02:00
Ms2ger
15644e3760 Bug 664543 - Remove nsIDOMWindow2; r=peterv 2011-06-21 17:37:38 +02:00
Olli Pettay
5e3515d45b Bug 664444 - Unlink nsGlobalChromeWindow, r=peterv
--HG--
extra : rebase_source : e31c451c4af6768f8bf1d6b1f053b30d33a7e2b5
2011-06-21 17:51:49 +03:00
Doug Turner
104a8914c7 Bug 615597 - Implement devicemotion and fix up deviceorientation events. r=smaug/azakai
--HG--
rename : content/events/src/nsDOMOrientationEvent.cpp => content/events/src/nsDOMDeviceOrientationEvent.cpp
rename : content/events/src/nsDOMOrientationEvent.h => content/events/src/nsDOMDeviceOrientationEvent.h
rename : dom/system/android/nsAccelerometerSystem.cpp => dom/system/android/nsDeviceMotionSystem.cpp
rename : dom/system/android/nsAccelerometerSystem.h => dom/system/android/nsDeviceMotionSystem.h
rename : dom/system/cocoa/nsAccelerometerSystem.h => dom/system/cocoa/nsDeviceMotionSystem.h
rename : dom/system/cocoa/nsAccelerometerSystem.mm => dom/system/cocoa/nsDeviceMotionSystem.mm
rename : dom/system/nsAccelerometer.cpp => dom/system/nsDeviceMotion.cpp
rename : dom/system/nsAccelerometer.h => dom/system/nsDeviceMotion.h
rename : dom/system/unix/nsAccelerometerSystem.cpp => dom/system/unix/nsDeviceMotionSystem.cpp
rename : dom/system/unix/nsAccelerometerSystem.h => dom/system/unix/nsDeviceMotionSystem.h
rename : dom/system/windows/nsAccelerometerSystem.cpp => dom/system/windows/nsDeviceMotionSystem.cpp
rename : dom/system/windows/nsAccelerometerSystem.h => dom/system/windows/nsDeviceMotionSystem.h
rename : xpcom/system/nsIAccelerometer.idl => xpcom/system/nsIDeviceMotion.idl
2011-06-19 22:36:17 -07:00
Mounir Lamouri
6060bdd44e Bug 565541 (2/2) - Prevent abusing usage of moving and resizing window. r=bz
The rules are simple, callers can move or resize a window if both conditions
apply:
1. the window has been created with window.open;
2. the window only contains one tab.

--HG--
extra : rebase_source : 7b1fdfa121a701b47ece46a63e36483ca4d75672
2011-05-31 14:30:20 +02:00
Masayuki Nakano
060287addd Bug 659533 Replace nsContentUtils::GetBoolPref() with Preferences::GetBool() r=roc 2011-05-25 15:31:59 +09:00
wfernandom2004@gmail.com
5963fbfd3b Bug 338583, implement EventSource, r=smaug,Ms2ger
--HG--
extra : rebase_source : 9dd6bbbc0d714fbafb2ed115c40cf7210b663b6a
2011-05-22 22:30:07 +01:00
Boris Zbarsky
af0f5c831a Bug 654399. Try to make sure we always hand out the same exact string buffer each time location.hash is gotten. r=roc 2011-05-20 16:21:27 -04:00
Ms2ger
941e819c63 Bug 616684 - Remove support for DOM Views; r=sicking,ehsan 2011-04-24 08:54:25 +02:00
Justin Lebar
f0e9722244 Fix bug 642338. r=smaug
--HG--
extra : rebase_source : c23e4c1c7d9b284d9f32acae93434e79a001df08
2011-04-27 16:54:07 -04:00
Ehsan Akhgari
d2a61eb331 Backout changeset 13f6847dd840 (bug 616684) because it changes code semantics in a bad way, which results in problems like the crash in bug 652580, possibly among others 2011-04-25 17:05:17 -04:00
Ms2ger
295bf7256b Bug 616684 - Remove support for DOM Views; r=sicking 2011-04-24 08:54:25 +02:00
Justin Lebar
331607e5aa Bug 628069 - Add newURL, oldURL properties to hashchange event. r=smaug
--HG--
extra : rebase_source : 865194e9c50612599ad029815314c0819de60124
2011-03-31 16:30:32 -04:00
Ms2ger
5d712a77e7 Bug 620000 - Remove nsXULPDGlobalObject::OnFinalize's language id parameter; r=jst 2011-04-14 14:04:08 +02:00
Boris Zbarsky
aaa1e13bcf Bug 633421. Throttle timeouts in background tabs to 500ms, noot 10ms. r=jst 2011-03-25 21:05:55 -04:00
Jonas Sicking
0a21ea9298 Bug 635844 part 1: Back out bug 615501 since we'll no longer fire the "initial popstate" event, and thus don't need a way to differentiate it. r=jlebar a=beltzner 2011-02-28 23:08:56 -08:00
Justin Lebar ext:(%2C%20Ms2ger%20%3Cms2ger%40gmail.com%3E)
dfd1d01778 Bug 615501 - Make push/replaceState suppress the popstate-after-load event; r=sicking a=jst 2011-02-14 13:15:29 -08:00
Dave Townsend
b76d26b457 Followup for bug 613800, address review comments. r=jst, a=blocks-final 2011-02-16 10:27:25 -08:00