summaryrefslogtreecommitdiffstats
path: root/dom/performance/PerformanceWorker.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 12:11:55 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 12:11:55 +0200
commit39d4a11267fd707df04bb06a74e24f36e2dbcd28 (patch)
tree3c30c957fdeb03c356aa6bfe51867b38e0f05ff4 /dom/performance/PerformanceWorker.cpp
parent7ee501103ad2efe1d28ef3c10b4111a685746c06 (diff)
downloadUXP-39d4a11267fd707df04bb06a74e24f36e2dbcd28.tar
UXP-39d4a11267fd707df04bb06a74e24f36e2dbcd28.tar.gz
UXP-39d4a11267fd707df04bb06a74e24f36e2dbcd28.tar.lz
UXP-39d4a11267fd707df04bb06a74e24f36e2dbcd28.tar.xz
UXP-39d4a11267fd707df04bb06a74e24f36e2dbcd28.zip
Bug 1323941 - navigationStart should not be exposed to workers as timing attribute
https://hg.mozilla.org/mozilla-central/rev/6be7eb833b11
Diffstat (limited to 'dom/performance/PerformanceWorker.cpp')
-rw-r--r--dom/performance/PerformanceWorker.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/dom/performance/PerformanceWorker.cpp b/dom/performance/PerformanceWorker.cpp
index 85ca2ccd8..db9d6aa6e 100644
--- a/dom/performance/PerformanceWorker.cpp
+++ b/dom/performance/PerformanceWorker.cpp
@@ -31,29 +31,6 @@ PerformanceWorker::Now() const
return RoundTime(duration.ToMilliseconds());
}
-// To be removed once bug 1124165 lands
-bool
-PerformanceWorker::IsPerformanceTimingAttribute(const nsAString& aName)
-{
- // In workers we just support navigationStart.
- return aName.EqualsASCII("navigationStart");
-}
-
-DOMHighResTimeStamp
-PerformanceWorker::GetPerformanceTimingFromString(const nsAString& aProperty)
-{
- if (!IsPerformanceTimingAttribute(aProperty)) {
- return 0;
- }
-
- if (aProperty.EqualsLiteral("navigationStart")) {
- return mWorkerPrivate->NowBaseTime();
- }
-
- MOZ_CRASH("IsPerformanceTimingAttribute and GetPerformanceTimingFromString are out of sync");
- return 0;
-}
-
void
PerformanceWorker::InsertUserEntry(PerformanceEntry* aEntry)
{