David Dahl
406eda85db
Bug 683262 - window.crypto throws if MOZ_DISABLE_DOMCRYPTO is turned on - revert nsIWindowCrypto patch - r=jst
2013-02-16 22:43:19 -06:00
David Dahl
5ccb7367b2
Bug 683262 - window.crypto throws if MOZ_DISABLE_DOMCRYPTO is turned on - window.crypto patch - r=jst
...
--HG--
rename : dom/interfaces/base/nsIDOMCrypto.idl => dom/interfaces/base/nsIDOMCryptoLegacy.idl
2013-02-16 22:43:16 -06:00
Phil Ringnalda
604c8641a6
Back out 236ba87c0a9f (bug 440046) and d3b7606d94a6:895a7efc978d (bug 683262) for b2g mochitest failures
2013-02-15 23:33:45 -08:00
David Dahl
0bfba29ba5
Bug 683262 - window.crypto throws if MOZ_DISABLE_DOMCRYPTO is turned on - revert nsIWindowCrypto patch r=jst
2013-02-15 23:34:18 -06:00
David Dahl
cb2e8d0515
Bug 683262 - window.crypto throws if MOZ_DISABLE_DOMCRYPTO is turned on - window.crypto patch r=jst
...
--HG--
rename : dom/interfaces/base/nsIDOMCrypto.idl => dom/interfaces/base/nsIDOMCryptoLegacy.idl
2013-02-15 23:34:15 -06:00
Boris Zbarsky
f9bc81a8be
Bug 829252 part 2. Make nsGlobalWindow inherit from dom::EventTarget and ensure that all the things that inherit from it correctly QI to it. r=peterv
2013-01-29 08:44:01 -05:00
Boris Zbarsky
625b086463
Bug 829252 part 1. Change nsGlobalWindow to use nsIDOMEventTarget as the canonical isupports instead of nsIScriptGlobalObject. We'll need this to be able to cast to it properly in binding code. r=peterv
2013-01-29 08:44:01 -05:00
Daniel Holbert
5271192fa0
Bug 825949: Make nsGlobalWindow::InitTimer directly take a uint32_t, rather than a uint64_t. r=smaug
2013-01-03 13:48:01 -08:00
Masatoshi Kimura
149f9e19cd
Bug 824247 - Part 1: Fix common source of warning spam (dom). r=smaug
2013-01-03 00:55:05 +09:00
Boris Zbarsky
e845de4094
Bug 824517. Quickstub window.performance. r=peterv
2012-12-25 14:00:15 -08:00
Peter Van der Beken
3939a9cb7b
Fix for bug 818219 (Replace HTMLElement quickstubs with new binding methods). r=bz.
...
--HG--
rename : layout/reftests/backgrounds/background-referrer-ref.html => image/test/reftest/generic/accept-image-catchall-ref.html
rename : layout/reftests/backgrounds/background-referrer.html => image/test/reftest/generic/accept-image-catchall.html
rename : layout/reftests/backgrounds/background-referrer.sjs => image/test/reftest/generic/check-header.sjs
rename : layout/reftests/backgrounds/background-referrer-image.png => image/test/reftest/generic/green.png
rename : toolkit/components/places/tests/browser/browser_favicon_setAndFetchFaviconForPage.js => toolkit/components/places/tests/favicons/test_setAndFetchFaviconForPage.js
extra : rebase_source : 45715d6abe3155a6bcd1d21e5cc3f7b048180eb6
2012-11-26 15:19:02 +01:00
Peter Van der Beken
f693a39872
Back out 79fc9d732bf7 (bug 818219) for orange.
...
--HG--
extra : rebase_source : 862b4c446f9b454c4c72e7536e73b9d9ede9feb6
2012-12-06 16:09:55 +01:00
Peter Van der Beken
8ca0ac01c9
Fix for bug 818219 (Replace HTMLElement quickstubs with new binding methods). r=bz.
...
--HG--
extra : rebase_source : ddbedbaea030272ce8fc1ac7245175f7fd3edaa4
2012-11-26 15:19:02 +01:00
Fabrice Desré
a259dfa983
Bug 778668 - Bubble the application name/origin/manifest in the desktop-notification mozChromeEvent [r=wchen]
2012-11-28 22:36:15 -08:00
Robert O'Callahan
af3c55b2b6
Bug 812517. Part 2: Call ScrollToCSSPixelsApproximate when TabChild scrolls. r=mats
...
--HG--
extra : rebase_source : e4c9db69125d21a84400a062630a0c62c3f450d8
2012-11-23 14:25:28 +13:00
Nathan Froyd
b242110f28
Bug 803665 - followup - dispense with nsGlobalWindow::{First,Last}Timeout and nsTimeout::{Next,Previous}; r=bz
2012-11-01 10:07:22 -04:00
Nathan Froyd
dd23c0243a
Bug 803665 - convert nsGlobalWindow's timeout list to use mozilla::LinkedList; r=bz
2012-11-01 10:06:22 -04:00
Robert O'Callahan
cecf3ae790
Bug 792675. Part 1: Make the URL interface use WebIDL. r=bz
...
--HG--
extra : rebase_source : dbb7a3158b71446930400ad523a2896b6306de40
2012-09-25 15:24:43 +12:00
Ms2ger
7e144f29de
Merge backout on a CLOSED TREE.
2012-11-08 09:20:52 +01:00
Ms2ger
6e9c8d40fc
Bug 809756 - Backout bug 803665, bug 803668, bug 803666 and bug 803669 on a CLOSED TREE.
2012-11-08 09:20:25 +01:00
Nathan Froyd
eebd1b5a29
Bug 803665 - followup - dispense with nsGlobalWindow::{First,Last}Timeout and nsTimeout::{Next,Previous}; r=bz
2012-11-01 10:07:22 -04:00
Nathan Froyd
af643a8071
Bug 803665 - convert nsGlobalWindow's timeout list to use mozilla::LinkedList; r=bz
2012-11-01 10:06:22 -04:00
Mounir Lamouri
ee75905110
Bug 795715 - Remove B2G-specific stuff from nsIDOMWindow. r=khuey,fabrice sr=smaug
2012-11-07 18:10:40 +00:00
Brad Lassey
2190abc1c9
bug 805017 - Disable screen timeout when DOMFullscreen is enabled r=jst
2012-11-01 08:40:11 -04:00
Nathan Froyd
22c4bde145
Backout 57d8f6cd245a (bug 803669), fb673c95d56b (bug 803665), 24d8e0cb73f2 (bug 803665), ac46bd0d9fba (bug 803669), c9c67b62799b (bug 803666), b3314c0ddaac (bug 803668) for debug build test failures
2012-10-31 13:23:17 -04:00
Nathan Froyd
e5e7b91de6
Bug 803665 - part 2 - dispense with nsGlobalWindow::{First,Last}Timeout and nsTimeout::{Next,Previous}; r=bz
2012-10-22 11:24:27 -04:00
Nathan Froyd
2f0460ea2f
Bug 803665 - convert nsGlobalWindow's timeout list to use mozilla::LinkedList; r=bz
2012-10-19 12:22:35 -04:00
Ryan VanderMeulen
6a2ec3c438
Backout b6089a8b78d3 (bug 782547) to see if it fixes Flash hangs.
2012-10-28 00:24:02 -04:00
Tim Taubert
ddb6c4b88a
merge m-c to fx-team
2012-10-25 21:23:58 +02:00
Mihai Sucan
2476780676
Bug 803964 - Cannot show window object with inspect viewer in remote web console; r=bz
2012-10-24 13:01:54 +03:00
Neil Deakin
7f1001416d
Bug 782547, allow killfocus and deactivate messages to arrive in any order, remove blur suppression code, r=jmathies
2012-10-24 16:05:29 -04:00
Boris Zbarsky
d3f9d1f8ce
Bug 800983. Expose a getter for default computed style. r=dbaron
...
An alternative implementation strategy is to add "default-only"
versions of ResolveStyleFor and ResolvePseudoElementStyle and then
modify FileRules to support those, or use a cut-down custom version of
FileRules for them. That would be faster, but more complicated on the
style set side. We can always make that switch if we need to, I guess.
2012-10-17 17:01:56 -04:00
Olli Pettay
503b4bccb8
Bug 799592 nsDOMWindowUtils::AllowScriptsToClose to bypass dom.allow_scripts_to_close_windows, r=jst
2012-10-12 13:17:56 +03:00
Mounir Lamouri
8bda11ca6e
Bug 795725 - Remove booleans that prevents calling RemoveObserver() twice. r=smaug
2012-10-03 10:39:23 +01:00
Ms2ger
c258b6f47a
Bug 780161 - Part c: Introduce nsGlobalWindow::IndexedGetter(); r=bz
2012-10-02 10:07:36 +02:00
Ms2ger
a62cc100d1
Bug 780161 - Part b: Introduce nsGlobalWindow::GetLength(); r=bz
2012-10-02 10:07:35 +02:00
Mounir Lamouri
990268d0ba
Bug 795136 - 1/2 - Add events notifying the window if upload/download happen on the system. r=smaug sr=sicking
2012-09-30 14:47:48 +01:00
Steven Lee
16761404d2
Bug 714358: Time manager implementation. r=jlebar
2012-09-11 02:05:00 -04:00
Ms2ger
bd32566761
Bug 785067 - Outparamdel nsGlobalWindow::SaveWindowState; r=mrbkap
2012-09-06 09:20:26 +02:00
Bobby Holley
9f9275dca8
Bug 774633 - Fold SetOpenerScriptPrincipal into SetInitialPrincipalToSubject, and make it indempotent and callable without an existing document. r=jst
...
There's no reason it has to fail if there's no mDoc, since any document is promptly
blown away with the new about:blank document.
The indempotence is important because we want to be able to call this method
unconditionally in OpenJSWindowInternal (since we may not have gone through
RegisterTopLevelWindow) without worrying about whether we've called it already.
2012-09-05 11:32:06 -07:00
Bobby Holley
9ae993ebdc
Bug 774633 - Remove dead mOpenerScriptPrincipal. r=jst
...
This value is initialized to null and never set, so we can get rid of it.
2012-09-05 11:32:06 -07:00
Bobby Holley
2195e87d2e
Bug 774633 - Wean SetInitialPrincipalToSubject off some parameters and clean it up. r=jst
...
We can remove the fallback to the principal of aParent because we already push the
cx for aParent (callerContextGuard) whenever we're concerned about using its principal.
2012-09-05 11:32:06 -07:00
Bobby Holley
9b95920174
Bug 774633 - Factor nsWindowWatcher call to SetOpenerScriptPrincipal into a method on nsGlobalWindow. r=jst
...
This doesn't change any functionality in the code. Note that the name is currently
a bit of a misnomer, but we change that in the next patch when we rip out the
arguments.
2012-09-05 11:32:06 -07:00
Philipp von Weitershausen
f47e2a9937
Bug 776825 - Separate message managers into senders and broadcasters. r=smaug
...
--HG--
rename : content/base/public/nsIFrameMessageManager.idl => content/base/public/nsIMessageManager.idl
2012-08-27 11:13:02 -03:00
Andrew McCreight
0d31841b85
Bug 750570, part 4 - Switch most native CC classes to use the purple buffer. r=smaug
...
This patch actually converts over most of the existing native CC classes
to use the participant. This is done by converting them to use
the newly generalized nsCycleCollectingAutoRefCnt instead of their usual
ref count.
This is mostly a matter of defining new macros defining AddRef() and Release()
for native CC classes with the CC ref count.
nsTimeout is left as a legacy native CC class because it is a weird class,
but hopefully eventually it too can be converted over. See bug 774874.
2012-08-24 09:50:06 -07:00
Matt Brubeck
424ea88da6
Back out 670c8a2695b3 (bug 771354), 134557d57e6e 4ad52e488977 (bug 774607), and...
...
036eb8c2a08a d4d36e3b948f 35334e820632 6bd07fd5147d d49e7c0d762c 407f19deb14c d84551808abb (bug 774633)
on a CLOSED TREE
2012-08-23 21:34:27 -07:00
Bobby Holley
0bf2885067
Bug 774633 - Fold SetOpenerScriptPrincipal into SetInitialPrincipalToSubject, and make it indempotent and callable without an existing document. r=jst
...
There's no reason it has to fail if there's no mDoc, since any document is promptly
blown away with the new about:blank document.
The indempotence is important because we want to be able to call this method
unconditionally in OpenJSWindowInternal (since we may not have gone through
RegisterTopLevelWindow) without worrying about whether we've called it already.
2012-08-23 16:44:52 -07:00
Bobby Holley
875a633f4f
Bug 774633 - Remove dead mOpenerScriptPrincipal. r=jst
...
This value is initialized to null and never set, so we can get rid of it.
2012-08-23 16:44:52 -07:00
Bobby Holley
efd432c75a
Bug 774633 - Wean SetInitialPrincipalToSubject off some parameters and clean it up. r=jst
...
We can remove the fallback to the principal of aParent because we already push the
cx for aParent (callerContextGuard) whenever we're concerned about using its principal.
2012-08-23 16:44:52 -07:00
Bobby Holley
6e122ec16c
Bug 774633 - Factor nsWindowWatcher call to SetOpenerScriptPrincipal into a method on nsGlobalWindow. r=jst
...
This doesn't change any functionality in the code. Note that the name is currently
a bit of a misnomer, but we change that in the next patch when we rip out the
arguments.
2012-08-23 16:44:52 -07:00
Ehsan Akhgari
8c296bbcd4
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Justin Lebar
adfc4e45ba
Bug 769254 - Part 2: Modify nsPIWindowWatcher::OpenWindowJS (renamed to OpenWindow2) so we can pass in the URL for target=_blank links without navigating the opened window to that URL. r=bz
2012-08-14 10:58:00 -04:00
Neil Deakin
1a89394d0d
Bug 391834, don't allow prompts in beforeunload, unload and pagehide events,r=smaug,patch mostly by gavin
2012-08-13 15:05:34 -04:00
Neil Deakin
afbbe47319
Bug 391834, rearrange some popup dialog code to be simpler,r=smaug,patch mostly by gavin
2012-08-13 15:03:59 -04:00
Justin Lebar
446f9d033a
Bug 777135 - Part 3: Remove nsDOMWindowUtils::GetIsApp and friends. r=mounir
...
--HG--
extra : rebase_source : ac3db88b7eb03397c4ae514624e1f3021947c396
2012-08-13 12:58:38 -04:00
Boris Zbarsky
3d616ae6f5
Bug 703855. Don't update performance timing or navigation timing state during document.open. r=jst
2012-08-08 23:47:04 -04:00
Chris Jones
7804d3c78b
Revert e3e9040a6eb9 for M2 failures
2012-08-08 21:58:23 -07:00
Boris Zbarsky
f82e20d150
Bug 703855. Don't update performance timing or navigation timing state during document.open. r=jst
2012-08-08 23:47:04 -04:00
Phil Ringnalda
2400fbd6d1
Backout 5439489dc320, 983f76488e59, 7a92558a8dec (Bug 714358) for debug build assertions and leaks
2012-08-07 22:18:27 -07:00
Steven Lee
dd1279bf1b
Bug 714358: Time manager implementation. r=jlebar
2012-08-07 19:11:00 -04:00
Chris Pearce
174ba270dc
Bug 684620 - Implement cross process fullscreen API for B2G apps and web content. r=jlebar
...
* * *
Bug 684620 - Fix in-process fullscreen in B2G. r=?
2012-07-31 14:09:31 +12:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Nathan Froyd
ea0bad3245
Bug 776979 - consolidate InitWithFuncCallback calls into nsTimeout::InitTimer; r=bz
2012-07-24 13:50:45 -04:00
Matt Brubeck
1d52142e2d
Back out fbdb3104c9e5, d2fe54ae00a8, d378362cbe01, fe623d60bea1 (bug 769254) on suspicion of causing Windows debug mochitest-plain-3 timeouts
2012-07-23 20:30:12 -07:00
Justin Lebar
156f22d018
Bug 769254 - Part 2: Modify nsPIWindowWatcher::OpenWindowJS (renamed to OpenWindow2) so we can pass in the URL for target=_blank links without navigating the opened window to that URL. r=bz
...
--HG--
extra : rebase_source : 96a53a1a8b34f41bfe59f00141d598c5394cb0c1
2012-07-23 10:44:13 -04:00
Bonnie Surender
87a61a23b6
Fix for bug 771967. OS idle api active to briefly idle to active notification fix. r=jst
2012-07-13 15:39:46 -07:00
Bonnie Surender
f1f083f6f9
fixing bug 770656, idle fuzz time for idle notifications. r=jst@mozilla.com
2012-07-04 13:21:40 -07:00
Fabrice Desré
9bc82b5cb5
Bug 755245 - Implement System Message Handler : Part 2, Add a getApp() method to nsGlobalWindow [r=mounir]
2012-07-02 17:16:55 -07:00
Bonnie Surender
6dcaba353f
Fixing bug 715041. Add support for Idle API. r=bent, jst
2012-06-29 01:32:21 -07:00
Vivien Nicolas
23fcbde395
Bug 760102 - Authorize web applications to use fullscreen by default. r=cpearce
2012-06-28 20:54:37 +12:00
Ms2ger
31e3951f19
Bug 762455 - Make nsGlobalWindow::InnerSetNewDocument not return nsresult; r=peterv
2012-06-17 10:11:16 +02:00
Bobby Holley
bb38fbaa32
Bug 764389 - Update compartment principals on inner window reuse and on document.write. r=bz
2012-06-15 08:31:27 +02:00
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