Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: ios/chrome/browser/reading_list/reading_list_distiller_page.mm

Issue 2767193003: [Reading List iOS] Test WebState on JavaScript return. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/reading_list/reading_list_distiller_page.mm
diff --git a/ios/chrome/browser/reading_list/reading_list_distiller_page.mm b/ios/chrome/browser/reading_list/reading_list_distiller_page.mm
index feb04ff68a3039c35627f729ebad3bbe0546f0f0..e2fd850ad8b171d4dc6ff3ffd9f50cfeeff0b21c 100644
--- a/ios/chrome/browser/reading_list/reading_list_distiller_page.mm
+++ b/ios/chrome/browser/reading_list/reading_list_distiller_page.mm
@@ -196,6 +196,11 @@ void ReadingListDistillerPage::DelayedOnLoadURLDone(int delayed_task_id) {
}
void ReadingListDistillerPage::ContinuePageDistillation() {
+ if (!CurrentWebState()) {
+ // Something interrupted the distillation.
+ // Abort here.
+ return;
+ }
// The page is ready to be distilled.
// If the visible URL is not the original URL, notify the caller that URL
// changed.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698