Closed
Bug 1335760
Opened 8 years ago
Closed 8 years ago
Migrate dispatch_once uses in Profile to be regular properties and de-singleton the class
Categories
(Firefox for iOS :: Data Storage, defect)
Tracking
()
RESOLVED
FIXED
Iteration:
1.15
People
(Reporter: sleroux, Assigned: sleroux)
References
Details
(Whiteboard: [MobileCore])
Attachments
(1 file)
Swift 3 removes the use of dispatch_once which we were using for initializing our loginsDB handle and key only once app-wide. Moving these properties to use static instead also causes issues because files is an instance property and is not accessible from inside the static block. This only worked before because of the use of dispatch_once.
The solution is to migrate Profile to no longer being a singleton and make the loginsDB/key properties regular properties.
Assignee | ||
Updated•8 years ago
|
Iteration: --- → 1.14
Whiteboard: [MobileCore]
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8832499 -
Flags: review?(rnewman)
Comment 2•8 years ago
|
||
Comment on attachment 8832499 [details]
Link to Github pull-request: https://github.com/mozilla-mobile/firefox-ios/pull/2368#attch-to-bugzilla
Waiting for changes.
Attachment #8832499 -
Flags: review?(rnewman) → review-
Updated•8 years ago
|
Iteration: 1.14 → 1.15
Assignee | ||
Comment 3•8 years ago
|
||
Comment on attachment 8832499 [details]
Link to Github pull-request: https://github.com/mozilla-mobile/firefox-ios/pull/2368#attch-to-bugzilla
Reflagging for review. I think Github is being a bit slow because my new commit isn't showing up yet on the PR.
Attachment #8832499 -
Flags: review- → review?(rnewman)
Assignee | ||
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Attachment #8832499 -
Flags: review?(rnewman) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•