Closed Bug 1282882 Opened 8 years ago Closed 8 years ago

Remove LoadContextInfo and LoadContext PB Flags

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: jandreou25, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Removing LoadContextInfo PB flags and replacing with new OriginAttribute.
Assignee: nobody → jandreou
Blocks: 1279535
Summary: Remove LoadContextInfo PB Flags → Remove LoadContextInfo and LoadContext PB Flags
Attached patch Bug1282882.patchSplinter Review
Attachment #8766028 - Flags: review?(josh)
Comment on attachment 8766028 [details] [diff] [review]
Bug1282882.patch

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

::: netwerk/base/LoadContextInfo.cpp
@@ -70,4 @@
>  NS_IMETHODIMP LoadContextInfoFactory::GetPrivate(nsILoadContextInfo * *aPrivate)
>  {
>    NeckoOriginAttributes attrs;
> -  attrs.SyncAttributesWithPrivateBrowsing(aPrivate);

...oops.

@@ +128,4 @@
>  
>    NeckoOriginAttributes oa;
>    NS_GetOriginAttributes(aChannel, oa);
> +  oa.SyncAttributesWithPrivateBrowsing(pb);

This should be an assert instead.

::: netwerk/test/unit/test_bug248970_cache.js
@@ +47,5 @@
>    asyncOpenCacheEntry(entries[store_idx][0],
>                        entries[store_idx][2],
>                        Ci.nsICacheStorage.OPEN_TRUNCATE,
> +                      LoadContextInfo.custom(false,
> +                        {privateBrowsingId : !entries[store_idx][3]}),

We should choose a 0 or 1 value instead of relying on conversion from boolean.

@@ +88,5 @@
>    asyncOpenCacheEntry(entries[check_idx][0],
>                        entries[check_idx][2],
>                        Ci.nsICacheStorage.OPEN_READONLY,
> +                      LoadContextInfo.custom(false,
> +                        {privateBrowsingId : !entries[check_idx][3]}),

Same.
Attachment #8766028 - Flags: review?(josh) → review+
Attachment #8766028 - Flags: review?(honzab.moz)
Comment on attachment 8766028 [details] [diff] [review]
Bug1282882.patch

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

lgtm.
Attachment #8766028 - Flags: review?(honzab.moz) → review+
Assignee: jandreou25 → nobody
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b2b90d326543
Remove LoadContextInfo and LoadContext private browsing flags; r=jdm,mayhemer
https://hg.mozilla.org/mozilla-central/rev/b2b90d326543
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: