Closed
Bug 1390857
Opened 8 years ago
Closed 7 years ago
Aborted forced cast in SQLiteHistory.getModifiedHistory
Categories
(Firefox for iOS :: Data Storage, enhancement, P1)
Tracking
()
RESOLVED
FIXED
Iteration:
1.29
Tracking | Status | |
---|---|---|
fxios | 9.0 | --- |
People
(Reporter: st3fan, Assigned: justindarc)
Details
(Whiteboard: [Crash][MobileCore])
Attachments
(1 file)
This crash popped up in Sentry for the 8.2 release:
https://sentry.prod.mozaws.net/share/issue/3235392e363339313830/
It is a forced cast that is failing. Possibly because one of those values is nil.
Reporter | ||
Updated•8 years ago
|
Whiteboard: [History][Crash] → [History][Crash][Sync]
Reporter | ||
Comment 1•8 years ago
|
||
Unclear where this data is coming from, but marking as Sync anyway.
Updated•8 years ago
|
Flags: needinfo?(sarentz)
Comment 2•8 years ago
|
||
Stefan, where do you see any reference to getModifiedHistory in that stack?
Did you paste the wrong crash report?
The crash you linked appears to be in:
private func getConcernedIDs(colNames: [String]) -> ((SDRow) -> [String]) {
return { (row: SDRow) in
colNames.flatMap({ row[$0] as? String})
}
}
and that's a dynamic cast error, which doesn't make any sense with that `as?` there.
Comment 3•8 years ago
|
||
fileprivate class func getPasswordOrigin(_ uriString: String, allowJS: Bool = false) -> String? {
var realm: String? = nil
if let uri = URL(string: uriString),
let scheme = uri.scheme, !scheme.isEmpty {
if allowJS && scheme == "javascript" {
return "javascript:"
}
realm = "\(scheme)://\(uri.host!)"
Probably an empty host. This is called from LoginsHelper.swift, so while the data might have arrived from Sync, this seems to be just a plain ol' incorrect-assumptions bug.
Hardware: Other → All
Whiteboard: [History][Crash][Sync] → [Crash]
Assignee | ||
Updated•7 years ago
|
Priority: -- → P2
Updated•7 years ago
|
Assignee: nobody → jdarcangelo
Iteration: --- → 1.29
Rank: 1
Priority: P2 → P1
Assignee | ||
Comment 4•7 years ago
|
||
Need info from Stefan on this one. As mentioned in Comment 2, the linked crash report doesn't match the bug description. The bug corresponding to the linked crash report has already been fixed in Bug 1384771:
https://github.com/mozilla-mobile/firefox-ios/commit/976444c20f0f26d5ccee5f713b20651c100202db
Assignee | ||
Comment 5•7 years ago
|
||
Assuming these forced casts are the cause of the issue :st3fan was originally referencing, here's a patch.
Attachment #8903814 -
Flags: review?(rnewman)
Updated•7 years ago
|
Whiteboard: [Crash] → [Crash][MobileCore]
Assignee | ||
Comment 6•7 years ago
|
||
Comment on attachment 8903814 [details] [review]
GitHub Pull Request
Carrying over R+ from GitHub
Attachment #8903814 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 7•7 years ago
|
||
Landed on master:
https://github.com/mozilla-mobile/firefox-ios/commit/1c05391e0adab7169c16a355b83595bac71abfb4
Landed on v9.x:
https://github.com/mozilla-mobile/firefox-ios/commit/91b92c8cbadffd81c9561f95c26dc9a6f59b93ba
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•7 years ago
|
Flags: needinfo?(sarentz)
You need to log in
before you can comment on or make changes to this bug.
Description
•