Boris Zbarsky
34d521e285
Bug 1155984. Improve the performance of the "self" getter in both window and workers. r=peterv,jorendorff
2015-04-27 13:38:12 -04:00
Boris Zbarsky
1540774b0c
Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
...
This patch was generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Kyle Machulis
358e55b5b7
Bug 852944 - Gamepad API IPC; r=ted, r=baku
...
--HG--
extra : rebase_source : 34ca0c1e1b7fcc312b5d7c97d5bd2086af2bc7ce
2015-04-23 15:05:29 -07:00
Ehsan Akhgari
ffa720a08a
Bug 1156101 - Mark nsGlobalWindow::mObserver as an nsRefPtr; r=baku
2015-04-20 08:35:38 -04:00
Ted Mielczarek
3a7c11fc1a
bug 1155691 - Expose WindowRoot to chrome from window in webidl. r=smaug
...
--HG--
extra : rebase_source : ecacc739c8b642faf0e26e19c2a62d2f9e180cc4
2015-04-17 16:17:26 -04:00
Boris Zbarsky
3dbe43d96c
Bug 1151940 part 3. Make some writable cssom-view attributes that we only allow setting from chrome act the way readonly replaceables would when called from content. r=smaug
2015-04-08 22:50:45 -04:00
Boris Zbarsky
a00fe72fd2
Bug 1151940 part 2. Add a convenience function in nsGlobalWindow for replacing a property on the window with a new value. r=smaug
2015-04-08 22:50:45 -04:00
Kartikaya Gupta
3e7ff0d160
Bug 1146843 - Revert part of cset 33c30e283fa8 because the code is used in Fennec. r=snorp
2015-04-02 20:45:50 -04:00
Nicolas Silva
e3eaf89e3f
Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc
2015-03-29 16:59:08 +02:00
Trevor Saunders
d5851ef31c
bug 1146027 - more final r=froydnj
2015-03-24 17:51:43 -04:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
dc24477d79
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Kartikaya Gupta
fdaed2c4d6
Bug 1144324 - Remove the codepaths that conditionally enable touch events based on touch the presence of touch listeners. r=smaug,jimm
2015-03-19 06:37:39 -04:00
Catalin Badea
c230b69ed6
Bug 1058311 - Update client interface. Implement matchAll WindowClient. r=baku
2015-03-06 15:04:49 +02:00
Kearwood (Kip) Gilbert
b0c31cd0a6
Bug 945584: Part 8 - Implement Scroll Snapping for Middle Mouse Button Scrolls (v2 Patch), r=roc, r=bz
...
- Implemented scroll snapping at the end of a middle-mouse-button scroll.
- As this scrolling occurs within chrome Javascript, chrome-only DOM methods
had to be added: window.MozScrollSnap and element.MozScrollSnap
- Bug 1137937 tracks implementation of a replacement for these chome-only DOM methods,
to be replaced with a web accessible API.
--HG--
extra : rebase_source : f511296dbdbfd97e3da391d2a0b67fd3f6edca6b
2015-02-19 16:03:07 -08:00
Ehsan Akhgari
c5cbd265c3
Bug 1050456 - Part 2: Add a nsGlobalWindow::GetIsPrerendered helper
2015-03-04 01:31:08 -05:00
Ben Kelly
bc355cdce2
Bug 940273 - Part 5 - Expose Service Worker Cache as window.caches when pref is enabled. r=ehsan
2015-03-02 14:22:00 +01:00
Boris Zbarsky
70d896decc
Bug 975699. Remove mozIndexedDB. r=khuey
2015-02-12 18:39:26 -05:00
Nicholas Nethercote
242708cf72
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight
d3826daa16
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
d34f0301b8
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Tim Taubert
ab9b11d32d
Bug 1128479 - Don't use nsIDOMCrypto in Crypto.webidl r=smaug
2015-02-02 15:36:04 +01:00
Bobby Holley
c4cf5ef02f
Bug 1124898 - Stop exposing ex-nsIDOMChromeWindow things for random unprivileged things loaded in chrome docshells. r=bz
2015-01-26 10:26:33 -08:00
Bill McCloskey
f6534c08fb
Bug 1118618 - [e10s] Slow script/plugin hang UI (r=mrbkap,mconley,bent)
2015-01-16 18:34:47 -08:00
Carsten "Tomcat" Book
fe2f83538c
Backed out changeset 8ab6c26d26f5 (bug 1118618)
2015-01-13 08:43:32 +01:00
Bill McCloskey
86da48e77b
Bug 1118618 - [e10s] Slow script/plugin hang UI (r=mrbkap,mconley)
2015-01-12 23:06:54 -08:00
Ehsan Akhgari
961f45f728
Bug 1117264 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/base code; r=baku
2015-01-06 11:52:45 -05:00
Ehsan Akhgari
6b8a74ae55
Backed out changeset bc7e683ef708 (bug 1117264) for build bustage on a CLOSED TREE
2015-01-05 21:55:18 -05:00
Ehsan Akhgari
97155a7290
Bug 1117264 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/base code; r=baku
2015-01-05 20:54:28 -05:00
Ben Turner
e5dcbec838
Bug 1116697 - Fix nsScriptError::InitWithWindowID to work better off the main thread, r=mrbkap.
2015-01-05 14:53:37 -08:00
Boris Zbarsky
c617f3e3b9
Bug 1012798 part 2. Stop defining a value property named "window" on the global. r=peterv
2014-12-09 14:44:37 -05:00
Vladimir Vukicevic
8d8ab4de9f
Bug 1036606 - Extend mozRequestFullScreen to accept an options dict with a vrDisplay member; r=bz
2014-07-09 12:30:22 -07:00
Vladimir Vukicevic
27e56b034e
Bug 1036604 - Add VRDevice interfaces, navigator.getVRDevices call, and Oculus Rift gfxVR; r=bz,jrmuizel
2014-07-09 12:24:49 -07:00
Andrea Marchesini
9d30f59efd
Bug 1077393 - Rename ScalarValueString to USVString. r=smaug
...
--HG--
rename : dom/bindings/parser/tests/test_scalarvaluestring.py => dom/bindings/parser/tests/test_usvstring.py
rename : dom/bindings/test/test_scalarvaluestring.html => dom/bindings/test/test_usvstring.html
2014-11-20 12:58:00 +01:00
Bobby Holley
379ce8fe49
Bug 1092388 - Remove now-unnecessary nsGlobalWindow::CallerGlobal. r=bz
2014-11-13 11:13:37 -08:00
Andrew McCreight
4d45062daf
Bug 868139 - Don't redo unmarking work in nsGlobalWindow::CanSkip if we already did it. r=smaug
...
This causes quadratic behavior in forgetSkippable when there are many timeouts.
To avoid this, we mark the CC generation of the last time we ran CanSkip on the window,
and don't do it again if it hasn't changed.
2014-11-13 07:11:55 -08:00
Tom Schuster
8a051a23e7
Bug 993026 - Rename NewResolve to Resolve in browser. r=bz
2014-11-08 01:07:12 +01:00
Kearwood (Kip) Gilbert
1f3b8f19a0
Bug 1045754 - Part 1 - Implement updated CSSOM-View smooth-scrolling specification. r=bz
...
- Added new WebIDL dictionary, ScrollToOptions. This dictionary extends
ScrollOptions by adding "left" and "top", specifying the scroll offset.
This will be later extended with more members to allow scroll offsets to be
specified with logical axes.
- Implemented Window.Scroll, Window.ScrollTo, Window.ScrollBy, Element.Scroll,
Element.ScrollTo, and Element.ScrollBy functions that accept ScrollToOptions
as a single parameter.
- Removed ScrollOptions dictionary parameter from existing Window.Scroll,
Window.ScrollTo, and Window.ScrollBy functions as these have been replaced
with functions accepting a single parameter, ScrollToOptions.
- Added new WebIDL dictionary, ScrollIntoViewOptions. This dictionary
extends ScrollOptions by adding "block", specifying whether the element
start or end will be scrolled into view.
- Replaced Element.ScrollIntoView(bool,ScrollOptions) with
Element.ScrollIntoView(ScrollIntoViewOptions) to match updated
CSSOM-View scroll-behavior specification.
2014-10-01 10:47:56 -07:00
Peter Van der Beken
d76c717d3c
Bug 1068740 - Consider putting union types in the binding files where they're used. r=bz.
...
--HG--
extra : rebase_source : 7e0b1e2f60757b7758704dab3672ee829f3e4085
2014-10-01 20:43:26 +02:00
Valentin Gosu
2716c07b5f
Bug 786419 - Part 11 - Address possible issues with offline notifications in nsGlobalWindow and WorkerPrivate r=bent
...
Part 2 of this bug adds nsGlobalWindow as an observer for the app-offline
notification. There are however a few corner cases we haven't handled.
For example: If the browser is offline, and an app is made offline,
there should be no offline event dispatched.
Also, WorkerPrivate should ignore offline events that cause no change
in its offline state.
2014-08-27 05:42:13 +03:00
Nikhil Marathe
6e8e93e87a
Bug 1017613 - Part 3 - fetch() IDL and stubs. r=baku
...
--HG--
extra : transplant_source : %B3%0A%E7%17m%5C%A5%DF%F4%1A%90Z%CF%B7%E2Y%CA%1E%21w
2014-07-24 18:30:07 -07:00
Peter Van der Beken
94ec1727fe
Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, create the named properties object from the binding code. r=bz.
...
--HG--
extra : rebase_source : 9147c989b0f6b5791d3e98041029e730036c3892
2014-09-05 22:36:36 +02:00
Kearwood (Kip) Gilbert
ecf1650979
Bug 1062406 - Part 1 - Change x and y parameters of window.scroll* CSSOM-View DOM calls from double to unrestricted double. r=bz
...
- WebIDL updated so that x and y parameters of window.scroll, window.scrollTo,
and window.ScrollBy are changed from "double" to "unrestricted double".
- Implemented mozilla::ToZeroIfNonfinite
- Updated nsGlobalWindow::Scroll, ScrollTo, and ScrollBy methods so that they
replace non-finite numbers with 0.
2014-09-09 12:02:00 +02:00
David Zbarsky
741e046aa5
Bug 1042654: Remove nsISpeechSynthesisGetter r=bz
2014-09-05 23:33:40 -04:00
David Zbarsky
04feefd891
Bug 1042654: Remove nsIDOMWindowB2G r=bz
2014-09-05 23:33:39 -04:00
David Zbarsky
c3a5b2e651
Bug 1042654: Remove nsIDOMWindowPerformance r=bz
2014-09-05 23:33:37 -04:00
David Zbarsky
783bce0025
Bug 1042654: Remove nsIInlineEventHandlers r=bz
2014-09-05 23:32:50 -04:00
David Zbarsky
6813ce3dab
Bug 1042654: Remove nsITouchEventReceiver r=bz
2014-09-05 23:32:49 -04:00
Boris Zbarsky
0bddd0696f
Bug 1017425. Make the "performance" attribute of Window [StoreInSlot]. r=peterv
2014-09-05 22:42:33 -04:00
Boris Zbarsky
586aabb26c
Bug 1017424 part 6. Remove the WindowOnWebIDL function. r=peterv
2014-09-05 14:28:45 -04:00