Commit Graph

4075 Commits

Author SHA1 Message Date
Tom Tromey
bcbdcb14bb Bug 1334278 - change JS_smprintf to return UniqueChars; r=froydnj
This changes JS_smprintf to return UniqueChars, rather than relying on
manual memory management.

MozReview-Commit-ID: ENjQJODYdD1

--HG--
extra : rebase_source : 4c8ad4719dce205a7ef25e41eca25c5af793bb47
2017-03-03 15:10:11 -07:00
Jon Coppeard
d7e0c83dcc Bug 1359001 - Make AutoAssertGCCallback a no-op in opt builds r=sfink 2017-04-25 10:56:34 +01:00
Carsten "Tomcat" Book
7bcdfe36bc Merge mozilla-central to autoland 2017-04-19 10:57:24 +02:00
Chih-Yi Leu
c9af51ae1e Bug 1355430 - Part1: s/MOZ_debug_get/MOZ_debug; r=baku,jgilbert
MozReview-Commit-ID: 7RUzGo3QJV5

--HG--
extra : rebase_source : a16494b7671feafabd24f2e0ea909d38a0b5910e
2017-04-11 16:50:59 +08:00
Mike Hommey
e4927e7310 Bug 1357649 - Remove remnants of AudioChannelManager. r=bz
--HG--
extra : rebase_source : 21fba2905cf9171f34c0e155a4ff5a1162829789
2017-04-19 15:55:28 +09:00
Mike Hommey
34e619d1c1 Bug 1357323 - Remove support for gonk in the build system. r=gps
Everything depending on the widget being gonk can go away, as well as
everything depending on MOZ_AUDIO_CHANNEL_MANAGER, which was only
defined on gonk builds under b2g/ (which goes away in bug 1357326).

--HG--
extra : rebase_source : 9f0aeeb7eea8417fa4e06d662d566d67ecaf2a24
2017-04-18 16:56:09 +09:00
Sebastian Hengst
1dd0176f22 Backed out changeset 773f5b2cb868 (bug 1355430) for unexpectedly passing own test dom/canvas/test/webgl-mochitest/test_video_fastpath_mp4.html on Windows. r=backout 2017-04-18 21:09:25 +02:00
Chih-Yi Leu
5974ad86a4 Bug 1355430 - Part1: s/MOZ_debug_get/MOZ_debug; r=baku,jgilbert
MozReview-Commit-ID: 7RUzGo3QJV5

--HG--
extra : rebase_source : 3b2ee0101f9687d2c8d49083138d6afb31c75534
2017-04-11 16:50:59 +08:00
John Dai
b32e4c240b Bug 1309147 - Part 3: Implement the support for CEReactions in Codegen. r=bz
MozReview-Commit-ID: F1mxKzlru9s

--HG--
extra : rebase_source : a5e52ef2f3168028dec2c3186e857941953ad517
extra : histedit_source : 2336479daf177cb7ca55ee517c8317852bed09ef
2017-03-08 17:11:48 +08:00
John Dai
a9bed711dc Bug 1309147 - Part 2: Add the name of 'this' value's JSObject* for codegen to generate CEReaction code. r=bz
MozReview-Commit-ID: BZwO7I4uh2

--HG--
extra : rebase_source : 1258bad2a723bdd1a0b3c52342ada3faa9b7a7a5
extra : histedit_source : d87a1c3876c37d61bd93690c85a86bd5333aa5e3
2017-03-08 17:09:59 +08:00
John Dai
3fbf49822e Bug 1309147 - Part 1: Implement the support for CEReactions in WebIDL parser. r=bz
MozReview-Commit-ID: Dw0CMgzXKKy

--HG--
extra : rebase_source : 2254eae5076d4d51eff61d8ee1363075c3aeb13b
extra : histedit_source : 618b4e46eb6b5ac1791bd4f762a97373c6b8e2b3
2017-02-03 11:44:09 +08:00
Andrew McCreight
fe0bcc3a40 Bug 1338272 - Require that the return value of MaybeSetPendingException is used. r=bz
Most of the time, the return value of this method should be checked,
because behavior should depend on whether or not an exception is
thrown. However, if it is called immediately after a throw it doesn't
need to be checked because it will always return true. bz said there
is no public API that lets you assume there is an exception because it
would be "too easy to misuse".

MozReview-Commit-ID: CqyicBbcNjW

--HG--
extra : rebase_source : a5b74ba88a927a90d491ceb8f0b750a67f62b0f4
2017-02-14 16:17:02 -08:00
Olli Pettay
d7c9e40c86 Bug 1352746 - Rename ProbablyShortLivingObject to ProbablyShortLivingWrapper in webidl, r=qDot
--HG--
extra : rebase_source : 41c2aae34d1140881078aeb336e974394425b9c3
2017-04-11 00:01:29 +03:00
J. Ryan Stinnett
0ccdacdf3a Bug 1345206 - Extract CSSPageRule base class. r=xidorn
Extract a `CSSPageRule` base class from the existing Gecko `nsCSSPageRule`
class.  This will be used in the next commit as the parent of a new
`ServoPageRule` for the Servo variant.

MozReview-Commit-ID: 1F3FWfVKH29

--HG--
extra : rebase_source : 5186cf2e233f3a757676a0127752faa8cc748cd4
2017-03-31 19:14:49 -05:00
Boris Zbarsky
a66c62ea91 Bug 1352996. Remove vestige of AvailableIn/CheckAnyPermissions/CheckAllPermissions from WebIDL.py. r=qdot
MozReview-Commit-ID: HsvhRefytXQ
2017-04-05 23:04:26 -04:00
Boris Zbarsky
af7a6137cc Bug 1291397. Work around clang bug that they didn't actually manage to ship a fix for which causes it to give spurious warnings it shouldn't be giving, which are then fatal due to -Werror. r=dholbert
MozReview-Commit-ID: GbMEvoxGpH1
2017-03-31 17:09:48 -04:00
Xidorn Quan
c84000415d Bug 1345696 part 2 - Move nsCSSFontFaceRule to a separate header. r=heycam
MozReview-Commit-ID: 5UsODlVQV7a

--HG--
extra : rebase_source : 48ed07a86666fd313786ca03818947b10ca7a2ce
2017-03-29 10:20:40 +11:00
Ben Kelly
4ffa062ade Bug 1350398 Remove Workers.h include from BindingUtils.h now that ThrowDOMExceptionForNSResult no longer exists. rs=bz 2017-03-24 15:27:11 -04:00
Andrea Marchesini
1fd1bc3935 Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot
--HG--
rename : caps/nsNullPrincipal.cpp => caps/NullPrincipal.cpp
rename : caps/nsNullPrincipal.h => caps/NullPrincipal.h
rename : caps/nsNullPrincipalURI.cpp => caps/NullPrincipalURI.cpp
rename : caps/nsNullPrincipalURI.h => caps/NullPrincipalURI.h
2017-03-22 11:38:40 +01:00
Jan de Mooij
b86962b1de Bug 1133423 - Optimize sets of expando properties and expando setter calls on DOM proxies. r=evilpie 2017-03-22 09:08:08 +01:00
Ehsan Akhgari
adb77fecec Bug 1348452 - Give createImageBitmap() an implicit JSContext*; r=baku 2017-03-18 11:55:31 -04:00
kvark
a38edf6b85 Bug 1348111 - Clarify the error message. r=smaug
--HG--
extra : rebase_source : dee38b43c0eb7470c2861e78c9d6bd1e653a2db7
2017-03-16 18:51:00 -04:00
Xidorn Quan
cc3896262e Bug 1345698 part 4 - Create a new CSSNamespaceRule as a base class. r=heycam
MozReview-Commit-ID: 5QvGWfb18cY

--HG--
extra : rebase_source : 1a85b59a71ca920371bc94bf4376e4e42863f6df
2017-03-14 18:50:28 +11:00
Xidorn Quan
05122c4a24 Bug 1315601 part 15 - Move some common methods to a new CSSMediaRule binding class. r=heycam
MozReview-Commit-ID: GWpIzTex2le

--HG--
extra : rebase_source : bac2c6fe225ddc19b107de66986623627ce51a8d
2017-03-09 17:37:38 +11:00
Xidorn Quan
85464df1c1 Bug 1315601 part 3 - Add base class MediaList and move part of nsMediaList to it. r=heycam
MozReview-Commit-ID: A2uJpbGgO55

--HG--
extra : rebase_source : 40a9171307b6a30288169e27caa43595349d2df7
2016-11-09 17:28:24 +11:00
Andrea Marchesini
12b54aa0f5 Bug 1299500 - Get rid of DeviceStorage API - part 10 - DeviceStorage, r=ehsan, r=billm 2017-03-08 20:15:45 +01:00
Michael Layzell
e66a0f7027 Bug 1331434 - Part 5: Mark some Throw calls in /dom/bindings as having custom cleanup, r=baku
MozReview-Commit-ID: CooKyfkMlWq
2017-03-07 19:06:48 -05:00
Michael Layzell
46ade67ada Bug 1331434 - Part 2: Add MOZ_MAY_CALL_AFTER_MUST_RETURN and MOZ_MUST_RETURN_FROM_CALLER annotations, r=ehsan
MozReview-Commit-ID: 1o2egvdhkqT
2017-03-07 19:06:48 -05:00
Jon Coppeard
82cbd987a2 Bug 1338623 - Add a slower but more exact gray marking check for checking correctness r=sfink r=mccr8 2017-03-02 10:22:47 +00:00
Phil Ringnalda
13720d9c89 Merge m-c to m-i 2017-02-25 13:35:20 -08:00
Jan de Mooij
76f56574e3 Bug 1342439 part 1 - Replace macros to check for overrecursion with functions. r=luke 2017-02-25 16:07:56 +01:00
Jeff Walden
a80694a3cb Bug 1339652 - Delete UnionMember's copy constructor, because it can't safely be used in the C++ object model. r=bz
--HG--
extra : rebase_source : fff9dc6738c4929f8e6f32c866f68778875ddab8
2017-02-14 11:23:40 -08:00
Jessica Jong
cf17189117 Bug 1340086 - Remove uses of AnimationsPaused() since it is always false after bug 1316330. r=mrbkap 2017-02-22 01:00:00 -05:00
David Major
ec8b79d7fd Bug 1339275: Define JSPropertySpec values in a way that's easier for Visual Studio to initialize. r=Waldo
MozReview-Commit-ID: BMCunTjUapN
2017-02-22 10:11:54 +13:00
Andrew McCreight
aee8d03ee6 Bug 1322400 - Add content-exposed GC and CC functions to fuzzing builds. r=smaug
MozReview-Commit-ID: 5iV4RDZxZIl

--HG--
extra : rebase_source : bd350d5ffdc4702199edab8c8549d7880182e99c
2017-02-22 11:05:50 -08:00
Andrea Marchesini
3043646e52 Bug 1339871 - Splitting dom/file/File.{h,cpp}, r=smaug
--HG--
rename : dom/file/File.cpp => dom/file/BaseBlobImpl.cpp
rename : dom/file/File.h => dom/file/BaseBlobImpl.h
rename : dom/file/File.cpp => dom/file/Blob.cpp
rename : dom/file/File.h => dom/file/Blob.h
rename : dom/file/File.cpp => dom/file/BlobImpl.cpp
rename : dom/file/File.h => dom/file/BlobImpl.h
rename : dom/file/File.cpp => dom/file/EmptyBlobImpl.cpp
rename : dom/file/File.h => dom/file/EmptyBlobImpl.h
rename : dom/file/File.cpp => dom/file/FileBlobImpl.cpp
rename : dom/file/File.h => dom/file/FileBlobImpl.h
rename : dom/file/File.cpp => dom/file/MemoryBlobImpl.cpp
rename : dom/file/File.h => dom/file/MemoryBlobImpl.h
rename : dom/file/File.cpp => dom/file/StreamBlobImpl.cpp
rename : dom/file/File.h => dom/file/StreamBlobImpl.h
rename : dom/file/File.h => dom/file/StringBlobImpl.h
rename : dom/file/File.h => dom/file/TemporaryBlobImpl.h
2017-02-16 18:26:38 +01:00
Tooru Fujisawa
918d55e6ea Bug 1283712 - Part 7: Add nsIScriptErrorNote and nsIScriptError.notes. r=bholley 2017-02-15 23:53:06 +09:00
Boris Zbarsky
41700419ad Bug 1339540 part 3. Use nsresult values in the ErrorResult error module in place of NS_ERROR_TYPE_ERR/NS_ERROR_RANGE_ERR in ErrorResult code. r=smaug 2017-02-15 00:02:36 -05:00
Boris Zbarsky
2816ec4748 Bug 1339540 part 2. Move the three ErrorResult-internal NS_ERROR_DOM_* values over to the ErrorResult error module. r=smaug 2017-02-15 00:02:35 -05:00
Boris Zbarsky
a449ccb8fa Bug 1333045. Update Location object properties to current spec. r=qdot
Specifically, three changes:

1) valueOf should be non-enumerable.
2) valueOf should be === to Object.prototype.valueOf.
3) There should be no toJSON.

The tests come directly from https://github.com/w3c/web-platform-tests/pull/4623
so not much need to review them.
2017-02-15 00:01:48 -05:00
Boris Zbarsky
18a2013469 Bug 1330699 part 13. Implement the spec provision for handling repeated keys in records by updating the existing value. r=qdot 2017-02-15 00:01:41 -05:00
Boris Zbarsky
063d0caa78 Bug 1330699 part 12. Actually change the key type of a record, and its corresponding conversion behavior, depending on what the IDL says. r=qdot 2017-02-15 00:01:39 -05:00
Boris Zbarsky
90896220ac Bug 1330699 part 11. Add ConvertJSValueTo*String functions that just take a value and hand out a string, without extra complications. r=qdot 2017-02-15 00:01:37 -05:00
Boris Zbarsky
1471a0e8e3 Bug 1330699 part 10. Rename the MozMap C++ type to "record" and give it a template parameter for the key type. r=qdot
Also renames all the test functions to mention "Record" instead of "MozMap".

--HG--
rename : dom/bindings/MozMap.h => dom/bindings/Record.h
2017-02-15 00:01:35 -05:00
Boris Zbarsky
46964f231f Bug 1330699 part 9. Rename "MozMap" to "record" in our IDL parser and IDL files. r=qdot
The key type is unused so far.

--HG--
rename : dom/bindings/parser/tests/test_mozmap.py => dom/bindings/parser/tests/test_record.py
2017-02-15 00:00:17 -05:00
Boris Zbarsky
f096eee1f8 Bug 1330699 part 8. Split up PrimitiveOrStringType into PrimitiveType and StringType in the Web IDL parser. r=qdot 2017-02-15 00:00:07 -05:00
Boris Zbarsky
dd02756287 Bug 1330699 part 7. Change JS to MozMap conversion to more closely follow the record<> spec. r=qdot
The spec says to get all the property keys, then check each one for
enumerability before doing the Get().  Our current code, before this change,
asks for all the _enumerable_ keys instead, which is observably different when
proxies are involved.
2017-02-15 00:00:06 -05:00
Boris Zbarsky
c41dd5c904 Bug 1330699 part 6. Add some tests for distinguishability of unions. r=qdot 2017-02-15 00:00:05 -05:00
Boris Zbarsky
c2ed802c58 Bug 1330699 part 5. Disallow mozmap-typed constants. r=qdot 2017-02-15 00:00:04 -05:00
Boris Zbarsky
e0ddbaf935 Bug 1330699 part 4. Add more codegen tests for MozMap in dictionary r=qdot 2017-02-15 00:00:03 -05:00