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

604539 Коммитов

Автор SHA1 Сообщение Дата
Jon Coppeard 3f2ce73979 Bug 1476012 - Remove the dependency of DeletePolicy.h on BigIntType.h r=sfink 2018-07-17 13:09:16 +01:00
Jon Coppeard 1965758811 Bug 1476012 - Remove dependency of Principals.h on StructuredClone.h r=sfink 2018-07-17 13:08:55 +01:00
Jon Coppeard a969896eca Bug 1476012 - Remove dependency of Realm.h on GlobalObject.h r=jandem 2018-07-17 13:08:34 +01:00
Jon Coppeard 1dd2f15dca Bug 1476012 - Remove the dependency of JitFrames.h on Safepoints.h r=nbp 2018-07-17 13:07:47 +01:00
Jon Coppeard 2a3afad54b Bug 1476012 - Remove the dependency of JitcodeMap.h on CodeGenerator-shared.h r=nbp 2018-07-17 13:07:14 +01:00
Jon Coppeard f139a60eec Bug 1476012 - Split SIMD constant definitions out into builtin/SIMDConstants.h r=bbouvier 2018-07-17 13:06:33 +01:00
Jon Coppeard c2299eb7b5 Bug 1476012 - Remove dependency of jit/BaselineJit.h on jit/MacroAssembler.h r=nbp 2018-07-17 13:06:03 +01:00
Jon Coppeard b2fa0b461d Bug 1476012 - Remove dependency of jit/IonAnalysis.h on jit/MIR.h r=nbp 2018-07-17 13:05:42 +01:00
Benjamin Bouvier 1b4d23db0a Bug 1475968: Ignore wasm frames in a DebugModeOSRVolatileFrameIter; r=jandem
--HG--
extra : rebase_source : 953e27a7b8a36ebfcf32ceb07152fe64e19826b8
extra : amend_source : c535e1c4e60a13344150e31d31403e7306854cb4
2018-07-16 18:28:50 +02:00
Coroiu Cristina f3162b921c Merge mozilla-central to mozilla-inbound a=merge on a CLOSED TREE 2018-07-17 12:48:47 +03:00
Andrea Marchesini 14262bdc7c Bug 1418241 - CSP violation: blockedURI inline/eval, r=ckerschb 2018-07-17 11:13:12 +02:00
Andrea Marchesini 375af7205f Bug 1476190 - Clear-Site-Data enabled in nightly, r=me 2018-07-17 11:12:13 +02:00
Marco Castelluccio ef1bf74fc5 Bug 1476213 - Be more verbose when resetting/dumping counters. r=calixte
--HG--
extra : source : 485052453b4c0a1556c7e416b3b17b7078d5b793
2018-07-17 10:05:45 +02:00
Philipp Klein 0d439e200e Bug 1473804: Add doc comments to specified `float` and `clear` CSS property. r=emilio
DONTBUILD, because comment-only change.

MozReview-Commit-ID: 1Ls9NKrDlES
2018-07-17 10:31:09 +02:00
Emilio Cobos Álvarez 6b1dec4b78 Bug 1473804: Don't lie to AutoTArray::EnsureCapacity. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D1995

MozReview-Commit-ID: 350uWaD49tS
2018-07-17 10:23:47 +02:00
Emilio Cobos Álvarez 10c9edc486 Bug 1476054: Remove a useless cfg. r=me
MozReview-Commit-ID: HrVqhA6FiIA
2018-07-17 10:23:26 +02:00
Emilio Cobos Álvarez 352d3ea810 Bug 1476054: Fix Servo build and unit tests build. r=me
MozReview-Commit-ID: Azyet6aYLez
2018-07-17 10:23:26 +02:00
Emilio Cobos Álvarez adf95c2d09 Bug 1476054: Fixes and cleanups for Servo PR #21156. r=me
Similar to the previous patch, logical clear doesn't appear in computed style
objects.

MozReview-Commit-ID: FbN0hiUGzYa
2018-07-17 10:23:26 +02:00
Philipp Klein b662e473ba Bug 1476054: Move `clear` CSS property outside mako. r=emilio
Imports servo/servo#21156.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: CLZN4FdUvDN
2018-07-17 10:15:47 +02:00
Emilio Cobos Álvarez bbc6f5b7f2 Bug 1476054: Fixes and cleanups for Servo PR #21139. r=me
Logical floats don't appear in the computed style objects, so there's no need to
check for them.

MozReview-Commit-ID: 3ocJrRB3jeO
2018-07-17 10:15:46 +02:00
Philipp Klein 2c17f5a8ec Bug 1476054: Move `float` CSS property outside mako. r=emilio
Imports servo/servo#21139.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: EoLK36GMq3d
2018-07-17 10:15:45 +02:00
Coroiu Cristina 98a7487673 Backed out 2 changesets (bug 1448034) for GTest failures
Backed out changeset 068bb4e7b849 (bug 1448034)
Backed out changeset eb542860b989 (bug 1448034)

--HG--
extra : rebase_source : b133c3bd4f769c25e49c7de59edd57245649ee72
2018-07-17 08:51:20 +03:00
Kris Maglione da381d04b7 Bug 1474155: Part 5 - Null out frame script singleton init methods after they're called. r=mconley
Believe it or not, the memory these references hold alive is significant.
Nulling them out saves 5-10K per process.

MozReview-Commit-ID: JONjE48yE8I

--HG--
extra : rebase_source : 49adc538070eecb9183e6e052e6e43db9c4c7a99
extra : histedit_source : 699f49fad1bfa69b8c511bf96187096e751c8606
2018-07-07 20:49:30 -07:00
Kris Maglione e13b4d0e20 Bug 1474155: Part 4 - Move ClickEventHandler to a separate JSM. r=mconley
MozReview-Commit-ID: Agroe5P3vim

--HG--
rename : browser/base/content/content.js => browser/modules/ClickEventHandler.jsm
extra : rebase_source : f87aa3c390836d86b266478b59c3313e3fa476b5
extra : histedit_source : d6ea61b389fc45080d370b915c3eb2d879da59e4
2018-07-07 20:28:32 -07:00
Kris Maglione 83fef3fa1e Bug 1474155: Part 2 - Move AutoCompletePopup to a separate JSM. r=mconley
MozReview-Commit-ID: HH2kiS12aEV

--HG--
rename : toolkit/content/browser-content.js => toolkit/modules/AutoCompletePopupContent.jsm
extra : rebase_source : 9b0dffd9c3b675cd8b810a45b0c13d9c71f7952e
extra : histedit_source : 8daf2a49d6f7c0855681b277c612abf98317bb0f
2018-07-10 11:57:47 -07:00
Kris Maglione 5f8dcbabad Bug 1474155: Part 1 - Move PopupBlocking to a separate JSM. r=mconley
MozReview-Commit-ID: FbVGSsmt8C3

--HG--
rename : toolkit/content/browser-content.js => toolkit/modules/PopupBlocking.jsm
extra : rebase_source : 979f6bf273f9f380c80219d24d7aa334d0d0e8a7
extra : histedit_source : 9920049a7129c5ae45c3167a08a596eae22d76ea
2018-07-10 11:57:55 -07:00
Kris Maglione 12038802ae Bug 1474131: Don't load ContentRestore.jsm before it's needed. r=mconley
MozReview-Commit-ID: 6ftGscrrdRb

--HG--
extra : rebase_source : 84c764beba61ec7e761a67dd008cbe5c2912e2ed
extra : histedit_source : 7847481d5a07e8e40ca5c744e63d46f86dcce1a3
2018-07-07 15:43:42 -07:00
Kris Maglione ae75e45945 Bug 1473631: Part 14 - Replace pref observers with callbacks in nsCacheService. r=njn
MozReview-Commit-ID: Kl1Sgo3F3Sk

--HG--
extra : rebase_source : 46fb508bb73adf1a556ac20abd30bf56bf23d3f5
2018-07-05 15:21:20 -07:00
Kris Maglione adc29b7d10 Bug 1473631: Part 13 - Replace pref observers with callbacks in DataStorage. r=njn
MozReview-Commit-ID: 4UFghn8JDTu

--HG--
extra : rebase_source : eaf2096d9c6abc2e192c3f6bb637b3473bfd62d8
2018-07-05 15:13:13 -07:00
Kris Maglione 5764d2a51d Bug 1473631: Part 12 - Replace pref observers with callbacks in nsNameSpaceManager. r=njn
MozReview-Commit-ID: 1RxEYL5LKjy

--HG--
extra : rebase_source : 8e491fe2ea3d074844ff349b9cce97a2f24573a7
2018-07-05 15:07:12 -07:00
Kris Maglione 44f3d2e02f Bug 1473631: Part 11 - Replace pref observers with callbacks in nsSHistory. r=njn
MozReview-Commit-ID: EvwiYRg4SnC

--HG--
extra : rebase_source : af78bc15488a0c6b2916aefa5dca0611f9c2f722
2018-07-05 14:58:04 -07:00
Kris Maglione caa1a1228b Bug 1473631: Part 10 - Replace pref observers with callbacks in ScriptSecurityManager. r=njn
MozReview-Commit-ID: COEgATfeEj

--HG--
extra : rebase_source : 8cdd70210041b0140ef951b3899dc324e0a9d74c
2018-07-05 14:53:14 -07:00
Kris Maglione 82a9ede2c1 Bug 1473631: Part 9 - Replace pref observers with callbacks in gfxPlatformFontList. r=njn
MozReview-Commit-ID: AT8BmGNj6QD

--HG--
extra : rebase_source : 008374f7dcf5a0e5f8b611a3ab37b4ce4dc80e5e
2018-07-05 14:47:39 -07:00
Kris Maglione ef3718fbe1 Bug 1473631: Part 8 - Replace pref observers with callbacks in gfxPlatform. r=njn
MozReview-Commit-ID: GNTGqvahsoz

--HG--
extra : rebase_source : 4ca9d989ffd1f30d2fb4b9726ec0d814a7412266
2018-07-05 14:43:02 -07:00
Kris Maglione 30e792ee5b Bug 1473631: Part 7 - Replace pref observers with callbacks in WatchdogManager. r=njn
MozReview-Commit-ID: 7Ctch5PYQzh

--HG--
extra : rebase_source : 80f491d1502a6cce25e5fb153e1d18777b4a3b78
2018-07-05 14:30:58 -07:00
Kris Maglione ab9a7b5649 Bug 1473631: Part 6 - Replace pref observers with callbacks in IDNService. r=njn
MozReview-Commit-ID: FlFC2HxYo4v

--HG--
extra : rebase_source : 1a6f00a7e9bff61e02ef7be8a6681f5574da442a
2018-07-05 14:01:51 -07:00
Kris Maglione 9604944ae4 Bug 1473631: Part 5 - Replace pref observers with callbacks in RFPService. r=njn
MozReview-Commit-ID: 6rzZNyY8cun

--HG--
extra : rebase_source : 651ba7e475548ab28a678662fbf287faf2dec0aa
2018-07-05 13:49:22 -07:00
Kris Maglione a16a23e56f Bug 1473631: Part 4 - Replace pref observers with callbacks in FocusManager. r=njn
MozReview-Commit-ID: 533Qz2nIkmX

--HG--
extra : rebase_source : 71e32db787b150b8ef3cee3163953c0adb893c92
2018-07-05 13:36:07 -07:00
Kris Maglione 152af93226 Bug 1473631: Part 3 - Replace pref observers with callbacks in IOService. r=njn
MozReview-Commit-ID: BBNUysmOuZV

--HG--
extra : rebase_source : 204d4444deed66a34e029e794b4721cf93b33d72
2018-07-05 13:25:03 -07:00
Kris Maglione f1400534b8 Bug 1473631: Part 2 - Replace pref observers with callbacks in STS. r=njn
MozReview-Commit-ID: BUiQqMA8eVs

--HG--
extra : rebase_source : 0b9571fb151220db1852bebd8149aaaf3e987ddb
2018-07-05 13:15:52 -07:00
Kris Maglione 37b1a59b2a Bug 1473631: Part 1 - Replace pref observers with callbacks in nsHttpHandler. r=njn
MozReview-Commit-ID: LtWV0yEwSd6

--HG--
extra : rebase_source : d839e8436ae97932d448d725ff70b0bb2a22d786
2018-07-05 13:10:20 -07:00
Kris Maglione 8d585408dc Bug 1473631: Part 0b - Add helper for registering instance methods as pref callbacks. r=njn
I also tried to avoid this change but, again, given the number of times I was
repeating the same pattern of defining a static method just to forward a
callback to an instance method, decided it was probably necessary. Without an
easy way to do this, people are more likely to register observers rather than
callbacks, for which we'll wind up paying a continued memory and performance
penalty.

This patch adds a helper which creates a type-safe preference callback
function which forwards calls to an instance method on its closure object.

The implementation is somewhat complicated, mainly due to the constraint that
unregistering a callback requires passing the exact same function pointer that
was used to register it. The patch achieves this by creating the callback
function as a template, with the method pointer as a template parameter. As
long as the Register and Unregister calls happen in the same translation unit,
the same template instance is guaranteed to be used for both.

The main difficulty is that, until C++ 17, there's no way match a value as a
template parameter unless you know its complete type, or can at least compute
its complete type based on earlier template parameters. That means that we
need a macro to extract the type of the method, and construct the template
with the full set of explicit parameters.

MozReview-Commit-ID: 10N3R2SRtPc

--HG--
extra : rebase_source : 7d0a8ddeb77e01d4a6f421459514e93bc0875598
2018-07-13 18:54:11 -07:00
Kris Maglione 0bfdb4329f Bug 1473631: Part 0a - Make preference callbacks typesafe. r=njn
I initially tried to avoid this, but decided it was necessary given the number
of times I had to repeat the same pattern of casting a variable to void*, and
then casting it back in a part of code far distant from the original type.

This changes our preference callback registration functions to match the type
of the callback's closure argument to the actual type of the closure pointer
passed, and then casting it to the type of our generic callback function. This
ensures that the callback function always gets an argument of the type it's
actually expecting without adding any additional runtime memory or
QueryInterface overhead for tracking it.

MozReview-Commit-ID: 9tLKBe10ddP

--HG--
extra : rebase_source : 7524fa8dcd5585f5a31fdeb37d95714f1bb94922
2018-07-06 12:24:41 -07:00
Kris Maglione 4fa87dd304 Bug 1473634: Part 3 - Update nsDOMComputedStyle to use RegisterCallbacks. r=bz
nsComputedDOMStyle is currently one of the biggest sources of pref callback
memory overhead. It currently registers about 5KB of callbacks per process. A
lot of that has to do with it registering multiple callbacks for the same
preference. But even with that problem fixed, we can do better by registering
a single callback for all observed preferences.

This patch does that, but also adds the optimization of deduplicating the list
of observed preferences to avoid wasted cycles needlessly matching against
many identical strings.

MozReview-Commit-ID: LZNgd7cAwo2

--HG--
extra : rebase_source : b73f8a17427bd01c362050d1a7c66e3f6e62332b
2018-07-04 19:07:28 -07:00
Kris Maglione 1751fb7124 Bug 1473634: Part 2 - Update some callers to use RegisterCallbacks where appropriate. r=njn
MozReview-Commit-ID: IqUmuOeSbNm

--HG--
extra : rebase_source : 0c742f6ca29456928f2027dcb70ee6dbb130d1f9
2018-07-04 19:06:57 -07:00
Kris Maglione a2be039491 Bug 1473634: Part 1 - Add preference callback variant which matches multiple prefs. r=njn
Preference callbacks consume a non-trivial amount of memory, which adds up
fast given the number of callbacks we register.

Many of our consumers, however, register a large number of callbacks with the
same function and closure object, but different preference names or prefixes.
Since our callback matching is nothing more complicated than iteration over
all of our registered callbacks, there's nothing that prevents us from
combining all of these into a single callback, with an array of preferences
rather than a single string.

And since we already allocate an extra 8 bytes for each callback object, we
can add a variant tag without increasing our allocation size.

MozReview-Commit-ID: I497lWfMUp3

--HG--
extra : rebase_source : bac374d9a590c325728551d1669ebc6ef8ca3884
2018-07-04 19:06:00 -07:00
Andrea Marchesini 9072c6ea1e Bug 1470306 - Ensure MessagePort is in the right state if the connection to PBackground fails, r=qdot 2018-07-17 07:14:06 +02:00
Chris Peterson 6f691d73b1 Bug 1475882 - clang-tidy: Enable misc-unused-alias-decls check. r=andi
This check finds unused namespace alias declarations. There are currently no misc-unused-alias-decls warnings in mozilla-central!

https://clang.llvm.org/extra/clang-tidy/checks/misc-unused-alias-decls.html

MozReview-Commit-ID: LHziGESvaM5

--HG--
extra : rebase_source : f10fbb6364bc947b5fa2ca8c0b47494519856940
extra : source : 987ca732290093c4bd36690c6ebd3ed2ac0b5444
2018-07-09 11:04:31 -07:00
Chris Peterson 6d8a23d9c8 Bug 1475882 - clang-tidy: Enable misc-swapped-arguments check. r=andi
This check finds potentially swapped function arguments by looking at implicit conversions. There are currently no misc-swapped-arguments warnings in mozilla-central!

https://clang.llvm.org/extra/clang-tidy/checks/bugprone-swapped-arguments.html

MozReview-Commit-ID: 6SETUcQhQP

--HG--
extra : rebase_source : d364fc90e776807ab2540d714594d07a5a83b054
extra : source : 689980bf12e98780d0d60c851549d16a4cc8efb0
2018-07-09 00:26:58 -07:00
Chris Peterson d9fe858d74 Bug 1475882 - clang-tidy: Enable misc-macro-repeated-side-effects check. r=andi
This check finds side effects from repeated macro arguments:

https://clang.llvm.org/extra/clang-tidy/checks/bugprone-macro-repeated-side-effects.html

There are currently 16 misc-macro-repeated-side-effects warnings in mozilla-central, but they are all in third-party gfx/cairo code:

gfx/cairo/cairo/src/cairo-tor-scan-converter.c:1432:10: warning: side effects in the 1st macro argument 'x' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:1011:16: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:1037:16: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:1062:16: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:1088:16: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:1107:16: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:1126:27: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:1194:21: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:1258:16: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:600:28: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:629:28: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:660:28: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:690:28: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:721:28: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-access.c:986:16: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion
gfx/cairo/libpixman/src/pixman-edge-imp.h:126:20: warning: side effects in the 2nd macro argument 'ptr' are repeated in macro expansion

MozReview-Commit-ID: CQ6iO9JO773

--HG--
extra : rebase_source : 0e7dc6fa3990ab187c597d8042a403c554152b02
extra : source : 5f47d400d53107df0e0478b369745bfd3f055702
2018-07-09 10:14:40 -07:00