Commit Graph

587002 Commits

Author SHA1 Message Date
Andreas Pehrson
8bb83ab05d Bug 1351655 - Log which SharedThreadPools are not yet destroyed on shutdown-threads. r=froydnj
We risk a shutdown hang without any clues if a dangling reference somewhere
keeps a SharedThreadPool alive past xpcom-shutdown-threads. This because
xpcom-shutdown-threads waits for all SharedThreadPool to be destroyed before
advancing shutdown further. nsCycleCollector::Shutdown comes after
xpcom-shutdown-threads so it is possible that a reference-cycle unexpectedly
keeps a SharedThreadPool alive and blocks shutdown indefinitely.

This patch attempts to help diagnose future cases like this by printing which
SharedThreadPools we are going to wait for to stderr.

MozReview-Commit-ID: CwTApYUMikA

--HG--
extra : rebase_source : f29d04508cf492c82d65f324d7b1990849a0da13
2018-01-23 11:40:37 +01:00
Andreea Pavel
4dc16ea693 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-22 11:34:04 +02:00
Andreea Pavel
de5c4376b8 Merge mozilla-inbound to mozilla-central. a=merge 2018-03-22 11:31:19 +02:00
Andreea Pavel
86810531ce Backed out changeset becfb5f6388d (bug 1447875) for failing browser chrome at browser/base/content/test/performance/browser_windowopen_reflows.js on a CLOSED TREE 2018-03-22 08:54:03 +02:00
sotaro
54acb2e320 Bug 1432610 - Disable D2D on Win7 on Intel Haswell for old graphics drivers r=jrmuizel 2018-03-22 15:33:52 +09:00
Mark Hammond
86bcaa7a17 Bug 1447832 - ensure a bookmark that is deleted during a sync gets a tombstone on the server. r=kitcambridge
MozReview-Commit-ID: 6vmxxBSTT3e

--HG--
extra : rebase_source : 030bdc1b9586fa06207b74a9331f334bca91da93
2018-03-22 15:31:10 +11:00
Boris Zbarsky
fc0fab9262 Bug 1062418 part 2. Clean up the bits that got moved from nsWindowSH. r=mystor
MozReview-Commit-ID: HGy6CHx4sCP
2018-03-21 23:18:51 -04:00
Boris Zbarsky
9efac1eb98 Bug 1062418 part 1. Move the remaining nsWindowSH bits into nsGlobalWindowInner. r=mystor
For now we preserve the current code structure and function signatures to make
review simpler.  That's about to get cleaned up.

MozReview-Commit-ID: 4epLHQiEwDV
2018-03-21 23:18:51 -04:00
Boris Zbarsky
631e1b2354 Bug 1442360 part 3. Remove nsScriptNamespaceManager, since now it's all dead code. r=peterv
MozReview-Commit-ID: DHRz2frjmT5
2018-03-21 23:18:51 -04:00
Boris Zbarsky
cd263b1997 Bug 1442360 part 2. Remove support for the JavaScript-global-property category. r=peterv
MozReview-Commit-ID: 2iWivSDrDQB
2018-03-21 23:18:51 -04:00
Boris Zbarsky
30d7175859 Bug 1442360 part 1. Change InstallTrigger to not use the JavaScript-global-property category. r=kmag
test_bug609794.html was testing a behavior that the method before the current
method of attaching InstallTrigger to windows depended on.  We don't really
need that behavior, which is good, because this change is not producing it.

MozReview-Commit-ID: GPzif89UYYl
2018-03-21 23:18:51 -04:00
Boris Zbarsky
6857559f5a Bug 1442039 part 15. Remove nsIDOMDOMConstructor. r=petev
MozReview-Commit-ID: KmIhVN7TeNN
2018-03-21 23:13:30 -04:00
Boris Zbarsky
df6c05a122 Bug 1442039 part 14. Remove nsDOMClassInfoID.h. r=peterv
MozReview-Commit-ID: 6pZs1XI1oSd
2018-03-21 23:13:30 -04:00
Boris Zbarsky
a885ed36b0 Bug 1442039 part 13. Remove the now-pointless nsWindowSH::NameStructEnabled. r=peterv
MozReview-Commit-ID: 9lawfsdyyZq
2018-03-21 23:13:29 -04:00
Boris Zbarsky
fec44334c8 Bug 1442039 part 12. Remove various unused static stuff from nsDOMClassInfo. r=peterv
MozReview-Commit-ID: Imt658SuM9w
2018-03-21 23:13:29 -04:00
Boris Zbarsky
c6138aa191 Bug 1442039 part 11. Remove all the non-static bits from nsDOMClassInfo. r=peterv
MozReview-Commit-ID: 7J8hsPuYtPa
2018-03-21 23:13:29 -04:00
Boris Zbarsky
78d58e60ed Bug 1442039 part 10. Remove now-unused nsEventTargetSH. r=peterv
MozReview-Commit-ID: WocCkriliI
2018-03-21 23:13:29 -04:00
Boris Zbarsky
f4173f97eb Bug 1442039 part 9. Remove now-unused NS_GetDOMClassInfoInstance. r=peterv
MozReview-Commit-ID: 5JpNuBq5RUg
2018-03-21 23:13:29 -04:00
Boris Zbarsky
9d7bf3da5c Bug 1442039 part 8. Remove now-unused eTypeClassConstructor type of nsGlobalNameStruct. r=peterv
GetXPCProto is now static and not called, so needs to go too.

MozReview-Commit-ID: I6DilDx2e2m
2018-03-21 23:13:29 -04:00
Boris Zbarsky
ba414c683e Bug 1442039 part 7. Remove now-unused nsScriptNameSpaceManager::RegisterClassName. r=peterv
MozReview-Commit-ID: 9mpz8o29WGp
2018-03-21 23:13:29 -04:00
Boris Zbarsky
a59087c90e Bug 1442039 part 6. Remove now-unused classinfo bits for DOMConstructor and DOMPrototype. r=peterv
Also removes various code that stops compiling this way and static functions
that are now unused.

MozReview-Commit-ID: KHYxly2c3Id
2018-03-21 23:13:29 -04:00
Boris Zbarsky
11f383d860 Bug 1442039 part 5. Remove the now-dead nsDOMConstructor class. r=peterv
The only caller of nsDOMConstructor::nsDOMConstructor is
nsDOMConstructor::Create which has no callers.

Also removes the now-unused nsDOMConstructorSH class.

MozReview-Commit-ID: GgOO8ugXFKb
2018-03-21 23:13:28 -04:00
Boris Zbarsky
8dba9ff598 Bug 1442039 part 4. Remove the dead code in nsDOMClassInfo::PostCreatePrototype. r=peterv
We only have classinfo left for DOMConstructor and DOMPrototype, both of which
use nsDOMConstructorSH, which overrides PostCreatePrototype.

To avoid -Werror build failures, this changeset also removes static functions
that were only reachable from PostCreatePrototype.

MozReview-Commit-ID: JpJOuMHAAuo
2018-03-21 23:13:28 -04:00
Boris Zbarsky
9ece08d572 Bug 1442039 part 3. Stop trying to resolve DOMConstructor on Xrays. r=peterv
We don't resolve it normally, because nsDOMConstructorSH overrides
PostCreatePrototype to be a no-op, so nsWindowSH::GlobalResolve never actually
defines the relevant property on the window.  We also hide it in
nsWindowSH::NameStructEnabled.  But in the Xray-to-window case we attempt to
define it.  We shouldn't do that.

MozReview-Commit-ID: 3tnMnSQuvuT
2018-03-21 23:13:28 -04:00
Boris Zbarsky
0165407079 Bug 1442039 part 2. Remove the now-unused eTypeClassProto type for nsGlobalNameStruct. r=peterv
MozReview-Commit-ID: H65oe2v7Gxt
2018-03-21 23:13:28 -04:00
Boris Zbarsky
b4c95ed91e Bug 1442039 part 1. Remove the now-useless nsScriptNameSpaceManager::RegisterClassProto function. r=peterv
The only caller is nsDOMClassInfo::RegisterClassProtos.  The only caller of
that is nsDOMClassInfo::Init.  In nsDOMClassInfo::Init this is called after we
have done the RegisterClassName call for "DOMConstructor".

Since the only bits of classinfo left are DOMConstructor and DOMPrototype, and
both use nsIDOMDOMConstructor as their interface, we call RegisterClassProto
with "DOMConstructor" as aClassName, find the existing nsGlobalNameStruct, and
return without doing anything.  So this entire codepath can be removed.

MozReview-Commit-ID: JfXmIex7tLC
2018-03-21 23:13:28 -04:00
Boris Zbarsky
9a6232110b Bug 1442137 part 6. Remove the now-always-false mChromeOnly and mAllowXBL flags in nsGlobalNameStruct. r=peterv
MozReview-Commit-ID: GarrbE696Sq
2018-03-21 23:13:28 -04:00
Boris Zbarsky
36512637c1 Bug 1442137 part 5. Remove the unused NS_DEFINE_CHROME_XBL_CLASSINFO_DATA macro and then-unused mChromeOnly flag in nsDOMClassInfoData. r=peterv
MozReview-Commit-ID: 9P44FU8ISSw
2018-03-21 23:13:28 -04:00
Boris Zbarsky
ee26fbc893 Bug 1442137 part 4. Remove the JavaScript-global-privileged-property category from the script namespace manager
MozReview-Commit-ID: LRljHWSKyCx
2018-03-21 23:13:28 -04:00
Boris Zbarsky
d5d97c1d57 Bug 1442137 part 3. Remove code that only ran when nsDOMConstructor::IsConstructable() returned true, since it always returns false now. r=peterv
MozReview-Commit-ID: 6bTgNSRzxuS
2018-03-21 23:13:27 -04:00
Boris Zbarsky
abdd583095 Bug 1442137 part 2. Remove the now-unused eTypeExternalConstructor global name struct type. r=peterv
MozReview-Commit-ID: qb3mHnC5Ql
2018-03-21 23:13:27 -04:00
Boris Zbarsky
ec3bea99f1 Bug 1442137 part 1. Remove support for the JavaScript-global-constructor category in the script namespace manager. r=peterv
MozReview-Commit-ID: 3tcvwufvXS3
2018-03-21 23:13:27 -04:00
Boris Zbarsky
5b5356eada Bug 1445006. Remove the scriptable version of FrameLoader::LoadURI. r=mystor
MozReview-Commit-ID: 4UY2dtk5kpR
2018-03-21 22:43:17 -04:00
Boris Zbarsky
d989f864ea Bug 1444143 part 14. Rename nsIFrameLoader.idl to nsIFrameLoaderOwner.idl. r=mystor
MozReview-Commit-ID: 1XpEjoFLSQh

--HG--
rename : dom/base/nsIFrameLoader.idl => dom/base/nsIFrameLoaderOwner.idl
2018-03-21 22:43:17 -04:00
Boris Zbarsky
35d4bc91ec Bug 1444143 part 13. Remove nsIFrameLoader. r=mystor
MozReview-Commit-ID: 4LG8nIePsMH
2018-03-21 22:43:17 -04:00
Boris Zbarsky
e15f8f10ff Bug 1444143 part 12. Remove use of nsIFrameLoader from XPIDL files. r=mystor
MozReview-Commit-ID: 8pZ655SgrZ0
2018-03-21 22:43:17 -04:00
Boris Zbarsky
6011abc74a Bug 1444143 part 11. Remove unused nsIFrameLoaderOwner::GetFrameLoaderXPCOM. r=mystor
There are no JS implementations of nsIFrameLoaderOwner, so we can mark it builtinclass.

MozReview-Commit-ID: 5z2f6fUrqaS
2018-03-21 22:43:17 -04:00
Boris Zbarsky
bf1ef0641d Bug 1444143 part 10. Remove unnecessary QIs to Ci.nsIFrameLoader in JS. r=mystor
nsFrameLoader is on WebIDL bindings, so those QIs are no-ops anyway, unless the given object is no a frameloader to start with.

MozReview-Commit-ID: IPiW70H5NPc
2018-03-21 22:43:17 -04:00
Boris Zbarsky
357aae06ff Bug 1444143 part 9. Remove nsIFrameLoader::LoadURI. r=mystor
MozReview-Commit-ID: fSRCzBiHUE
2018-03-21 22:43:16 -04:00
Boris Zbarsky
ebf5282891 Bug 1444143 part 8. Remove nsIFrameLoader::LoadFrame. r=mystor
MozReview-Commit-ID: Ackil1mtVy0
2018-03-21 22:43:16 -04:00
Boris Zbarsky
1f1d1c0a81 Bug 1444143 part 7. Remove nsIFrameLoader::Destroy. r=mystor
MozReview-Commit-ID: GObbSTCrjad
2018-03-21 22:43:16 -04:00
Boris Zbarsky
4e7d30f872 Bug 1444143 part 6. Remove nsIFrameLoader::Get/SetEventMode. r=mystor
MozReview-Commit-ID: Jvevh2puiLY
2018-03-21 22:43:16 -04:00
Boris Zbarsky
8ce517e191 Bug 1444143 part 5. Remove nsIFrameLoader::GetOwnerIsMozBrowserFrame. r=mystor
MozReview-Commit-ID: 6IfTdTvDZtm
2018-03-21 22:43:16 -04:00
Boris Zbarsky
909a57edd7 Bug 1444143 part 4. Remove nsIFrameLoader::GetDepthTooGreat. r=mystor
MozReview-Commit-ID: GIdz853oVd3
2018-03-21 22:43:16 -04:00
Boris Zbarsky
f3d0adf134 Bug 1444143 part 3. Remove nsIFrameLoader::GetTabParent. r=mystor
MozReview-Commit-ID: 2AgXdhJiunG
2018-03-21 22:43:16 -04:00
Boris Zbarsky
9cb6df0dac Bug 1444143 part 2. Remove nsIFrameLoader::GetDocShell. r=mystor
The change from "docShell" to "mDocShell" for the SetName call in the
OwnerIsMozBrowserFrame case in nsFrameLoader::MaybeCreateDocShell is a
drive-by correctness fix for a bug the rename of "docShell" to "parentDocShell"
caught: setting the name of our _parent_ docshell based on the name attr of our
owner makes no sense.

MozReview-Commit-ID: DwnWt8jTokV
2018-03-21 22:43:15 -04:00
Boris Zbarsky
810e12d143 Bug 1444143 part 1. Remove unused stuff from nsIFrameLoader. r=mystor
MozReview-Commit-ID: 3FpiEo2pxjr
2018-03-21 22:43:15 -04:00
sotaro
ca36b6a3a9 Bug 1442093 - Add more log to GetAndInitDisplayForWebRender() r=jgilbert 2018-03-22 10:57:55 +09:00
arthur.iakab
161c0e01f4 Merge mozilla-central to mozilla-inbound 2018-03-22 02:02:06 +02:00
arthur.iakab
24af737f4c Merge inbound to mozilla-central. a=merge 2018-03-22 01:46:39 +02:00