Closed
Bug 935361
Opened 11 years ago
Closed 11 years ago
Use CheckPermission in the PContentParent Geolocation message handlers
Categories
(Core :: DOM: Geolocation, defect)
Core
DOM: Geolocation
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: reuben, Assigned: reuben)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
2.36 KB,
patch
|
dougt
:
review+
|
Details | Diff | Splinter Review |
AssertAppPermission doesn't know how to handle permission requests coming from tabs in the browser app. mozilla::CheckPermission is a reusable and more correct version of the workaround being used in RecvAddGeolocationListener right now.
Attachment #827804 -
Flags: review?(doug.turner)
Comment 1•11 years ago
|
||
Comment on attachment 827804 [details] [diff] [review]
Use CheckPermission
Review of attachment 827804 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/ipc/ContentParent.cpp
@@ -3049,5 @@
> - if (appId == principalAppId) {
> - found = true;
> - break;
> - }
> - }
Why don't we need this block of code anymore?
I am looking at:
http://mxr.mozilla.org/mozilla-central/source/dom/ipc/AppProcessChecker.cpp#197
Assignee | ||
Comment 2•11 years ago
|
||
(In reply to Doug Turner (:dougt) from comment #1)
> ::: dom/ipc/ContentParent.cpp
> @@ -3049,5 @@
> > - if (appId == principalAppId) {
> > - found = true;
> > - break;
> > - }
> > - }
>
> Why don't we need this block of code anymore?
We do, see AssertAppPrincipal in the same file. CheckPermission calls it before doing anything else.
Assignee: nobody → reuben.bmo
Updated•11 years ago
|
Attachment #827804 -
Flags: review?(doug.turner) → review+
Comment 3•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in
before you can comment on or make changes to this bug.
Description
•