| Index: third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
|
| diff --git a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
|
| index a932c52d8fb91acd1190398809414c75e55c7378..95e5b353ce92c7bb4da370d38504a524671702ad 100644
|
| --- a/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
|
| +++ b/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp
|
| @@ -82,11 +82,11 @@ bool NavigatorVibration::vibrate(Navigator& navigator,
|
| // runtime flag.
|
| if (!isFeatureEnabledInFrame(blink::kVibrateFeature, frame)) {
|
| if (RuntimeEnabledFeatures::featurePolicyEnabled()) {
|
| - frame->localDOMWindow()->printErrorMessage(
|
| + frame->domWindow()->printErrorMessage(
|
| "Navigator.vibrate() is not enabled in feature policy for this "
|
| "frame.");
|
| } else {
|
| - frame->localDOMWindow()->printErrorMessage(
|
| + frame->domWindow()->printErrorMessage(
|
| "A call of navigator.vibrate will be no-op inside cross-origin "
|
| "iframes: https://www.chromestatus.com/feature/5682658461876224.");
|
| }
|
|
|