Closed
Bug 997461
Opened 10 years ago
Closed 10 years ago
Can't open bookmarks installed with v1.3 in v1.4
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(blocking-b2g:1.4+, b2g-v1.4 fixed, b2g-v2.0 fixed)
People
(Reporter: julienw, Assigned: crdlc)
Details
(Keywords: dataloss, regression)
Attachments
(3 files)
STR: * use a version v1.3 * launch browser * install bookmarks on the homescreen * upgrade to v1.4 * try to launch the bookmark Expected: * we can open the bookmark Actual: * this doesn't work, I have an error "unable to connect", "Firefox doesn't know how to open this address, because one of the following protocols (bookmark) isn't associated with any program or is not allowed in this context." IMO this is a 1.4 blocker, this is a migration issue. There is a minor bug involved: when changing the language, the title "unable to connect" is not translated to the new language while the body "Firefox doesn't know..." is correctly translated.
Reporter | ||
Comment 1•10 years ago
|
||
Note that it's easy to do upgrades using geeksphone phones and builds (that's what I did). Otherwise depending where the faulty code is it's enough to just upgrade gecko and gaia, but without erasing the user data obviously.
Updated•10 years ago
|
Keywords: dataloss,
regression
Updated•10 years ago
|
blocking-b2g: 1.4? → 1.4+
Comment 2•10 years ago
|
||
Looks like this error message is defined as "unknownProtocolFound" in appstrings.properties file. Gregor, since it's categorized as Gaia::System, would you mind finding someone to check this bug? Thank you very much!
Flags: needinfo?(anygregor)
Comment 3•10 years ago
|
||
Cristian might be a good candidate but Kyle might help out until he is back.
Flags: needinfo?(anygregor) → needinfo?(kyle)
Comment 4•10 years ago
|
||
Repro'd on desktop. Working on diagnosis now.
Assignee: nobody → kyle
Flags: needinfo?(kyle)
Comment 5•10 years ago
|
||
As of bug 964337 landing, the _INDEX_PREFIX variable in apps/homescreen/js/bookmarks.js got changed from "bookmark:" to "bookmark/". When we build the bookmark URL to send to the browser app, this is supposed to get stripped, using substr(_INDEX_PREFIX). However, if we upgrade the homescreen idb from 1.3 to 1.4, we have no special steps for the IDB upgrade, so we still have a bunch of bookmarks that start with "bookmark:", meaning that the string doesn't match and we don't strip anything, hence having "bookmark" as the protocol in the error message. I'm not sure why this was changed in the first place, so ni'ing crdlc since he's supposed to be back from PTO soon anyways. My guess is that easiest fix would be just making _INDEX_PREFIX "bookmark/" again, but this may have impacts I'm not aware of.
Flags: needinfo?(crdlc)
Reporter | ||
Comment 6•10 years ago
|
||
Note that if we need to do a fix in IDB we'll need a specific new step instead of reusing the previous upgrade. (and not only for me and my bookmark for 2048 ;) )
Assignee | ||
Comment 7•10 years ago
|
||
Stealing and fixing today
Assignee: kyle → crdlc
Status: NEW → ASSIGNED
Flags: needinfo?(crdlc)
Assignee | ||
Comment 8•10 years ago
|
||
Kyle was right in his explanation. I changed this in order not to assume wrongly that the prefix was some kind of protocol but I didn't realize what I was adding an regression :(. My apologizes for my mistake mates
Attachment #8409573 -
Flags: review?(kyle)
Assignee | ||
Comment 9•10 years ago
|
||
Basically the base code is the same but both patches touch different test files so I decided to make two separate PR. Thanks a lot
Attachment #8409574 -
Flags: review?(kyle)
Updated•10 years ago
|
Target Milestone: --- → 1.4 S6 (25apr)
Updated•10 years ago
|
Attachment #8409574 -
Flags: review?(kyle) → review+
Updated•10 years ago
|
Attachment #8409573 -
Flags: review?(kyle) → review+
Assignee | ||
Comment 10•10 years ago
|
||
Merged in master: https://github.com/mozilla-b2g/gaia/commit/db5a089b228d362d95d20ef0a44729a54812edcd
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•10 years ago
|
||
Merged in v1.4: https://github.com/mozilla-b2g/gaia/commit/33564b18c6abd1e822e7ca55ea248f2f7d0dd03f
status-b2g-v1.4:
--- → fixed
Reporter | ||
Comment 12•10 years ago
|
||
Verified on 1.4 that my old bookmarks can be opened now :) Thanks !
Assignee | ||
Comment 13•10 years ago
|
||
The old bookmarks never die XD, thanks for your excellent catch Julien
Updated•10 years ago
|
status-b2g-v2.0:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•