diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-09-21 04:18:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-21 04:18:28 -0500 |
commit | 581f0bf09a8ec35dadd5de207777f79138255e1a (patch) | |
tree | 647f828d9b02baa594f7ff5268289f9164d93b45 /components/script/dom/promise.rs | |
parent | ce7cee75e4c0c8357b489be42589d96348870627 (diff) | |
parent | dcd959fc72513913c8c7ee06087522db8774e38c (diff) | |
download | servo-581f0bf09a8ec35dadd5de207777f79138255e1a.tar.gz servo-581f0bf09a8ec35dadd5de207777f79138255e1a.zip |
Auto merge of #18590 - hiikezoe:increment-ref-count-for-will-change, r=xidorn
Use Atom::from(nsIAtom) to increment reference count in case of dynam…
…ic atom for will-change.
If we don't increment the reference count for the Atom in servo side, it's
possible to try to release the Atom in servo side even if we have already
released in gecko side. When it happens, nsIAtom::mKind is no longer reliable.
https://bugzilla.mozilla.org/show_bug.cgi?id=1401809
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18590)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/promise.rs')
0 files changed, 0 insertions, 0 deletions