Commit Graph

565809 Commits

Author SHA1 Message Date
Jan de Mooij
b99ddfe0e7 Bug 1408058 part 3 - Inline slot reads on the prototype in Ion based on Baseline feedback. r=evilpie 2017-10-26 09:38:22 +02:00
Jan de Mooij
3cf15ea9ac Bug 1408058 part 2 - Teach scalar replacement about GuardGroup and GuardUnboxedExpando. r=nbp 2017-10-26 09:37:50 +02:00
Jan de Mooij
1c2f14ee70 Bug 1408058 part 1 - Track preliminary object IC stubs better. r=evilpie 2017-10-26 09:37:20 +02:00
Florian Quèze
91d5705b0d Bug 1408446 - Avoid the 'dialog' features to prevent blank add-on popups on Linux, r=kmag. 2017-10-26 09:20:53 +02:00
Brian Grinstead
57317a8455 Bug 1329262 - Enable compact themes in mozscreenshots. r=MattN
MozReview-Commit-ID: A574iIkQgkW

--HG--
extra : rebase_source : 707e7aeba0426ecb9f95bc7fb3f364f95b9f3cf2
2017-10-26 00:18:15 -07:00
Carl Corcoran
6f4615d236 Bug 1333126 - Use win64 PE unwind metadata to improve client-side stack walking; r=gsvelto
This includes tests that cover both regular CFI stack walking as well as
pathological corner cases.


MozReview-Commit-ID: GDARnPSemyu

--HG--
extra : source : 1a140f07e06de7e7d96a37d693db832311b301ae
2017-08-06 08:46:50 +02:00
Kris Maglione
cbb83dfe9a Bug 1409249: Follow-up: Fix libjar ref counting bustage. r=bustage
MozReview-Commit-ID: IbazBuzLGvN

--HG--
extra : rebase_source : a8f9c3562868b190ffa336cb306903c5608a4f5f
2017-10-25 23:05:02 -07:00
Nicholas Nethercote
5f344fea70 Bug 1411480 (attempt 2) - Remove the machinery for choosing the dirty callback. r=glandium.
It's unnecessarily general, because we only ever use
Preferences::DirtyCallback() as the callback.

And because it's no longer a callback, the patch renames DirtyCallback() as
HandleDirty().

MozReview-Commit-ID: Hl50dcxfVQq

--HG--
extra : rebase_source : 5807d2ed650466f85cd7325f2adccdc177ccb4d2
2017-10-26 16:14:01 +11:00
Nicholas Nethercote
0416bcac82 Bug 1411480 (attempt 2) - Inline and remove PREF_GetPrefType(). r=glandium.
It has a single call site.

MozReview-Commit-ID: o5CwR8Od7o

--HG--
extra : rebase_source : 85663f6414ae7214d2ba32a0bb3b3166da2c89c5
2017-10-26 16:14:00 +11:00
Nicholas Nethercote
9e821ded90 Bug 1411480 (attempt 2) - Inline and remove pref_[SG]etInitPhase(). r=glandium.
They both have a single use.

MozReview-Commit-ID: 4Jj64B6NV0o

--HG--
extra : rebase_source : 19c1d93393688daee5b7670be241785639df81d2
2017-10-26 16:14:00 +11:00
Nicholas Nethercote
3418db65be Bug 1411480 (attempt 2) - Inline and remove pref_SetWatchingPref(). r=glandium.
It's simple enough that having a separate function isn't helpful.

MozReview-Commit-ID: Ke9BIfp9yHU

--HG--
extra : rebase_source : 57aee451b8fd3450da4a604cefbf9fafda894b1c
2017-10-26 16:14:00 +11:00
Nicholas Nethercote
dc68184056 Bug 1411480 (attempt 2) - Inline and remove the parser's pref_DoCallback() function. r=glandium.
Preferences.cpp has two functions named pref_DoCallback(). One of them has a
single use in the parser. This patch inlines that single use to remove the name
duplication.

MozReview-Commit-ID: HnyteQ0N5M1

--HG--
extra : rebase_source : 37a34f3fbe866eee71a7bf0bba07d9d67cc8c81d
2017-10-26 15:32:15 +11:00
Boris Zbarsky
0015c73286 Bug 1411138. Be consistent (and follow the spec) in terms of how we determine the element that propagates styles to the viewport. r=dholbert
MozReview-Commit-ID: 8tH3nCDQJID
2017-10-26 00:35:22 -04:00
Edgar Chen
b3157c0147 Bug 1410790 - Add more assertion in CustomElementData::SetCustomElementDefinition and GetCustomElementDefinition; r=smaug
This is a follow-up patch for bug 1392970. Since we only set CustomElementDefinition on a custom element
which is "custom", we could add more assertion to ensure that.

MozReview-Commit-ID: 2sLP53bAYVV

--HG--
extra : rebase_source : 523761aa7312ddfaaf91f79e39c44ddce5cf9335
2017-10-13 11:54:46 +08:00
Kris Maglione
dee87d13ab Bug 1409249: Follow-up: Fix Android build bustage. r=bustage
MozReview-Commit-ID: 1I3z8Oqz9Qm
2017-10-25 20:56:41 -07:00
Kris Maglione
257d9118dc Bug 1409249: Require singleton constructors to return explicit already_AddRefed. r=froydnj
Right now, NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR expects singleton
constructors to return already-addrefed raw pointers, and while it accepts
constructors that return already_AddRefed, most existing don't do so.

Meanwhile, the convention elsewhere is that a raw pointer return value is
owned by the callee, and that the caller needs to addref it if it wants to
keep its own reference to it.

The difference in convention makes it easy to leak (I've definitely caused
more than one shutdown leak this way), so it would be better if we required
the singleton getters to return an explicit already_AddRefed, which would
behave the same for all callers.


This also cleans up several singleton constructors that left a dangling
pointer to their singletons when their initialization methods failed, when
they released their references without clearing their global raw pointers.

MozReview-Commit-ID: 9peyG4pRYcr

--HG--
extra : rebase_source : 2f5bd89c17cb554541be38444672a827c1392f3f
2017-10-16 21:08:42 -07:00
Phil Ringnalda
535f8401d0 Backed out 11 changesets (bug 1411480) for libpref xpcshell test failures
Backed out changeset 0f266ffacf0d (bug 1411480)
Backed out changeset 75212b4a8c0a (bug 1411480)
Backed out changeset 0c807a8e8b29 (bug 1411480)
Backed out changeset 21324f73db0c (bug 1411480)
Backed out changeset f7de6fa0ef2c (bug 1411480)
Backed out changeset b7cdbe5153fa (bug 1411480)
Backed out changeset 8a66ec3e8338 (bug 1411480)
Backed out changeset 3fdf2ac7762d (bug 1411480)
Backed out changeset eaa177ef5f60 (bug 1411480)
Backed out changeset e87ba9542cf8 (bug 1411480)
Backed out changeset f1cf84a50ebc (bug 1411480)

MozReview-Commit-ID: GEVRPZp5eSH
2017-10-25 20:03:25 -07:00
Phil Ringnalda
f1d9f1f380 Backed out changeset c2bdce9b76f2 (bug 1411458) for Mac Windows and Android build bustage
MozReview-Commit-ID: 20DOPFcmRFH
2017-10-25 19:22:36 -07:00
Ryan VanderMeulen
140ebef4af Backed out changeset 2c36f41ed77c (bug 1410123) for causing frequent Windows mochitest-gl leaks. 2017-10-25 22:10:11 -04:00
Nicholas Nethercote
14790e76d7 Bug 1411480 - Make CallbackNode::mDomain const. r=glandium.
MozReview-Commit-ID: EvLC5FrMyKy

--HG--
extra : rebase_source : d5998326dd40365903554094b9038248095020dc
2017-10-26 12:29:41 +11:00
Nicholas Nethercote
9222ab2401 Bug 1411480 - Make PrefValue::mStringVal const. r=glandium.
This makes it clear that the stored string values are never modified.

It requires some const_casts to free the strings, but that feels like an ok
trade-off.

MozReview-Commit-ID: JikBT3uwpfq

--HG--
extra : rebase_source : e611e57de4f059275ae2908f7300065cf953461d
2017-10-26 12:29:34 +11:00
Nicholas Nethercote
9702633811 Bug 1411480 - Change PrefSaveData's element type. r=glandium.
Because nsCString is nicer than UniqueFreePtr<char>.

The patch also streamlines pref_savePrefs(). And also changes StrEscape() to
always put quotations around the result, because that's needed in both call
sites.

MozReview-Commit-ID: HT7HZz4QiSN

--HG--
extra : rebase_source : f8d26a8c9f7ea911272113efc56744df639c5ccf
2017-10-25 10:22:39 +11:00
Nicholas Nethercote
d7b5b4b246 Bug 1411480 - Use |private| instead of |protected| in nsPrefBranch. r=glandium.
There's not much use using |protected| in a |final| class.

MozReview-Commit-ID: IECyfNGZsL5

--HG--
extra : rebase_source : bc9597ee45583e809f89f7e558cc325460390f98
2017-10-25 10:22:39 +11:00
Nicholas Nethercote
e52452101f Bug 1411480 - Remove pref_savePrefs()'s argument. r=glandium.
It's always gHashTable, and all the other functions in this file work directly
on gHashTable rather than taking a parameter.

MozReview-Commit-ID: BDCEvcMlo8P

--HG--
extra : rebase_source : e5d10e42401136a9a82d665d9717cf71ecf7e4ae
2017-10-25 10:22:39 +11:00
Nicholas Nethercote
f357e38587 Bug 1411480 - Simplify pref_HashPref()'s workings. r=glandium.
First, the patch removes the return values from PrefTypeFlags::Set*(). They
allow chained calls, but they're barely used and they just make the code harder
to read.

Second, the patch changes pref_SetValue() to not modify and return the pref
flags. It's clearer if the flags changing is done separately. This requires
passing pref_SetValue() the old type instead of the flags.

MozReview-Commit-ID: HZVS2TIlBIY

--HG--
extra : rebase_source : 32950f00975f7d9df63fa0af1c36e82b58516245
2017-10-25 10:22:39 +11:00
Nicholas Nethercote
74915ed170 Bug 1411480 - Remove the machinery for choosing the dirty callback. r=glandium.
It's unnecessarily general, because we only ever use
Preferences::DirtyCallback() as the callback.

And because it's no longer a callback, the patch renames DirtyCallback() as
HandleDirty().

MozReview-Commit-ID: Hl50dcxfVQq

--HG--
extra : rebase_source : f453d31215de3fdb0c5b6176becf2669e7ad55f1
2017-10-25 10:22:38 +11:00
Nicholas Nethercote
21290f6159 Bug 1411480 - Inline and remove PREF_GetPrefType(). r=glandium.
It has a single call site.

MozReview-Commit-ID: o5CwR8Od7o

--HG--
extra : rebase_source : 2f24a0bc7fa65af8cb60b820982c8d6cb8ee5298
2017-10-25 10:22:38 +11:00
Nicholas Nethercote
5eeb08fa63 Bug 1411480 - Inline and remove pref_[SG]etInitPhase(). r=glandium.
They both have a single use.

MozReview-Commit-ID: 4Jj64B6NV0o

--HG--
extra : rebase_source : 51297caa052281544383bc76f120b4b62b686015
2017-10-25 10:22:38 +11:00
Nicholas Nethercote
49e302c18e Bug 1411480 - Inline and remove pref_SetWatchingPref(). r=glandium.
It's simple enough that having a separate function isn't helpful.

MozReview-Commit-ID: Ke9BIfp9yHU

--HG--
extra : rebase_source : de1518544ddb28185635628c33d356ab07480c1c
2017-10-25 10:22:38 +11:00
Nicholas Nethercote
529db19e62 Bug 1411480 - Inline and remove the parser's pref_DoCallback() function. r=glandium.
Preferences.cpp has two functions named pref_DoCallback(). One of them has a
single use in the parser. This patch inlines that single use to remove the name
duplication.

MozReview-Commit-ID: HnyteQ0N5M1

--HG--
extra : rebase_source : 93f963d3ba445c1c3a482fa95dbab33e57dae188
2017-10-25 10:22:38 +11:00
David Keeler
f81f2d20db Bug 1411458 - Confirm we actually have a PKCS#7 signedData content info. r=jcj
MozReview-Commit-ID: GKfL1C0EPWt
2017-10-25 09:54:13 -07:00
André Bargull
96f8fc64b9 Bug 1406398 - Avoid rooting the object twice in EnumerableOwnProperties. r=jandem 2017-10-12 09:20:07 -07:00
Paul Bone
72289df407 Bug 1410276 - Add a canary field to nsStringBuffer. r=bz 2017-10-25 23:21:47 +11:00
Rofael Aleezada
626c4563b7 Bug 818634 - Remove support for Date.prototype.toLocaleFormat. r=gandalf, r=anba 2017-10-18 21:51:32 -05:00
Jesse Ruderman
85a0a23d40 Bug 1248222 - Add crashtest. r=me 2017-10-25 21:03:17 -04:00
Jesse Ruderman
ae2294df40 Bug 1242822 - Add crashtest. r=me 2017-10-25 21:03:17 -04:00
Jesse Ruderman
7dfed796b9 Bug 1242811 - Add crashtest. r=me 2017-10-25 21:03:16 -04:00
Jesse Ruderman
e524f59c09 Bug 1229972 - Add crashtest. r=me 2017-10-25 21:03:16 -04:00
Jesse Ruderman
1c94b2275e Bug 1228127 - Add crashtest. r=me 2017-10-25 21:03:16 -04:00
Jesse Ruderman
b304b15bff Bug 895233 - Add crashtest. r=me 2017-10-25 21:03:16 -04:00
Jesse Ruderman
0895ae5e71 Bug 747302 - Add crashtest. r=me 2017-10-25 21:03:16 -04:00
Jesse Ruderman
1bd739f84f Bug 747132 - Add crashtest. r=me 2017-10-25 21:03:16 -04:00
Jesse Ruderman
39171de089 Bug 746866 - Add crashtest. r=me 2017-10-25 21:03:15 -04:00
Jesse Ruderman
052e25b132 Bug 746849 - Add crashtest. r=me 2017-10-25 21:03:15 -04:00
Jesse Ruderman
41d58ad1d4 Bug 746847 - Add crashtest. r=me 2017-10-25 21:03:15 -04:00
Jesse Ruderman
ef85cadf01 Bug 746844 - Add crashtest. r=me 2017-10-25 21:03:15 -04:00
Jesse Ruderman
679e4b5aa5 Bug 1221304 - Add crashtest. r=me 2017-10-25 21:03:15 -04:00
Jesse Ruderman
8d838329c9 Bug 746497 - Add crashtest. r=me 2017-10-25 21:03:14 -04:00
Jesse Ruderman
44192a9753 Bug 746495 - Add crashtest. r=me 2017-10-25 21:03:14 -04:00
Jesse Ruderman
c6bbb01a1e Bug 746491 - Add crashtest. r=me 2017-10-25 21:03:14 -04:00