Commit Graph

789 Commits

Author SHA1 Message Date
Andrea Marchesini
c628603a97 Bug 1127703 - Support iteration on FormData, r=bz 2015-10-19 19:23:52 +01:00
Wes Kocher
db78fde55b Backed out changeset 736f0981762c (bug 1127703) for build bustage 2015-10-19 10:55:41 -07:00
Andrea Marchesini
c94d30fc34 Bug 1127703 - Support iteration on FormData, r=bz 2015-10-19 16:16:42 +01:00
Olli Pettay
fee6bc69e2 Bug 1215072 - throw in case dictionary initialization fails in canvas.getContext, r=baku 2015-10-18 14:14:22 +03: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
Nathan Froyd
583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Phil Ringnalda
dc7a4cc45e Back out changeset 09e059daabae (bug 1215072) for adding a permaorange-on-b2g test
CLOSED TREE
2015-10-16 18:42:41 -07:00
Olli Pettay
2b21892477 Bug 1215072 - throw in case dictionary initialization fails in canvas.getContext, r=baku
--HG--
extra : rebase_source : 006bfed7cfec46e6150ee15135de08941283dbb7
2015-10-16 22:52:11 +03:00
Boris Zbarsky
8d9b5ee469 Bug 218093. Whitelist more mouse movement events to apply to disabled form controls. r=smaug 2015-10-16 14:36:19 -04:00
Carsten "Tomcat" Book
5207756269 Backed out changeset 97e9ac5785f5 (bug 1213154) for bc7 test failures
--HG--
extra : rebase_source : 5989b1677b925c6503290637e4c0fd4597d6f4e9
2015-10-16 12:03:40 +02:00
Andrea Marchesini
bc1b4affc1 Bug 1213154 - tab-sound-icon should be supported by bfcache, r=roc
--HG--
extra : rebase_source : c75b227254aa5701eb728afef09a803e2698e600
2015-10-15 05:00:00 +02:00
Andrea Marchesini
d92668f3a0 Bug 1214659 - HTMLMediaElement::UpdateAudioChannelPlayingState() should be easy to read, r=roc 2015-10-15 00:59:00 +02:00
Morris Tseng
aba970f2a8 Bug 1214571 - Only create mContextObserver once. r=baku
--HG--
extra : commitid : JlT1u9F257B
extra : rebase_source : 7898e6c864c6851e05f47425462d5048483c9633
2015-10-16 10:01:53 +08:00
Boris Zbarsky
b6743e865b Bug 1214819. Add support for @crossorigin to <link rel=prefetch> so resources can be prefetched via anonymous CORS, for example. r=hurley 2015-10-15 15:12:00 -04:00
JW Wang
5147e1f0af Bug 1214989. Part 3 - remove MediaDecoder::Init() and its callers. r=gerald. 2015-10-15 11:39:45 +08:00
JW Wang
e868f91ff6 Bug 1214989. Part 2 - add MediaDecoderOwner to Clone() and overrides. r=gerald. 2015-10-15 11:37:47 +08:00
Boris Zbarsky
04e8705012 Backing out changeset f6759ed53f46 (bug 799937) due to causing extension breakage. 2015-10-14 11:07:06 -04:00
JW Wang
1cc6677a90 Bug 1214065 - Remove unused arguments from MediaDecoder::Load() and its friends. r=kinetik. 2015-10-14 11:46:27 +08:00
Nigel Babu
a2f3106ede Backed out changeset e184609e1d13 (bug 1207546) for bustage ON A CLOSED TREE
--HG--
extra : amend_source : 2ba50d75927848525041bea8ab3bbf371c72342d
2015-10-14 13:29:03 +05:30
Aryeh Gregor
73266dd62b Bug 1214164 - Don't honor all <option> descendants of <select>; r=bz
Per spec, we should only pay attention to options that are children of
the select, or of an optgroup child of the select.
2015-10-13 11:28:00 +02:00
Andrea Marchesini
94c0ba5263 Bug 1207546 - Integrate WebRTC with audio channels, r=roc
--HG--
rename : dom/base/test/test_audioNotification.html => dom/base/test/test_audioNotificationStream.html
extra : histedit_source : 194f9f7d34be735e8359d0e769dd4783d46b304c
2015-10-14 11:32:23 +05:30
Aryeh Gregor
f8cdabf861 Bug 799937 - Make createElement()'s result always in the HTML namespace (except for XUL documents); r=bz
The new expected failures in web-platform are in a test that doesn't
match the spec, which has already been synced upstream and will be
synced shortly.  For the same test in imptests, I chose to modify the
test instead, because it's easier and imptests is going to be removed.
2015-10-14 11:16:08 +05:30
Carsten "Tomcat" Book
2b1a321946 merge mozilla-inbound to mozilla-central a=merge 2015-10-12 11:57:06 +02:00
Morris Tseng
a8eab58fba Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer. r=roc
--HG--
extra : rebase_source : cc7761567d60d652b8d0bc9cab04cf310ef100e3
2015-10-12 11:21:03 +08:00
Morris Tseng
d5147a9b2a Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers. r=nical, r=jgilbert, r=jrmuizel, sr=ehsan
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : ce16acdc340cbe67102da651552f574eee897ca9
2015-10-12 11:21:03 +08:00
Morris Tseng
acf60f0d3e Bug 709490 - Part 1: Let ImageBridge transfer CanvasClient async. r=nical
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : f4ec56dc106357e30660343166ff51e7d9dc0c62
2015-10-12 11:21:02 +08:00
Xidorn Quan
f44406c15c Bug 1212299 part 3 - Add test for requesting fullscreen from doc inside frame/object. rs=smaug
--HG--
extra : source : c931d9c561e66a9a026bfc3c69e4c664f3168055
2015-10-12 11:24:23 +11:00
Xidorn Quan
9162652384 Bug 1212299 part 2 - Rewrite fullscreen-denied test to have a clearer structure. r=smaug
--HG--
extra : source : 3d1344b51bfb31af836199f0fbef870934a2ea77
2015-10-12 11:24:23 +11:00
Xidorn Quan
2814f667b7 Bug 1213168 - Use the top window for checking window state in fullscreen test utils. rs=smaug
--HG--
extra : source : 5c94ae5936b81cb4e5f19ddb9c231f91d1496d1e
2015-10-10 12:19:23 +11:00
Steffen Wilberg
42308fe6a6 Bug 1119049 - Keyboard shortcuts should work in MediaDocuments without explicitly focusing the media element. r=bz
--HG--
extra : commitid : 1pFjSo5cBNc
extra : rebase_source : 91d4ddd382c9e8607b61eafa6fa17724a35c212f
extra : amend_source : 3a170b92b18759e767e8fe45505d0c446c273b37
2015-10-04 13:04:55 +02:00
Xidorn Quan
eba013fd82 Bug 1187801 part 4 - Add test for iframe fullscreen flag. r=smaug
--HG--
extra : source : 3abe23b442edf1db41892ce620ca02fb09f2ac0b
2015-10-08 17:47:39 +11:00
Xidorn Quan
f6fe1e11ba Bug 1187801 part 3 - Add iframe fullscreen flag and stop auto-rollback when this flag presents. r=smaug
--HG--
extra : source : f7801f9c5b8e65862ead640f7b07ad87a40c9345
2015-10-08 17:47:39 +11:00
Andrea Marchesini
c53e405b13 Bug 1211511 - AudioChannelAgent::NotifyStartedPlaying and NotifyStoppedPlaying should use the same level of playback notification, r=roc 2015-10-07 20:06:47 +01:00
Bill McCloskey
c5d5457154 Back out bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process 2015-10-07 11:15:11 -07:00
Andrew McCreight
ae5fe6a2ad Bug 1210591, part 1 - Use nsVariantCC in various places. r=smaug
Most of these will end up in DataTransfer:mItems, so this is needed
for it to do anything useful.
2015-10-09 10:24:23 -07:00
Andrew McCreight
0ff7248107 Bug 1210517 - Create nsVariant directly rather than via do_CreateInstance(). r=froydnj
The goal here is to leave creation stuff mostly for JS, so we can
convert it entirely over to a non-threadsafe cycle-collected version
without breaking any existing C++ users.

I didn't do this for a remaining use in nsGlobalWindow.h to avoid
including nsVariant.h all over the place.
2015-10-07 08:17:42 -07:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Sebastian Hengst
cdcff6d0a7 Backed out changeset c6b267589d0d (bug 1202902) for Mulet Reftest, W3C Platform Test and other failures. r=backout a=backout on a CLOSED TREE 2015-10-07 13:36:26 +02:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Xidorn Quan
ccd57823e9 Bug 1126230 part 10 - Add test for fullscreen top layer. r=dbaron
--HG--
extra : source : 565db2ee35652291d8d502301f50da22fb87cddd
2015-10-07 14:04:32 +11:00
Xidorn Quan
a52fd07abd Bug 1126230 part 9 - Remove fullscreen override and related test. r=dbaron
--HG--
extra : source : 3abf655d87187abc2d3dcd100a267410c42abbb0
2015-10-07 14:04:32 +11:00
Ehsan Akhgari
158253749d Bug 1210302 - Part 3: Add a NS_ParseRequestContentType API; r=mcmanus,sicking 2015-10-06 20:26:46 -04:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Shu-yu Guo
52e365bb7b Bug 1202902 - Fix the world. (r=ato for marionette, rs=Mossop for rest) 2015-10-06 14:00:30 -07:00
Wes Kocher
c1750b75c7 Backed out 11 changesets (bug 709490) for webgl-color-test.html failures a=backout
Backed out changeset fc04c5d43550 (bug 709490)
Backed out changeset cd8f9410d335 (bug 709490)
Backed out changeset 6e687c9143c1 (bug 709490)
Backed out changeset 9b20f2c833c4 (bug 709490)
Backed out changeset f9d130aea88e (bug 709490)
Backed out changeset fc513b410949 (bug 709490)
Backed out changeset acf6220b431a (bug 709490)
Backed out changeset 9bceaf913791 (bug 709490)
Backed out changeset 37fba20111e2 (bug 709490)
Backed out changeset 2285ce1596b8 (bug 709490)
Backed out changeset fb4e09920569 (bug 709490)
2015-10-05 08:28:25 -07:00
Nicholas Nethercote
77d38112ab Bug 1209351 (part 2) - Optimize nsTHashTable::RemoveEntry() usage in dom/. r=bz.
--HG--
extra : rebase_source : 8550f181356550b6c0e540c12f61f2d1148d2050
2015-09-24 19:05:16 -07:00
Morris Tseng
861bb61b91 Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer. r=roc
--HG--
extra : rebase_source : bfdf6a97f372a3a5a2ecdd4a3c216ec64ec98e84
2015-10-05 10:50:16 +08:00
Morris Tseng
2d11e76151 Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers. r=nical, r=jgilbert, r=jrmuizel, sr=ehsan
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : 16b8b4eaa5f4c649c02cbae6425e895134d4ae41
2015-10-05 10:50:16 +08:00
Morris Tseng
298e6642c3 Bug 709490 - Part 1: Let ImageBridge transfer CanvasClient async. r=nical
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : 9833dd57592081737ce74ad5b6ba8441a243ca0b
2015-10-05 10:50:15 +08:00
Bobby Holley
fcde3e0716 Bug 1210293 - Remove legacy check from the XPIDL HTMLInputElement::SetUserInput. r=bz 2015-10-02 14:13:26 -07:00