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)
Core
DOM: Bindings (WebIDL)
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.
Comment 1•8 years ago
|
||
Such that a call to dictionary.IsAnyMemberPresent() will return the correct value.
Comment 2•8 years ago
|
||
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 3•8 years ago
|
||
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 4•8 years ago
|
||
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
Comment 6•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•