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

Unified Diff: chrome/test/data/extensions/bookmarks/bookmark_view.html

Issue 99172: Part 1 of sample sprucing. (Closed)
Patch Set: Added buildbot.crx, since that seems like something people might want to install. Created 11 years, 8 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
Index: chrome/test/data/extensions/bookmarks/bookmark_view.html
diff --git a/chrome/test/data/extensions/bookmarks/bookmark_view.html b/chrome/test/data/extensions/bookmarks/bookmark_view.html
index f3f45b5beb0da5df1ed2c562f1c4598895fc39fc..f038e9703b85c75b052f496e98a3803ee31435c9 100644
--- a/chrome/test/data/extensions/bookmarks/bookmark_view.html
+++ b/chrome/test/data/extensions/bookmarks/bookmark_view.html
@@ -20,6 +20,14 @@
</style>
<script>
+// XXX Hack: When you call window.open('chrome-extension://...'), the window is
+// first navigated to about:blank, and then to the final URL. This confuses the
+// code that sets up our v8 extensions, and we don't end up with them running.
+//
+// If we noticed this happened, reload ourselves, which should fix it.
+if (!chromium.bookmarks)
+ location.reload();
+
var prefix = "bookmark_";
var toggleBookmark = function(event) {

Powered by Google App Engine
This is Rietveld 408576698