Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/ui/composer.js

Issue 5121539439591424: Issue 247 - Clear hash part of the URL when generating filter suggestions (Closed)
Patch Set: Created May 9, 2014, 6:58 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
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: chrome/content/ui/composer.js
===================================================================
--- a/chrome/content/ui/composer.js
+++ b/chrome/content/ui/composer.js
@@ -46,16 +46,17 @@ function init()
try
{
let suggestions = [""];
let url = ioService.newURI(item.location, null, null)
.QueryInterface(Ci.nsIURL);
let suffix = (url.query ? "?*" : "");
url.query = "";
+ url.ref = "";
suggestions[1] = addSuggestion(url.spec + suffix);
let parentURL = ioService.newURI(url.fileName == "" ? ".." : ".", null, url);
if (!parentURL.equals(url))
suggestions[2] = addSuggestion(parentURL.spec + "*");
else
suggestions[2] = suggestions[1];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld