Closed Bug 1192826 Opened 9 years ago Closed 9 years ago

Sync StorageClient User-Agent setting needs to occur on the UI thread

Categories

(Firefox for iOS :: Sync, defect)

All
iOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
fxios + ---

People

(Reporter: sleroux, Assigned: rnewman)

References

Details

(Keywords: regression)

Attachments

(2 files)

Attached file SendToCrash.crash
STR:

1. Visit mozilla.org in Safari
2. Make sure Send To is enabled as share option
3. Tap Send To

Expected: 

Send to modal should appear with synced devices

Actual:

Modal crashes and does not appear

----

Looks like we're crashing because UIWebView is being created in a background thread.
Severity: normal → critical
Keywords: crash
Hardware: Other → All
Regression from Bug 1164140.
Blocks: 1164140
Severity: critical → normal
Keywords: crashregression
Hardware: All → Other
Severity: normal → critical
Component: General → Sync
Hardware: Other → All
Disabled in commit 72b1a19. Let's leave this open for a proper fix.
Presumably this only crashes if we've never computed the U-A string…
Summary: Crash: Send To crashes when used → Sync StorageClient User-Agent setting needs to occur on the UI thread
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
I think this might need to be morphed slightly.

* We should use an ephemeral session in the manager, not the default one -- we don't need to record anything to disk.

* FxA and Token Server should set UAs, too, and also use ephemeral managers.

* The UA actually -should not- be the same as the one the browser uses. It should be something like "Firefox-iOS-Sync/28 (Nightly)" to match Android.
Attached file Pull req.
This establishes a manager for each client, setting the UAs to fixed strings. All managers are using an ephemeral configuration, which means nothing is persisted to disk.

General consensus is that manager cleanup happens automatically on dealloc, which is why you don't see us doing that anywhere.

There's also some version number and general UA cleanup.
Attachment #8645915 - Flags: review?(sleroux)
Comment on attachment 8645915 [details] [review]
Pull req.

Looks good with some of the comments addressed!
Attachment #8645915 - Flags: review?(sleroux) → review+
Merged
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: