| Index: third_party/WebKit/Source/core/events/UIEventWithKeyState.h
|
| diff --git a/third_party/WebKit/Source/core/events/UIEventWithKeyState.h b/third_party/WebKit/Source/core/events/UIEventWithKeyState.h
|
| index a286ab7a866a723b5ef5bd12fc4d09e27fb3687f..cfb32d95ce004e20a823c5d3f22940f9b9dc6946 100644
|
| --- a/third_party/WebKit/Source/core/events/UIEventWithKeyState.h
|
| +++ b/third_party/WebKit/Source/core/events/UIEventWithKeyState.h
|
| @@ -37,8 +37,11 @@ class CORE_EXPORT UIEventWithKeyState : public UIEvent {
|
| bool altKey() const { return m_modifiers & PlatformEvent::AltKey; }
|
| bool metaKey() const { return m_modifiers & PlatformEvent::MetaKey; }
|
|
|
| - // We ignore the new tab modifiers (ctrl or meta, depending on OS) set by JavaScript when processing events.
|
| - // However, scripts running in isolated worlds (aka content scripts) are not subject to this restriction. Since it is possible that an event created by a content script is caught and recreated by the web page's script, we resort to a global flag.
|
| + // We ignore the new tab modifiers (ctrl or meta, depending on OS) set by
|
| + // JavaScript when processing events. However, scripts running in isolated
|
| + // worlds (aka content scripts) are not subject to this restriction. Since it
|
| + // is possible that an event created by a content script is caught and
|
| + // recreated by the web page's script, we resort to a global flag.
|
| static bool newTabModifierSetFromIsolatedWorld() {
|
| return s_newTabModifierSetFromIsolatedWorld;
|
| }
|
|
|