diff options
author | Moonchild <moonchild@palemoon.org> | 2022-07-27 02:39:58 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-07-27 02:39:58 +0000 |
commit | 515ba7c8872beecc185abb5572e414335c8fd009 (patch) | |
tree | 120080867b7e0bc45b1668846f558eb4ba18606a /dom | |
parent | 562ff3e9abc716bef4a8276e189611d3df57d30a (diff) | |
download | uxp-515ba7c8872beecc185abb5572e414335c8fd009.tar.gz |
[DOM] Add extra check for performance API Next Hop protocol
Diffstat (limited to 'dom')
-rw-r--r-- | dom/performance/PerformanceResourceTiming.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/performance/PerformanceResourceTiming.h b/dom/performance/PerformanceResourceTiming.h index b4775d4322..63a8c24149 100644 --- a/dom/performance/PerformanceResourceTiming.h +++ b/dom/performance/PerformanceResourceTiming.h @@ -54,7 +54,9 @@ public: void GetNextHopProtocol(nsAString& aNextHopProtocol) const { - aNextHopProtocol = mNextHopProtocol; + if (mTiming && mTiming->TimingAllowed()) { + aNextHopProtocol = mNextHopProtocol; + } } void SetNextHopProtocol(const nsAString& aNextHopProtocol) |