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

Unified Diff: chrome/browser/resources/feedback.js

Issue 13853008: Set the attach file checkbox to checked when launched from an extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « chrome/browser/resources/feedback.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/feedback.js
diff --git a/chrome/browser/resources/feedback.js b/chrome/browser/resources/feedback.js
index 14ae6fb950a2fda2eb8746aa7bf79f169de75f93..15d37ec97a13eee541fdc77ebfd7d43458df80d9 100644
--- a/chrome/browser/resources/feedback.js
+++ b/chrome/browser/resources/feedback.js
@@ -305,7 +305,14 @@ function load() {
'filePath': '',
};
- var query = window.location.search.substr(1).split('&');
+ var loc = window.location;
+ // Split the query string into an array of parameters.
+ var query = loc.search.substr(1).split('&');
+ // If we have a query in the hash.
+ if (loc.hash.indexOf('?') >= 0) {
+ // Remove the hash and split this query into parameters too.
+ query = query.concat(loc.hash.substr(loc.hash.indexOf('?') + 1).split('&'));
+ }
for (var i = 0; i < query.length; i++) {
// Decode and store each parameter value.
parameter = query[i].split('=');
« no previous file with comments | « chrome/browser/resources/feedback.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698