Closed
Bug 1364855
Opened 9 years ago
Closed 9 years ago
SendTo Crashes when it incorrectly tries to invalidate top sites
Categories
(Firefox for iOS :: General, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: csuciu, Assigned: st3fan)
Details
Attachments
(2 files, 1 external file)
iPhone 6 Plus (10.3.1)
v7.5(3265)&(3281)
1. Install and open Firefox
2. Login to sync
3. Visit a web page
4. Open Share menu and tap on Send Tab
Result: Sometimes, SendTo is crashing. This crash seems to brake the extension permanently, because every time I open Send Tab from now on, the list of connected devices will is empty ("You don't have any other devices connected to this Firefox Account available to synchronise").
Re-signing in to sync or restarting the app does not fix the problem. The only way to get Send Tab to display the list of connected devices is to re-install the app.
| Assignee | ||
Updated•9 years ago
|
| Assignee | ||
Comment 1•9 years ago
|
||
Symbolicated crash
| Assignee | ||
Updated•9 years ago
|
Summary: Intermittent crash in SendTo → SendTo Crashes when it incorrectly tries to invalidate top sites
| Assignee | ||
Comment 2•9 years ago
|
||
When a sync is done, it triggers a `NotificationProfileDidFinishSyncing` notification. The `BrowserProfile` listens to this notification as follows:
```
func onProfileDidFinishSyncing(notification: NSNotification) {
history.setTopSitesNeedsInvalidation()
}
```
This code is fine when running in Firefox. But it should never happen when running in an app extension.
There is no API to discover that we are running in an app extension, but the one thing we can check if wether `Profile.app` is set because `UIApplication` is not available in app extensions.
That is what this patch does. It only runs the code in `onProfileDidFinishSyncing` when `self.app` is not `nil`.
Assignee: nobody → sarentz
Attachment #8867813 -
Flags: review?(sleroux)
Updated•9 years ago
|
Attachment #8867813 -
Flags: review?(sleroux) → review+
| Assignee | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 3•9 years ago
|
||
I'm not able to reproduce the crash on v7.5(3349)
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•