Commit Graph

220 Commits

Author SHA1 Message Date
Fernando Jimenez
8369c53314 Bug 1237731 - Sync doesn't work and jumps back to welcome screen. r=gwagner 2016-01-18 12:38:35 +01:00
Phil Ringnalda
c3363a7905 Back out 350ecdaedef8 (bug 1223781) for test_killswitch_gonk.js permaorange
CLOSED TREE
2015-11-27 20:01:32 -08:00
Fernando Jimenez
6c22ab411c Bug 1223781 - New settings added to settings.json should be applied after OTA without requiring to bump settings DB version. r=gwagner 2015-11-27 13:56:50 +01:00
Wes Kocher
0934ea0941 Backed out changeset 338e1e550393 (bug 1223781) to see if it unbreaks b2g emulator m(1), so we can reopen this CLOSED TREE 2015-11-23 11:38:51 -08:00
Fernando Jimenez
a41e2905ad Bug 1226906 - Bump Settings BD version. r=gwagner 2015-11-21 12:17:00 +01:00
Fernando Jimenez
225d82ff21 Bug 1223781 - New settings added to settings.json should be applied after OTA without requiring to bump settings DB version. r=gwagner 2015-11-16 08:25:00 +01:00
Gregor Wagner
b4fb68efd3 Bug 1216498 - Bump SettinsDB version in order to enable pin the web. r=mhenretty 2015-10-20 19:33:56 +02:00
Carsten "Tomcat" Book
d7f143eaad Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
b9e5717f50 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
b5f316de44 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Alastor Wu
264ab93be7 Bug 1196358 - update volume setting to database when the volume changing. r=sotaro. 2015-09-30 16:14:59 +08:00
Carsten "Tomcat" Book
dc122847bc Backed out 1 changesets (bug 1196358) for causing test failures in test_settings_service.xul
Backed out changeset a2e4fa843ae5 (bug 1196358)
2015-09-23 12:09:29 +02:00
Alastor Wu
d45c524085 Bug 1196358 - update volume setting to database when the volume changing. r=sotaro 2015-09-22 11:24:31 +08:00
Shu-yu Guo
45211869c8 Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Alexandre Lissy
c2de3065bd Bug 1204426 - Unregister message listeners of settings service locks. r=khuey 2015-09-14 02:43:00 +02:00
Gregor Wagner
450070e9ec Bug 1202374 - "Can't open apps any more". r=lissyx+mozillians 2015-09-07 03:51:00 +02:00
Alexandre Lissy
7d47e0727f Bug 1193469 - Make mozSettings more defensive. r=gwagner 2015-08-13 14:43:00 -04:00
Alexandre Lissy
e9d30c24f1 Bug 1187419 - Make sure SettingsRequestManager is only loaded in parent. r=gwagner 2015-07-24 12:32:00 +02:00
Alexandre Lissy
5ae51b91dc Bug 1119727 - Make Settings Soft Lockup threshold configurable. r=gwagner 2015-07-21 12:15:00 +02:00
Kyle Machulis
980fa2f4e0 Bug 1012403 - Reenable SettingsService chrome tests, on B2G only; a=TEST-ONLY 2015-06-16 14:14:07 -07:00
Christoph Kerschbaumer
b9e76daa73 Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - update newChannel2 (r=sicking,paolo) 2015-05-21 19:52:03 -07:00
Kyle Machulis
53b7e8ff5d Bug 1166870 - Fix permissions on settings event tests; a=TEST-ONLY 2015-05-20 12:09:26 -07:00
Andrea Marchesini
54e2145f4a Bug 1163388 - patch 2 - get rid of nsIDOMFile, r=ehsan 2015-05-18 14:52:26 +01:00
Ehsan Akhgari
fa0a409d85 Bug 1154275 - Remove ise() in favor of is(); r=Ms2ger 2015-05-13 14:31:58 -04:00
Ms2ger
2aad41dbe8 Bug 949614 - Use === for SimpleTest.is; r=Waldo
This is more likely to be correct, and a necessary step in case we ever want
to move to Object.is.

This keeps ise as an alias for is, and introduces is_loosely for the old
behaviour.
2015-04-14 15:28:13 +02:00
Jonathan Griffin
8873726f67 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Fabrice Desré
287845402c Bug 1091307 - Add a configure flag to prevent shipping Mozilla's RIL and Geolocation provider r=hsinyi,mshal 2015-02-26 13:51:20 -08:00
Ms2ger
113ddbc3c5 Backed out changeset 7abf54d96823 for lack of review. 2015-02-26 23:02:55 +01:00
Fabrice Desré
3c3ea8141b Bug 1091307 - Add a configure flag to prevent shipping Mozilla's RIL and Geolocation provider r=hsinyi 2015-02-26 13:51:20 -08:00
Christoph Kerschbaumer
7c6411ea0e Bug 1087728: Make JS callers of ios.newChannel call ios.newChannel2 in dom/settings (r=fabrice) 2015-02-05 12:53:32 -08:00
Alexandre Lissy
949291493c Bug 1128489 - Direct communication between SettingsService and SettingsRequestManager. r=qdot 2015-02-03 02:45:00 +01:00
Kyle Machulis
00a3b4a819 Bug 1117252 - Re-enable settings mochitests that were disabled by bug 1113199; a=test-only 2015-01-03 11:15:51 -08:00
Kyle Machulis
be920f657a Bug 1113199 - Settings OOP Tests for Bug 1110872. r=gerard-majax 2014-12-23 12:47:00 -05:00
Alexandre Lissy
5b21a0e682 Bug 1107329 - Add locks tasks queue vivacity checking. r=qdot
To help diagnosing further issues with the Settings API getting blocked,
we add some tracking of the tasks and locks queue vivacity. We ensure to
keep track of the last lock id at the head of the queue, and we verify
whether it does not stays on top of it for too long.
2014-12-24 01:30:00 -05:00
Alexandre Lissy
36d8664a91 Bug 1080377 - Re-enable SettingsRequestManager xpcshell test. r=qDot 2014-12-24 00:39:00 -05:00
Kyle Machulis
37e673d532 Bug 1098220 - Only print exception message in SettingsService in exceptional situations; r=gerard-majax 2014-12-23 11:11:20 -08:00
Kyle Machulis
af9903cd25 Bug 1112936 - Enable settings API tests on e10s; r=gwagner r=bent r=gerard-majax
--HG--
extra : rebase_source : c5532dc6968c317e72399040a3024b6a22df0df8
2014-12-22 09:38:01 -08:00
Ryan VanderMeulen
36be40cccd Merge inbound to m-c. a=merge 2014-12-18 17:59:14 -05:00
Kyle Machulis
ba1b3efa7a Bug 1110872 - Readd cleanup for live locks in SettingsManager; r=gerard-majax 2014-12-18 09:27:06 -08:00
Alexandre Lissy
6f2dbab3f6 Bug 1110063 - Open readonly transaction for settings lock when possible. r=qdot
Whenever a settings lock does only read operations (i.e. lock.get()),
there is no need that the underlying indexedDB transaction should be
opened as readwrite. Doing so, we will be able to parallelize some
request and avoid locking that should in the end allow for faster
operations. Enabling this feature is controlled by the preference
dom.mozSettings.allowForceReadOnly, defaulting to false for now.
2014-12-17 09:30:00 -05:00
Alexandre Lissy
643c90291b Bug 1109704 - Expose details settings informations in about:memory. r=qdot
We want to have a better breakdown of how many get/set operations we are
doing for each setting lock. Given that we keep track of all locks, this
may consume quite some memory, so we introduce a new preference to
enable this feature. We also add memory reporting for the SettingService
lock.
2014-12-17 10:40:00 -05:00
Alexandre Lissy
58ac3329f3 Bug 1110091 - Fix mozSettings logging use of Services. r=qdot 2014-12-11 03:32:00 +01:00
Kyle Machulis
d9562ba987 Bug 1105511 - Make observer principal cache name reflect content; r=gerard-majax 2014-12-09 13:53:20 -08:00
Kyle Machulis
3d1681ae45 Bug 1105511 - Store principals with locks instead of with tasks; r=gerard-majax 2014-12-09 13:53:04 -08:00
Kyle Machulis
d52211dd6a Bug 1105511 - Check validity of principals before doing permissions check; r=gerard-majax 2014-12-09 13:52:46 -08:00
L. David Baron
7bf98fd7fd Bug 1106324 - Call removeLock in case where the call was missing. r=qdot
While I was debugging bug 1105511, khuey noticed that one case was
missing a removeLock call.  We should add it; it seems like if we ever
hit this error case, the settings lock queue would get stuck.  It's not
clear whether this is actually the cause of bug 1105511, so I'm putting
it in a separate bug.
2014-11-29 14:47:46 -08:00
Alexandre Lissy
286efcf039 Bug 1106896 - Improve debug and error reporting in mozSettings. r=qdot
We break down the logging capabilities into two classes: debug and
verbose. Verbose will help to track everything that happens, while debug
should just report error cases. We also augment memory reports with
values to help tracking potential issues like: queue blockage, leaking,
etc.
2014-12-02 14:50:00 +01:00
Edgar Chen
5c1ef94a6a Bug 1092941 - Settings lock in parent isn't finialized when receiving 'child-process-shutdown'. r=lissyx, a=me 2014-11-03 15:15:12 +08:00
Alexandre Lissy
1383fd86d6 Bug 1092384 - Use undefined windowID for service locks r=bent
Service locks for settings are locks created from chrome code and not
attached to any window. Since the windowID is used in other cases for
the Settings:CreateLock message, we should at least pass an undefined
value to avoid unneccessary JS warning.
2014-11-04 15:08:37 -08:00
Alexandre Lissy
f345a0390f Bug 1082001 - Cleanup settings lock from parent itself. r=bent
From bug 1065128 SettingsManager has been changed to listen the
dom-window-destroyed event for its cleanup. However, when running Gaia
in Mulet, a race condition is exposed. For B2G, when loading a page,
about:blank is first used. This means that window destroyed events will
be triggered. However, from the dom-window-destroyed event we cannot
distinguish whether this is about:blank or a legit application being
closed. SettingsManager gets initialized (i.e., init() called) when the
application makes use of navigator.mozSettings. So the chain of event is
that we have a SettingsManager living because System app did some
request. At this time, about:blank is being unloaded and triggers a
dom-window-destroyed event. This makes SettingsManager doing its
cleanup, especially freeing the window reference. Then in the meantime,
we have the navigator.mozSettings use that is progressing. At some
point, SettingsManager has no more window to send messages to, and Gaia
is not able to even start.

SettingsRequestManager lives on the parent process and SettingsManager
lives on the child side. Part of the cleanup performed by
SettingsManager was to ensure pending locks on the parent process would
be forced to finalize to make sure those are being properly committed.
We move this cleanup to SettingsRequestManager and we augment the lock
informations with the proper inner window id. This way we can track
which lock is attached to which inner window when the lock gets created.
And thus we can listen on inner-window-destroyed from
SettingsRequestManager to be able to force finalize on any pending lock.
Impacted code path are those were we are not running out of process.
When we are running out of process, SettingsRequestManager already
listens on the child-process-shutdown event to perform the lock
finalization.
2014-10-29 02:36:00 -04:00