Closed Bug 1626016 Opened 4 years ago Closed 4 years ago

Move postData inside URIFixupInfo

Categories

(Core :: DOM: Navigation, task, P3)

task
Points:
3

Tracking

()

RESOLVED FIXED
83 Branch
Iteration:
83.2 - Oct 5 - Oct 18
Tracking Status
firefox83 --- fixed

People

(Reporter: mak, Assigned: mak)

References

Details

Attachments

(1 file)

Follow-up to bug 1496578, currently postData is passed as an optional out argument, it could instead be passed as part of the URIFixupInfo object.

Even if we move postData inside fixupInfo, createFixupURI would still require an optional out argument. The alternative would be to convert all of its callers to getFixupURIInfo, that is more verbose:
https://searchfox.org/mozilla-central/search?q=createFixupURI

(In reply to Marco Bonardo [:mak] from comment #1)

Even if we move postData inside fixupInfo, createFixupURI would still require an optional out argument. The alternative would be to convert all of its callers to getFixupURIInfo, that is more verbose:
https://searchfox.org/mozilla-central/search?q=createFixupURI

I mean, from JS it's not that much more verbose...

let postData = {};
let uri = urifixup.createFixupURI(... , postData);

vs

let {uri, postData} = urifixup.getFixupURIInfo(...);

From C++, I agree it'd probably be worse. But then, I think we should stop calling it in C++ anyway...

Blocks: 1667931
Assignee: nobody → mak
Status: NEW → ASSIGNED
Iteration: --- → 83.2 - Oct 5 - Oct 18
Points: --- → 3
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/bb5f75652512
Remove createFixupURI and move postData inside URIFixupInfo. r=Gijs,geckoview-reviewers,preferences-reviewers,snorp
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/9d42c3bec073
Port bug 1626016 - Remove nsIURIFixup.createFixupURI. rs=bustage-fix
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: