Closed Bug 729430 Opened 13 years ago Closed 13 years ago

Expose screen.mozEnabled, screen.mozBrightness to whitelisted applications

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: vingtetun, Assigned: vingtetun)

References

Details

Attachments

(2 files, 2 obsolete files)

Attached patch Patch (obsolete) — Splinter Review
No description provided.
Attachment #599507 - Flags: review?(justin.lebar+bug)
What's this going to be used for?
My understanding is we need this so the telephony app can wake up the screen when we receive a call.
(In reply to Chris Jones [:cjones] [:warhammer] from comment #2) > What's this going to be used for? What Justin's says. Basically this is to workaround https://github.com/andreasgal/gaia/pull/299 and bug 720831 and bug 720892
Comment on attachment 599507 [details] [diff] [review] Patch Can you move the IsChromeType(mDocShell) check into IsWhitelisted? If you just want the docshell's document, you can nsCOMPtr<nsIDocument> doc = do_QueryInterface(aDocShell) r- because I'd like to take another look. I promise to be quick.
Attachment #599507 - Flags: review?(justin.lebar+bug) → review-
Comment on attachment 599515 [details] [diff] [review] Add http://localhost:7777 to the whitelist Sure, makes sense.
Attachment #599515 - Flags: review?(jones.chris.g) → review+
Attached patch Patch v0.2 (obsolete) — Splinter Review
Attachment #599507 - Attachment is obsolete: true
Attachment #599562 - Flags: review?(justin.lebar+bug)
Attached patch Patch v0.2Splinter Review
Sorry, wrong version!
Attachment #599562 - Attachment is obsolete: true
Attachment #599563 - Flags: review?(justin.lebar+bug)
Attachment #599562 - Flags: review?(justin.lebar+bug)
> + nsCOMPtr<nsIDocument> doc = do_QueryInterface(aDocShell); do_GetInterface. Sorry, I mistyped in comment 5.
Comment on attachment 599563 [details] [diff] [review] Patch v0.2 Do you need the IsChromeType check? I'd be kind of surprised if IsChromeType(aDocShell) does not imply that the document's principal's URI is chrome. r=me if you test and it works (I don't think the current patch will work with do_QueryInterface instead of do_GetInterface), but I'd appreciate if you got rid of the IsChromeType if it's not necessary.
Attachment #599563 - Flags: review?(justin.lebar+bug) → review+
(In reply to Justin Lebar [:jlebar] from comment #10) > Comment on attachment 599563 [details] [diff] [review] > Patch v0.2 > > Do you need the IsChromeType check? I'd be kind of surprised if > IsChromeType(aDocShell) does not imply that the document's principal's URI > is chrome. > > r=me if you test and it works (I don't think the current patch will work > with do_QueryInterface instead of do_GetInterface), but I'd appreciate if > you got rid of the IsChromeType if it's not necessary. The patch works but needs to keep the IsChromeType check. https://hg.mozilla.org/integration/mozilla-inbound/rev/ba0828cb6427 https://hg.mozilla.org/integration/mozilla-inbound/rev/19cdcc585460
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: