[Page Thumbnails] single thumbnail removal doesn't work anymore when the corresponding site is removed from history

RESOLVED FIXED in Firefox 17

Status

()

Firefox
Tabbed Browser
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: ttaubert, Assigned: ttaubert)

Tracking

({regression})

Trunk
Firefox 17
regression
Points:
---

Firefox Tracking Flags

(firefox16 unaffected)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Created attachment 654032 [details] [diff] [review]
patch v1

The last iteration of the patch for bug 754671 introduced the "removeFiles" method in the PageThumbsWorker. Unfortunately Storage.remove() relied on the old "removeFile" method and should now silently fail.

The test I wrote for exactly this was wrong so we didn't catch that. I re-added the "removeFile" method to remove single files and fixed the test as well.
Attachment #654032 - Flags: review?(felipc)
Attachment #654032 - Flags: review?(felipc) → review+
https://hg.mozilla.org/integration/fx-team/rev/5fb14f57f34a
Whiteboard: [fixed-in-fx-team]
Comment on attachment 654032 [details] [diff] [review]
patch v1

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 754671
User impact if declined: removing a site from history doesn't remove its thumbnails
Testing completed (on m-c, etc.): should be in tomorrow's nightly
Risk to taking this patch (and alternatives if risky): low risk, need it for bug 754671 on Aurora
String or UUID changes made by this patch: none.

We need this patch on Aurora as well in combination with the patch from bug 754671.
Attachment #654032 - Flags: approval-mozilla-aurora?

Comment 3

5 years ago
Comment on attachment 654032 [details] [diff] [review]
patch v1

[Triage Comment]
We're letting bug 754671 ride the trains, so no need to uplift to Aurora 16.
Attachment #654032 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora-
Bah, backed out because the test times out on Windows. Seems to be a file lock issue.

https://hg.mozilla.org/integration/fx-team/rev/fd6973289931
Whiteboard: [fixed-in-fx-team]
Marking Fx 16 as unaffected because I fixed the backported patch from bug 754671 to just use "removeFiles" for now.
status-firefox16: --- → unaffected
Ok, I found the failure. Try looks green now:

https://tbpl.mozilla.org/?tree=Try&rev=b885539b32bb

Going to clean the patch up and upload it.
Created attachment 655124 [details] [diff] [review]
patch v2

Fixed the windows timeout and cleaned up the test.

It was timing out on Windows because Windows sometimes locks the files and we need to re-try removing those files. The missing part was re-adding the URL to the browser history so that the history observer's onDeleteURI() is called again.
Attachment #654032 - Attachment is obsolete: true
Attachment #655124 - Flags: review?(felipc)
Attachment #655124 - Flags: review?(felipc) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/89e186d2a171
https://hg.mozilla.org/mozilla-central/rev/89e186d2a171
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
You need to log in before you can comment on or make changes to this bug.