Closed
Bug 1248847
Opened 9 years ago
Closed 9 years ago
Add DEBUG-only assert for AccessibleCaretEventHub refcount > 1
Categories
(Core :: DOM: Selection, defect)
Core
DOM: Selection
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The precondition to make bug 1246918 works is that all the entry points to AccessibleCaretEventHub already add a reference to the Hub.
Assignee | ||
Comment 1•9 years ago
|
||
Mats suggests we add a DEBUG-only assert to make sure the refcount > 1 as in bug1246918 comment 29.
Assignee | ||
Comment 2•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/35433/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/35433/
Attachment #8720767 -
Flags: review?(mats)
Updated•9 years ago
|
Attachment #8720767 -
Flags: review?(mats)
Comment 3•9 years ago
|
||
Comment on attachment 8720767 [details]
MozReview Request: Bug 1248847 - Assert AccessibleCaretEventHub mRefCnt > 1 in all its entry points. r=mats
https://reviewboard.mozilla.org/r/35433/#review32111
The assertions looks good, but I don't undesrtand why you're removing the 'explicit' on the ctors in the test. Perhaps that part is just an accidental change?
r=mats
Comment 4•9 years ago
|
||
Comment on attachment 8720767 [details]
MozReview Request: Bug 1248847 - Assert AccessibleCaretEventHub mRefCnt > 1 in all its entry points. r=mats
https://reviewboard.mozilla.org/r/35433/#review32113
Attachment #8720767 -
Flags: review+
Assignee | ||
Comment 5•9 years ago
|
||
https://reviewboard.mozilla.org/r/35433/#review32111
Those ctors have no argument so nothing can be implicited coverted to them. Thefore the 'explicit' seems like a noise to me so I remove them while I'm here. But it does not harm to write 'explicit' though. I should have explain this in the commit message.
Comment 6•9 years ago
|
||
OK, my mistake.
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8720767 [details]
MozReview Request: Bug 1248847 - Assert AccessibleCaretEventHub mRefCnt > 1 in all its entry points. r=mats
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/35433/diff/1-2/
Attachment #8720767 -
Attachment description: MozReview Request: Bug 1248847 - Assert AccessibleCaretEventHub mRefCnt > 1 in all its entry points → MozReview Request: Bug 1248847 - Assert AccessibleCaretEventHub mRefCnt > 1 in all its entry points. r=mats
Assignee | ||
Comment 10•9 years ago
|
||
Try result for patch set 2 in mozreview. All build tasks are green.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=996f97915b86
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•