Closed Bug 1036220 Opened 10 years ago Closed 7 years ago

Get rid of dom.mozAlarms.enabled pref

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: reuben, Assigned: reuben)

Details

(Whiteboard: [systemsfe])

Attachments

(1 file, 1 obsolete file)

Shouldn't be needed since the interface also has [CheckPermissions]. This means we can include mozAlarms in the Navigator.getFeature list (bug 1009645).
Nice!
Attachment #8452849 - Flags: review?(nsm.nikhil)
Comment on attachment 8452849 [details] [diff] [review]
Get rid of the dom.mozAlarms.enabled pref

Review of attachment 8452849 [details] [diff] [review]:
-----------------------------------------------------------------

r=me with comments addressed.

::: dom/alarm/test/test_alarm_non_permitted_app.html
@@ +13,4 @@
>  
>  "use strict";
>  
>  SimpleTest.waitForExplicitFinish();

Do we need async tests here?

@@ -18,5 @@
>    SpecialPowers.removePermission("alarms", document);
>    window.location.reload();
>  } else {
> -  SpecialPowers.pushPrefEnv({"set": [["dom.mozAlarms.enabled", true]]}, function() {
> -    SpecialPowers.removePermission("alarms", document);

This removePermission() should be preserved.

::: dom/alarm/test/test_alarm_permitted_app.html
@@ +12,5 @@
>  <script type="application/javascript">
>  
>  "use strict";
>  
>  SimpleTest.waitForExplicitFinish();

Do we need async tests here?

::: dom/tests/mochitest/general/test_interfaces.html
@@ -112,5 @@
>  // IMPORTANT: Do not change the list below without review from a DOM peer!
>  var interfaceNamesInGlobalScope =
>    [
>  // IMPORTANT: Do not change this list without review from a DOM peer!
> -    {name: "AlarmsManager", pref: "dom.mozAlarms.enabled"},

Ask a DOM peer?
Attachment #8452849 - Flags: review?(nsm.nikhil) → review+
Whiteboard: [systemsfe]
Target Milestone: --- → 2.0 S6 (18july)
Comments addressed, carrying r=nsm.
Attachment #8452849 - Attachment is obsolete: true
Attachment #8454904 - Flags: review+
Attachment #8454904 - Flags: review?(bugs)
Olli, the alarm parts are reviewed, I need a DOM peer review for the test_interfaces change.
Attachment #8454904 - Flags: review?(bugs) → review+
Target Milestone: 2.0 S6 (18july) → 2.1 S1 (1aug)
Target Milestone: 2.1 S1 (1aug) → 2.1 S2 (15aug)
Target Milestone: 2.1 S2 (15aug) → 2.1 S3 (29aug)
Target Milestone: 2.1 S3 (29aug) → 2.1 S4 (12sep)
Target Milestone: 2.1 S4 (12sep) → ---
DOM Alarms no longer exists.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(reuben.bmo)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: