Commit Graph

14899 Commits

Author SHA1 Message Date
Nomis101
083b9ba519 Bug 1279734 - "Fix two comment typos in nsTextFormatter.cpp". r=nfroyd 2016-06-11 10:41:45 +02:00
Phil Ringnalda
5e0adb7d56 Back out 5 changesets (bug 1271180) for static analysis bustage
CLOSED TREE

Backed out changeset cfb53b780b18 (bug 1271180)
Backed out changeset 204b084385f8 (bug 1271180)
Backed out changeset 353da876be33 (bug 1271180)
Backed out changeset 4472dfbc1dc6 (bug 1271180)
Backed out changeset 81079e787b8a (bug 1271180)

--HG--
rename : ipc/glue/TaskFactory.h => dom/plugins/ipc/TaskFactory.h
2016-06-11 00:46:09 -07:00
David Anderson
39defbc2f7 Add GeckoProcessType_GPU. (bug 1271180 part 3, r=billm)
--HG--
extra : rebase_source : 30353c82c34e03996ff0551330ebe86e2010cbaf
2016-06-10 21:54:44 -04:00
Ralph Giles
956493cd6e Bug 1275744 - Reference MOZ_LOG in xpcom comments. r=erahm
NSPR_LOG_MODULES is deprecated.

MozReview-Commit-ID: Cel3JCLXLmp

--HG--
extra : rebase_source : da100ece62fd571d19a07455f8c256f5cd39f62b
2016-05-25 15:26:10 -07:00
Andrew McCreight
a9c0939624 Bug 1278796, part 5 - Move InitNextPointers into the PurpleBlock ctor. r=smaug
This makes sure that it will always happen, and should placate static
analyses.
2016-06-10 09:17:58 -07:00
Andrew McCreight
4877f53ebf Bug 1278796, part 4 - Move InitNextPointers out of InitBlocks. r=smaug
This clears the way for the next patch.
2016-06-10 09:17:58 -07:00
Andrew McCreight
21a0cf7d40 Bug 1278796, part 3 - Inline StartBlock. r=smaug
This method doesn't do much, and in a later patch it will do even
less.
2016-06-10 09:17:57 -07:00
Andrew McCreight
6e83659330 Bug 1278796, part 2 - Initialize PurpleBlock next pointers in a method. r=smaug 2016-06-10 09:17:57 -07:00
Andrew McCreight
c1b7175950 Bug 1278796, part 1 - Inline |entries| in StartBlock. r=smaug
It is used inconsistently, which is confusing. A later patch will move
these into a PurpleBlock method, so the length shouldn't be an issue.
2016-06-10 09:17:57 -07:00
Till Schneidereit
b0d2250794 Bug 911216 - Part 24: Use promise rejection tracking to report unhandled rejections to the console. r=bz,Paolo 2016-03-22 16:22:24 +01:00
Jan de Mooij
8c1aaa3154 Bug 1278947 part 1 - Stop using JSContext callback in XPConnect. r=bz
--HG--
extra : rebase_source : 1e971a2a2a2a2b9068bd59d98156fa84b8f4b105
2016-06-10 09:27:14 +02:00
Eric Rahm
9f0aed4b73 Bug 1270310 - Part 2: Pass buffer length to Assign call in ConvertStringLineBreaks. r=froydnj
The length of the new buffer being assigned in ConvertStringLineBreaks has
already been calculated, so we can pass that in.
2016-05-05 15:52:16 -07:00
Eric Rahm
f5b4b3b7b8 Bug 1270310 - Part 1: Make allocation in ConvertStringLineBreaks fallible. r=froydnj, r=smaug
ConvertStringLineBreaks calls ConvertUnicharLineBreaksInSitu which uses
fallible allocation. We should make the potential allocation in |BeginWriting|
fallible as well and handle the failure. This also updates the callers to
|ConvertStringLineBreaks| to handle the error properly in release builds.
2016-05-05 15:50:35 -07:00
Nicholas Nethercote
5592622f09 Bug 1277104 - Add strings to high-frequency MOZ_CRASH() occurrences. mccr8.
Some of these are guesses; it's not always clear from a crash report stack
trace which MOZ_CRASH() was hit.
2016-06-09 13:09:58 +10:00
Gerald Squelart
e4f93ee534 Bug 1271593 - Unit test for NS_NewRunnableFunction - r=froydnj
Tests to verify that the number of copies and moves are as expected.
Also check that the runnable is fully self-contained and can be used after the
initial function objects have been destroyed or moved-from.

MozReview-Commit-ID: ArwIG9BEhDX

--HG--
extra : rebase_source : b2ee07294fcff17b76da468ddbaeb2b62d600536
2016-06-02 00:53:35 +02:00
Gerald Squelart
e8513ef5ee Bug 1271593 - NS_NewRunnableFunction should forward its arg - r=froydnj
By perfect-forwarding its argument, we can automatically gain move semantics
optimization when storing the given function object into nsRunnableFunction.
Also it allows movable-only function objects.

Note that any reference is removed from the type to be stored, so that the
runnable always contain a concrete function object.

MozReview-Commit-ID: 9EZK84ZhMvR

--HG--
extra : rebase_source : e1f87c3284fda4df6d13839ea6a0b0c2ce196833
2016-06-02 01:21:36 +02:00
Nicholas Nethercote
829225e78d Bug 1278452 - Remove a redundant null check in xpcom/glue/. r=froydnj.
There's another null check just a little earlier.

--HG--
extra : rebase_source : 24968e6bc5f12c3aa5d53711ebbb7f849c4501c3
2016-06-07 16:13:17 +10:00
Jan de Mooij
dad997a833 Bug 1277278 part 3 - Rename error reporter callback to warning reporter, assert it's only used for warnings. r=luke
--HG--
extra : rebase_source : ac1febc5220d649853f35c29de89a5e9ffb4fe98
2016-06-07 20:30:48 +02:00
Nathan Froyd
27e75b365b Bug 1276540 - remove dead instrumentation in xptiInterfaceInfo.cpp; r=erahm
Doubt anybody has compiled with the appropriate #define in a while, and
there's no evidence of the associated DEBUG_* constants being used.
2016-06-07 17:09:41 -04:00
Wes Kocher
807cf956d8 Merge m-c to inbound, a=merge 2016-06-06 17:14:49 -07:00
Nathan Froyd
2be85aa542 Bug 1277890 - part 0 - add "append already_AddRefed element" API to nsCOMArray; r=erahm 2016-06-07 04:10:25 -04:00
Nicholas Nethercote
f0f5072443 Bug 1278156 - Remove useless null check in xp_iconv(). r=froydnj.
aOutputLeft is null checked and then dereferenced twice more in this function,
and all callers pass a non-null pointer. So just remove the null check.

--HG--
extra : rebase_source : 8190a51fde8434ac346a4e23db5ed4703762778c
2016-06-03 14:59:16 +10:00
ffxbld
219956a13e Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-06-06 15:18:13 -04:00
Nicholas Nethercote
4f1d56df39 Backout 0ed86240bc77 for bustage. 2016-06-06 11:51:44 +10:00
Nicholas Nethercote
8bc7cd881e Bug 1274148 (part 1) - Use MOZ_MUST_USE more in xpcom/io/Base64.h. r=erahm,bagder,mattwoodrow.
--HG--
extra : rebase_source : b468df852789a22e3d50a9580515bb6aa46784d5
2016-06-06 09:21:00 +10:00
Jed Davis
78e49e2efb Bug 1114647 - Use firefox for child processes instead of plugin-container. r=ted
Disabled on Mac (content processes need to use plugin-container.app for
UI reasons) and on Linux unless --disable-sandboxing (build issues).

Based on work by George Wright <george@mozilla.com>.

--HG--
extra : amend_source : 43986e25743de21e3ddfb7893e3ed550fe6eef76
2016-06-03 12:49:39 -07:00
Andrew Swan
1b1d9f5e45 Bug 1270356 Part 1: Add native messaging paths to XRE directory provider r=kmag
MozReview-Commit-ID: 2tjR3r9YySy

--HG--
extra : rebase_source : 1c8da185fd653e91f40cebc5e27ae560a787ef8e
extra : source : 77a30c81f8e830676a23da91b87ab78cda93a4d0
2016-05-12 11:39:27 -07:00
Jan de Mooij
b0f9749010 Bug 1278223 part 1 - Stop using multiple contexts per runtime in gtests. r=fitzgen 2016-06-06 19:45:06 +02:00
Kyle Huey
b42f297a3a Bug 1273683: Purge any evidence that dougt could write code. r=dougt 2016-06-06 06:51:16 -07:00
Nicholas Nethercote
ec7a660ceb Bug 1274148 (part 1, attempt 2) - Use MOZ_MUST_USE more in xpcom/io/Base64.h. r=erahm,bagder,mattwoodrow.
--HG--
extra : rebase_source : 3e4a861f4f9c4151ffbad110159ad541119278fa
2016-06-06 12:22:14 +10:00
Xidorn Quan
5c01d7c3ee Bug 1276549 - Remove rvalue reference mark for already_AddRefed params of nsIEventTarget::Dispatch and related methods. r=froydnj
MozReview-Commit-ID: J5RAfGW3X7T

--HG--
extra : source : e1ff4b0d5d9d2599ac00bac376597357ffd58ce0
2016-06-01 10:04:54 +10:00
Nicholas Nethercote
a6bf1a62c2 Bug 1276837 (part 2) - Rename the CC Block structs. r=mccr8.
nsCycleCollector.cpp has three different structs named "Block", which makes it
hard to read. This patch renames them as EdgeBlock, NodeBlock, and PurpleBlock.

--HG--
extra : rebase_source : cae17ba925559b625f65a4741ae0bb4bee99d078
2016-06-01 09:18:33 +10:00
Nicholas Nethercote
9fe123f601 Bug 1276837 (part 1) - Shrink NodePool::Block. r=mccr8.
15% of our "small" OOM crashes are allocations of this struct. Halving its size
will hopefully help reduce that.

--HG--
extra : rebase_source : 5480a540a9584899def045c1401a5aa9a271d72c
2016-06-01 09:13:21 +10:00
Wes Kocher
a181d1f7a0 Backed out 2 changesets (bug 1271593) for GTest failures
Backed out changeset 0839aaf88283 (bug 1271593)
Backed out changeset bf90268fe339 (bug 1271593)
2016-05-31 16:47:44 -07:00
Gerald Squelart
7912b3c534 Bug 1271593 - Unit test for NS_NewRunnableFunction - r=froydnj
MozReview-Commit-ID: ArwIG9BEhDX

--HG--
extra : rebase_source : fa6fda2379fa563cd2ecaaaef1f66b164d7b5712
2016-05-27 19:20:03 +02:00
Gerald Squelart
52e7064618 Bug 1271593 - NS_NewRunnableFunction should forward its arg - r=froydnj
By perfect-forwarding its argument, we can automatically gain move semantics
optimization when storing the given function object into nsRunnableFunction.
Also it allows movable-only function objects.

MozReview-Commit-ID: 9EZK84ZhMvR

--HG--
extra : rebase_source : 9ec11f728d69d4b032d9ba4263241832030b383a
2016-05-10 18:13:14 +10:00
Boris Zbarsky
89b93668b8 Bug 1276112. Stop using GetScriptContextFromJSContext in CycleCollectedJSRuntime::UsefulToMergeZones. r=mccr8 2016-05-27 13:28:26 -04:00
Jarda Snajdr
a8fa0feb87 Bug 1269765 - Notify http-on-opening-request in content process. r=valentin 2016-05-30 01:24:00 +02:00
Carsten "Tomcat" Book
81eb193787 Backed out changeset e8af287d0d10 (bug 1276112) for causing windows gl crashes 2016-05-30 10:29:44 +02:00
Makoto Kato
5fb3b6c9fa Bug 1275719 - GetShimForParam should traverse parent objects. r=froydnj
When using GetIIDForParamNoAlloc to get return paramter type, if param is nsIDOM*, it should get it by GetShimForParam.

When this situation, GetEntryFor Param tries to get nsIDOMDocument, so GetEntryForParam doesn't get entry.  Then, GetShimForParam tries to get entry.  But since it doesn't traverse parent objects, it will try to get nsIDocShell instead.

So it might not get correct entry.

MozReview-Commit-ID: LaOVymgFMgi

--HG--
extra : rebase_source : 9ce3b38872dd6bcabd473296cc5bda25c7d5ceab
extra : histedit_source : 385797913a2d76e2981b4106d572edd784145126
2016-05-26 23:09:06 +09:00
Nicholas Nethercote
34313286ee Bug 1272203 (part 4) - Use NotNull for XPTCursor. r=froydnj.
This is a nice example of using NotNull for a single non-null pointer that gets
passed around lots of different functions.
2016-05-27 09:49:26 +10:00
Nicholas Nethercote
19c16a645a Bug 1272203 (part 2) - Use NotNull in nsThread. r=froydnj. 2016-05-27 09:49:23 +10:00
Bobby Holley
70200c80e9 Bug 1275755 - Remove main-thread restrictions on atoms. r=froydnj 2016-05-28 17:08:10 +01:00
Bobby Holley
2c597c5a3d Bug 1275755 - Use a GC scheme to free unused atoms. r=froydnj 2016-05-28 17:08:08 +01:00
Bobby Holley
95caf3be29 Bug 1275755 - Protect gAtomTable with a lock. r=froydnj 2016-05-28 17:08:07 +01:00
Bobby Holley
3eec1c3284 Bug 1275755 - Use an explicit init routine for the atom table. r=froydnj 2016-05-28 17:08:05 +01:00
Bobby Holley
60591b7a86 Bug 1275755 - Remove MOZ_DUMP_ATOM_LEAKS. r=froydnj
I don't think anyone is using this anymore. It would be good to assert that there
are no leaks, but that doesn't pass for me in a local build, and I don't have time
to chase it.
2016-05-28 17:08:03 +01:00
Chris Peterson
11ef78ae89 Bug 1275016 - Rename Endian.h to EndianUtils.h to avoid #include confusion with Android's endian.h stdlib header. r=froydnj
--HG--
rename : mfbt/Endian.h => mfbt/EndianUtils.h
2016-05-22 13:31:11 -07:00
Boris Zbarsky
74ebb7940f Bug 1276112. Stop using GetScriptContextFromJSContext in CycleCollectedJSRuntime::UsefulToMergeZones. r=mccr8 2016-05-27 13:28:26 -04:00
Till Schneidereit
5e6b8217c4 Bug 911216 - Part 13: Set Promise allocation stack as async stack for Promise callback jobs. r=efaust,bz 2016-03-22 16:22:23 +01:00