mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-07 01:01:43 +00:00
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:
parent
c7f99e3c21
commit
70b668ea83
@ -28,8 +28,6 @@ PerformanceEntry::PerformanceEntry(nsISupports* aParent,
|
||||
mName(aName),
|
||||
mEntryType(aEntryType)
|
||||
{
|
||||
// mParent is null in workers.
|
||||
MOZ_ASSERT(mParent || !NS_IsMainThread());
|
||||
}
|
||||
|
||||
PerformanceEntry::~PerformanceEntry()
|
||||
|
@ -89,6 +89,7 @@ public:
|
||||
protected:
|
||||
virtual size_t SizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
|
||||
|
||||
private:
|
||||
nsCOMPtr<nsISupports> mParent;
|
||||
nsString mName;
|
||||
nsString mEntryType;
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user