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

Unified Diff: content/shell/android/java/src/org/chromium/content_shell/ShellManager.java

Issue 11574003: Fix Android ContentShell's incorrect behavior when opening link with window.open. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update the patch Created 8 years 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: content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
diff --git a/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java b/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
index 91dc4c2ffc111662575776834e628de8cdaef773..4cc09069abd334fbacf06e8d64c1b2d3586f0ff9 100644
--- a/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
+++ b/content/shell/android/java/src/org/chromium/content_shell/ShellManager.java
@@ -21,6 +21,7 @@ import org.chromium.ui.gfx.NativeWindow;
@JNINamespace("content")
public class ShellManager extends FrameLayout {
+ private static boolean sStartup = true;
private NativeWindow mWindow;
private Shell mActiveShell;
@@ -38,7 +39,10 @@ public class ShellManager extends FrameLayout {
mContentViewRenderView = new ContentViewRenderView(context) {
@Override
protected void onReadyToRender() {
- mActiveShell.loadUrl(mStartupUrl);
+ if (sStartup) {
+ mActiveShell.loadUrl(mStartupUrl);
+ sStartup = false;
+ }
}
};
}
« 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