Closed Bug 1471214 Opened 8 years ago Closed 8 years ago

Dictionary copy operator do not copy DisctionaryBase::mIsAnyMemberPresent member

Categories

(Core :: DOM: Bindings (WebIDL), enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: jya, Assigned: jya)

Details

Attachments

(1 file)

Say you have: Dictionary foo; with foo.IsAnyMemberPresent() = true Dictionary blah = foo; blah.IsAnyMemberPresent() will return false The binding code, for each dictionary will generate a copy constructor, however that copy constructor doesn't call the DictionaryBase copy constructor. As such, after a copy DictionaryBase::mIsAnyMemberPresent is always false.
Such that a call to dictionary.IsAnyMemberPresent() will return the correct value.
Comment on attachment 8987823 [details] Bug 1471214 - Ensure that DictionaryBase copy constructor is called. r?bz Boris Zbarsky [:bz] (no decent commit message means r-) has approved the revision. https://phabricator.services.mozilla.com/D1829
Attachment #8987823 - Flags: review+
Comment on attachment 8987823 [details] Bug 1471214 - Ensure that DictionaryBase copy constructor is called. r?bz Boris Zbarsky [:bz] (no decent commit message means r-) has requested changes to the revision. https://phabricator.services.mozilla.com/D1829
Attachment #8987823 - Flags: review+
Comment on attachment 8987823 [details] Bug 1471214 - Ensure that DictionaryBase copy constructor is called. r?bz Boris Zbarsky [:bz] (no decent commit message means r-) has approved the revision. https://phabricator.services.mozilla.com/D1829
Attachment #8987823 - Flags: review+
Pushed by jyavenard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9da8a5d80b98 Ensure that DictionaryBase copy constructor is called. r=bzbarsky
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: