Closed Bug 1667911 Opened 4 years ago Closed 4 years ago

Document::ResolveWithBaseURI() should return a NonNull

Categories

(Firefox :: Untriaged, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: marcos, Assigned: saschanaz)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15

Steps to reproduce:

Document::ResolveWithBaseURI() currently returns Result<nsCOMPtr<nsIURI>, nsresult>, but it is assured to always return a non null value (or an error in the nsresult). As such, we should consider changing it to use NonNull<>.

Ah okay, Emilio said we can use OwningNonNull 👍

Assignee: nobody → krosylight
Pushed by krosylight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ca8efa3b5ada
Return OwningNonNull from ResolveWithBaseURI() r=emilio
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: