Closed Bug 792604 Opened 12 years ago Closed 12 years ago

Permission Settings followup fixes

Categories

(Core :: DOM: Device Interfaces, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18
blocking-basecamp +

People

(Reporter: gwagner, Assigned: gwagner)

References

Details

(Whiteboard: [LOE:S][WebAPI:P1][qa-])

Attachments

(1 file)

There current permission logic doesn't work.
blocking-basecamp: --- → ?
Attached patch patchSplinter Review
Attachment #662726 - Flags: review?(jonas)
Whiteboard: [LOE:S][WebAPI:P1]
Comment on attachment 662726 [details] [diff] [review]
patch

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

::: dom/interfaces/permission/nsIDOMPermissionSettings.idl
@@ +13,2 @@
>  
> +  void set(in DOMString permission, in DOMString manifestURI, in DOMString origin, in DOMString value, in bool browserFlag);

Please keep the manifestURL+origin+browserflag arguments together. So move the value argument to be the second argument. Sorry for not catching that the first time around.
Attachment #662726 - Flags: review?(jonas) → review+
Should this (in Webapps.jsm):

aData.mm.broadcastMessage("Webapps:Uninstall:Return:KO", aData);

be:

this.broadcastMessage("Webapps:Uninstall:Return:KO", aData);

?

aData inside uninstall is a JSON object, right?
(In reply to David Dahl :ddahl from comment #3)
> be:
> 
> this.broadcastMessage("Webapps:Uninstall:Return:KO", aData);

Maybe not. As the "this" reference is inside another function above
NO, it should be aData.mm.sendAsyncMessage(...)
https://hg.mozilla.org/integration/mozilla-inbound/rev/7c33cfd00ffc

David, please not the rearranged argument list!
(In reply to Gregor Wagner [:gwagner] from comment #6)
> https://hg.mozilla.org/integration/mozilla-inbound/rev/7c33cfd00ffc
> 
> David, please not the rearranged argument list!

What?
(In reply to David Dahl :ddahl from comment #7)
> (In reply to Gregor Wagner [:gwagner] from comment #6)
> > https://hg.mozilla.org/integration/mozilla-inbound/rev/7c33cfd00ffc
> > 
> > David, please not the rearranged argument list!
> 
> What?

Ah my auto-correct does strange things.
Please see comment 2. I rearranged the arguments of the API.
https://hg.mozilla.org/mozilla-central/rev/7c33cfd00ffc
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
blocking-basecamp: ? → +
Whiteboard: [LOE:S][WebAPI:P1] → [LOE:S][WebAPI:P1][qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: