Closed Bug 1472476 Opened 6 years ago Closed 6 years ago

The first session restore after bug 1453751 causes restored tabs to lose their icons until the pages are loaded

Categories

(Firefox :: Session Restore, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Firefox 63
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- unaffected
firefox61 --- unaffected
firefox62 --- unaffected
firefox63 + fixed

People

(Reporter: mossop, Assigned: mossop)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We store the icon URL in session store data and previous to bug 1453751 that was normally a remote http url. After bug 1453751 we no longer accept setting remote http urls on tabs so the first restore will log errors like "Attempt to set a remote URL https://bugzilla.mozilla.org/extensions/BMO/web/images/favicon.ico as a tab icon.".
[Tracking Requested - why for this release]:
What do you think here Marco? The only options I can think of:

1. Do nothing. It happens for one session restore when upgrading from pre bug 1453751 to post. That means one startup for most users.
2. Re-allow setting remote urls on tabs for a while, including the code that sets the content principal. I was planning on ripping out the iconloadingprincipal support from the platform but we'd have to delay that in this case.
Flags: needinfo?(mak77)
(In reply to Dave Townsend [:mossop] from comment #2)
> 1. Do nothing. It happens for one session restore when upgrading from pre
> bug 1453751 to post. That means one startup for most users.

To me it sounds like an easy call, I'd just do nothing. Upgrades are a critical path and users are (sadly but understandably) used by OS and other apps to restart things after an update, especially if they notice strange behaviors.
The only important downside I notice here is for pinned tabs, I suppose those will be unrecognizeable on that startup... But it will work again after the first refresh right? It sounds more like an annoyance than a critical problem.
Flags: needinfo?(mak77)
(In reply to Marco Bonardo [::mak] from comment #3)
> (In reply to Dave Townsend [:mossop] from comment #2)
> > 1. Do nothing. It happens for one session restore when upgrading from pre
> > bug 1453751 to post. That means one startup for most users.
> 
> To me it sounds like an easy call, I'd just do nothing. Upgrades are a
> critical path and users are (sadly but understandably) used by OS and other
> apps to restart things after an update, especially if they notice strange
> behaviors.
> The only important downside I notice here is for pinned tabs, I suppose
> those will be unrecognizeable on that startup... But it will work again
> after the first refresh right? It sounds more like an annoyance than a
> critical problem.

If I recall right pinned tabs reload automatically so they should pick up the right favicon then, this problem is only for tabs that are in the dormant state until you select them and they reload.
(In reply to Dave Townsend [:mossop] from comment #2)
> What do you think here Marco? The only options I can think of:
> 
> 1. Do nothing. It happens for one session restore when upgrading from pre
> bug 1453751 to post. That means one startup for most users.

It may mean many more startups for users with session restore enabled and lots of open tabs that they may not select in every session.
Priority: -- → P2
> It may mean many more startups for users with session restore enabled and lots of open tabs that they may not select in every session.

Indeed, that is my situation.  I basically lost favicons on most of my tabs and won't be getting them back until I actually touch those tabs... in the meantime, _finding_ the tabs I want to touch has gotten much harder.  :(
Dave, do you have an update on this? Thanks
Flags: needinfo?(dtownsend)
(In reply to Pascal Chevrel:pascalc from comment #7)
> Dave, do you have an update on this? Thanks

I'm currently not working on it. Someone needs to make a decision on whether we need to fix this or not. I'm not sure who that is.
Flags: needinfo?(dtownsend)
Re-introduces support for setting remote icons provided a loading principal is
passed. Removes some now defunkt code from sessionstore.
Comment on attachment 8999266 [details]
Bug 1472476: Allow restoring sessions from before favicons were only allowed to be local schemes. r=mak

Drew Willcoxon :adw has approved the revision.
Attachment #8999266 - Flags: review+
Pushed by dtownsend@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5a6ea725be3f
Allow restoring sessions from before favicons were only allowed to be local schemes. r=adw
Flags: needinfo?(dtownsend)
Pushed by dtownsend@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/dd65bc99f083
Allow restoring sessions from before favicons were only allowed to be local schemes. r=adw
https://hg.mozilla.org/mozilla-central/rev/dd65bc99f083
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Depends on: 1509478
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: