| Index: third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/gc-detach.html | 
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/gc-detach.html b/third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/gc-detach.html | 
| index d269e613f8aa82b7e83a5ee8552a8dedd01e5ab7..28e1069dd18e717e6e21361079ccf770fd7db30f 100644 | 
| --- a/third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/gc-detach.html | 
| +++ b/third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/gc-detach.html | 
| @@ -13,6 +13,7 @@ | 
| iframe.contentWindow.postMessage('Go', '*'); | 
| }); | 
| } else if (messageEvent.data === 'Connected') { | 
| +        let iframe = document.querySelector('iframe'); | 
| // GC | 
| runGarbageCollection().then(() => { | 
| // Detach | 
| @@ -23,10 +24,12 @@ | 
| assert_unreached('iframe sent invalid data: ' + messageEvent.data); | 
| } | 
| }); | 
| -    testRunner.setBluetoothMockDataSet('HeartRateAdapter'); | 
| -    let iframe = document.createElement('iframe'); | 
| -    iframe.src = '../resources/connect-iframe.html'; | 
| -    document.body.appendChild(iframe); | 
| +    setBluetoothFakeAdapter('HeartRateAdapter') | 
| +      .then(() => { | 
| +        let iframe = document.createElement('iframe'); | 
| +        iframe.src = '../resources/connect-iframe.html'; | 
| +        document.body.appendChild(iframe); | 
| +      }); | 
| }, 'Garbage collect then detach frame. We shouldn\'t crash.'); | 
| </script> | 
| </body> | 
|  |