New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 598110 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

file:///data/data/... shown after page refresh of removed saved offline page

Project Member Reported by caon@chromium.org, Mar 25 2016

Issue description

Version: 51.1.2687.0 dev (32-bit)
OS: Android 5 & Android 4

What steps will reproduce the problem?
(1)Save an offline page
(2)Go offline, open the saved page
(3)Click the star in address box to edit the bookmark, click REMOVE to remove the offline page saved
(4)Refresh the page

What is the expected output?
Showing page with message "You are offline", see screenshot expected

What do you see instead?
Message "Your file was not found", in address box showing file:///data/data/..., see screenshot actual

Please use labels and text to provide additional information.

 
expected.png
99 KB View Download
actual.png
84.3 KB View Download
Cc: petewil@chromium.org
Labels: -Restrict-View-Google
Owner: jianli@chromium.org
Status: Assigned (was: Untriaged)
Can you take a look? This sounds like an interesting problem.

Comment 2 by talo@chromium.org, Mar 30 2016

I agree that it makes sense to show the offline dino here.

Comment 3 by talo@chromium.org, Apr 1 2016

To generalize based on another issue Darin highlighted (below), I believe the user experience we want here is to fall back to the original URL. So, if a user is offline, they'd get the offline dino page, and if online they'd get the original page.

The user flow that Darin highlighted from playing around with the feature is below. Would be good to validate that our fix addresses this as well!

Steps to reproduce
1. viewing an offline bookmark in a tab
2. go into the bookmarks manager and delete the storage for the offline bookmark
3. switch back to the tab where that was loaded
4. see an error page and the file:// URL will appear in the location bar.

Expected Behavior:
- should fall back to the original site URL

Comment 4 by jianli@chromium.org, Apr 11 2016

Cc: talo@chromium.org fgor...@chromium.org
This bug occurs because all the metadata information about an offline page is lost after the page was deleted. I can add the logic to track the deleted pages.

1) Using in-memory buffer. This buffer is a circular buffer with 20 item limits (we don't want to track unlimited pages). This means that we're not able to get back the online URL when the page was deleted before 20 more pages were deleted. Also we're not able to get back the online URL when Chrome is killed and restarted.

2) Still keeping pages in metadata store, with DELETED state. We need to wipe out these entries, say in one day.

For any of the above solutions, there is still a chance that the online URL for the deleted page can not longer be retrieved. What are we going to show in this case?

The ultimate fix is to add the capability to support double URLs for a navigation entry. This is a big workitem, which will require lots of discussions with navigation team, plus designs and implementations.

Talo, how do you think about fixing this bug?

Comment 5 by jianli@chromium.org, Jun 30 2016

Status: Fixed (was: Assigned)
This should have already been fixed with 2-stage deletion.
Status: Verified (was: Fixed)
Verified Fixed in 54.0.2821.0

If a bookmark is removed per the repro steps, the offline copy remains and is still available.  If that copy gets deleted by Chrome cleaning it up, then the original url is displayed with an offline error page.

If the offline copy is manually removed, and a tab with the offline copy is reloaded.  The error page still shows the original url but with a File Not Found error page, but since someone would have to do a lot of work to make that happen I think its fine to have that as an error page.

Sign in to add a comment