Closed Bug 1134240 Opened 10 years ago Closed 10 years ago

pasting filtered urls in irc/etc. fails due to spaces

Categories

(Tree Management :: Treeherder, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmaher, Unassigned)

References

Details

while investigating talos failures, it is common to communicate in bugs, irc, email with links to treeherder to show a filtered view. Here is an example: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&fromchange=2aee204e65cb&tochange=23c78316747f&filter-searchStr=Rev5 MacOSX Mountain Lion 10.8 mozilla-inbound talos svgr The problem is the filter has spaces in it and the clickable url is broken which means the filter doesn't apply.
Maybe just a newbie thing on my part, but I wonder from a product standpoint why Chrome just handles it correctly and inserts the %20 for the user, where Firefox does not. eg. bug 633386.
tbpl works just fine, so this is something specific to treeherder: https://tbpl.mozilla.org/?tree=Mozilla-Inbound&jobname=Windows%207%2032-bit%20mozilla-inbound%20talos%20xperf that doesn't mean that chrome handles it better than Firefox, it probably means that tbpl has hacked around this.
Yup, I was just talking in general terms, per that open bug.
I spent a while on this today. encodeURIComponent() works as expected, but I am not groking the correct way to isolate that modified search from the model (which also populates the UI input). If I can get it sorted I'll assign myself.
Priority: -- → P2
What tbpl did wasn't a hack, it did the right thing, and put params after the ? and before the # where they belong, unlike treeherder which causes multiple sorts of pain by making the entire URL a hash. Nevertheless one of us really should have realized that this was new Firefox bustage.
Depends on: 1148861
This was fixed by two things: - Bug 1148861 was backed out, which broke Nightly. - Bug 1152414 encoded the link, so if you use "copy link location" in Chrome, it works there too
Status: NEW → RESOLVED
Closed: 10 years ago
Depends on: 1152414
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.