Nicholas Nethercote
3ddf3a726a
Bug 1203427 (part 5) - Add logging of timer firings. r=froydnj.
2015-09-10 00:50:51 -07:00
Nicholas Nethercote
df12e3ee72
Bug 1203427 (part 2) - Remove an argument to nsTimeout::InitTimer. r=mccr8.
...
The first argument to this method is always nsGlobalWindow::TimerCallback, and
hard-wiring this makes subsequent patches simpler.
2015-09-09 23:30:13 -07:00
Nicholas Nethercote
cfa7342ef8
Bug 1200484 (part 11) - Set source location when initializing an nsJSScriptTimeoutHandler from a Function. r=peterv.
...
Because we currently set the source location of a nsJSScriptTimeoutHandler when
initializing from an expression, but not when initializing from a function,
which is an undesirable inconsistency. This requires plumbing through the
JSContext in a few places.
2015-09-03 16:03:19 -07:00
Xidorn Quan
c216739c03
Bug 1196163 part 3 - Derive value of window.fullScreen for content process from the sizemode of puppet widget. r=smaug
2015-08-29 11:12:41 +10:00
Andrew McCreight
ae2833df55
Bug 1194270 - Tell the cycle collector about more fields of nsGlobalWindow. r=khuey
...
Also, remove what looks like an obsolete pre-cycle-collector comment about cyclical ownership.
2015-08-25 11:19:00 -04:00
Xidorn Quan
0728d2c159
Bug 1177155 part 1 - Defer resize reflow and freeze refresh driver during window fullscreen change. r=smaug
2015-08-27 23:14:49 +10:00
Masayuki Nakano
d36f87a852
Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug
2015-08-26 21:56:59 +09:00
Kaku Kuo
0c5a16e20e
Bug 1044102 - Part 1 - Implement ImageBitmap. r=roc, sr=smaug
2015-07-30 20:47:00 +02:00
Birunthan Mohanathas
a9a5aeb8bc
Bug 1182980 - Part 10: Use nsTHashtable::Iterator in DisconnectEventTargetObjects. r=khuey
2015-07-24 13:05:14 -07:00
Boris Zbarsky
980b01eecd
Bug 909154. Remove the prefixed mozRequestAnimationFrame and its accoutrements. r=bkelly
2015-07-20 10:14:24 -04:00
Kyle Huey
a1b3153fd0
Bug 1182316: Part 3 - Add assertions to most other WebIDL entry points, clean up nsIDOMJSWindow cruft. r=peterv
2015-07-16 22:10:35 -07:00
Kyle Huey
6a2353193d
Bug 1182316: Part 2 - Rework FORWARD_TO_OUTER_OR_THROW. r=peterv
2015-07-16 22:10:35 -07:00
Kyle Huey
85d7f3adf4
Bug 1182316: Part 1 - Remove FORWARD_TO_INNER_OR_THROW. r=peterv
2015-07-16 22:10:35 -07:00
Boris Zbarsky
b726cc28b3
Bug 1181916. Notify the debugger's onNewGlobalObject hook off a scriptrunner. r=bholley
2015-07-14 15:28:57 -04:00
Xidorn Quan
4d7e632089
Bug 1160014 part 1 - Implement common part of fullscreen transition. r=roc,smaug,dao
...
This patch implements the code which is shared by all platforms for
fullscreen transition.
It adds two prefs for the duration of fullscreen transition. They can
also be used to completely suppress the transition.
In addition, this patch uses the newly added prefs to suppress the
transition in all tests which use the DOM fullscreen.
2015-07-13 20:44:36 +10:00
Nigel Babu
fd84e932c3
Backed out 4 changesets (bug 1160014) for M2 bustages CLOSED TREE
...
Backed out changeset 87b00a9dac95 (bug 1160014)
Backed out changeset d4fa5c794e08 (bug 1160014)
Backed out changeset fca26897d534 (bug 1160014)
Backed out changeset b0b7f4f09ed2 (bug 1160014)
2015-07-11 10:49:25 +05:30
Xidorn Quan
7705aa3262
Bug 1160014 part 1 - Implement common part of fullscreen transition. r=roc,smaug,dao
...
This patch implements the code which is shared by all platforms for
fullscreen transition.
It adds two prefs for the duration of fullscreen transition. They can
also be used to completely suppress the transition.
In addition, this patch uses the newly added prefs to suppress the
transition in all tests which use the DOM fullscreen.
2015-07-11 10:08:59 +10:00
Xidorn Quan
16b5f7fb40
Bug 1181413 - Use enum to distinguish fullscreen request for Fullscreen Mode and Fullscreen API. r=smaug
2015-07-09 08:00:33 +10:00
Ben Kelly
e95de342a6
Bug 1173467 P2 Add nsGlobalWindow utility method to get private browsing boolean. r=ehsan
2015-06-26 19:36:40 -07:00
Cameron McCormack
5869f35dd7
Back out bug 1173467 (changesets a20799ebf48c, 9312c5cb756e, c0e8bba17067, af075443ab21, 30cefdf8d020) for assertion failures in test_app_protocol.html.
2015-06-27 11:57:17 +10:00
Ben Kelly
da2f1cbe30
Bug 1173467 P2 Add nsGlobalWindow utility method to get private browsing boolean. r=ehsan
2015-06-26 17:42:56 -07:00
Boris Zbarsky
9166cfa989
Bug 1176083. Remove the now-dead code for the XPCOM version of setTimeout/setInterval. r=smaug
...
I claim this code is dead because on the one hand it's no longer called from JS
(because Window is always on WebIDL bindings, but on the other hand it can't
really be called from C++ because it depends on examining the XPConnect call
information.
I think removing this completely, including from the IDL, is safe, because
nothing directly returns nsIDOMJSWindow, so anyone using its vtable would have
to QI to it and we're changing the IID.
2015-06-24 00:42:46 -07:00
Andrea Marchesini
eac68dba08
Bug 1170246 - Improving nsGlobalWindow::ConvertDialogOptions and adding some gTests, r=ehsan
2015-06-17 12:17:33 +01:00
Andrea Marchesini
a2bd5efebf
Bug 911972 - MessagePort and MessageChannel in workers, r=smaug, r=bent
2015-06-17 11:44:27 +01:00
Ryan VanderMeulen
cff9cb6b12
Backed out changeset 1d67d747b3eb (bug 911972) for frequent linux64 debug e10s test_post_message_advanced.html timeouts.
...
CLOSED TREE
2015-06-15 13:06:23 -04:00
Andrea Marchesini
1d96d95aba
Bug 911972 - MessagePort and MessageChannel in workers, r=smaug, r=bent
2015-06-15 14:08:25 +01:00
Xidorn Quan
960d5fd06f
Bug 1161802 part 2 - Split nsGlobalWindow::SetFullScreenInternal into two parts, one part before the window resizing, the other after. r=smaug,dao,margaret
...
This patch moves the "fullscreen" event from the original place to the
second part, which indicates two other changes:
1. When the event is triggered, the value of fullScreen would have been
toggled to the new value, which is different from before. The changes in
browser/../browser-fullScreen.js and mobile/../browser.js are for this.
2. This event is no longer preventDefault-able, since it is triggered
after the fullscreen change. This leads to the removal of the test and
the only place which calls preventDefault on that event. That place is
a workaround for bug 1079222. To address that problem, this patch fixes
the intrinsic issue via stoping handling the fullscreen change once it
finds we failed to change the state of the widget.
2015-06-10 23:13:12 +12:00
Kathy Brade
d3a1d9ec91
Bug 418986 - Resist fingerprinting by preventing exposure of screen and system info. r=mrbkap, r=heycam
2015-06-07 09:02:00 -04:00
Xidorn Quan
8c5947b028
Bug 1105939 part 5 - Rename parameter aRequireTrust of SetFullScreenInternal to aFullscreenMode for increased clarity. r=smaug
2015-06-04 13:49:34 +12:00
Boris Zbarsky
5ba33e1b5e
Bug 1163898 part 1. Give DOMEventTargetHelper a sane accessor for getting its nsIGlobalObject. r=smaug
2015-05-12 15:56:39 -04:00
Xidorn Quan
a821accd86
Bug 947854 part 2 - Avoid exiting fullscreen mode when exit from DOM fullscreen. r=smaug,dao
2015-05-06 10:04:31 +12:00
Gabor Krizsanits
3b9bdc299a
Bug 1101182 - One interpose call for one property access. r=bholley
2015-05-04 08:57:52 +02:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Boris Zbarsky
0a010b1519
Bug 1155946 part 2. Add mayResolve methods to DOM classes with resolve hooks. r=peterv
2015-04-28 12:25:55 -04:00
Boris Zbarsky
ab3eb9686a
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
789a3bf96e
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
241556554e
Bug 852944 - Gamepad API IPC; r=ted, r=baku
2015-04-23 15:05:29 -07:00
Ehsan Akhgari
4c51820549
Bug 1156101 - Mark nsGlobalWindow::mObserver as an nsRefPtr; r=baku
2015-04-20 08:35:38 -04:00
Ted Mielczarek
d09e61f5e2
bug 1155691 - Expose WindowRoot to chrome from window in webidl. r=smaug
2015-04-17 16:17:26 -04:00
Boris Zbarsky
2438ee5f63
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
71949fb5ca
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
3fb084fb78
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
13344864c0
Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc
2015-03-29 16:59:08 +02:00
Trevor Saunders
2cab0ab3a9
bug 1146027 - more final r=froydnj
2015-03-24 17:51:43 -04:00
Ehsan Akhgari
ea41d8de48
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
3a822d99b4
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
43eb6f1601
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
89789e6fc6
Bug 1058311 - Update client interface. Implement matchAll WindowClient. r=baku
2015-03-06 15:04:49 +02:00
Kearwood (Kip) Gilbert
10aca51e67
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.
2015-02-19 16:03:07 -08:00
Ehsan Akhgari
a6e999ddc5
Bug 1050456 - Part 2: Add a nsGlobalWindow::GetIsPrerendered helper
2015-03-04 01:31:08 -05:00