Use Variant as the internal storage of ResolveOrRejectValue

RESOLVED FIXED in Firefox 55

Status

()

Core
XPCOM
P3
normal
RESOLVED FIXED
a year ago
a year ago

People

(Reporter: jwwang, Assigned: jwwang)

Tracking

unspecified
mozilla55
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox55 fixed)

Details

MozReview Requests

()

Submitter Diff Changes Open Issues Last Updated
Loading...
Error loading review requests:

Attachments

(2 attachments)

(Assignee)

Description

a year ago
This kinda optimize the storage usage.
(Assignee)

Updated

a year ago
Assignee: nobody → jwwang
Blocks: 1362910
Priority: -- → P3
You stole my idea! :-)
You'll need to wait for bug 1338389, as some Resolve & Reject types are the same in existing code.
Depends on: 1338389
(Assignee)

Comment 2

a year ago
I will use some tricks to work around it so this bug and bug 1362910 can continue. We can remove the tricks after bug 1338389 is fixed.
Comment hidden (mozreview-request)
Comment hidden (mozreview-request)
(Assignee)

Updated

a year ago
Attachment #8866286 - Flags: review?(gsquelart)
Attachment #8866287 - Flags: review?(gsquelart)

Comment 5

a year ago
mozreview-review
Comment on attachment 8866286 [details]
Bug 1363676. P1 - use Variant as the internal storage of ResolveOrRejectValue.

https://reviewboard.mozilla.org/r/137904/#review141020

Clever!
Attachment #8866286 - Flags: review?(gsquelart) → review+

Comment 6

a year ago
mozreview-review
Comment on attachment 8866287 [details]
Bug 1363676. P2 - add a gtest to ensure we don't break ResolveOrRejectValue during refactoring.

https://reviewboard.mozilla.org/r/137906/#review141022
Attachment #8866287 - Flags: review?(gsquelart) → review+
Well played, you don't actually need bug 1338389! (But I'm hoping it will simplify this code soon...)
No longer depends on: 1338389
(Assignee)

Comment 8

a year ago
Thanks for the review!

Comment 9

a year ago
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5fb3ab3d4ce8
P1 - use Variant as the internal storage of ResolveOrRejectValue. r=gerald
https://hg.mozilla.org/integration/autoland/rev/9547fbdccbed
P2 - add a gtest to ensure we don't break ResolveOrRejectValue during refactoring. r=gerald
https://hg.mozilla.org/mozilla-central/rev/5fb3ab3d4ce8
https://hg.mozilla.org/mozilla-central/rev/9547fbdccbed
Status: NEW → RESOLVED
Last Resolved: a year ago
status-firefox55: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Blocks: 1371880
You need to log in before you can comment on or make changes to this bug.