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)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: geko1702+bugzilla, Assigned: geko1702+bugzilla)

References

Details

Attachments

(1 file, 2 obsolete files)

No description provided.
Assignee: nobody → gkontaxis
Status: NEW → ASSIGNED
Depends on: 1044181
Blocks: 1047705
Depends on: 1044215
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.
Blocks: 1050348
Attachment #8467482 - Attachment is obsolete: true
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 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+
Attachment #8469370 - Attachment is obsolete: true
No longer depends on: 1044181
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+
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: