Merge lp:~sinzui/launchpad/bug-listings-urls into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Ian Booth | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 15269 | ||||
Proposed branch: | lp:~sinzui/launchpad/bug-listings-urls | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
95 lines (+74/-1) 3 files modified
lib/lp/app/javascript/lp.js (+10/-1) lib/lp/app/javascript/tests/test_lp.html (+38/-0) lib/lp/app/javascript/tests/test_lp.js (+26/-0) |
||||
To merge this branch: | bzr merge lp:~sinzui/launchpad/bug-listings-urls | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ian Booth (community) | Approve | ||
Review via email: mp+106266@code.launchpad.net |
Commit message
Enable bug listing navigation and sorting in browsers with broken pathname.
Description of the change
Pre-implementation: wgrant
Bug listings are very broken in MSIE because calls to
preserve history corrupt the URLs and state of the page. Users cannot
see more than one batch nor can they sort the listing.
-------
RULES
* We had agreed to disable the history module for MSIE and Opera.
I tested the latest version of Opera and it does work contrary to
reports that bug listings were broken. The History module has
a lot of improvements in YUI 3.5 so I decided to look into to
the double pillar in the URL. My suspicious were confirmed that
IE was getting a relative URL when I compared IE and Chromium in
their debuggers.
* Ensure pathname are absolute.
QA
Using MSIE and Opera
* Visit https:/
* Verify you can sort the listing (No error dialog).
* Verify you can see the next page (No error dialog).
LINT
lib/
lib/
lib/
TEST
./bin/test -vvc --layer=YUITest
IMPLEMENTATION
I fixed a helper method that assumes the browser returns a same pathname,
which IE does not. I added a rule to ensure a double slash was not
created because I recall we have seen this in the past.
lib/
lib/
lib/
Very nice.