Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/netinfo/resources/netinfo_common.js |
| diff --git a/third_party/WebKit/LayoutTests/netinfo/resources/netinfo_common.js b/third_party/WebKit/LayoutTests/netinfo/resources/netinfo_common.js |
| index 57e3c45dbb900469f8e26a8143963197d5680536..49562951fdadbf566d9415b65f6d026611d6ff5c 100644 |
| --- a/third_party/WebKit/LayoutTests/netinfo/resources/netinfo_common.js |
| +++ b/third_party/WebKit/LayoutTests/netinfo/resources/netinfo_common.js |
| @@ -10,5 +10,10 @@ var newDownlinkMax = 2.0; |
| if (window.internals) { |
| internals.setNetworkStateNotifierTestOnly(true); |
| internals.setNetworkConnectionInfo(initialType, initialDownlinkMax); |
| + |
| + // Reset the state of the singleton network state notifier. |
| + window.onbeforeunload = function() { |
|
philipj_slow
2015/10/21 11:11:29
Using addEventListener here to not risk conflictin
DaleCurtis
2015/10/21 22:34:32
Done.
|
| + internals.setNetworkStateNotifierTestOnly(false); |
| + } |
| } |