Skip to content

Commit

Permalink
[iedriver] Enable msIEModeAlwaysWaitForUnload for Edge IE Mode (#11079)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalderman authored Oct 17, 2022
1 parent 01bf373 commit adf498c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cpp/iedriver/BrowserFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,22 @@ void BrowserFactory::LaunchEdgeInIEMode(PROCESS_INFORMATION* proc_info,
this->edge_user_data_dir_ = temp_dir;
}

// Prevent Edge from showing first run experience tab.
executable_and_url.append(L" --no-first-run");

// Disable Edge prelaunch and other background processes on startup.
executable_and_url.append(L" --no-service-autorun");

// Disable profile sync and implicit MS account sign-in.
executable_and_url.append(L" --disable-sync");
executable_and_url.append(L" --disable-features=msImplicitSignin");

// ALways allow popups for testing.
executable_and_url.append(L" --disable-popup-blocking");

// Ensure IE Mode tabs have a chance to shut down cleanly before the Edge process exits.
executable_and_url.append(L" --enable-features=msIEModeAlwaysWaitForUnload");

executable_and_url.append(L" ");
executable_and_url.append(this->initial_browser_url_);

Expand Down

0 comments on commit adf498c

Please sign in to comment.