Граф коммитов

6242 Коммитов

Автор SHA1 Сообщение Дата
Adrian Wielgosik de1e0827c0 Bug 1440441 - Remove nsIDOMFormData. r=kmag,qdot
MozReview-Commit-ID: 9Y8YQBqbSnM

--HG--
extra : rebase_source : 205a3341771d99cb252516f0ffffd107e1c82e5d
2018-02-22 20:42:12 +01:00
Chris Peterson 4c4286f348 Bug 1330529 - Part 3: Protect DLL loads in wmain instead of waiting until PluginProcessChild::Init. r=jimm
Removing #define XRE_DONT_PROTECT_DLL_LOAD from plugin-container.cpp and xpcshell.cpp allows the #included nsWindowsWMain.cpp to protect DLL loads much earlier in the plugin process startup.

MozReview-Commit-ID: HbgyfvljvFs

--HG--
extra : rebase_source : dccdabb2e5bee4472d5aef9400a58cb0e397c112
extra : histedit_source : da248fc6fbdf96f30979f3a0396aefcf4bfcd5d9
2018-02-02 22:53:34 -08:00
Eric Rahm 7337adec45 Bug 1439047 - Part 1: Make StartupCache::PutBuffer take ownership of the buffer. r=froydnj
This avoids a redundant alloc and copy in `PutBuffer`. All existing callers
were destroying the passed in buffer after the call.

--HG--
extra : rebase_source : 065505219d70d26bad49c7eba2cec8edf0e9939d
extra : amend_source : 118eddad4dc901da02817c788fb98f6f4c85a3f0
extra : source : 7f0cedfb4bd85bfe1a523168019864c9c6c0e665
2018-02-16 15:30:47 -08:00
Narcis Beleuzu 01dffd73eb Backed out 2 changesets (bug 1439047) for Android build bustages. CLOSED TREE
Backed out changeset 718961d941d4 (bug 1439047)
Backed out changeset 7f0cedfb4bd8 (bug 1439047)
2018-02-24 01:10:22 +02:00
Eric Rahm 8b8acc64f2 Bug 1439047 - Part 1: Make StartupCache::PutBuffer take ownership of the buffer. r=froydnj
This avoids a redundant alloc and copy in `PutBuffer`. All existing callers
were destroying the passed in buffer after the call.

--HG--
extra : rebase_source : 39a21686becedf32c38e58fa832ae47845b2f5e0
2018-02-16 15:30:47 -08:00
Florian Quèze 682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Jason Orendorff e7c94fff59 Bug 1439063 - Part 1: Move several public headers from js/src to js/public. r=jandem.
js/src/jsalloc.h -> js/public/AllocPolicy.h
jsalloc.cpp -> js/src/util/AllocPolicy.cpp
jsbytecode.h -> merge into js/public/TypeDecls.h
jsprf.h -> js/public/Printf.h
jsprf.cpp -> js/src/util/Printf.cpp
jsprototypes.h -> public/ProtoKey.h
jswrapper.h -> js/Wrapper.h

--HG--
rename : js/src/jsalloc.h => js/public/AllocPolicy.h
rename : js/src/jsprf.h => js/public/Printf.h
rename : js/src/jsprototypes.h => js/public/ProtoKey.h
rename : js/src/jswrapper.h => js/public/Wrapper.h
rename : js/src/jsalloc.cpp => js/src/util/AllocPolicy.cpp
rename : js/src/jsprf.cpp => js/src/util/Printf.cpp
extra : rebase_source : 98b16d94c469202eab0303a8da844f1d0b6aa809
extra : amend_source : e0b16c1077226d6fe240f4d7096537f93b43f2b8
extra : histedit_source : d94e0ba7904a7d66742c7fac43f638aaec4fa4e5
2018-02-21 10:30:19 -06:00
Dorel Luca 9b2f91981c Backed out 6 changesets (bug 888600) for Valgrind and build bustge on a CLOSED TREE
Backed out changeset 7c8317f4ad48 (bug 888600)
Backed out changeset 5b990735f1ad (bug 888600)
Backed out changeset 9eafe225b804 (bug 888600)
Backed out changeset 16af80d6cd93 (bug 888600)
Backed out changeset a109987af625 (bug 888600)
Backed out changeset 0949dba396ad (bug 888600)
2018-02-22 13:56:43 +02:00
Peter Van der Beken 8ec89589cb Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 1: Add infrastructure to expose 'system' names on a WebIDL global. r=bz.
--HG--
extra : rebase_source : 3724f7d03d9c76067827ffce1e7b64a61389d469
2017-07-19 15:04:14 +02:00
Jason Orendorff a48654929c Bug 1439665 - Part 1: #include some headers directly in files that use them. r=sfink.
"Include what you use."

--HG--
extra : rebase_source : 2239a380029e0efbc9dd3042459222a67c38d70f
extra : amend_source : 4453c32cc469caa592049167205666997f1a1e7b
extra : histedit_source : a533edd4a4d3d0642b08989e93674661d27baa6a%2C37d27eeef9580381ccc0de8507f60166dabf1730
2018-02-20 11:28:12 -06:00
Kris Maglione 36f23390a8 Bug 1438988: Cleanup some error handling logic. r=mccr8
The error handling logic here would fail to remove a stale raw pointer from
mInProgressImports if the EnsureURI() call failed. Fortunately, it's not
actually possible for EnsureURI() to fail in this case, because the
EnsureResolvedURI() call above already implies EnsureURI(). That said, we're
better off structuring this code to ensure that we never leave a value in
mInProgressImports after we exit the scope.

MozReview-Commit-ID: 8mnKcHL75x

--HG--
extra : rebase_source : 332b48fde97adacfefd7771185df35c217dfbe84
2018-02-21 11:54:17 -05:00
André Bargull 04c864d3c5 Bug 1437530: Cache template literal objects per call site again. r=arai 2018-02-19 05:07:29 -08:00
Thomas Wisniewski 9abe8a6b3b Bug 792808 - Change js/xpconnect to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=bz
MozReview-Commit-ID: DZZ9NUysT5I

--HG--
extra : rebase_source : 00b248d242c38a1cd70535aa357b284ba60732b4
2018-01-21 14:46:11 -05:00
Dorel Luca dabf7b41ee Merge mozilla-central to autoland. CLOSED TREE
--HG--
extra : amend_source : 021950f3661e3b1d96e768155c5754b7af039f84
2018-02-15 00:35:45 +02:00
Nathan Froyd deb71edcea Bug 1437605 - part 3 - use NS_IMPL_ISUPPORTS in js/xpconnect/; r=mccr8
Now that we've used the standard NS_IMPL_QUERY_INTERFACE macro, we can
start using the even more standard NS_IMPL_ISUPPORTS macro.  There's a
standard NS_IMPL_ISUPPORTS_CI macro that we could use for the bits in
XPCJSID.cpp, but said macro assumes that all the interfaces listed are
exported to classinfo.  nsJSIID and nsJSCID expose nsIXPCScriptable
through QI, but not through classinfo, so I've chosen to leave those
alone.
2018-02-13 09:57:33 -05:00
Nathan Froyd 7a24d1ffc2 Bug 1437605 - part 2 - use NS_IMPL_QUERY_INTERFACE_CI in js/xpconnect/; r=mccr8
Just like part 1, only for classes that also require classinfo.
2018-02-13 09:57:33 -05:00
Nathan Froyd 276f4b0515 Bug 1437605 - part 1 - use NS_IMPL_QUERY_INTERFACE in js/xpconnect/; r=mccr8
This construct is nicer than NS_INTERFACE_MAP_BEGIN and assures the
reader there's no weirdness in the QI implementation.  This change does
mean that PGO doesn't get an opportunity to measure the frequency of
which interfaces are QI'd most often.  I think this is probably an OK
tradeoff to make, given the prevalence of NS_IMPL_QUERY_INTERFACE
elsewhere in the codebase.

The one thing we have to ensure with this change is that the ambiguous
QI to nsISupports uses the proper class after the change.  The
NS_IMPL_QUERY_INTERFACE macro chooses the first interface listed to
disambiguate the cast to nsISupports.  In many cases, the ordering of
the interfaces was already correct, but a few cases required reordering
the interfaces.
2018-02-13 09:57:33 -05:00
Boris Zbarsky a6fdc48869 Bug 1436276. Bindings should create their return promises in the current compartment even when called over Xrays. r=bholley
These are cases that are implementing the "convert an exception to a Promise"
steps of the Web IDL spec.  Typically the exception is thrown in the current
compartment; the Promise returned should simply match that.  Otherwise we can
end up with a situation in which the promise doesn't actaully have access to
its rejection value, which will cause problems if someone uses then() on the
promise: the return value of the then() call will get a sanitized exception
instead of the real one.

We _could_ try to match the actual compartment of the exception, in theory.
But it's not clear why this would be preferable to using the current
compartment, even if there were cases in which the exception _doesn't_ match
the current compartment.  Which there likely are not.

MozReview-Commit-ID: Ac2BHIHxfvY

--HG--
rename : dom/promise/tests/test_promise_argument.html => dom/promise/tests/test_promise_retval.html
rename : dom/promise/tests/test_promise_argument_xrays.html => dom/promise/tests/test_promise_retval_xrays.html
2018-02-10 01:34:10 -05:00
Boris Zbarsky 39af174f89 Bug 1435596. Give cross-origin objects (windows and locations) a 'then' property in all cases. r=bholley
For locations, it always returns undefined.  For windows, it returns undefined
unless there is a named subframe named "then", in which case that named
subframe is returned.

The idea is to be able to resolve promises with cross-origin objects.

MozReview-Commit-ID: HPyTvtwFdsG
2018-02-10 01:21:59 -05:00
Andrew McCreight df1f7c00c3 Bug 1437978 - Add memory reporting for scriptCountsMap. r=nbp
MozReview-Commit-ID: 1AJHhJDJerr

--HG--
extra : rebase_source : f867bd00f1c41052fc6eadc23cd2dd1e41a2c354
2018-02-13 10:00:14 -08:00
Nicolas B. Pierron 2015caa45a Bug 1433111 - Add JS Shell and about:config switch for Value masking. r=jandem 2018-02-09 16:49:32 +00:00
Tiberius Oros 677b0037d2 Merge inbound to mozilla-central. a=merge 2018-02-09 12:02:51 +02:00
Jan de Mooij 482d8c9a7b Bug 1434230 part 1 - Some Spectre mitigations for loadStringChars. r=luke,nbp
--HG--
extra : rebase_source : 463ec4c2195df912071064f97dbb07243a08ad75
2018-02-08 22:01:52 +01:00
Narcis Beleuzu f2b1b8c261 Backed out 3 changesets (bug 1434230) for assertion failures on MacroAssembler.cpp
Backed out changeset 7f67769bbbd8 (bug 1434230)
Backed out changeset 6598194588d7 (bug 1434230)
Backed out changeset 9c9ba4938b08 (bug 1434230)
2018-02-08 23:55:40 +02:00
Jan de Mooij b55aa41d52 Bug 1434230 part 1 - Some Spectre mitigations for loadStringChars. r=luke,nbp 2018-02-08 22:01:52 +01:00
Narcis Beleuzu d299fdd9b4 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-08 21:36:33 +02:00
Tom Schuster 7fd063c021 Bug 1420101 - Add default enabled pref for Array.prototype.values. r=jandem,bz
--HG--
extra : rebase_source : a8e3eb91d08c22e63a4ff4ac499067b8a64996f1
2018-02-02 18:46:21 +01:00
Jonathan Kingston 885a7ba307 Bug 1435261 - Remove access to appcache interface OfflineResourceList over insecure contexts r=baku,mayhemer
MozReview-Commit-ID: BK7rbKOd8Yq

--HG--
extra : rebase_source : e198d64baf66d5dc5f5aefe37db4fee6154c6cf9
2018-02-02 17:26:03 +00:00
Adrian Wielgosik 1438296c97 Bug 1436865 - Remove nsIDOMCrypto. r=bz
MozReview-Commit-ID: 4bQVSF94bbz

--HG--
extra : rebase_source : 6386e08c4a392b75473c47997e6cf01d35be78e2
2018-02-08 13:22:20 +01:00
Dorel Luca 112cc1ff6b Backed out 3 changesets (bug 1430857) for breaking tests on Windows Code Coverage builds a=backout
Backed out changeset a992887a6060 (bug 1430857)
Backed out changeset cc9b0ac5f66b (bug 1430857)
Backed out changeset 4bdd6d82f993 (bug 1430857)
2018-02-07 15:02:58 +02:00
Dorel Luca 106842f842 Merge mozilla-inbound to mozilla-central. a=merge 2018-02-07 11:58:17 +02:00
Gurzau Raul 772c8edfef Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-07 02:29:42 +02:00
Andrew McCreight 4a583a2b25 Bug 1432992, part 3 - Adjust some line numbers in tests. r=florian
Deleting lines in part 1 caused two tests to break, because they check
the line numbers for source files. The devtools part of the patch was
automatically generated.

MozReview-Commit-ID: DrDZeyVnpE0

--HG--
extra : rebase_source : 72c1623015f029a5adef20669cc102c568d3b67e
2018-02-01 13:35:20 -08:00
Aaron Klotz 200eb77750 Bug 1430857: Part 1 - Refactor DllServices to make it possible to obtain them from anywhere in Gecko; r=jimm
MozReview-Commit-ID: GfWata0eCc5

--HG--
extra : rebase_source : 3a5b4a6f0412311f0b9080a2b3b3a31e45d15b75
2018-01-30 14:23:10 -07:00
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Boris Zbarsky 63b8fc050e Bug 1435764 part 3. Add NodeFilter to xpc::GlobalProperties. r=kmag
MozReview-Commit-ID: Gv77ey3bHcs
2018-02-06 13:03:44 -05:00
Boris Zbarsky e555c88e30 Bug 1435764 part 2. Order the members of xpc::GlobalProperties in a sensible way. r=kmag
Alphabetical order, of course.  First interfaces, then ad-hoc things.

MozReview-Commit-ID: Dz9XGMNoRo
2018-02-06 13:03:43 -05:00
Boris Zbarsky 39ba3a2fd7 Bug 1435764 part 1. Fix up the naming of some xpc::GlobalProperties members. r=kmag
The members that correspond to interface names should match the interface names.

MozReview-Commit-ID: FB8vpX2IIt9
2018-02-06 13:03:43 -05:00
Boris Zbarsky 4f2bf4184c Bug 1435483 part 21. Remove nsIException::ToString. r=qdot
MozReview-Commit-ID: 17yuhlqzbr2
2018-02-05 16:34:06 -05:00
Boris Zbarsky d023fa0839 Bug 1435483 part 20. Remove nsIException::GetData. r=qdot
MozReview-Commit-ID: 9cDzCeddOmh
2018-02-05 16:34:06 -05:00
Boris Zbarsky 2e3807bdc2 Bug 1435483 part 19. Remove nsIException::GetLocation. r=qdot
MozReview-Commit-ID: AbVQ7IA4xqp
2018-02-05 16:34:06 -05:00
Boris Zbarsky 3bf93ec28e Bug 1435483 part 18. Remove nsIException::GetResult. r=qdot
MozReview-Commit-ID: JArus2ddEsL
2018-02-05 16:34:06 -05:00
Boris Zbarsky 12e9f78050 Bug 1435483 part 16. Switch to using dom::Exception, not nsIException, in C++ code. r=qdot
nsIException is builtinclass in idl, so whatever code we had to handle
non-dom::Exception nsIExceptions is dead code.

MozReview-Commit-ID: 6VnqDWt0041
2018-02-05 16:34:05 -05:00
Boris Zbarsky d748458d6f Bug 1435483 part 14. Remove nsIException::GetFilename/GetLineNumber/GetColumnNumber. r=qdot
MozReview-Commit-ID: 6JN7UvkhPgl
2018-02-05 16:34:05 -05:00
Boris Zbarsky 2c00c8c971 Bug 1435483 part 6. Add an infallible "lineNumber" getter on nsIStackFrame. r=qdot
MozReview-Commit-ID: 7aYg9kJhiab
2018-02-05 16:34:04 -05:00
Boris Zbarsky 02f7baafc0 Bug 1435483 part 5. Add an infallible "filename" getter on nsIStackFrame. r=qdot
MozReview-Commit-ID: D3uuehuDqOB
2018-02-05 16:34:04 -05:00
Boris Zbarsky 0920564cb3 Bug 1435483 part 3. Remove nsIXPCException. r=qdot
This interface is not usable from JS, because we don't expose initialize() in
the WebIDL bindings for Exception.  And C++ doesn't use it.

MozReview-Commit-ID: LsIm4YA0YZE
2018-02-05 16:34:04 -05:00
Boris Zbarsky de9c98ee56 Bug 1435483 part 2. Stop allowing creation of Exception objects via contract/CID. r=bholley
MozReview-Commit-ID: H6RmL4BZfgh
2018-02-05 16:34:04 -05:00
Andrea Marchesini 8cdf705535 Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly 2018-02-05 19:55:07 +01:00
Boris Zbarsky 13dda50f75 Bug 1435138 part 4. Remove nsIDOMSVGLength. r=qdot
MozReview-Commit-ID: HwKT9Bdby6F
2018-02-02 08:21:33 -05:00