Skip to content

Commit adf498c

Browse files
authored
[iedriver] Enable msIEModeAlwaysWaitForUnload for Edge IE Mode (#11079)
1 parent 01bf373 commit adf498c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cpp/iedriver/BrowserFactory.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,12 +406,22 @@ void BrowserFactory::LaunchEdgeInIEMode(PROCESS_INFORMATION* proc_info,
406406
this->edge_user_data_dir_ = temp_dir;
407407
}
408408

409+
// Prevent Edge from showing first run experience tab.
409410
executable_and_url.append(L" --no-first-run");
411+
412+
// Disable Edge prelaunch and other background processes on startup.
410413
executable_and_url.append(L" --no-service-autorun");
414+
415+
// Disable profile sync and implicit MS account sign-in.
411416
executable_and_url.append(L" --disable-sync");
412417
executable_and_url.append(L" --disable-features=msImplicitSignin");
418+
419+
// ALways allow popups for testing.
413420
executable_and_url.append(L" --disable-popup-blocking");
414421

422+
// Ensure IE Mode tabs have a chance to shut down cleanly before the Edge process exits.
423+
executable_and_url.append(L" --enable-features=msIEModeAlwaysWaitForUnload");
424+
415425
executable_and_url.append(L" ");
416426
executable_and_url.append(this->initial_browser_url_);
417427

0 commit comments

Comments
 (0)