Closed Bug 1268033 Opened 8 years ago Closed 8 years ago

Firefox becomes unresponsive when updating to 4.0.0b4

Categories

(Firefox for iOS :: General, defect)

All
iOS
defect
Not set
critical

Tracking

()

VERIFIED FIXED
Tracking Status
fxios-v4.0 --- verified
fxios-v5.0 --- verified
fxios 4.0+ ---

People

(Reporter: SimonB, Assigned: sleroux)

References

Details

(Keywords: regression)

Build: 4.0.0b4

Steps to reproduce;
1. Start a browsing session in Firefox 4.0.0b3   
2. Background Firefox
3. Update to Firefox 4.0.0b4 via Testfilght

Actual results:
- Firefox becomes unresponsive and no browsing session can be started( no page is loaded)

Note:
- This issue dose not occur with a clean install
Assignee: nobody → sleroux
Status: NEW → ASSIGNED
Same here, running on an iPad, iOS 9.3.2 (beta), upgraded from 4.0.0b3.

I can try to open one or two tabs, without any of them loading and than the entire app becomes unresponsive.
I was able to reproduce with a resigned version of the TestFlight build. Happened on the third time I upgraded from b3->b4. Nothing in the logs shows anything concerning though. The behavior I'm seeing is the web session fails to load the page, the toolbar items become unresponsive, and upon opening new tabs, the app eventually becomes full unresponsive.
Whiteboard: [needsuplift]
build 5 fixes this for me.
Tested on build 4.0.0b5

The issue no longer occurs when updating from 4.0.0b3 to 4.0.0b5.
Good to hear. Should be fixed from the uplift on https://github.com/mozilla/firefox-ios/commit/3ebe958d25a6f467cfd980f39dd24e2e16fc4c9d. Marking as resolved.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Whiteboard: [needsuplift]
What bug fix was the cause of the regression?
As part of the core telemetry work we uplifted to the 4.0 branch, we set values on the profile from a background thread on app launch:

App Launch: https://github.com/mozilla/firefox-ios/commit/f719ed1df1c4de2a2c412ffa5e5cef10574150a3#diff-19fd1a6fe4b2f78eb457726f366733e0R152

Profile modification: https://github.com/mozilla/firefox-ios/commit/f719ed1df1c4de2a2c412ffa5e5cef10574150a3#diff-682af20e99900ae1d9196b24f2f17db9R25

This normally is fine but what was happening is upon setting a value to the profile, a notification is broadcasted across the app. In this case, our TabManager was listening to this nofication: https://github.com/mozilla/firefox-ios/commit/3ebe958d25a6f467cfd980f39dd24e2e16fc4c9d. The problem is that this notification is handled on a background thread and we access the web view from it which breaks things since the web view/UIKit is not thread safe.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.