diff options
author | Matt A. Tobin <email@mattatobin.com> | 2022-10-06 12:07:40 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-10-06 12:07:40 -0500 |
commit | 6cdd0210fb14e8a1ed256e934f05f758afc4a6ab (patch) | |
tree | ae810fb774a340b2a3d4a0f8b6b9a68e6423e596 /dom/performance/PerformanceResourceTiming.h | |
parent | e4ed223f80260aa735a77bc4cfff25b76f3e7a94 (diff) | |
parent | 14f8e3e2e95e86a995627add57bf71de7c7edcaa (diff) | |
download | aura-central-6cdd0210fb14e8a1ed256e934f05f758afc4a6ab.tar.gz |
Diffstat (limited to 'dom/performance/PerformanceResourceTiming.h')
-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 b4775d432..63a8c2414 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) |