Bug 1403178 - Remove mParent assertion from Performance* as it's triggered in headless mode r=baku

MozReview-Commit-ID: BOz7e0oarab

--HG--
extra : rebase_source : 4b64987f740e737315b4e5c6858018c1449cec62
This commit is contained in:
Valentin Gosu 2017-09-28 08:26:11 +02:00
parent c7f99e3c21
commit 70b668ea83
4 changed files with 1 additions and 6 deletions

View File

@ -28,8 +28,6 @@ PerformanceEntry::PerformanceEntry(nsISupports* aParent,
mName(aName),
mEntryType(aEntryType)
{
// mParent is null in workers.
MOZ_ASSERT(mParent || !NS_IsMainThread());
}
PerformanceEntry::~PerformanceEntry()

View File

@ -89,6 +89,7 @@ public:
protected:
virtual size_t SizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
private:
nsCOMPtr<nsISupports> mParent;
nsString mName;
nsString mEntryType;

View File

@ -16,8 +16,6 @@ PerformanceMark::PerformanceMark(nsISupports* aParent,
: PerformanceEntry(aParent, aName, NS_LITERAL_STRING("mark"))
, mStartTime(aStartTime)
{
// mParent is null in workers.
MOZ_ASSERT(mParent || !NS_IsMainThread());
}
PerformanceMark::~PerformanceMark()

View File

@ -18,8 +18,6 @@ PerformanceMeasure::PerformanceMeasure(nsISupports* aParent,
mStartTime(aStartTime),
mDuration(aEndTime - aStartTime)
{
// mParent is null in workers.
MOZ_ASSERT(mParent || !NS_IsMainThread());
}
PerformanceMeasure::~PerformanceMeasure()