Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp

Issue 2780093003: V8 bindings gen: Error if OriginTrialEnabled and SecureContext together. (Closed)
Patch Set: NavigationPreloadManager: Avoid hitting the error. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp
diff --git a/third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp b/third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp
index e2dfd258efd27c08df165965ede974fa3172017f..c3a754790a4e6bd198af0cab087df10ccc5f954a 100644
--- a/third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp
+++ b/third_party/WebKit/Source/bindings/modules/v8/ConditionalFeaturesForModules.cpp
@@ -57,7 +57,8 @@ void installConditionalFeaturesForModules(
v8::Local<v8::Object>(),
prototypeObject, interfaceObject);
}
- // Mimics the [SecureContext] extended attribute.
+ // Mimics the [SecureContext] extended attribute. Work-around for
+ // https://crbug.com/695123.
if (OriginTrials::webUSBEnabled(executionContext) &&
executionContext->isSecureContext()) {
V8NavigatorPartial::installWebUSB(isolate, world, v8::Local<v8::Object>(),
@@ -73,7 +74,8 @@ void installConditionalFeaturesForModules(
V8WindowPartial::installImageCapture(isolate, world, instanceObject,
prototypeObject, interfaceObject);
}
- // Mimics the [SecureContext] extended attribute.
+ // Mimics the [SecureContext] extended attribute. Work-around for
+ // https://crbug.com/695123.
if (OriginTrials::webUSBEnabled(executionContext) &&
executionContext->isSecureContext()) {
V8WindowPartial::installWebUSB(isolate, world, instanceObject,

Powered by Google App Engine
This is Rietveld 408576698