Skip to content

Commit f289439

Browse files
Ahmed FakhryCommit Bot
authored andcommitted
Fix a crash on Windows when saving the stale content of an evicted app window
This is only supported on ChromeOS, so make it conditional and follow the example of Browser::ShouldShowStaleContentOnEviction(): https://cs.chromium.org/chromium/src/chrome/browser/ui/browser.cc?dr=CSs&q=Browser::ShouldShowStaleContentOnEviction&g=0&l=1453 BUG=1036760 Change-Id: Idcf003483600046a4e64ebe0b681bbdb30b8449a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1992515 Reviewed-by: Istiaque Ahmed <[email protected]> Commit-Queue: Ahmed Fakhry <[email protected]> Cr-Commit-Position: refs/heads/master@{#729809}
1 parent 4ffd115 commit f289439

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extensions/browser/app_window/app_window.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,11 @@ void AppWindow::ExitPictureInPicture() {
455455
}
456456

457457
bool AppWindow::ShouldShowStaleContentOnEviction(content::WebContents* source) {
458+
#if defined(OS_CHROMEOS)
458459
return true;
460+
#else
461+
return false;
462+
#endif // defined(OS_CHROMEOS)
459463
}
460464

461465
bool AppWindow::OnMessageReceived(const IPC::Message& message,

0 commit comments

Comments
 (0)