Closed
Bug 1570786
Opened 6 years ago
Closed 4 years ago
[@ mozilla::ContentPrincipal::GetURI ] null deref
Categories
(Core :: Networking, defect, P2)
Tracking
()
RESOLVED
FIXED
91 Branch
People
(Reporter: Oriol, Assigned: valentin)
References
(Regression)
Details
(Keywords: crash, regression, Whiteboard: [necko-triaged])
Crash Data
Attachments
(1 file)
Open browser console and run
Cc["@mozilla.org/principal;1"].createInstance(Ci.nsIPrincipal).URI
Expected: it returns null
Actual: browser crashes (null deref)
Regression window: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=96b37ba12225d580f2b201d26915f88c5cb0d8a6&tochange=aabfe960ab59fea2e85896b1f8050786e16ab23b
Probably bug 1448058
Updated•6 years ago
|
Priority: -- → P2
Whiteboard: [necko-triaged]
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee: nobody → valentin.gosu
Severity: normal → S3
Assignee | ||
Comment 1•4 years ago
|
||
Reporter | ||
Comment 2•4 years ago
|
||
The testcase from comment 0 does no longer work because bug 1711078 removed Cc["@mozilla.org/principal;1"]
.
I can still use
Cc["@mozilla.org/systemprincipal;1"].createInstance(Ci.nsIPrincipal).URI;
but that just returns null as expected.
So not sure if you patch is actually needed.
Assignee | ||
Comment 3•4 years ago
|
||
Technically true, there don't seem to be any ways of creating a contentPrincipal from JS with a null URI.
SystemPrincipal always returns a null URI.
For correctness I'd still like to land this. NS_ADDREF(*x = member) is a bad pattern anyway.
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/56888fc83da3
Avoid ContentPrincipal::GetURI null deref r=necko-reviewers,kershaw
Comment 5•4 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox91:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Updated•4 years ago
|
status-firefox89:
--- → wontfix
status-firefox90:
--- → affected
status-firefox-esr78:
--- → wontfix
Updated•4 years ago
|
Updated•3 years ago
|
Has Regression Range: --- → yes
You need to log in
before you can comment on or make changes to this bug.
Description
•