Closed
Bug 1249828
Opened 9 years ago
Closed 9 years ago
Synced tabs from iOS don't include title, and might include localhost URLs as the title
Categories
(Firefox for iOS :: General, defect)
Tracking
()
RESOLVED
FIXED
3.0
People
(Reporter: rfeeley, Assigned: fluffyemily)
References
Details
Attachments
(3 files)
Synced tabs from iOS only showing URL in desktop, not the page title. Not sure if this is an iOS bug, a desktop bug or a toolkit bug?
Comment 1•9 years ago
|
||
I'm guessing all your pages don't have titles. :)
Most of my tabs for iOS have titles.
Comment 2•9 years ago
|
||
I can repro this.
JSON.stringify(Weave.Service.engineManager.get("tabs")._store._remoteClients)
=>
"{"ekhsSAMMigaU":{"id":"ekhsSAMMigaU","tabs":[{"title":"http://www.buffalosystemsusa.com/mobile/Product.aspx?ProductCode=belay-jacket-limited","icon":null,"urlHistory":["http://www.buffalosystemsusa.com/mobile/Product.aspx?ProductCode=belay-jacket-limited"],"lastUsed":"1455910687846"}…
Hardware: Other → All
Comment 3•9 years ago
|
||
Everything storage on down is right, so finger points at this:
var displayTitle: String {
if let title = webView?.title {
if !title.isEmpty {
return title
}
}
return displayURL?.absoluteString ?? lastTitle ?? ""
}
… in other words, we're not able to get a title from the webview at the point we write out the tabs, so we're writing the URL instead.
This'll need a little more analysis to find out what's happening when.
tracking-fxios:
--- → ?
Updated•9 years ago
|
Rank: 3
Comment 4•9 years ago
|
||
Currently none of my remote tabs are shown – only panels
Comment 6•9 years ago
|
||
Looks like you're seeing something else, Aaron: you're seeing the same home panel URL, presumably because we flushed to the database before restoring tabs. Likely the same root cause, but not the same symptom.
Dumping this in 'General' 'cos this is almost certainly a tabs persistence issue.
Component: Sync → General
Summary: Synced tabs from iOS only showing URL in desktop → Synced tabs from iOS don't include title, and might include localhost URLs as the title
Comment 7•9 years ago
|
||
Emily will look at this: related test failure.
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8728465 -
Flags: review?(sleroux)
Attachment #8728465 -
Flags: review?(rnewman)
Comment 10•9 years ago
|
||
Comment on attachment 8728465 [details] [review]
Pull request
Follow-on/more to think about: are we persisting at the right times?
Attachment #8728465 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 11•9 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #10)
> Comment on attachment 8728465 [details] [review]
> Pull request
>
> Follow-on/more to think about: are we persisting at the right times?
That's definitely something to consider. Right now we are persisting on restore, every time we complete a URL load in a webView and every time we create a new tab.
We don't really need to persist on restore - we are restoring the state as it was when we last closed the app, so the current DB and disk state on before tab restoration will be identical that what it is after.
We don't need to persist to RemoteTabs when we create a new, blank tab. All this does is replace the existing DB state with ... exactly the same DB state as until we have something loaded in that new tab remote tabs just don't care.
Every time we complete a URL load, sure. This is sensible. This is when we should be persisting.
There may be other times we persist, but nothing that I can see right now.
Comment 12•9 years ago
|
||
Assuming that we don't use this particular pile of persisted tab state for anything but Sync, we really just want to persist at two times:
* Immediately before a sync while the app is in the foreground.
* Immediately before we're backgrounded (because if we do it any later, the webviews are gone!).
There's a second decision, which is when/whether to trigger a sync as a result of browsing activity -- browse enough and we should probably sync your tabs… and in the course of so doing we will persist them.
Does that sound sane to you, Emily?
Updated•9 years ago
|
Attachment #8728465 -
Flags: review?(sleroux) → review+
Assignee | ||
Comment 13•9 years ago
|
||
#merged c0b1939721a0ed563fb6582714738b9ddd945e1d
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [needsuplift]
Target Milestone: --- → 3.0
Comment 14•9 years ago
|
||
v3.x 2df73de6d3e2a43a53c12f8ac9346bc4c141329a
status-fxios-v3.0:
--- → fixed
Whiteboard: [needsuplift]
You need to log in
before you can comment on or make changes to this bug.
Description
•