Closed Bug 1301666 Opened 8 years ago Closed 7 years ago

Remove triggeringPrincipal_b64 from SessionHistory.jsm

Categories

(Core :: DOM: Security, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: ckerschb, Assigned: ckerschb)

References

Details

(Whiteboard: [domsecurity-backlog1])

Attachments

(1 file)

Bug 1297338 introduces the concept of a principalToInherit which is basically the equivalent of the current triggeringPrincipal. After a few cycles (once principalToInherit is well established) we should update:
* browser/components/sessionstore/SessionHistory.jsm
* mobile/android/components/SessionStore.js
Assignee: nobody → ckerschb
Status: NEW → ASSIGNED
Depends on: 1297338
Priority: -- → P3
Whiteboard: [domsecurity-backlog1]
The new code will use the variables
* triggeringPrincipal_base64, and
* principalToInherit_base64

After a few cycles (e.g. within FF53 or FF55) we can remove:
* triggeringPrincipal_b64
Summary: Serialize principalToInherit and triggeringPrincipal within SessionHistory.jsm and SessionStore.js → Remove triggeringPrincipal_b64 from SessionHistory.jsm and SessionStore.js
Android now uses SessionHistory.jsm as well, so removing this from there will be sufficient.
Summary: Remove triggeringPrincipal_b64 from SessionHistory.jsm and SessionStore.js → Remove triggeringPrincipal_b64 from SessionHistory.jsm
(In reply to Jan Henning [:JanH] from comment #2)
> Android now uses SessionHistory.jsm as well, so removing this from there
> will be sufficient.

Thanks for the update Jan - in fact, I think we can get that code updated now.
Mike, we landed Bug 1297338 within FF52. I think we can remove triggeringPrincipal_b64 now - what do you think?

https://treeherder.mozilla.org/#/jobs?repo=try&revision=5882ea27723695484a9388b8928f3878f4bd2351
Attachment #8846535 - Flags: review?(mdeboer)
Comment on attachment 8846535 [details] [diff] [review]
bug_1301666_remove_triggeringprincipal_b64_from_sessionhistory.patch

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

Yay for code removal!

::: toolkit/modules/sessionstore/SessionHistory.jsm
@@ +403,5 @@
>        }
>      }
>  
> +    if (entry.triggeringPrincipal_base64) {
> +      shEntry.triggeringPrincipal =

nit: Please make these two one-liners.
Attachment #8846535 - Flags: review?(mdeboer) → review+
Pushed by mozilla@christophkerschbaumer.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/423b156372ea
Remove triggeringPrincipal_b64 from SessionHistory.jsm. r=mikedeboer
https://hg.mozilla.org/mozilla-central/rev/423b156372ea
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: