Closed
Bug 1322117
Opened 9 years ago
Closed 9 years ago
Reader Mode tab shows up in Recently Closed Tabs
Categories
(Firefox for iOS :: General, defect, P1)
Tracking
()
VERIFIED
FIXED
People
(Reporter: maurya1985, Assigned: st3fan)
References
Details
(Whiteboard: [MobileAS])
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:50.0) Gecko/20100101 Firefox/50.0
Build ID: 20161129173726
Steps to reproduce:
1. Navigate to any website that can be viewed in Reader Mode (e.g., wikipedia article)
2. View it in reader mode
3. Close the tab
4. Now check Recently Closed Tabs under History
Actual results:
The localhost url to the page that was viewed in reader mode is displayed among the recently closed tabs. On tapping that item, a blank page is shown. See screenshots.
Expected results:
The actual url (not the localhost url) should be shown among the recently closed tabs. On tapping, it should navigate to that page (not to a blank page).
| Reporter | ||
Comment 1•9 years ago
|
||
Correction: Tapping on the item takes us to the reader view page (not blank page). But, we want it to take us to the actual page (without the reader view applied).
Updated•9 years ago
|
tracking-fxios:
--- → ?
| Reporter | ||
Comment 2•9 years ago
|
||
I've noticed that even other "localhost" pages are also being displayed in the Recently Closed Tabs panel. For instance if a page timed out, an entry shows up in the panel with the title "The request timed out." and with a "localhost" url. I believe we don't want to show localhost urls anywhere.
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → sarentz
Updated•9 years ago
|
| Assignee | ||
Comment 3•9 years ago
|
||
This patch does the following:
* It moves helper functions from `AboutUtils`, `ReaderModeUtils` and `ErrorPageHelper` into `NSURLExtensions`.
* It introduces a `NSURL.displayURL` and `NSURL.displayString` which correctly transform about, error and reader mode URLs to the page that they represent.
* It fixes bug 1322117 by calling `url.displayString()` instead of `url.absoluteString()` in the `RecentlyClosedTabsPanel`.
I understand this turned out to be a rather big refactor. We can also move this to 6.1 or 7.0 if we have a bad feeling about a change this large.
Attachment #8819004 -
Flags: review?(fpatel)
Attachment #8819004 -
Flags: review?(bnicholson)
Comment 4•9 years ago
|
||
Comment on attachment 8819004 [details] [review]
PR: https://github.com/mozilla-mobile/firefox-ios/pull/2283
I'm cool with this going into 6.0.
Attachment #8819004 -
Flags: review?(fpatel) → review+
Comment 5•9 years ago
|
||
Comment on attachment 8819004 [details] [review]
PR: https://github.com/mozilla-mobile/firefox-ios/pull/2283
Left some comments in the PR, but nothing too big. Would be nice if these extension functions were computed properties instead.
Attachment #8819004 -
Flags: review?(bnicholson) → review+
Comment 6•9 years ago
|
||
I added a lot more changes. If you could do another look that would be awesome :)
Flags: needinfo?(bnicholson)
| Assignee | ||
Updated•9 years ago
|
Attachment #8819004 -
Flags: review?(sarentz)
Comment 8•9 years ago
|
||
master https://github.com/mozilla-mobile/firefox-ios/commit/1326872c53591075723896437e8a88658e10e94f
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [MobileAS] → [MobileAS][needsuplift]
Comment 9•9 years ago
|
||
make sure to also uplift the folowup please
b28cdb50962ecfc35b22c833cfa6b1506a165a0e
Comment 10•9 years ago
|
||
v6.x 182fe46a9b060c40c43c7ab3871c3d7e8e5d1d54
status-fxios-v6.0:
--- → fixed
Whiteboard: [MobileAS][needsuplift] → [MobileAS]
Comment 11•9 years ago
|
||
On latest master, the URL is show correctly in the 'Recently Closed' panel, but tapping on it takes you to the reader view page.
Per comment #1, tapping in the link should take you to the actual page.
Farhan, what's the expected behavior in this case?
Flags: needinfo?(fpatel)
Comment 12•9 years ago
|
||
This was the behavior I was going for. It is also similar to how the back/forward list behaves. In the future it would be a good way to show that the URL is a ReaderMode url.
Flags: needinfo?(fpatel)
| Assignee | ||
Updated•9 years ago
|
Attachment #8819004 -
Flags: review?(sarentz)
You need to log in
before you can comment on or make changes to this bug.
Description
•