Closed Bug 1333726 Opened 7 years ago Closed 7 years ago

Fix use of principal serialization in browser.js to actually work

Categories

(Firefox :: General, defect, P1)

defect

Tracking

()

RESOLVED FIXED
Firefox 54
Tracking Status
firefox53 --- fixed
firefox54 --- fixed

People

(Reporter: Gijs, Assigned: Gijs)

References

(Depends on 1 open bug)

Details

(Whiteboard: [domsecurity-active])

Attachments

(1 file)

In bug 1331686 we added code that serializes principals. The patch initially used the sessionstore utils which wrap the serialization helper with a method called "serializePrincipal". Unfortunately, the final checkin continues to use that method name but calls it on the serialization helper, where it doesn't exist. I should probably have noticed this in review. :-(
Component: DOM: Security → General
Product: Core → Firefox
(In reply to :Gijs from comment #0)
> In bug 1331686 we added code that serializes principals. The patch initially
> used the sessionstore utils which wrap the serialization helper with a
> method called "serializePrincipal". Unfortunately, the final checkin
> continues to use that method name but calls it on the serialization helper,
> where it doesn't exist. I should probably have noticed this in review. :-(

Checking the comments on bug 1331686, my initial review feedback mistakenly referred to:

> and then in here use gSerializationHelper.serializePrincipal instead.

Sorry. :-(
Comment on attachment 8830237 [details]
Bug 1333726 - use serializeToString instead of non-existant serializePrincipal,

https://reviewboard.mozilla.org/r/107132/#review108224

r=me, thanks for fixing. This needs uplifting too.
Attachment #8830237 - Flags: review?(ckerschb) → review+
(In reply to :Gijs from comment #2)
> > and then in here use gSerializationHelper.serializePrincipal instead.
> 
> Sorry. :-(

Yeah, no worries, I could/should have checked myself. Interestingly is that no test triggered that codepath.
Priority: -- → P1
Whiteboard: [domsecurity-active]
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/03cc3fbf7ae3
use serializeToString instead of non-existant serializePrincipal, r=ckerschb
Depends on: 1333727
(In reply to Christoph Kerschbaumer [:ckerschb] from comment #4)
> Yeah, no worries, I could/should have checked myself. Interestingly is that
> no test triggered that codepath.

Yes. Filed bug 1333727
(In reply to :Gijs from comment #6)
> (In reply to Christoph Kerschbaumer [:ckerschb] from comment #4)
> > Yeah, no worries, I could/should have checked myself. Interestingly is that
> > no test triggered that codepath.
> 
> Yes. Filed bug 1333727

Awesome - thank you!
Comment on attachment 8830237 [details]
Bug 1333726 - use serializeToString instead of non-existant serializePrincipal,

Approval Request Comment
[Feature/Bug causing the regression]: bug 1331686
[User impact if declined]: some loads fail
[Is this code covered by automated tests?]: in general, yes. This specific failure, apparently not. We'll look at tests in bug 1333727, but this is such a trivial change that I think it's worth landing on aurora even before the tests are done.
[Has the fix been verified in Nightly?]: not yet
[Needs manual test from QE? If yes, steps to reproduce]: I don't think so, the change is too trivial to bother (please see patch and other bug comments)
[List of other uplifts needed for the feature/fix]: none
[Is the change risky?]: no
[Why is the change risky/not risky?]: simple change to correct a method name we're calling
[String changes made/needed]: no
Attachment #8830237 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/03cc3fbf7ae3
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Comment on attachment 8830237 [details]
Bug 1333726 - use serializeToString instead of non-existant serializePrincipal,

Should fix some user issues with page loading, let's uplift for 53.
Attachment #8830237 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: