Closed Bug 1588298 Opened 5 years ago Closed 5 years ago

Ensure CreateFromLoadURIOptions passes the appropriate PRIVATE flag to URIFixup

Categories

(Core :: DOM: Navigation, defect, P1)

defect
Points:
3

Tracking

()

RESOLVED FIXED
mozilla71
Iteration:
71.4 - Oct 14 - 20
Tracking Status
firefox71 --- fixed

People

(Reporter: mak, Assigned: mak)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Bug 1578624 moved the urifixup call from the docshell to CreateFromLoadURIOptions, that is now also invoked by BrowsingContext.
That code must pass FIXUP_FLAG_PRIVATE_CONTEXT to URIFixup when appropriate.

We need a test that goes through both branches in CreateFromLoadURIOptions, either if the consumer is a DocShell or if it's an EmbedderElement.
The DocShell has information about PB mode.

Depends on: 1578624
Iteration: --- → 71.4 - Oct 14 - 20

It seems like private browsing state should be stored on the BrowsingContext itself (or the BC Group?), which would then make this super easy to fix.

(In reply to Matt Woodrow (:mattwoodrow) from comment #1)

It seems like private browsing state should be stored on the BrowsingContext itself (or the BC Group?), which would then make this super easy to fix.

Oh sorry, I didn't see your comment before attaching this, do you have a simple proposal to implement? Would my patch be ok in the meanwhile, or is the "proper" fix straight-forward enough? We need this fix in Firefox 71.

Flags: needinfo?(matt.woodrow)

Kris reviewed the current patch, I'm happy to file a follow-up for a broader fix if you think it would be cleaner long term, just let me know.

(In reply to Matt Woodrow (:mattwoodrow) from comment #1)

It seems like private browsing state should be stored on the BrowsingContext itself (or the BC Group?), which would then make this super easy to fix.

For what it's worth, this is already on the TODO list, along with storing the entire OriginAttributes for a DocShell on the BrowsingContext. I'd be happy to accept a patch for either or both.

Flags: needinfo?(matt.woodrow)

I think I'll need both of those for 'start parent initiated loads from the parent process' anyway, so I can look in them.

Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/57c7f2d2d1d5 Ensure CreateFromLoadURIOptions passes the appropriate PRIVATE flag to URIFixup. r=kmag
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: