Closed Bug 861607 Opened 12 years ago Closed 12 years ago

ASSERTION: Map should be empty already: 'clearedEntries == 0' running bidi reftests

Categories

(Core :: Layout: Text and Fonts, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23
Tracking Status
firefox20 --- unaffected
firefox21 --- fixed
firefox22 --- fixed
firefox23 --- fixed

People

(Reporter: smontagu, Assigned: smontagu)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

With the patch from bug 861606, running reftests in layout/reftests/bidi/dirAuto asserts a lot: REFTEST TEST-UNEXPECTED-FAIL | file:///home/smontagu/mozwork/hgtree/mozilla/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto6.html | assertion count 20 is more than expected 0 assertions REFTEST TEST-UNEXPECTED-FAIL | file:///home/smontagu/mozwork/hgtree/mozilla/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir1.html | assertion count 15 is more than expected 0 assertions REFTEST TEST-UNEXPECTED-FAIL | file:///home/smontagu/mozwork/hgtree/mozilla/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL4.html | assertion count 17 is more than expected 0 assertions All the assertions are: ASSERTION: Map should be empty already: 'clearedEntries == 0', file /home/smontagu/mozwork/hgtree/mozilla/content/base/src/DirectionalityUtils.cpp, line 551
Attached patch PatchSplinter Review
These calls to ClearHasDirAutoSet are not right: if we clear the flag here in AfterSetAttr, we then don't go through the right code path in WalkAncestorsResetAutoDirection (called from OnSetDirAttr), and don't clear the old entries from TextNodeDirectionalityMap.
Assignee: nobody → smontagu
Attachment #737217 - Flags: review?(ehsan)
Blocks: 861610
Attachment #737217 - Flags: review?(ehsan) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Blocks: 859014
Blocks: 859016
Comment on attachment 737217 [details] [diff] [review] Patch [Approval Request Comment] Bug caused by (feature/regressing bug #): Bug 548206 or one of its followups User impact if declined: without bug 861606 this could lead to sec-crit vulnerabilities (see dependencies for examples). With bug 861606 its impact is mitigated, but since risk is very low I'd like to get this in for the first release of dir=auto Testing completed (on m-c, etc.): baked on m-c since 2013-04-15 Risk to taking this patch (and alternatives if risky): minimal String or IDL/UUID changes made by this patch: none
Attachment #737217 - Flags: approval-mozilla-beta?
Attachment #737217 - Flags: approval-mozilla-aurora?
Comment on attachment 737217 [details] [diff] [review] Patch Approving the low risk uplift to avoid the dirauto sec-crit vulnerabilities .Please make sure to land on the beta branch by Monday Apr 22 for this to make it into Fx 21 beta 4
Attachment #737217 - Flags: approval-mozilla-beta?
Attachment #737217 - Flags: approval-mozilla-beta+
Attachment #737217 - Flags: approval-mozilla-aurora?
Attachment #737217 - Flags: approval-mozilla-aurora+
Are there any user facing regression risks QA should be testing not covered by your tests?
Flags: needinfo?(smontagu)
I think the existing tests cover it.
Flags: needinfo?(smontagu)
Thanks Simon, marking [qa-].
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: