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

569757 Коммитов

Автор SHA1 Сообщение Дата
Nathan Froyd f51359bd19 Bug 1325632 - part 5 - ensure that we compile with -fno-sized-deallocation when possible; r=chmanchester
We currently turn off the C++14 sized-deallocation facility on MSVC, and
we'd like to ensure we do the same thing for clang and gcc.  To do so,
we add new functionality to moz.configure for checking and adding
compilation flags, similar to the facility for checking and adding
warning flags.  The newly added facility is then used to add
-fno-sized-deallocation to the compilation flags, when the option is
supported.

Once we do this, we can't define the sized deallocation functions in
mozalloc.h; the compiler will complain that we are using
-fno-sized-deallocation, yet defining these special functions that we'll
never use.  These functions were added for MinGW, where we needed to
compile with C++14 ahead of other platforms to be compatible with MSVC
headers.  But they're no longer necessary, though they would be if we
removed -fno-sized-deallocation; the compiler will complain if we do
that and we'll add them back at that point.
2017-11-15 14:53:16 -04:00
Nathan Froyd 2e127f22ea Bug 1325632 - part 4 - split out framework for testing flags; r=chmanchester
We have code to test whether particular flags are supported for the
compiler we're using.  Unfortunately, that code is tied up with checking
for warning flags.  We're about to add a separate facility for generic
compilation flags, and we'd like to avoid cutting and pasting code if
possible.  Let's split the core code out into a separate, reusable function.
2017-11-15 13:53:16 -05:00
Nathan Froyd 2b3527011f Bug 1325632 - part 3 - compile rust bindings with -fno-sized-deallocation; r=ted.mielczarek
This probably doesn't make a huge difference, as we're not generating
any code here, but better safe than sorry.
2017-11-15 14:53:17 -04:00
Nathan Froyd b38d89886c Bug 1325632 - part 2 - don't warn about c++98/c++11 compatibility problems; r=ted.mielczarek
We're going to compile with C++14 and we don't plan to go back.
2017-11-15 14:53:17 -04:00
Emilio Cobos Álvarez 981470d0c2 Bug 1415013: Clear servo data on flattened tree changes. r=bz
MozReview-Commit-ID: 3TsM8tbzPMV
2017-11-15 19:50:22 +01:00
Sebastian Hengst 6c1d6be6fb Backed out 3 changesets (bug 1398229) for failing own browser-chrome browser/components/contextualidentity/test/browser/browser_saveLink.js. r=backout on a CLOSED TREE
Backed out changeset 5b3b0a38b2d1 (bug 1398229)
Backed out changeset a726fc7506ca (bug 1398229)
Backed out changeset 53dae7764e58 (bug 1398229)
2017-11-15 20:49:09 +02:00
Sebastian Hengst 636004945a Bug 1417436 - Add Windows code coverage build and test definitions: Add linebreak in long comment to fix flake8 error. r=linting-fix 2017-11-15 19:17:56 +01:00
Jonathan Kew 304ec4c15e Bug 1417420 - Add the path used by FontAgent to the sandbox rules on macOS. r=haik 2017-11-15 17:59:44 +00:00
Aki Sasaki eb8ff46ace bug 1417472 - start optimizing beta and release tasks. r=rail DONTBUILD
MozReview-Commit-ID: IZaX1tdDM2W

--HG--
extra : rebase_source : 1f6d9d29e3562e7fab44eb8dd9978a3f360b5d59
extra : source : fbb14e4523d13bd065521479fabfe320f8a7ba5f
2017-11-15 09:30:24 -08:00
Nika Layzell 640a992085 Bug 1416384 - Part 9: Deduplicate more code when possible, r=smaug
MozReview-Commit-ID: 1mzNDOFUNep

--HG--
extra : rebase_source : 0d8f5fa959aaae39c1fdcc0c025905a7a7bbb931
2017-11-15 11:34:47 -05:00
Nika Layzell 44c8bde2d0 Bug 1416384 - Part 8: Stylistic fixes in nsGlobalWindow{Inner,Outer}.cpp, r=smaug
MozReview-Commit-ID: KDllmZzdn6m

--HG--
extra : rebase_source : 374baf211a289c36d2b42d009dd325432cfafb61
2017-11-15 11:34:41 -05:00
Nika Layzell 4f66908aed Bug 1416384 - Part 7: Move nsPIDOMWindow{Inner,Outer}::TabGroup into their respective cpps, r=smaug
MozReview-Commit-ID: AZMWwKFnvG9

--HG--
extra : rebase_source : 6d4cc4f5af7e244c54972aa1afeeb81f98b0c5cb
2017-11-15 11:34:33 -05:00
Nika Layzell b4d99baba8 Bug 1416384 - Part 6: Eliminate calls to Assert{Inner,Outer} and As{Inner,Outer} in nsGlobalWindow, r=smaug
MozReview-Commit-ID: GIiSlDzjgWb

--HG--
extra : rebase_source : e21578e4056b1f3000ef320d2c380fd9889ca9eb
2017-11-15 11:34:27 -05:00
Nika Layzell 7d62404270 Bug 1416384 - Part 5: Eliminate inner window only methods from nsGlobalWindowOuter, r=smaug
MozReview-Commit-ID: FzaGKmdDtmy

--HG--
extra : rebase_source : 14613fff864493523fd546b75991a63b92fa169a
2017-11-15 11:34:20 -05:00
Nika Layzell f0e713f349 Bug 1416384 - Part 4: Eliminate outer window only methods from nsGlobalWindowInner, r=smaug
MozReview-Commit-ID: CV6rrA0M2ZV

--HG--
extra : rebase_source : 2dbd420d97c99715324633f98345eb13d12e0114
2017-11-15 11:34:13 -05:00
Nika Layzell 842c5cbb02 Bug 1416384 - Part 3: Remove nsPIDOMWindow<nsISupports>, r=smaug
This was needed before as the base to nsGlobalWindow, but now that
nsGlobalWindow doesn't exist, and we only have specific versions, we no longer
need this type.

MozReview-Commit-ID: 6IJmJtnSkMr

--HG--
extra : rebase_source : d21068aa7da89a6d49ead2477b91577809f5856a
2017-11-15 11:34:04 -05:00
Nika Layzell a63b1e0ebd Bug 1416384 - Part 2e: Eliminate duplicate declarations, and get gecko building again, r=smaug
There are many helper methods and structs in nsGlobalWindow.cpp. Many of these
are used by only the inner or only the outer window, while some are used by
both. In the case of the items used by both, I extracted them into
nsGlobalWindow.cpp, which includes nsGlobalWindowInner.cpp and
nsGlobalWindowOuter.cpp as the compilation unit entry point.

In the case of items used by just one or the other, I removed them from the
other file, and deleted the bodies of functions which used them, replacing them,
with a MOZ_CRASH.

This gets gecko building again, so that we can make further incremental
improvements.

MozReview-Commit-ID: 8QnJ1PX6TAO

--HG--
extra : rebase_source : 0eac00ad757f825a22a1af95d0a01d6fa92d824d
2017-11-15 11:33:58 -05:00
Nika Layzell 5c9be297c1 Bug 1416384 - Part 2d: Get nsGlobalWindowOuter.cpp building, r=smaug
MozReview-Commit-ID: 4Yz8hRMZEJC

--HG--
extra : rebase_source : 9edb91316b60db44034e0a24a14c60877e08a064
2017-11-15 11:33:51 -05:00
Nika Layzell dfe521f9b8 Bug 1416384 - Part 2c: Get nsGlobalWindowInner.cpp building, r=smaug
MozReview-Commit-ID: CmKx5jtvtrT

--HG--
extra : rebase_source : b1c5fe7c140a743d55c462b6d2bcbf8a97950d9c
2017-11-15 11:33:39 -05:00
Nika Layzell 995525e901 Bug 1416384 - Part 2b: Get split headers building but not linking, r=smaug
MozReview-Commit-ID: JRvPtQTJqSX

--HG--
extra : rebase_source : d80d2cd93c0ad629b92b7b67af664a2ccbbc3658
2017-11-15 11:33:29 -05:00
nika@thelayzells.com e261bf7e28 Bug 1416384 - Part 2a: Delete nsGlobalWindow.{h,cpp}, r=smaug
--HG--
extra : rebase_source : 00e4286187c8c32de094ce10c9ec709f6e5c56a8
2017-11-15 11:31:37 -05:00
nika@thelayzells.com 7c4791021a Bug 1416384 - Part 1: Copy nsGlobalWindow.{h,cpp} to nsGlobalWindow{Inner,Outer}.{h,cpp}, r=smaug
--HG--
rename : dom/base/nsGlobalWindow.cpp => dom/base/nsGlobalWindowInner.cpp
rename : dom/base/nsGlobalWindow.h => dom/base/nsGlobalWindowInner.h
rename : dom/base/nsGlobalWindow.cpp => dom/base/nsGlobalWindowOuter.cpp
rename : dom/base/nsGlobalWindow.h => dom/base/nsGlobalWindowOuter.h
extra : rebase_source : e29e0abbbc4898b9d50c05c68ada2f1561678cd1
2017-11-15 11:30:13 -05:00
Boris Zbarsky 198e006805 Bug 1415741. Switch to a different env var, not MOZ_DEBUG, for disabling mouse event taps on Mac. r=mstange
MozReview-Commit-ID: BgFpmE2Juom
2017-11-15 12:23:58 -05:00
Boris Zbarsky e8d2ef04ef Bug 691151. Remove Event.getPreventDefault. r=smaug
MozReview-Commit-ID: FQ3LzP7rW6e
2017-11-15 12:23:58 -05:00
Andrea Marchesini 11eefa61bb Bug 1398229 - Save-link-as feature should use the loading principal - part 3 - implementation of nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD, r=ckerschb 2017-11-15 18:16:29 +01:00
Andrea Marchesini f03e0d5358 Bug 1398229 - Save-link-as feature should use the loading principal - part 2 - context menu using nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD, r=ckerschb 2017-11-15 18:16:28 +01:00
Andrea Marchesini 8af305bb72 Bug 1398229 - Save-link-as feature should use the loading principal - part 1 - test, r=ckerschb 2017-11-15 18:16:28 +01:00
Nika Layzell 5c65681cb0 Bug 1415645 - Part 5: Fix some more consumers of nsGlobalWindow which I missed, r=smaug
MozReview-Commit-ID: DvMH4cVw5NK
2017-11-15 11:21:57 -05:00
Nika Layzell 53984f3179 Bug 1415645 - Part 4: Modify some shared runnables to not refer directly to nsGlobalWindow, r=smaug
MozReview-Commit-ID: ANdBkuhZ2xx
2017-11-15 11:21:57 -05:00
Nika Layzell ebef6b11ea Bug 1415645 - Part 3: Don't cast to nsGlobalWindow when working with the inner window linked list, r=smaug
After the window split is complete, the inner window linked list won't be
homogenously typed anymore, as there will be an nsGlobalWindowOuter member in
addition to the nsGlobalWindowInner members. This patch changes the code to
perform PRCList* pointer comparisons before casting to nsGlobalWindowInner to
avoid this issue.

MozReview-Commit-ID: 56q5XodtGe7
2017-11-15 11:21:56 -05:00
Nika Layzell 9496a4e732 Bug 1415645 - Part 2: Make CleanupCachedXBLHandlers a instance method, r=smaug
This will make the split easier, as this method is used by both
nsGlobalWindowInner and nsGlobalWindowOuter.

MozReview-Commit-ID: FsjK4y6x7NE
2017-11-15 11:21:56 -05:00
Nika Layzell dd3f8f79f8 Bug 1415645 - Part 1: Make nsGlobalWindow.cpp use the specific {Inner,Outer} variants in more places internally, r=smaug
MozReview-Commit-ID: LsgjJTbuH3L
2017-11-15 11:21:56 -05:00
Andreas Tolfsen f184932502 Bug 1414401 - Disable key_shortcuts.py on Linux i686 r=ato
MozReview-Commit-ID: 64knnSHMPzw

--HG--
extra : rebase_source : 91116b18236c19c66338939ff1e9fa7a83953575
2017-11-15 10:51:13 -05:00
Noemi Erli 550148ab69 Merge inbound to mozilla-central r=merge a=merge 2017-11-15 11:57:12 +02:00
Lee Salzman 29099d481c Bug 1416607 - error when Moz2DImageRenderer fails to create a NativeFontResource or UnscaledFont. r=jrmuizel
MozReview-Commit-ID: Jool723LUFX
2017-11-14 23:15:31 -05:00
Andreea Pavel 3349ecafbd Backed out 1 changesets (bug 1402828) for failing devtools/client/netmonitor/test/browser_net_copy_as_curl.js r=backout a=backout on a CLOSED TREE
Backed out changeset 4d059e20a773 (bug 1402828)
2017-11-15 06:12:53 +02:00
Gabriel Luong 16731e0120 Bug 1387511 - Part 2: Format css-grid.js r=pbro 2017-11-14 22:02:51 -05:00
Gabriel Luong f085fec318 Bug 1387511 - Part 1: Use the grid negative number platform API to render negative line numbers correctly in css grid inspector. r=pbro 2017-11-14 22:02:44 -05:00
Matthew Gregan feb6071e04 Bug 1409904 - Don't bother logging when audioipc server's poll() hits EINTR. r=kamidphish
MozReview-Commit-ID: 854rPXdmbny
2017-11-15 15:40:23 +13:00
Andreea Pavel 3a1d0056a8 Backed out 1 changesets (bug 1416948) for already being pushed in autoland by bug 1416456 r=backout a=allstarschh on a CLOSED TREE
Backed out changeset 9dd7ba5308be (bug 1416948)
2017-11-15 04:31:23 +02:00
Mark Banner 7f5c3c3582 Bug 1375689 - Turn on experimentalObjectRestSpread in ESlint options. r=mossop
MozReview-Commit-ID: BLZp3HskBji

--HG--
extra : rebase_source : 721d0586deb572a5e989547d592d741cc9d15950
2017-11-14 13:21:16 +00:00
Blake Kaplan a7ba580113 Bug 1389836 - Don't recreate mHandlerInfo for every little change. r=bz
There are non-cost reference return values on IPDL structs. We should take
advantage of them in order not to recopy everything everytime something
changes.

MozReview-Commit-ID: D4hG2moE3f

--HG--
extra : rebase_source : 4edca9b1a808f99dd60be908bbb197757bf9b90a
2017-11-14 15:37:47 -08:00
Nicholas Nethercote 9723f0f68e Bug 1416638 - Inline and remove PREF_Get*(). r=glandium.
MozReview-Commit-ID: CiCKpihJJJF

--HG--
extra : rebase_source : 82b512171925a44a79e65a8c08a278244a12c6e5
2017-11-14 19:06:02 +11:00
Nicholas Nethercote 5403410705 Bug 1416638 - Inline and remove PREF_Set*(). r=glandium.
This patch also adds some Set*InAnyProcess() methods, and makes nsPrefBranch a
friend of Preferences so it can call those methods.

And it moves the thin Set*() wrapper functions to Preferences.h, alongside
SetUint().

MozReview-Commit-ID: 88HhmcTFZNc

--HG--
extra : rebase_source : 88a854d52afce86d93008a6e1a4b5f32bcf24a1a
2017-11-14 19:06:02 +11:00
Nicholas Nethercote 5dc91f21fc Bug 1416638 - Rename SetCharPrefInternal() as SetCharPrefNoLengthCheck(). r=glandium.
Because it's clearer.

MozReview-Commit-ID: 4zfDnsaPQSK

--HG--
extra : rebase_source : 4f958130f46dc32b291f92d3b387d80064b5ac12
2017-11-14 19:06:02 +11:00
Nicholas Nethercote 22cbf71329 Bug 1416638 - Move a couple of functions into Preferences. r=glandium.
This will allow other functions to be moved into Preferences and be marked as
`private` in subsequent patches.

The patch also renames SetPrefValue() as SetValueFromDom(), because that's a
clearer name.

MozReview-Commit-ID: CB1xmPSmac6

--HG--
extra : rebase_source : 0d597a800f2295c04af26d5abaac4aea0e0d3373
2017-11-14 19:06:02 +11:00
Nicholas Nethercote 1e78ff66af Bug 1416638 - Use `private` instead of `protected` in Preferences. r=glandium.
It's a `final` class, so there's no need for `protected`.

MozReview-Commit-ID: 7n4DLpXo0el

--HG--
extra : rebase_source : b2d3eb9cf0e912689efa29d2255cc018fd8a7c64
2017-11-14 19:06:02 +11:00
Nicholas Nethercote 502d16e87f Bug 1416638 - Change nsPrefBranch mIsDefault to a PrefValueKind. r=glandium.
This makes the next patches nicer.

MozReview-Commit-ID: 8EoAkmmMavY

--HG--
extra : rebase_source : 3bb751c8e1353f7e3814257cf41f2f8de4ed3ed5
2017-11-14 19:06:02 +11:00
Nicholas Nethercote f553c82da0 Bug 1416638 - Add a PrefValueKind arg to Preferences::Get*(), and remove Preferences::GetDefault*(). r=glandium
MozReview-Commit-ID: LgnZAf1pAl1

--HG--
extra : rebase_source : 8ba7c4bfb331f70fd41c2ae1d428e4cb9058d069
2017-11-14 19:06:01 +11:00
Eitan Isaacson d567085ce1 Bug 1414447 - Use displayed definitions in toolbox component for kb nav. r=jryans 2017-11-13 15:31:00 -05:00