Closed Bug 1061146 Opened 11 years ago Closed 8 years ago

permission installation fails by abnormal power off during FirstRun

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: 938.daisuke, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release) Build ID: 20140716183446 Steps to reproduce: using FirefoxOS2.0(Gecko32) on a device (not simulator). 1. Factory Reset 2. Power off the phone abnormally during startup. 3. try step 1 and 2 sometimes 4. error log of system app like following shows "JavaScript error: app://*/js/settings_listener.js, line 28: settings is null" Actual results: system app cannot work correctly and any operation doesn't work. I checked "permisisons.sqlite" sqlite file in /data partition(smartphone case) and only few(5 or 6) permission for system app are installed. I found "settings-read" permission for system app is shown in that file, but "settings-write" permission and others are not shown in it. Expected results: Whole permissions of system app and other preinstalled apps are installed to permissions.sqlite db file.
Our first-run procedure is completed due to lost power. We should be able to reuse the |AppsUtils.isFirstRun| by delaying the setCharPref [1] until the loadAndUpdateApps is complete [2]. Therefore, permission will be reinstalled in next boot if error/exception happened during loadAndUpdateApps. [1] http://dxr.mozilla.org/mozilla-central/source/dom/apps/src/AppsUtils.jsm#472 [2] http://dxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm?from=Webapps.jsm&case=true#667
Status: UNCONFIRMED → NEW
Ever confirmed: true
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.