Jonathan Kew
badce210e1
Bug 1247335 - patch 3 - Check for potential DPI change after moving or resizing nsGlobalWindow. r=emk
2016-02-18 10:47:47 +00:00
J.C. Jones
70bc936cba
Bug 1231681 - "Implement window.u2f interface". r=baku, r=dkeeler
2016-02-09 16:43:00 +01:00
Kyle Huey
31dabb4558
Bug 1247117: De-namespace much of IndexedDB. r=baku
2016-02-16 13:46:08 -08:00
Boris Zbarsky
7655d2a3f8
Bug 1245554. Window's named properties object should not claim to have duplicates of a given property name if it has multiple iframes with that name. r=peterv
...
The web platform test was pretty buggy in a few ways:
1) It claimed that "bar" should be non-writable and enumerable. This
explicitly contradicts the spec:
http://heycam.github.io/webidl/#named-properties-object-getownproperty step 3
substep 8 sets [[Writable]] to true, and
https://html.spec.whatwg.org/multipage/browsers.html#named-access-on-the-window-object
explicitly says these properties are unenumerable.
2) It claimed that "constructor" should be exposed on the named properties
object. But the named property visibility algorithm obviously returns false
for that property name, so it should not be exposed.
2016-02-09 17:40:45 -05:00
Jonathan Kew
08f9b29485
Bug 1240085
- Revert to CSS-pixel units for screenX, screenY, moveTo() APIs, and adjust the origin for secondary displays with differing resolution to avoid overlapping coordinate spaces. r=emk
2016-02-05 16:29:33 +00:00
Kyle Huey
9d72cec3c2
Bug 1245950: Privately inherit from legacy interfaces nsIDOMWindow/nsIDOMWindowInternal. r=smaug
...
If you still need to get to these from C++ for some reason, you need to go through QueryInterface.
--HG--
extra : rebase_source : 3f0a71db0fb1dc48411aee19734446ea4f6e2e82
2016-02-05 10:12:25 -08:00
Kyle Huey
8fc93f94a2
Bug 1245306: Devirtualize RefreshCompartmentPrincipal. r=smaug
2016-02-03 13:30:45 -08:00
Kyle Huey
84bb8c423e
Bug 1245185: Remove dead event handling code from nsPIDOMWindow<T>. r=smaug
2016-02-03 13:30:45 -08:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Tom Schuster
4d6aaf2f25
Bug 1242214 - Rename JSPropertyDescriptor JS::PropertyDescriptor everywhere else. r=smaug
2016-01-28 11:28:04 +01:00
Jonathan Kew
46b5136c09
Bug 890156 - patch 6 - Update window placement code to work with desktop pixels, for per-monitor DPI support on Windows. r=emk
2015-12-03 13:19:50 +00:00
Xidorn Quan
42b9ed4bfc
Bug 1189622 part 2 - Allow widget's MakeFullScreen to fail, and call FinishFullscreenChange directly if that happens. r=smaug
...
--HG--
extra : source : a851e10d72b71dbd7bab21e3e6ef80214f680b9b
2016-01-12 15:18:47 +11:00
Eitan Isaacson
d0d4c1ba6a
Bug 1230533 - Cancel speech when controlling window goes away. r=smaug
...
Don't allow bfcache when there is an active or queued utterance in the window.
2016-01-05 18:01:24 -08:00
Kearwood (Kip) Gilbert
0c83ce5c05
Bug 1182048 - Part 2: Implement e10s support for WebVR,r=vlad
2015-09-17 14:23:13 -07:00
Ms2ger
4edb68ff1d
Bug 1232598 - Remove the aCalleePrincipal argument to nsGlobalWindow::OpenInternal; r=jst
2015-12-18 11:08:19 +01:00
Nathan Froyd
73e5032ef9
Bug 1218454 - part 1 - move DialogValueHolder::Get out-of-line; r=bz
...
No reason for one ::Get to be out-of-line and the other not. This
change means that nsGlobalWindow.h doesn't depend on nsContentUtils.
2015-10-26 12:55:45 -04:00
Boris Zbarsky
1fec018fcb
Bug 1224007 part 4. Fix some cases in which ErrorResult instances are destroyed without doing anything useful with exceptions on them. r=peterv
2015-11-20 16:29:41 -05:00
Jan de Mooij
73b313f3b4
Bug 1125423 part 6 - Remove nsGlobalWindow::OuterObject and ObjectToOuterObjectValue. r=bz
2015-11-06 19:03:52 +01:00
Nicholas Nethercote
b6011893da
Bug 1187782 (part 4) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey.
...
--HG--
extra : rebase_source : 01299d13b755c9abf6706cd8b44448e980ff431f
2015-10-26 22:22:31 -07:00
Nicholas Nethercote
499c07231c
Bug 1187782 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey.
...
--HG--
extra : rebase_source : e731e832371a92b40b1dd2591dffae1c5a682b3b
2015-10-26 22:21:51 -07:00
Carsten "Tomcat" Book
88714ae0a0
Backed out changeset 90edb8c62dee (bug 1214293) for Valgrind test failures on a CLOSED TREE
2015-10-27 15:39:16 +01:00
Neil Deakin
a38d52b60a
Bug 1214293, initialize show focus rings state properly in all child frames, r=smaug
2015-10-27 08:53:00 -04:00
Xidorn Quan
1a693cf130
Bug 962249 part 3 - Add Window.scrollMin{X,Y} (chrome-only) and convert most of scrollMaxX uses and part of scrollMaxY uses to combinations with the new properties. r=roc,bz
...
--HG--
extra : source : a07399cae357020c4f6dd33dac16eae82882cc83
2015-10-27 13:38:02 +09:00
Kyle Huey
c7d3c4e21a
Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz
2015-10-26 14:37:32 -07:00
William Chen
16cbe794df
Bug 920734 - Part 1: Implement window.orientation and window.onorientationchange. r=baku
...
--HG--
extra : rebase_source : 1ca2e3a29733762d4bb2c335a0d6fcf5d7b03c0f
2015-10-23 21:37:28 -07:00
Bobby Holley
3f0e560af7
Bug 1216072 - Pass aCallerIsChrome in more places. r=bz
2015-10-19 13:57:01 -07:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Bobby Holley
cfa69d93e9
Bug 1215398 - Hoist the IsCallerChrome call in CanMoveResizeWindows to the script-only entry points. r=bz
2015-10-16 16:35:30 -07:00
Bobby Holley
79e78b4bf9
Bug 1214491 - Rejigger entry points for nsGlobalWindow::Close. r=bz
2015-10-14 16:23:23 -07:00
Andrew McCreight
bc16e7c355
Bug 1212148 - Outline DialogValueHolder::Get() and create the variant directly. r=bz
2015-10-07 13:11:09 -07:00
Eddy Bruel
41c0e5355c
Bug 1178721 - Implement SuspendWorkersForWindow;r=khuey
2015-10-07 12:20:59 +02:00
Bobby Holley
e91aae8249
Bug 1208622 - Separate API entry points. r=bz
2015-09-30 16:31:46 -07:00
Nigel Babu
2ea092cec1
Backed out changeset 5f02a9d37e56 (bug 1208622) for windows build bustage
...
CLOSED TREE
2015-09-29 12:10:45 +05:30
Bobby Holley
46f21127a1
Bug 1208622 - Separate API entry points. r=bz
2015-09-28 22:51:30 -07:00
Nicholas Nethercote
f429eae6a5
Bug 1203427 (part 5) - Add logging of timer firings. r=froydnj.
2015-09-10 00:50:51 -07:00
Nicholas Nethercote
cfe5f5f4f8
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.
--HG--
extra : rebase_source : 02bf490ff6dd4e5d5cafe9ce9266dc978b26c7e3
2015-09-09 23:30:13 -07:00
Nicholas Nethercote
9d90c4df35
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.
--HG--
extra : rebase_source : 247b510d99164c3139d381c4f13aa6c493a52043
2015-09-03 16:03:19 -07:00
Xidorn Quan
1307ce03af
Bug 1196163 part 3 - Derive value of window.fullScreen for content process from the sizemode of puppet widget. r=smaug
...
--HG--
extra : source : a5467f9cc338445857242dcdb4e7a2a95f290da0
2015-08-29 11:12:41 +10:00
Andrew McCreight
b5f56d32a3
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.
--HG--
extra : histedit_source : a76351d706ada84e7257bdc3b592ac54e8bbec27
2015-08-25 11:19:00 -04:00
Xidorn Quan
02e64b9ce8
Bug 1177155 part 1 - Defer resize reflow and freeze refresh driver during window fullscreen change. r=smaug
...
--HG--
extra : source : 4b2ad889658bdb2b0f03c9476db0ceb2d81611e9
2015-08-27 23:14:49 +10:00
Masayuki Nakano
0d22745cda
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
9c3f995e43
Bug 1044102 - Part 1 - Implement ImageBitmap. r=roc, sr=smaug
...
--HG--
extra : rebase_source : c26f327064125a6d5690b03571f25ea0e25347eb
2015-07-30 20:47:00 +02:00
Birunthan Mohanathas
ba1efd85d0
Bug 1182980 - Part 10: Use nsTHashtable::Iterator in DisconnectEventTargetObjects. r=khuey
2015-07-24 13:05:14 -07:00
Boris Zbarsky
a435429163
Bug 909154. Remove the prefixed mozRequestAnimationFrame and its accoutrements. r=bkelly
2015-07-20 10:14:24 -04:00
Kyle Huey
74f03750da
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
837b076d57
Bug 1182316: Part 2 - Rework FORWARD_TO_OUTER_OR_THROW. r=peterv
2015-07-16 22:10:35 -07:00
Kyle Huey
df53dee024
Bug 1182316: Part 1 - Remove FORWARD_TO_INNER_OR_THROW. r=peterv
2015-07-16 22:10:35 -07:00
Boris Zbarsky
76bfe95e04
Bug 1181916
. Notify the debugger's onNewGlobalObject hook off a scriptrunner. r=bholley
2015-07-14 15:28:57 -04:00
Xidorn Quan
de00198603
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.
--HG--
extra : source : 54a8b3b7351af89049825598891fd3a1f98d18af
2015-07-13 20:44:36 +10:00
Nigel Babu
64f3815bd7
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
09d4d46e81
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.
--HG--
extra : source : a64f71ea9ceb37acbbfc4e4023880fb244daa738
2015-07-11 10:08:59 +10:00
Xidorn Quan
2a2bfd608e
Bug 1181413
- Use enum to distinguish fullscreen request for Fullscreen Mode and Fullscreen API. r=smaug
...
--HG--
extra : source : 71db9f40101defdda86a4852e67dd6d1e6165c06
2015-07-09 08:00:33 +10:00
Ben Kelly
39905c5846
Bug 1173467
P2 Add nsGlobalWindow utility method to get private browsing boolean. r=ehsan
2015-06-26 19:36:40 -07:00
Cameron McCormack
5ccbe11d06
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
37b148368d
Bug 1173467
P2 Add nsGlobalWindow utility method to get private browsing boolean. r=ehsan
2015-06-26 17:42:56 -07:00
Boris Zbarsky
506ddeedf8
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
59999b8656
Bug 1170246 - Improving nsGlobalWindow::ConvertDialogOptions and adding some gTests, r=ehsan
2015-06-17 12:17:33 +01:00
Andrea Marchesini
8372e7d29d
Bug 911972 - MessagePort and MessageChannel in workers, r=smaug, r=bent
...
--HG--
rename : dom/base/MessageChannel.cpp => dom/messagechannel/MessageChannel.cpp
rename : dom/base/MessageChannel.h => dom/messagechannel/MessageChannel.h
rename : dom/base/MessagePort.cpp => dom/messagechannel/MessagePort.cpp
rename : dom/base/MessagePort.h => dom/messagechannel/MessagePort.h
rename : dom/base/MessagePortList.cpp => dom/messagechannel/MessagePortList.cpp
rename : dom/base/MessagePortList.h => dom/messagechannel/MessagePortList.h
rename : dom/base/test/iframe_messageChannel_chrome.html => dom/messagechannel/tests/iframe_messageChannel_chrome.html
rename : dom/base/test/iframe_messageChannel_cloning.html => dom/messagechannel/tests/iframe_messageChannel_cloning.html
rename : dom/base/test/iframe_messageChannel_pingpong.html => dom/messagechannel/tests/iframe_messageChannel_pingpong.html
rename : dom/base/test/iframe_messageChannel_post.html => dom/messagechannel/tests/iframe_messageChannel_post.html
rename : dom/base/test/test_messageChannel.html => dom/messagechannel/tests/test_messageChannel.html
rename : dom/base/test/test_messageChannel.xul => dom/messagechannel/tests/test_messageChannel.xul
rename : dom/base/test/test_messageChannel_cloning.html => dom/messagechannel/tests/test_messageChannel_cloning.html
rename : dom/base/test/test_messageChannel_pingpong.html => dom/messagechannel/tests/test_messageChannel_pingpong.html
rename : dom/base/test/test_messageChannel_post.html => dom/messagechannel/tests/test_messageChannel_post.html
rename : dom/base/test/test_messageChannel_pref.html => dom/messagechannel/tests/test_messageChannel_pref.html
rename : dom/base/test/test_messageChannel_start.html => dom/messagechannel/tests/test_messageChannel_start.html
rename : dom/base/test/test_messageChannel_transferable.html => dom/messagechannel/tests/test_messageChannel_transferable.html
rename : dom/base/test/test_messageChannel_unshipped.html => dom/messagechannel/tests/test_messageChannel_unshipped.html
2015-06-17 11:44:27 +01:00
Ryan VanderMeulen
c366b2c3f3
Backed out changeset 1d67d747b3eb (bug 911972) for frequent linux64 debug e10s test_post_message_advanced.html timeouts.
...
CLOSED TREE
--HG--
rename : dom/messagechannel/MessageChannel.cpp => dom/base/MessageChannel.cpp
rename : dom/messagechannel/MessageChannel.h => dom/base/MessageChannel.h
rename : dom/messagechannel/MessagePort.cpp => dom/base/MessagePort.cpp
rename : dom/messagechannel/MessagePort.h => dom/base/MessagePort.h
rename : dom/messagechannel/MessagePortList.cpp => dom/base/MessagePortList.cpp
rename : dom/messagechannel/MessagePortList.h => dom/base/MessagePortList.h
rename : dom/messagechannel/tests/iframe_messageChannel_chrome.html => dom/base/test/iframe_messageChannel_chrome.html
rename : dom/messagechannel/tests/iframe_messageChannel_cloning.html => dom/base/test/iframe_messageChannel_cloning.html
rename : dom/messagechannel/tests/iframe_messageChannel_pingpong.html => dom/base/test/iframe_messageChannel_pingpong.html
rename : dom/messagechannel/tests/iframe_messageChannel_post.html => dom/base/test/iframe_messageChannel_post.html
rename : dom/messagechannel/tests/test_messageChannel.html => dom/base/test/test_messageChannel.html
rename : dom/messagechannel/tests/test_messageChannel.xul => dom/base/test/test_messageChannel.xul
rename : dom/messagechannel/tests/test_messageChannel_cloning.html => dom/base/test/test_messageChannel_cloning.html
rename : dom/messagechannel/tests/test_messageChannel_pingpong.html => dom/base/test/test_messageChannel_pingpong.html
rename : dom/messagechannel/tests/test_messageChannel_post.html => dom/base/test/test_messageChannel_post.html
rename : dom/messagechannel/tests/test_messageChannel_pref.html => dom/base/test/test_messageChannel_pref.html
rename : dom/messagechannel/tests/test_messageChannel_start.html => dom/base/test/test_messageChannel_start.html
rename : dom/messagechannel/tests/test_messageChannel_transferable.html => dom/base/test/test_messageChannel_transferable.html
rename : dom/messagechannel/tests/test_messageChannel_unshipped.html => dom/base/test/test_messageChannel_unshipped.html
2015-06-15 13:06:23 -04:00
Andrea Marchesini
9b1ac68ebb
Bug 911972 - MessagePort and MessageChannel in workers, r=smaug, r=bent
...
--HG--
rename : dom/base/MessageChannel.cpp => dom/messagechannel/MessageChannel.cpp
rename : dom/base/MessageChannel.h => dom/messagechannel/MessageChannel.h
rename : dom/base/MessagePort.cpp => dom/messagechannel/MessagePort.cpp
rename : dom/base/MessagePort.h => dom/messagechannel/MessagePort.h
rename : dom/base/MessagePortList.cpp => dom/messagechannel/MessagePortList.cpp
rename : dom/base/MessagePortList.h => dom/messagechannel/MessagePortList.h
rename : dom/base/test/iframe_messageChannel_chrome.html => dom/messagechannel/tests/iframe_messageChannel_chrome.html
rename : dom/base/test/iframe_messageChannel_cloning.html => dom/messagechannel/tests/iframe_messageChannel_cloning.html
rename : dom/base/test/iframe_messageChannel_pingpong.html => dom/messagechannel/tests/iframe_messageChannel_pingpong.html
rename : dom/base/test/iframe_messageChannel_post.html => dom/messagechannel/tests/iframe_messageChannel_post.html
rename : dom/base/test/test_messageChannel.html => dom/messagechannel/tests/test_messageChannel.html
rename : dom/base/test/test_messageChannel.xul => dom/messagechannel/tests/test_messageChannel.xul
rename : dom/base/test/test_messageChannel_cloning.html => dom/messagechannel/tests/test_messageChannel_cloning.html
rename : dom/base/test/test_messageChannel_pingpong.html => dom/messagechannel/tests/test_messageChannel_pingpong.html
rename : dom/base/test/test_messageChannel_post.html => dom/messagechannel/tests/test_messageChannel_post.html
rename : dom/base/test/test_messageChannel_pref.html => dom/messagechannel/tests/test_messageChannel_pref.html
rename : dom/base/test/test_messageChannel_start.html => dom/messagechannel/tests/test_messageChannel_start.html
rename : dom/base/test/test_messageChannel_transferable.html => dom/messagechannel/tests/test_messageChannel_transferable.html
rename : dom/base/test/test_messageChannel_unshipped.html => dom/messagechannel/tests/test_messageChannel_unshipped.html
2015-06-15 14:08:25 +01:00
Xidorn Quan
d7dd0eac3b
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.
--HG--
extra : source : 78f78a62ce31b33413f0b52532eb22e5712cb646
2015-06-10 23:13:12 +12:00
Kathy Brade
8b3f3fad35
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
1b637b68eb
Bug 1105939 part 5 - Rename parameter aRequireTrust of SetFullScreenInternal to aFullscreenMode for increased clarity. r=smaug
...
--HG--
extra : source : c52a8e62bc8d0d9017f17ed5d338bc32f2baf10e
2015-06-04 13:49:34 +12:00
Boris Zbarsky
068f758b05
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
2ae6dcc764
Bug 947854 part 2 - Avoid exiting fullscreen mode when exit from DOM fullscreen. r=smaug,dao
...
--HG--
extra : source : 44f82c49ce6f98bc996be41c27a00af99d53215f
2015-05-06 10:04:31 +12:00
Gabor Krizsanits
0d0e444a6c
Bug 1101182 - One interpose call for one property access. r=bholley
2015-05-04 08:57:52 +02:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Boris Zbarsky
864f723c0c
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
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
Birunthan Mohanathas
775a16fc82
Bug 1046420 - Part 1: Make MozSelfSupport a Window property instead of a global property. r=bz,wchen
2014-08-26 07:11:15 -07:00
Kearwood (Kip) Gilbert
9edca3c9e4
Bug 1022818 - Part 2: Implement Smooth Scrolling. r=bz
...
- Updated ScrollTo method in nsGlobalWindow to accept a
mozilla::dom::ScrollOptions parameter to select between the instant
and smooth MSD motion.
- Updated WebIDL binding boilerplate scrolling functions in nsGlobalWindow
to pass the correct value of mozilla::dom::ScrollBehavior to the
implementation and functions, activating smooth scrolling.
- These functions will need to be updated again to support the scroll-behavior
CSS property in Bug 1010538.
--HG--
extra : rebase_source : 7c9ce94d09fed5c4aea63442d683876c0a9a2e50
2014-08-05 15:01:34 -07:00
Kearwood (Kip) Gilbert
351eec0b98
Bug 1022818 - Part 1: Update webidl interfaces. r=bz
...
- Extended the Element and Window webidl interfaces as described in the
CSSOM-View smooth-scrolling specification.
- The Element.scrollTop and Element.scrollLeft changes have been omitted
until either WebIDL is extended to allow properties to have union datatypes
that contain dictionaries or the CSSOM-View smooth-scroll specification
is upddated. This will not prevent the other interface changes from being
useful.
- Implemented wrapper functions for the nsGlobalWindow to connect to the new
WebIDL bindings. The ScrollOptions parameters are ignored in this patch,
and used in Part 3 of this patch series.
--HG--
extra : rebase_source : db617cb63780e039ad69e4ed100c13042c676949
2014-08-05 15:01:32 -07:00
Bobby Holley
3f0858f342
Bug 951991 - Assert against calling GetCurrentInnerWindow on an inner. r=smaug
...
The current convention is that this returns null when invoked on an inner, which
callers may or may not handle correctly. But when we start using GetEntryGlobal,
we'll end up with a lot of inners where we used to get outers, so we should get
strict about this now.
2014-08-19 12:02:05 -07:00
Ed Morley
42cede9331
Backed out changeset 1a2dcc132344 (bug 1022818) for B2G failures in test_scroll_behavior.html; CLOSED TREE
2014-08-13 16:31:11 +01:00
Ed Morley
65c1fd3bbc
Backed out changeset d24b367f3ac4 (bug 1022818)
2014-08-13 16:30:50 +01:00
Kearwood (Kip) Gilbert
0befdfe863
Bug 1022818 - Part 2: Implement Smooth Scrolling. r=bz
...
- Updated ScrollTo method in nsGlobalWindow to accept a
mozilla::dom::ScrollOptions parameter to select between the instant
and smooth MSD motion.
- Updated WebIDL binding boilerplate scrolling functions in nsGlobalWindow
to pass the correct value of mozilla::dom::ScrollBehavior to the
implementation and functions, activating smooth scrolling.
- These functions will need to be updated again to support the scroll-behavior
CSS property in Bug 1010538.
2014-07-21 11:19:00 -04:00
Kearwood (Kip) Gilbert
cbede6f09b
Bug 1022818 - Part 1: Update webidl interfaces. r=bz
...
- Extended the Element and Window webidl interfaces as described in the
CSSOM-View smooth-scrolling specification.
- The Element.scrollTop and Element.scrollLeft changes have been omitted
until either WebIDL is extended to allow properties to have union datatypes
that contain dictionaries or the CSSOM-View smooth-scroll specification
is upddated. This will not prevent the other interface changes from being
useful.
- Implemented wrapper functions for the nsGlobalWindow to connect to the new
WebIDL bindings. The ScrollOptions parameters are ignored in this patch,
and used in Part 3 of this patch series.
2014-07-21 11:04:00 -04:00
Andrea Marchesini
cc9b09f336
Bug 1043106 - StorageEvent should have the storageArea of the correct window, r=smaug
2014-08-13 14:56:25 +02:00
Ehsan Akhgari
beaa1d2306
Bug 1048247 - Fix more bad implicit constructors in DOM; r=smaug
2014-08-05 09:19:51 -04:00
Boris Zbarsky
531e8ee54e
Bug 1031945. Don't expose showModalDialog on Window if it's preffed off. r=smaug
2014-07-26 01:41:10 -04:00
Boris Zbarsky
153c7d3082
Back out bug 1031945 for now because we have silly pref settings on mobile and dumb tests. a=orange
2014-07-26 03:30:56 -04:00
Boris Zbarsky
8af69d9ae9
Bug 1031945. Don't expose showModalDialog on Window if it's preffed off. r=smaug
2014-07-26 01:41:10 -04:00
Andrea Marchesini
3d909148b5
Bug 660237 - implement nsIDOMStorage with a proxy, r=bzbarsky, r=mayhemer
2014-07-23 01:07:12 -04:00
Boris Zbarsky
ef4d83b2a3
Bug 832014 part 3. Start using nsLocation for the Location interface in bindings. r=peterv
2014-07-11 19:30:27 -04:00
Benoit Jacob
18c3e0073a
Bug 1035394 - Fix dangerous public destructors in dom - r=ehsan
2014-07-08 17:23:17 -04:00
Kyle Huey
a1d1526ae4
Bug 1031051: Part 5 - Migrate PopupBlockedEvent to the WebIDL code generator. r=smaug
2014-06-30 16:02:01 -07:00
Ms2ger
2e3f5e7be4
Bug 968804 - Part u: Add outer window assertions to OpenInternal; r=khuey
2014-06-29 17:36:03 +02:00
Ms2ger
6623cab112
Bug 968804 - Part t: Add outer window assertions to OpenNoNavigate; r=khuey
2014-06-29 17:36:03 +02:00
Ms2ger
65a727d2f1
Bug 968804 - Part s: Add inner window assertions to CloneStorageEvent; r=khuey
2014-06-29 17:36:03 +02:00
Ms2ger
91b523c2d5
Bug 968804 - Part q: Add inner window assertions to the gamepad methods; r=khuey
2014-06-29 17:36:02 +02:00
Ms2ger
a4e50b6951
Bug 968804 - Part p: Add outer window assertions to SetFullScreenInternal; r=khuey
2014-06-29 17:36:02 +02:00
Ms2ger
1aae0e2640
Bug 968804 - Part o: Add inner window assertions to RefreshCompartmentPrincipal; r=khuey
2014-06-29 17:36:01 +02:00
Ms2ger
8cacf106f9
Bug 968804 - Part n: Split nsGlobalWindow::GetFullScreen into a forwarding and an asserting part; r=khuey
2014-06-29 17:35:56 +02:00
Ms2ger
bd952bff39
Bug 968804 - Part m: Add outer window assertions to DispatchCustomEvent; r=khuey
2014-06-29 17:31:13 +02:00
Ms2ger
835be66476
Bug 968804 - Part l: Add outer window assertions to DispatchResizeEvent; r=khuey
2014-06-29 17:31:12 +02:00
Ms2ger
e1edc26347
Bug 968804 - Part k: Add outer window assertions to GetScrollXY; r=khuey
2014-06-29 17:31:12 +02:00
Ms2ger
59b3065756
Bug 968804 - Part h: Add inner window assertions to DefineArgumentsProperty; r=khuey
2014-06-29 17:31:09 +02:00
Benoit Jacob
ec742680c8
Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan
2014-06-23 15:56:07 -04:00
Boris Zbarsky
dfe8c38082
Bug 1009675 part 3. Return WebIDL 'object' values as handles. r=peterv
2014-06-11 16:26:52 -04:00
Boris Zbarsky
bc1e511e33
Bug 1009675 part 2. Return WebIDL 'any' values as handles. r=peterv
2014-06-11 16:26:52 -04:00
Peter Van der Beken
678d3c183c
Bug 1018085 - "ASSERTION: Inner window supports nsWrapperCache, fix WrapObject!". r=bz
...
--HG--
extra : rebase_source : f988ef0d99419ac66064a03beaa51f4d2215f146
2014-06-06 14:54:35 +02:00
Vivien Nicolas
bc803a18da
Bug 1015887 - Expose realFrameElement to Chrome JS. r=bholley
2014-06-04 20:11:05 +02:00
Ryan VanderMeulen
3d3ce28f0f
Backed out 5 changesets (bug 1015871, bug 1020257, bug 1015887, bug 1005888, bug 1015894) for desktop B2G mochitest failures on a CLOSED TREE.
...
Backed out changeset dbcb9974b640 (bug 1020257)
Backed out changeset 3220b7b2efc9 (bug 1015894)
Backed out changeset 4e23647ae247 (bug 1015887)
Backed out changeset 59df0cdacc15 (bug 1015871)
Backed out changeset e7124b07804b (bug 1005888)
2014-06-04 16:07:06 -04:00
Vivien Nicolas
34a46b6121
Bug 1015887 - Expose realFrameElement to Chrome JS. r=bholley
2014-06-04 20:11:05 +02:00
Boris Zbarsky
da05bf53a8
Bug 989584. Allow sites to set window.opener to any value. r=peterv
2014-06-03 11:38:37 -04:00
Robert O'Callahan
cbb8fdebfc
Bug 1015664
. Part 1: Remove NS_HIDDEN_() usage. r=bsmedberg
2014-06-03 00:08:21 +12:00
Ryan VanderMeulen
4a08636d20
Merge inbound to m-c on a CLOSED TREE.
2014-05-27 16:23:41 -04:00
Reuben Morais
978af66e3d
Bug 952486 - Add a CheckPermissions extended attribute to WebIDL. r=bz
2014-05-25 15:31:07 -03:00
Fabrice Desré
2deb233e1d
Bug 952486 - backout for breaking all device and emulator builds (keeping dom reviewer to land the backout...) r=bz
2014-05-26 12:11:52 -07:00
Reuben Morais
1d0db64ab8
Bug 952486 - Add a CheckPermissions extended attribute to WebIDL. r=bz
2014-05-25 15:31:07 -03:00
Andrea Marchesini
447dc76d13
Bug 1014657 - Port DOMStorageEvent to WebIDL and remove nsIDOMStorageEvent, r=smaug, f=ms2ger
2014-05-23 08:33:24 +01:00
Trevor Saunders
78966cf36b
bug 966059 - add nsIDocShell::GetWindow and GetDocument r=smaug
2014-01-09 21:03:47 -05:00
Tim Taubert
b4db14fef7
Bug 990812 - Add nsIDOMChromeWindow.getGroupMessageManager() API r=smaug
2014-05-23 14:51:56 +02:00
Boris Zbarsky
003d583e4f
Bug 999315. Revert alert(undefined) to showing the string "undefined" again, like it used to, pending the spec getting sorted out. r=peterv
2014-05-20 16:07:17 -04:00
Ms2ger
d66408293b
Bug 968804 - Part g: Add outer window assertions to AreDialogsEnabled; r=peterv
2014-05-20 21:50:59 +02:00
Ms2ger
6487100cee
Bug 968804 - Part f: Add outer window assertions to DispatchDOMWindowCreated; r=peterv
2014-05-20 21:50:59 +02:00
Ms2ger
cceaae56d4
Bug 968804 - Part e: Add outer window assertions to PreloadLocalStorage; r=peterv
2014-05-20 21:50:58 +02:00
Ms2ger
6bc9e22bcd
Bug 968804 - Part d: Add outer window assertions to SetInitialPrincipalToSubject; r=peterv
2014-05-20 21:50:58 +02:00
Ms2ger
b91e2b5f83
Bug 968804 - Part c: Add outer window assertions to WouldReuseInnerWindow; r=peterv
2014-05-20 21:50:58 +02:00
Ms2ger
529d64e30b
Bug 968804 - Part b: Add outer window assertions to {Can,Force,Final}Close; r=peterv
2014-05-20 21:50:58 +02:00
Ms2ger
d02b9c0ccb
Bug 968804 - Part a: Add inner window assertions to DETH and {Add,Remove}EventTargetObject; r=peterv
2014-05-20 21:50:57 +02:00
Mason Chang
17ad25a9b0
Bug 979949 - Expose compositor fill ratio to JS for automation. r=benwa,mrbkap.
2014-05-08 17:32:00 +02:00
Aryeh Gregor
780bdf4c9b
Bug 950386 - Move mozilla::Selection to mozilla::dom::Selection; r=ehsan
2014-04-10 19:09:40 +03:00
Bobby Holley
5c862b968a
Bug 997067 - Build BuildURIFromBase into SecurityCheckURL and condense logic. r=bz
...
This has a tiny behavior change in the case of self-navigation by a non-current
inner, but I think that the new behavior is more correct.
2014-04-17 00:02:36 -07:00
Peter Van der Beken
6252bb3b9f
Bug 993706 - Remove nsGlobalWindow::mInnerWindowHolder. r=bz.
...
--HG--
extra : rebase_source : 30ac7fe2d93df5674dca6d0a1594e05eb7790d82
2014-04-01 21:15:38 +02:00
Peter Van der Beken
c5601a6449
Bug 993688 - Mark Window.document StoreInSlot. r=bz.
...
--HG--
extra : rebase_source : 016a4cfc9945dd83b6f14d9ce6cc12e2cb5d6fe0
2014-02-05 22:09:19 +01:00
Boris Zbarsky
79dab91ff6
Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
...
This patch was mostly generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""
and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Peter Van der Beken
073e442f7f
Bug 993047 - Fix some style nits from f6b0e518f6d2.
...
--HG--
extra : rebase_source : 9cb1f3c793b066aed1836c08cce786554d61cfd2
2014-04-08 20:39:38 +02:00
Peter Van der Beken
ff7b3636c3
Bug 993047 - Support outerizing and addProperty hooks on globals with WebIDL bindings. r=bz.
...
--HG--
extra : rebase_source : cc8f013525dca74a4d7926f3cbb301ac42aab406
2014-02-15 22:12:33 +01:00
Peter Van der Beken
65e4bfa394
Bug 983619 - Add Window.getInterface/QueryInterface to WebIDL. r=bz.
...
--HG--
extra : rebase_source : 4a4f368ba4f84e6e5104522181eb3043efd7ed38
2014-02-15 22:12:33 +01:00
Peter Van der Beken
9bbd30a4ac
Bug 990158 - Make inner windows use their wrapper cache. r=bz.
...
--HG--
extra : rebase_source : bc040c75280bb45ae7ab0ed302130ff5d7178153
2013-11-09 11:20:22 +01:00
Peter Van der Beken
3aacc729a0
Fix rooting hazards from 4fbe5c6db773 (Bug 990475).
2014-04-08 13:40:37 +02:00
Peter Van der Beken
f684f5c97e
Bug 990475 - Add WebIDL APIs for WindowModal. r=bz.
...
--HG--
rename : content/media/webspeech/synth/test/test_setup.html => content/media/webspeech/synth/test/file_setup.html
rename : content/media/webspeech/synth/test/test_speech_queue.html => content/media/webspeech/synth/test/file_speech_queue.html
rename : content/media/webspeech/synth/test/test_speech_simple.html => content/media/webspeech/synth/test/file_speech_simple.html
extra : rebase_source : c2d23e5c973c117ab3fb66b2a98a451acfabc7e5
2014-02-05 22:09:18 +01:00
Peter Van der Beken
a5967a49cb
Back out 75c95dac7fe0 (bug 984497) and f1b0d3d13755 (bug 990475) to fix bustage on a CLOSED TREE.
...
--HG--
extra : rebase_source : a63315cd428faeb95464f6ad76946d1c0c6d36c3
2014-04-07 22:18:53 +02:00
Peter Van der Beken
af56e76f7c
Bug 990475 - Add WebIDL APIs for WindowModal. r=bz.
...
--HG--
rename : content/media/webspeech/synth/test/test_setup.html => content/media/webspeech/synth/test/file_setup.html
rename : content/media/webspeech/synth/test/test_speech_queue.html => content/media/webspeech/synth/test/file_speech_queue.html
rename : content/media/webspeech/synth/test/test_speech_simple.html => content/media/webspeech/synth/test/file_speech_simple.html
extra : rebase_source : f21f16a257d39a108233dd8106b33543110df9b5
2014-02-05 22:09:18 +01:00
Blake Kaplan
266c6f17eb
Bug 971222 - Small cleanup around prompt code. r=bzbarsky
2014-04-04 14:50:42 -07:00
Matthew Gregan
69f11197c5
Bug 927245 - Remove deprecated Audio Data API implementation. r=cajbir,smaug
2014-04-03 10:53:39 +13:00
Masayuki Nakano
f7c91f6586
Bug 989213 part.2 Rename nsEventNameList.h to mozilla/EventNameList.h r=smaug
...
--HG--
rename : dom/events/nsEventNameList.h => dom/events/EventNameList.h
2014-04-01 20:42:12 +09:00
Masayuki Nakano
930436ef24
Bug 984269 Rename nsDOMEventTargetHelper to mozilla::DOMEventTargetHelper r=smaug
...
--HG--
rename : dom/events/nsDOMEventTargetHelper.cpp => dom/events/DOMEventTargetHelper.cpp
rename : dom/events/nsDOMEventTargetHelper.h => dom/events/DOMEventTargetHelper.h
2014-04-01 15:13:50 +09:00
Ehsan Akhgari
b344638c9b
Bug 983920 - Port window.sidebar and window.external to WebIDL; r=bzbarsky
2014-03-28 00:03:03 -04:00
Ms2ger
c42091817b
Bug 973367 - Inline nsGlobalWindow::CreateOuterObject; r=bholley
2014-03-27 21:05:14 +01:00
Masayuki Nakano
fbf7cdeb19
Bug 981261 part.5 Rename nsEventListenerManager to mozilla::EventListenerManager r=smaug
...
--HG--
rename : dom/events/nsEventListenerManager.cpp => dom/events/EventListenerManager.cpp
rename : dom/events/nsEventListenerManager.h => dom/events/EventListenerManager.h
2014-03-17 15:56:53 +09:00
Blake Kaplan
6e210ea159
Bug 982906 - No free lunches! r=bzbarsky
2014-03-13 17:08:58 -04:00
Masayuki Nakano
08a11f7934
Bug 975688 part.28 Rename nsDOMEvent to mozilla::dom::Event r=smaug
...
--HG--
rename : dom/events/nsDOMEvent.cpp => dom/events/Event.cpp
rename : dom/events/nsDOMEvent.h => dom/events/Event.h
2014-03-05 09:37:43 +09:00
Andrea Marchesini
286e0c9290
Bug 965860 - patch 2 - ConsoleAPI written in C++, r=bz
2014-02-27 23:39:00 +00:00
Andrew McCreight
798ec9614e
Bug 966762 - Add chrome JS function to unlink ghost windows. r=smaug
2014-02-20 12:55:40 -08:00
Andrew McCreight
8404f86555
Bug 951491 - Ensure ResumeTimeouts() after FreeInnerObjects() does nothing. r=bz
2014-02-20 12:55:40 -08:00
Andrew McCreight
6c86943613
Backout bug 966762 for Valgrind leaks
2014-02-19 17:17:58 -08:00
Andrew McCreight
df1f09f072
Backout bug 951491 on suspicion of causing Valgrind leaks
2014-02-19 16:10:58 -08:00
Andrew McCreight
7cd422c324
Bug 966762 - Add chrome JS function to unlink ghost windows. r=smaug
2014-02-19 13:27:15 -08:00
Andrew McCreight
448f3e51a9
Bug 951491 - Ensure ResumeTimeouts() after FreeInnerObjects() does nothing. r=bz
2014-02-19 13:27:15 -08:00
Boris Zbarsky
022c86a654
Bug 973905. setTimeout/setInterval with a string first arg but more than two arguments should still work (and ignore the extra arguments). r=smaug
2014-02-19 10:13:38 -05:00
Boris Zbarsky
7ee245a69d
Bug 970764. Remove support for non-optional "any" arguments values, since "any" needs to be able to include undefined anyway. Have "any" arguments and dictionary entries default to undefined unless the IDL explicitly says "= null". r=khuey
2014-02-19 10:13:38 -05:00
Bobby Holley
7c4284bf87
Bug 956382 - Consider document.domain for showModalDialog's dialogArguments and returnValue. r=mrbkap
2014-02-13 18:57:35 -08:00
Boris Zbarsky
c15e175b05
Bug 964875 part 3. Define WebIDL quickstubs for ChromeWindow. r=peterv
2014-02-05 23:37:30 -05:00
Boris Zbarsky
c248437b5a
Bug 964875 part 2. Add a static nsGlobalWindow::IsChromeWindow test function for use in Func annotations. r=peterv
2014-02-05 23:36:59 -05:00
Blake Kaplan
e4776a973f
Bug 966498 - Refactor nsGlobalWindow::Alert and nsGlobalWindow::Confirm to not be exactly the same. r=bzbarsky
...
--HG--
extra : rebase_source : 03c77843bc6693d5d56d106ea58f5f921038be3e
2014-01-31 15:02:56 -08:00
Masatoshi Kimura
02870ebbdd
Bug 964964 - Remove window.pkcs11. r=bz
2014-01-30 20:00:01 +09:00
Boris Zbarsky
4a2e39fc36
Bug 945416 part 5. Implement nsGlobalWindow::GetOwnPropertyNames and flag the interface as NeedNewResolve. r=peterv
2014-01-29 22:33:27 -08:00
Boris Zbarsky
c044a6c065
Bug 945416 part 4. Introduce a DoNewResolve method on nsGlobalWindow and call it from nsWindowSH::NewResolve. r=peterv
2014-01-29 22:33:25 -08:00
Ms2ger
256d45304e
Bug 952016 - Part b: Remove unused nsGlobalWindow::GetScriptContextInternal; r=smaug
2014-01-20 08:58:23 +01:00
Ms2ger
b9047f1e77
Bug 952016 - Part a: Disallow calling nsPIDOMWindow::SetChromeEventHandler on inner windows; r=smaug
2014-01-20 08:58:23 +01:00
Andrea Marchesini
62bd00021f
Bug 952079 - Porting nsIDOMWakeLock to WebIDL, r=smaug
2014-01-07 13:16:07 +01:00
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Blake Kaplan
c05250509f
Bug 933483 - Don't fire events (and especially request animation frame events) when we're in a modal dialog. r=smaug
2013-12-17 16:12:33 -08:00
Ehsan Akhgari
2909676a03
Bug 949445 - Part 2: Move Selection to WebIDL; r=bzbarsky
2013-12-17 09:12:33 -05:00
Ehsan Akhgari
be4a974b23
Bug 950523 - Part 2: Move MediaQueryList to WebIDL bindings; r=bzbarsky
2013-12-16 09:03:34 -05:00
Peter Van der Beken
38771ca378
Bug 938640 - Make forwarding to outer conditional on current inner. r=bz.
2013-12-14 18:52:13 +01:00
Boris Zbarsky
5b212815ea
Bug 948096. Warn when people use window._content. r=smaug,myk
2013-12-12 16:11:54 -05:00
Boris Zbarsky
fc8f65ba99
Bug 946564 part 2. Make window._content chromeonly and define it in WebIDL. r=peterv
2013-12-09 10:34:04 -05:00
Shu-yu Guo
f0fc407c57
Bug 946641 - Part 1: Clear delayed events on closed documents. (r=smaug)
2013-12-06 19:31:09 -08:00
Nathan Froyd
4174f51d65
Bug 922094 - part 2 - make nsGlobalWindow report its proto/iface cache size, if appropriate; r=bz
2013-11-20 08:55:09 -05:00
Mark Hammond
abca27fb7c
Bug 943668 - ensure window.screenX and .screenY return css pixels. r=roc
2013-12-03 16:36:33 +11:00
Ms2ger
fc05d7bc0a
Bug 866689 - Add more inner / outer window assertions; r=mrbkap
2013-11-28 15:07:55 +01:00
Olli Pettay
fe989e3819
Bug 942240 - Improve the skippability of nsGlobalWindow, r=mccr8
...
--HG--
extra : rebase_source : ed7e687229a92075657d9b665fbc7af42d9eb5cc
2013-11-24 21:35:34 +02:00
Bobby Holley
8e73b817c0
Bug 840488 - Remove per-JSContext script toggling. r=bz
...
Note that the checks in nsJSEnvironment::EvaluateString and EvalInWindow
can safely go away, because we call ssm->ScriptAllowed() in
nsJSUtils::EvaluateString.
2013-11-12 16:43:35 -08:00
Robert O'Callahan
d7c44c8903
Bug 911889. Part 4. Add API to detect whether an nsGlobalWindow is running a timeout handler. r=bz
2013-09-04 23:37:46 +12:00
Phil Ringnalda
fb73812f4a
Back out 0a88dee3b92b:dc5cc7d7b84d (bug 911889) for beaucoup unexpected assertions
...
--HG--
extra : rebase_source : a2a13633b6028c99a3c732dbbafe8c800bc32071
2013-10-28 23:38:02 -07:00
Robert O'Callahan
ec11d1a86c
Bug 911889. Part 4. Add API to detect whether an nsGlobalWindow is running a timeout handler. r=bz
...
--HG--
extra : rebase_source : 17eabb4f819748ab9ec0ef38681c28df7b0a1861
2013-09-04 23:37:46 +12:00
Peter Van der Beken
dfc2297bd8
Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
...
--HG--
extra : rebase_source : 7bde7ddfe297e189ffa678ca1d9c34000bc904ec
2013-10-08 17:51:42 +02:00
Ms2ger
7cd50d2f15
Backout changeset 2e466ccc7bd0 for devtools test failures.
2013-10-26 17:02:20 +02:00
Peter Van der Beken
e01445a2df
Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
...
--HG--
extra : rebase_source : 673c08ef093339e6bfb1418366af5cc5fabe7c4d
2013-10-08 17:51:42 +02:00
Olli Pettay
5952e14704
Bug 930498 - BarProps should be got from the inner window not from the outer, r=peterv
2013-10-25 14:12:01 +03:00
Peter Van der Beken
57e0597683
Bug 922160 - Bring EventHandler.webidl more in line with the spec, rename BeforeUnloadEventHandler to OnBeforeUnloadEventHandler. r=bz.
...
--HG--
extra : rebase_source : e4bed124f36e94e1aa646b24783f7f2c682e31b5
2013-10-08 17:51:15 +02:00
Ed Morley
63933ee05b
Backed out changeset fd177e58f30b (bug 922160)
2013-10-23 15:51:21 +01:00
Peter Van der Beken
d27efa298e
Bug 922160 - Bring EventHandler.webidl more in line with the spec, rename BeforeUnloadEventHandler to OnBeforeUnloadEventHandler. r=bz
...
--HG--
extra : rebase_source : acb2edc950b13a16621421801779caf496663595
2013-10-08 17:51:15 +02:00
Kyle Huey
9ab68d6b69
Bug 915757: Split GetListenerManager into two functions for more const-correctness. r=smaug
2013-10-23 07:32:04 +08:00
Ryan VanderMeulen
9abde8f9b2
Backed out 2 changesets (bug 915757, bug 919885) for frequent Android Armv6 mochitest-8 crashes.
...
Backed out changeset 04610078280c (bug 915757)
Backed out changeset db9190b3ce60 (bug 919885)
2013-10-14 14:38:54 -04:00
Kyle Huey
e2f7b57b3e
Bug 915757: Split GetListenerManager into two functions for more const-correctness. r=smaug
2013-10-14 19:58:25 +08:00
Phil Ringnalda
5c6d197b06
Backed out 2 changesets (bug 915757, bug 919885) for xpcshell bustage
...
Backed out changeset 5d17d90b838d (bug 915757)
Backed out changeset 91495d3a91c8 (bug 919885)
2013-10-13 21:59:58 -07:00
Kyle Huey
ebb9068971
Bug 915757: Split GetListenerManager into two functions for more const-correctness. r=smaug
2013-10-14 11:10:44 +08:00
Tim Abraldes
e3a854773f
bug 910501. Remove the rate-limiting behavior of the "Prevent this page from creating additional dialogs" checkbox. That behavior was unintentionally added and is confusing. r=bz,gavin
2013-10-08 14:00:12 -07:00
Tim Abraldes
1047bbdaba
bug 856977. Alert should not be possible from beforeunload. r=bbondy,bz
2013-10-08 14:00:12 -07:00
Nicholas Nethercote
75f194c48c
Bug 921923 (part 3) - Make multi-output sizeOfFoo() functions more consistent in content/, dom/ and layout/. r=till.
...
--HG--
extra : rebase_source : ac8aebe86b4b7ee5acc0f541be5645abf73b6a98
2013-09-30 16:20:23 -07:00
Boris Zbarsky
48946a9621
Bug 862627 part 1. Switch EventListener to WebIDL codegen. r=smaug
2013-09-23 20:25:17 -04:00
Olli Pettay
9283cd2a76
Bug 916879, remove SetterThrows from eventhandlers, r=emk
2013-09-17 14:01:28 +03:00
Kyle Huey
b248805896
Bug 910924: Give workers an nsIGlobalObject. r=bent,bholley
2013-09-08 20:28:48 -07:00
Benoit Jacob
4dbb3d0ca3
Bug 913603 - Avoid needlessly including nsRect.h - r=jrmuizel
2013-09-06 22:15:49 -04:00
Ehsan Akhgari
82b9523028
Bug 913531 - Remove the unnecessary #includes from nsIXPConnect.idl; r=bholley
2013-09-06 13:50:24 -04:00
Robert O'Callahan
03e7828db2
Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
...
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
Kan-Ru Chen (陳侃如)
f742e5eb23
Bug 891763 - Browser API: mozbrowserresize event. r=jlebar
...
--HG--
extra : rebase_source : ba426c66e1fb6f108107c44c64fd170ea384a6db
2013-08-16 19:16:20 +08:00