-
Notifications
You must be signed in to change notification settings - Fork 871
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1361 from /issues/2901
only call Stop when DistillerPageWebContents::CreateNewWebContents is…
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
patches/components-dom_distiller-content-browser-distiller_page_web_contents.cc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/components/dom_distiller/content/browser/distiller_page_web_contents.cc b/components/dom_distiller/content/browser/distiller_page_web_contents.cc | ||
index 9dd3a81fea2797c06db85868f0da94612b2a362d..9de2e23743c44deffafa96c7a2bdaabda046de87 100644 | ||
--- a/components/dom_distiller/content/browser/distiller_page_web_contents.cc | ||
+++ b/components/dom_distiller/content/browser/distiller_page_web_contents.cc | ||
@@ -182,7 +182,9 @@ void DistillerPageWebContents::ExecuteJavaScript() { | ||
content::WebContentsObserver::Observe(nullptr); | ||
// Stop any pending navigation since the intent is to distill the current | ||
// page. | ||
+ if (source_page_handle_->web_contents()->GetDelegate() == this) | ||
source_page_handle_->web_contents()->Stop(); | ||
+ | ||
DVLOG(1) << "Beginning distillation"; | ||
RunIsolatedJavaScript( | ||
frame, script_, |