Closed Bug 1047268 Opened 10 years ago Closed 10 years ago

test_dirs.html should use SpecialPowers.pushPermissions instead of SpecialPowers.addPermission

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: jwwang, Assigned: jwwang)

Details

Attachments

(1 file)

I was trying to enable content/media/test/* on B2G emulator debug and found out it resulted in perma-failure of test_dirs.html.

We should call SpecialPowers.pushPermissions which accepts a function callback so that we can ensure permission change is complete before we continue the rest of the tests.
Call SpecialPowers.pushPermissions() to ensure permission change is completed before continuing the rest of the tests.
Assignee: nobody → jwwang
Status: NEW → ASSIGNED
Attachment #8466060 - Flags: review?(dhylands)
Comment on attachment 8466060 [details] [diff] [review]
fix_test_dirs_html_permission.patch

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

Looks good - thanks for finding and fixing this.
Attachment #8466060 - Flags: review?(dhylands) → review+
https://hg.mozilla.org/mozilla-central/rev/ab3e0e1385cf
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: