Commit Graph
6035 Commits
Author SHA1 Message Date
Sebastian Hengst ff926683ca Backed out changeset 3eb67e350f38 (bug 1403366) 2017-09-29 17:19:46 +02:00
Mike Hommey 92c0a215b7 Bug 1403366 - Stop requiring argv[0] for XRE_GetBinaryPath and the underlying BinaryPath::Get. r=froydnj 2017-09-28 10:37:27 +09:00
Blake Kaplan 3488ac748f Bug 1396110 - Fix races during watchdog shutdown. r=billm
This patch also ensures that we won't accidentally try stopping slow scripts
when we're shutting down the watchdog manager.

MozReview-Commit-ID: EMb0enfivd8
2017-09-20 15:23:28 -07:00
Kris Maglione 4a3d336f0d Bug 1402503: Part 1 - Fix slow script add-on ID detection. r=mixedpuppy
MozReview-Commit-ID: EYhOn2TQCq1
2017-09-25 10:52:11 -07:00
Chris Peterson 66b5818be5 Bug 1402666 - Part 2: Replace Replace(NS_LITERAL_CSTRING("")) with ReplaceLiteral(""). r=erahm
MozReview-Commit-ID: Ho2DHuomdi3
2017-09-15 19:27:59 -07:00
Wes Kocher 0960ec2e95 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsbKCdZU2Ui
2017-09-26 17:14:31 -07:00
Wes Kocher 9e21e10ce3 Merge inbound to m-c a=merge
MozReview-Commit-ID: 6viJ4wRxLa8
2017-09-26 15:54:51 -07:00
Brian Hackett 4c16410a4e Backed out changeset 072f8d4a9964 (bug 1355109) for causing crashes with various extensions. a=lizzard 2017-09-26 14:12:25 -04:00
Jan de Mooij 7d8800f84b Bug 1153592 part 2 - Remove JSPROP_SHARED; ensure accessor props don't have slots. r=evilpie 2017-09-26 12:26:50 +02:00
Jan de Mooij 325f2ebe3b Bug 1403136 - Clean up JSSetterOp code now that slotful setters are gone. r=evilpie 2017-09-26 22:26:40 +02:00
Andrew McCreight ea27299d7f Bug 958643, part 6 - Remove some unused forward decls. r=krizsa
MozReview-Commit-ID: yMpU0hDUXP
2017-09-20 12:02:47 -07:00
Andrew McCreight 877ee6c301 Bug 958643, part 5 - Eliminate XPCJSObjectHolder. r=krizsa
It is now unused.

MozReview-Commit-ID: AzXW6qHdSOW
2017-09-20 10:26:16 -07:00
Andrew McCreight 0ceec13753 Bug 958643, part 4 - Inline CreateHolderIfNeeded. r=krizsa
The last argument is always null, so we don't need this function any more.

MozReview-Commit-ID: 5YWMO9ywZK3
2017-09-20 10:21:59 -07:00
Andrew McCreight b5b4c61356 Bug 958643, part 3 - Remove always-null second second argument to XPCConvert::NativeInterface2JSObject. r=krizsa
MozReview-Commit-ID: CQvJ1bZBLyS
2017-09-20 10:20:48 -07:00
Andrew McCreight 54c7a53b31 Bug 958643, part 2 - Remove always-null last argument to NativeInterface2JSObject. r=krizsa
MozReview-Commit-ID: G9F6wlMWCl9
2017-09-20 10:15:06 -07:00
Andrew McCreight 8a9a57ee01 Bug 958643, part 1 - Remove the unused nsXPConnect::WrapNativeHolder. r=krizsa
MozReview-Commit-ID: AOQYLS8FFrf
2017-09-20 10:12:35 -07:00
Chris Peterson 494ce0375a Bug 870698 - Part 7: Replace Insert(NS_LITERAL_CSTRING("")) with InsertLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: DbTW5Bhd9E1
2017-09-07 18:15:42 -07:00
Chris Peterson ce551e51b9 Bug 870698 - Part 4: Replace Equals("") with EqualsLiteral(""). r=erahm
MozReview-Commit-ID: G1GhyvD29WK
2017-09-06 01:13:45 -07:00
Chris Peterson 6137e4ff8b Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
MozReview-Commit-ID: CrkIP4iHP1U
2017-09-03 22:14:11 -07:00
Chris Peterson 4e9c1d3429 Bug 870698 - Part 1: Replace Assign("") with AssignLiteral(""). r=erahm
MozReview-Commit-ID: A0u9PP49OW3
2017-09-03 22:12:56 -07:00
Nicholas Nethercote e8236888ee Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.
2017-09-22 14:35:46 +10:00
Nicholas Nethercote a93e8aa10f Bug 1401100 - Remove nsIMemoryReporterCallback. r=erahm.
nsIHandleReportCallback, typedef of nsIMemoryReporterCallback, has been the
preferred name for a long time and is used in most places. This patch removes
nsIMemoryReporterCallback.
2017-09-22 08:09:29 +10:00
Kris Maglione 1721ba5bed Bug 1369533: Return dead wrappers rather than null for dead CallbackObject values. r=bz
We don't have access to an appropriate context to create the dead wrapper in
when the callback is nuked, so instead, this patch creates a new dead wrapper
in the caller compartment each time the property is accessed. This is the same
behavior we'd get when trying to re-wrap a cross-compartment dead wrapper, so
it's consistent with the way we handle these situations elsewhere.

MozReview-Commit-ID: 3cMeR4z8EOe
2017-09-04 17:21:06 -07:00
Andrew McCreight 1a7ea62d16 Bug 1176342, part 2 - De-COM the flags for InitClassesWithNewWrappedGlobal. r=mrbkap
MozReview-Commit-ID: 4QFtHPIzUd0
2017-09-19 13:12:50 -07:00
Andrew McCreight b6eea894a0 Bug 1176342, part 1 - De-COM InitClassesWithNewWrappedGlobal. r=mrbkap
MozReview-Commit-ID: EfRQW3QUXCG
2017-09-18 16:35:39 -07:00
Blake Kaplan 2feaf02c41 Bug 1398396 - Initialize the locale stuff on runtimes instead of contexts. r=billm
MozReview-Commit-ID: Il9HAqYdTzK
2017-09-11 15:46:14 -07:00
Jon Coppeard 92628b5345 Bug 1396613 - Update the object moved hook to allow it to be called when tenuring nursery objects r=sfink r=mccr8 2017-09-19 12:31:30 +01:00
Andrew McCreight 474c4c43ad Bug 1400406 - js/xpconnect/moz.build contains a reference to a non-existent directory. r=gps
Also, MOZ_XPCTOOLS does not appear to be a thing any more.

MozReview-Commit-ID: 99BR9rl4EnD
2017-09-15 14:35:15 -07:00
Kris Maglione 60abf50eb7 Bug 1399997: Part 3 - Update module environment tests with TODOs for shared module eval bindings. r=tcampbell
MozReview-Commit-ID: LVTNnN3HlKK
2017-09-14 13:08:17 -07:00
Kris Maglione 51dc332f05 Bug 1398895: Part 2 - Ensure component loader initialization after user prefs load. r=mccr8
The script precompiler needs to begin its work very early in the startup
process in order to be effective. At the moment, this means before user
preferences are loaded. It also needs to be able to compile scripts into
the shared JSM global when that's in use, in order to avoid unnecessary script
clones.

Since we can't know whether global sharing is enabled by that point, instead,
we just always compile module scripts into the shared module global rather
than the XPC compillation scope.

This also changes the global sharing tests to make a failure to respect the
user preference value a fatal error.

MozReview-Commit-ID: G0NkSOl2vU9
2017-09-11 13:52:13 -07:00
Ryan VanderMeulen 54b65fcec1 Merge m-c to inbound. a=merge 2017-09-14 10:52:18 -04:00
Ted Campbell 62f238c3cc Bug 1398601 - Fix wunused-variable errors when MOZ_DIAGNOSTIC_ASSERT isn't available. a=RyanVM
MozReview-Commit-ID: 1kvKcQBqog9
2017-09-14 06:35:00 -04:00
Wes Kocher 44c4ae360e Merge inbound to central, a=merge
MozReview-Commit-ID: ClVRh99eIUo
2017-09-14 00:03:28 -07:00
Nicholas Nethercote 5fbca0ea38 Bug 1399727 - Fix double-reporting of memory in ScriptPreloader. r=kmag.
DMD indicates double-reporting for mURL, indicating that it is shared.
2017-09-14 15:09:50 +10:00
Florian Quèze 9278da562f Bug 1398198 - browser_startup.js should show the stack when a JS file was loaded earlier than expected, r=felipe,mccr8. 2017-09-13 21:19:53 +02:00
Ted Campbell 6101acec85 Bug 1398601 - Add testcase for loading subscripts within a JSM r=kmag
MozReview-Commit-ID: I09eoUnQYCG
2017-09-10 14:57:04 -04:00
Ted Campbell 0783727b7b Bug 1398601 - Fix subscript loader when using JSM global sharing r=kmag
When using the subscript loader with JSM global sharing, it was possible
that subscript would pollute the global of all JSMs in the sharing.

MozReview-Commit-ID: 1ah5JUAZwBA
2017-09-10 14:23:32 -04:00
Ted Campbell 0c81c28ba7 Bug 1398601 - Add global/non-syntactic prefix to subscript loader cache r=kmag
We want to be able to store scripts compiled with or without
non-syntactic support in cache when we toggle JSM global sharing. In
current code this script is cloned on execution, but with JSM global
sharing we have would hit assertions.

MozReview-Commit-ID: 2pVTTxLpx6S
2017-09-12 18:05:08 -04:00
Phil Ringnalda 66ed3a445a Backed out 5 changesets (bug 1398601) for unexpected crashtest assertions
Backed out changeset b728872f4d9a (bug 1398601)
Backed out changeset 05957a92b1a5 (bug 1398601)
Backed out changeset f5c26c3407c0 (bug 1398601)
Backed out changeset eddc38b0afd0 (bug 1398601)
Backed out changeset 776a65d43a5e (bug 1398601)

MozReview-Commit-ID: 9lfUtdlZy7F
2017-09-12 20:11:49 -07:00
Ted Campbell 6c6fd9a514 Bug 1398601 - Add testcase for loading subscripts within a JSM r=kmag
MozReview-Commit-ID: I09eoUnQYCG
2017-09-10 14:57:04 -04:00
Ted Campbell 750138b430 Bug 1398601 - Fix subscript loader when using JSM global sharing r=kmag
When using the subscript loader with JSM global sharing, it was possible
that subscript would pollute the global of all JSMs in the sharing.

MozReview-Commit-ID: 1ah5JUAZwBA
2017-09-10 14:23:32 -04:00
Ted Campbell b1ad77750a Bug 1398601 - Add global/non-syntactic prefix to subscript loader cache r=kmag
We want to be able to store scripts compiled with or without
non-syntactic support in cache when we toggle JSM global sharing. In
current code this script is cloned on execution, but with JSM global
sharing we have would hit assertions.

MozReview-Commit-ID: 2pVTTxLpx6S
2017-09-12 18:05:08 -04:00
Jason Orendorff f5235a8008 Bug 1363200 - JSAPI for realms: Split xpc::RealmPrivate from xpc::CompartmentPrivate. r=mrbkap 2017-06-08 11:07:10 -05:00
Jason Orendorff 6e13ccbfc0 Bug 1363200 - JSAPI for realms: Change a few XPConnect methods to take Realm arguments instead of JSCompartments. r=mrbkap
This also introduces JS::GetObjectRealmOrNull, which returns an object's realm,
or null if the object is a cross-compartment wrapper. In the new order,
wrappers can't have realms, since they must be shared across all realms in a
compartment. We're introducing this new function early (even though it's
*currently* possible to assign a realm to wrappers) in order to see in
advance if the possibility of returning null will cause problems.
(It looks like it won't.)
2017-06-28 12:31:53 -07:00
Sebastian Hengst 3da80f316b merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CmMBcpJapLy
2017-09-12 11:35:15 +02:00
Phil Ringnalda fb35608dbf Backed out 4 changesets (bug 1398601) for Windows Marionette crashes @ ExecuteInExtensibleLexicalEnvironment
Backed out changeset 7aac2595bc17 (bug 1398601)
Backed out changeset 7a4bb5a1848a (bug 1398601)
Backed out changeset dd4af7998505 (bug 1398601)
Backed out changeset e9816be61b49 (bug 1398601)

MozReview-Commit-ID: LLJ99dkRQEg
2017-09-11 20:20:16 -07:00
Ted Campbell f110f4833d Bug 1398601 - Add testcase for loading subscripts within a JSM r=kmag
MozReview-Commit-ID: I09eoUnQYCG
2017-09-10 14:57:04 -04:00
Ted Campbell 54d78fd0df Bug 1398601 - Fix subscript loader when using JSM global sharing r=kmag
When using the subscript loader with JSM global sharing, it was possible
that subscript would pollute the global of all JSMs in the sharing.

MozReview-Commit-ID: 1ah5JUAZwBA
2017-09-10 14:23:32 -04:00
Wes Kocher 350ea6c959 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 2dRRh6JLTIL
2017-09-11 15:21:36 -07:00
Andrew McCreight ff72c235dd Bug 1377587, part 2 - Rename ExposedPropertiesOnly to OpaqueWithSilentFailing. r=krizsa
This class doesn't have anything to do with __exposedProps__ any more,
so give it a more descriptive name. We'd still like to remove it
entirely eventually.

MozReview-Commit-ID: 87KCpG6f8rI
2017-09-07 11:17:16 -07:00