Page 1 of 1
Google News "Custom Range" broken
Posted: Thu Jul 05, 2012 10:22 am
by kitchin
This bug prevents searching Google News with a custom date range.
Steps to reproduce:
1. Google search something
2. Click "News" in left-hand column
3. Click "Custom range..." in left column
Expected Result:
Popover calendar picker
Actual Result:
Very briefly shows popover then loads main Google search result (not News), since that is the href attribute of the <a> tag.
Re: Google News "Custom Range" broken
Posted: Fri Jul 06, 2012 1:22 am
by therube
Working for me.
Other then defaults, all I have allowed is google.com.
http://www.google.com/search?hl=en&gl=u ... re+orioles
Clicking
Custom range... emboldens it, From:, To:, & a Search button drop down, & the calendar picker pops up.
Re: Google News "Custom Range" broken
Posted: Fri Jul 06, 2012 6:47 pm
by kitchin
I run NoScript with "Allow Scripts Globally." I have not made any special settings for Google.
I started some debugging, now using 2.8.rc1. The HTML is of this form:
a href="..." onclick="google.x(...); return false;"
I inserted an alert() just before "return false" and it fires. The calendar picker displays. But then return false is ignored (I guess) and the href takes over and loads a new page.
Re: Google News "Custom Range" broken
Posted: Thu Jul 12, 2012 10:18 am
by kitchin
Found something in Surrogate scripts. The code in
noscript.surrogate.glinks.replacement does this:
Code: Select all
a._href=a.href=a.href.replace(...);
Removing that part fixes the problem in Google News. In fact, any code there that assigns to a.href breaks News. For example:
Code: Select all
a._href=a.href; a.href=a._href; // breaks
a._href=a.href; // does not break
a.href=a.href; // breaks