Closed
Bug 1163118
Opened 8 years ago
Closed 8 years ago
Cache User Agent detection during app startup
Categories
(Firefox for iOS :: General, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fennec | + | --- |
People
(Reporter: st3fan, Assigned: fluffyemily, Mentored)
References
Details
(Whiteboard: [good first bug][lang=swift])
Attachments
(1 file)
Suggestion to shave of ~ 90ms Every time at app startup we create a UIWebView to get the User Agent and then modify it to include our own unique string. This is an expensive operation. We can assume that the User Agent only changes as part of an iOS upgrade so we should remember the current iOS version and user agent, compare the iOS version and skip the UIWebView creation if it is the same.
Updated•8 years ago
|
Mentor: sarentz
Whiteboard: [good first bug][lang=swift]
Updated•8 years ago
|
Assignee: nobody → sleroux
Updated•8 years ago
|
tracking-fennec: ? → +
Comment 1•8 years ago
|
||
Would this be a good bug to save for Karim to work on?
Assignee | ||
Comment 3•8 years ago
|
||
Attachment #8611230 -
Flags: review?(sarentz)
Reporter | ||
Comment 4•8 years ago
|
||
Comment on attachment 8611230 [details] [review] Pull request LGTM - Keep picking up Swift idioms. The most important for stable code are `if et`, optionals, try to never use `!`. And no more semicolons :-)
Attachment #8611230 -
Flags: review?(sarentz) → review+
Comment 5•8 years ago
|
||
https://github.com/mozilla/firefox-ios/commit/d7b1c0494fa72c689154bccfcd98915752bff559
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•