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

Unified Diff: chrome/test/data/extensions/subscribe_page_action/subscribe.js

Issue 6332008: The RSS subscribe.js should not double-decoded the URL passed in.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « chrome/browser/extensions/extension_browsertests_misc.cc ('k') | chrome/test/data/feeds/url_decoding.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/subscribe_page_action/subscribe.js
===================================================================
--- chrome/test/data/extensions/subscribe_page_action/subscribe.js (revision 71771)
+++ chrome/test/data/extensions/subscribe_page_action/subscribe.js (working copy)
@@ -39,7 +39,7 @@
var select = document.getElementById('readerDropdown');
var url =
feedReaderList[select.selectedIndex].url.replace(
- "%s", escape(encodeURI(feedUrl)));
+ "%s", encodeURIComponent(feedUrl));
// Before we navigate, see if we want to skip this step in the future...
if (storageEnabled) {
@@ -105,7 +105,6 @@
"'></" + "script>";
}
- feedUrl = decodeURIComponent(feedUrl);
req.onload = handleResponse;
req.onerror = handleError;
// Not everyone sets the mime type correctly, which causes handleResponse
« no previous file with comments | « chrome/browser/extensions/extension_browsertests_misc.cc ('k') | chrome/test/data/feeds/url_decoding.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698