Commit a34d0cc3 authored by Arthur Hemery's avatar Arthur Hemery Committed by Commit Bot

[crossOriginIsolated] Correct the metrics for SAB construction.

Correcting an inversed condition for recording isolated vs non
isolated SharredArrayBuffer constructions.

Bug: 1143191
Change-Id: Ibd51e5eb13a3228732c1dad34405101fe824eb40
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2527059Reviewed-by: default avatarMike West <mkwst@chromium.org>
Commit-Queue: Arthur Hemery <ahemery@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825776}
parent 75efa2af
...@@ -237,7 +237,7 @@ void UseCounterCallback(v8::Isolate* isolate, ...@@ -237,7 +237,7 @@ void UseCounterCallback(v8::Isolate* isolate,
blink_feature = WebFeature::kV8RegExpReplaceCalledOnSlowRegExp; blink_feature = WebFeature::kV8RegExpReplaceCalledOnSlowRegExp;
break; break;
case v8::Isolate::kSharedArrayBufferConstructed: case v8::Isolate::kSharedArrayBufferConstructed:
if (CurrentExecutionContext(isolate)->CrossOriginIsolatedCapability()) { if (!CurrentExecutionContext(isolate)->CrossOriginIsolatedCapability()) {
blink_feature = blink_feature =
WebFeature::kV8SharedArrayBufferConstructedWithoutIsolation; WebFeature::kV8SharedArrayBufferConstructedWithoutIsolation;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment