Commit Graph

587012 Commits

Author SHA1 Message Date
Andrew Halberstadt
20f38147c2 Bug 1445624 - [test] Make sure verbose logging is enabled when running a single test, r=gbrown
This sets verbose=True (used by the mach formatter) and compact=False (used by tbplformatter) if
only a single test is specified with either |mach test| or |mach mochitest|.

This way all TEST_STATUS and log lines will be visible when developers are writing a new test.

MozReview-Commit-ID: 2nuKs9DLnx0

--HG--
extra : rebase_source : 1fc594b465a2a94dfcd85d56d042969af47f6f65
2018-03-19 16:04:02 -04:00
Andrew Halberstadt
c30792183c Bug 1445624 - [mozlog] Various improvements and fixes to the mach formatter, r=gbrown
This consolidates the printing of status logs, which was previously handled
differently in 3-4 places. This also fixes a few of the annoyances listed in
the bug 1445624 description. Finally this also fixes a few edge cases that I
noticed when writing the tests.

MozReview-Commit-ID: APudT8yBqVS

--HG--
extra : rebase_source : 943a71c762dd27a7f7ebea86d467e81a0b27d400
extra : source : 61ba86fc1366a62a429a7daab7d6b1c198c69593
2018-03-19 11:55:39 -04:00
Andrew Halberstadt
4d112dbe6e Bug 1445624 - [mozlog] Add some tests for the mach formatter, r=gbrown
This adds a basic test for the mach formatter. This will ensure that changes to
this format are intentional. It will also make it easier for reviewers of these
changes to see a diff of the old vs new format.

MozReview-Commit-ID: LBSfdyvOPVV

--HG--
extra : rebase_source : 5529ad1f03306dcf867d88af579b69d6005091c0
2018-03-19 11:55:31 -04:00
Dão Gottwald
51112c5889 Bug 1444007 - Remove race condition in browser_devices_get_user_media_multi_process.js. r=arai
MozReview-Commit-ID: 8cvuI8a984p

--HG--
extra : rebase_source : ce8335b382741e1eaa29511ebae2659a1c6f1a06
2018-03-22 12:06:24 +01:00
Tom Glowka
a9c84c6ef6 Bug 1269468 - onRequestPostData returns requestPostData not whole payload; r=Honza
For the sake of coherence with the rest of FirefoxDataProvider interface, to avoid future bugs like the one this commit refers to.

MozReview-Commit-ID: EX8JQvoIeTb

--HG--
extra : rebase_source : e398cf76137bc5009ed1614a9cc97d0c4edfa67f
2018-03-14 23:25:12 +01:00
glowka
b4e16f77fd Bug 1269468 - fix netmonitor copy POST Data by conditonal use of formDataSections; r=Honza
MozReview-Commit-ID: Kq45bHXoDB8

--HG--
extra : rebase_source : 5cd3f175501dd0e3239e6f689dada1da99f2a8a2
2018-03-09 01:54:13 +01:00
glowka
6b3c0edea1 Bug 1269468 - fix netmonitor Copy as cURL: adjusting requestData calls to current implementation of onRequestPostData; r=Honza
MozReview-Commit-ID: AOYbsV4AljW

--HG--
extra : rebase_source : d4319ec6eeb2b417ed8d33c5b64fce31abf2b4ea
2018-03-09 00:14:23 +01:00
Timothy Guan-tin Chien
13467f5465 Bug 1444193 - Remove the ability to load full xul.css in non-XUL document. r=enndeakin+6102
With bug 1444489, there is no longer a need to load the full xul.css into HTML
documents. This patch remove that ability and keep it as an assertion.

MozReview-Commit-ID: ChBdRts6PFX

--HG--
extra : rebase_source : b6b35af4c66d8a097f8b4787305bba2e948de554
2018-03-08 13:39:58 -08:00
Andrew McCreight
81b1d1c977 Bug 1447849 - Eliminate the anonymous union from XPTTypeDescriptor. r=njn
For bug 1438688, I need to statically initialize all of the data types
in xpt_struct.h. It turns out that the approach I was using for unions
is C99 and not C++. While for some reason Clang and GCC are okay with
that, MSVC is not.

One of the unions is a gnarly anonymous union in
XPTTypeDescriptor. However, every arm of this union is either 1 or 2
uint8_t, so I think it is reasonable to eliminate the union and
replace it with two fields, mData1 and mData2. I've fixed up the
places that read this data to use accessor methods with nice asserts
about the tag on the variant, so if anything I think that part is
nicer.

The code in xpt_struct.cpp that writes to this data is maybe less
nice, but I'm deleting it in bug 1438688 so I think that's okay. We
also lose some detail in the comments about the relationship between
what is stored in memory compared to what is stored on disk, but I
think that's okay, too.

MozReview-Commit-ID: DGi19f8HnMi

--HG--
extra : rebase_source : e3535ecb3d7f02bdb643df153e8aba3e106d9104
2018-03-21 16:35:55 -07:00
Valentin Gosu
83e7f0c0ea Bug 1447190 - Remove internal mutability from nsStandardURL r=mayhemer
* Removes mSpecEncoding since the spec is always ASCII encoded
* nsStandardURL::InitGlobalObjects is now called from nsNetStartup
* Removes prefObserver from nsStandardURL
* mDisplayHost is now initialized every time that we change the hostname
* Adds locking to the gAllURLs list

MozReview-Commit-ID: 93mwECxYxWl
* * *
[mq]: overfix

MozReview-Commit-ID: 98nyTYa5ZeR

--HG--
extra : rebase_source : 82045e10771038d7168d1f235143c24c72dd5a45
2018-03-22 02:59:32 +01:00
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