Commit 4aabde87 authored by Alfonso Castaño's avatar Alfonso Castaño Committed by Commit Bot

Delete descriptionForTrustedType from ValueMirror

In a previous CL the logic for generating the description for Trusted Types was added to Blink. Therefore, the corresponding logic remaining in V8 can be deleted safely.

Previous CL: https://chromium-review.googlesource.com/c/v8/v8/+/2502342

Bug: chromium:1048143
Change-Id: I1693fa1d213066cbc1fe822f890d2d7aaf7ce0f6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2502869Reviewed-by: 's avatarDaniel Vogelheim <vogelheim@chromium.org>
Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
Commit-Queue: Alfonso Castaño <alcastano@google.com>
Cr-Commit-Position: refs/heads/master@{#71173}
parent 9ec952d7
......@@ -1739,18 +1739,6 @@ String16 descriptionForNode(v8::Local<v8::Context> context,
return description;
}
String16 descriptionForTrustedType(v8::Local<v8::Context> context,
v8::Local<v8::Value> value) {
if (!value->IsObject()) return String16();
v8::Local<v8::Object> object = value.As<v8::Object>();
v8::Isolate* isolate = context->GetIsolate();
v8::TryCatch tryCatch(isolate);
v8::Local<v8::String> description;
if (!object->ToString(context).ToLocal(&description)) return String16();
return toProtocolString(isolate, description);
}
std::unique_ptr<ValueMirror> clientMirror(v8::Local<v8::Context> context,
v8::Local<v8::Value> value,
const String16& subtype) {
......@@ -1765,10 +1753,6 @@ std::unique_ptr<ValueMirror> clientMirror(v8::Local<v8::Context> context,
return std::make_unique<ObjectMirror>(value, subtype,
descriptionForNode(context, value));
}
if (subtype == "trustedtype") {
return std::make_unique<ObjectMirror>(
value, subtype, descriptionForTrustedType(context, value));
}
if (subtype == "error") {
return std::make_unique<ObjectMirror>(
value, RemoteObject::SubtypeEnum::Error,
......
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