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

Unified Diff: chrome/test/data/extensions/samples/subscribe_page_action/background.html

Issue 196015: Try again to fix bug 20968, this time not breaking browser (Closed)
Patch Set: Created 11 years, 3 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/samples/subscribe_page_action/background.html
diff --git a/chrome/test/data/extensions/samples/subscribe_page_action/background.html b/chrome/test/data/extensions/samples/subscribe_page_action/background.html
index a8a0902417a0cea4d9885a0e639937f6bff2231a..9ab4f3f61521e913a54da89252470e9134131307 100644
--- a/chrome/test/data/extensions/samples/subscribe_page_action/background.html
+++ b/chrome/test/data/extensions/samples/subscribe_page_action/background.html
@@ -43,9 +43,9 @@
if (window.focused) {
// Create a new tab showing the subscription page with the right
// feed URL.
- chrome.tabs.create({url: "subscribe.html?" +
- feedData[pageActionInfo.tabId].feedUrl,
- windowId: window.windowId});
+ var url = "subscribe.html?" +
+ encodeURIComponent(feedData[pageActionInfo.tabId].feedUrl);
+ chrome.tabs.create({url: url, windowId: window.windowId});
}
});
});

Powered by Google App Engine
This is Rietveld 408576698