Chromium Code Reviews| Index: chrome/test/data/extensions/api_test/bindings/event_filter/background.js |
| diff --git a/chrome/test/data/extensions/api_test/bindings/event_filter/background.js b/chrome/test/data/extensions/api_test/bindings/event_filter/background.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f45a74bafcc9855628e2d76c98e80d21dddb2b46 |
| --- /dev/null |
| +++ b/chrome/test/data/extensions/api_test/bindings/event_filter/background.js |
| @@ -0,0 +1,11 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +Object.defineProperty(Object.prototype, 'windowExposedByDefault', |
|
lazyboy
2017/06/10 00:22:08
nit: put a comment about the intent of this custom
Devlin
2017/06/12 17:01:54
Done.
|
| + {enumerable: true, get() { return 'hahaha'; }}); |
|
lazyboy
2017/06/10 00:22:08
nit: remove one of the two spaces before "return"
Devlin
2017/06/12 17:01:54
Good catch! Done.
|
| +chrome.webNavigation.onBeforeNavigate.addListener(function() { |
| + chrome.test.notifyPass(); |
| +}, {url: [{hostContains: 'example.com'}]}); |
| + |
| +chrome.test.sendMessage('ready'); |