update "navigation within beforeunload" test to match the spec

This commit is contained in:
Gregory Terzian 2018-05-13 12:56:24 +08:00
parent a297e8f288
commit 9467543c80
4 changed files with 6 additions and 8 deletions

View file

@ -1560,7 +1560,7 @@ impl Window {
let pipeline_id = self.upcast::<GlobalScope>().pipeline_id();
// Step 4
// Step 4 and 5
let window_proxy = self.window_proxy();
if let Some(active) = window_proxy.currently_active() {
if pipeline_id == active {