Closed
Bug 1048643
Opened 10 years ago
Closed 10 years ago
extend docshell security flags to indicate tracking protection state
Categories
(Core :: DOM: Security, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: geko1702+bugzilla, Assigned: geko1702+bugzilla)
References
Details
Attachments
(1 file, 2 obsolete files)
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → gkontaxis
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Comment on attachment 8467482 [details] [diff] [review]
extended nsDocShell with flags to indicate tracking protection status (similar to mixed content blocked/loaded status)
Review of attachment 8467482 [details] [diff] [review]:
-----------------------------------------------------------------
::: docshell/base/nsDocShell.cpp
@@ +2134,5 @@
> NS_IMETHODIMP
> +nsDocShell::GetHasTrackingContentBlocked(bool* aHasTrackingContentBlocked)
> +{
> + nsCOMPtr<nsIDocument> doc(GetDocument());
> + *aHasTrackingContentBlocked = doc && doc->GetHasTrackingContentBlocked();
Seems like you could simplify this patch a lot by just using BlockedTrackingNodeCount() > 0.
Assignee | ||
Comment 4•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8467482 -
Attachment is obsolete: true
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8469370 [details] [diff] [review]
extended nsDocShell with flags to indicate tracking protection status (similar to mixed content blocked/loaded status)
We need to introduce two flags to reflect the tracking protection status of a document. (blocked tracking elements or loaded tracking elements after the user's decision to white-list the page) This is required so that the security state of the document (expressed by nsSecureBrowserUIImpl) factors in both handling of mixed content and tracking elements.
Attachment #8469370 -
Flags: review?(bugs)
Comment 6•10 years ago
|
||
Comment on attachment 8469370 [details] [diff] [review]
extended nsDocShell with flags to indicate tracking protection status (similar to mixed content blocked/loaded status)
>+++ b/content/base/public/nsIDocument.h
Please update IID of nsIDocument
>+++ b/docshell/base/nsIDocShell.idl
>@@ -556,16 +556,29 @@ interface nsIDocShell : nsIDocShellTreeI
update uuid
>+ // Has Tracking Content been Blocked?
>+ if (docShell->GetHasTrackingContentBlocked())
>+ *aState |= nsIWebProgressListener::STATE_BLOCKED_TRACKING_CONTENT;
>+
>+ if (docShell->GetHasTrackingContentLoaded())
>+ *aState |= nsIWebProgressListener::STATE_LOADED_TRACKING_CONTENT;
Ah, this uses the flags
Attachment #8469370 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8469370 -
Attachment is obsolete: true
Assignee | ||
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Comment on attachment 8469529 [details] [diff] [review]
extended nsDocShell with flags to indicate tracking protection status (similar to mixed content blocked/loaded status)
Carrying over r+ from comment 6
https://hg.mozilla.org/integration/mozilla-inbound/rev/497e1d4921a0
Attachment #8469529 -
Flags: review+
Comment 10•10 years ago
|
||
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.
Description
•