Open Bug 1704490 Opened 4 years ago Updated 2 years ago

[Wayland] dom/base/test/browser_multiple_popups.js failure

Categories

(Core :: Widget: Gtk, defect, P3)

defect

Tracking

()

People

(Reporter: stransky, Unassigned)

References

(Blocks 1 open bug)

Details

Under Wayland dom/base/test/browser_multiple_popups.js test fails with:

dom/base/test/browser_multiple_popups.js
FAIL Test timed out -
FAIL Found a tab after previous test timed out: http://example.net/browser/dom/base/test/browser_multiple_popups.html -

Run as:
MOZ_ENABLE_WAYLAND=1 ./mach mochitest --setpref widget.wayland.test-workarounds.enabled=true dom/base/test/browser_multiple_popups.js

This is caused by wrong synthesized mouse position, we calculate wrong button element size so the click is misplaced. There are two reflows, correct and wrong one:

Correct:

0:06.34 GECKO(364480) HTMLbutton 0x7f0c6fe40f10 InitConstraints parent=0x7ffdfcfb59f8 cb=UC,UC as=75120,UC b=(nil) p=(nil)
0:06.35 GECKO(364480) HTMLbutton 0x7f0c6fe40f10 InitOffsets pct_basis=75120 b=(nil) p=(nil)
0:06.35 GECKO(364480) HTMLbutton 0x7f0c6fe40f10 InitOffsets= m=0,0,0,0 p=60,240,60,240 b+p=180,360,180,360
0:06.35 GECKO(364480) HTMLbutton 0x7f0c6fe40f10 GetMinISize
0:06.35 GECKO(364480) block 0x7f0c6fe40fc8 GetMinISize
0:06.35 GECKO(364480) block 0x7f0c6fe40fc8 GetMinISize=2938
0:06.35 GECKO(364480) HTMLbutton 0x7f0c6fe40f10 GetMinISize=2938
0:06.35 GECKO(364480) HTMLbutton 0x7f0c6fe40f10 GetPrefISize
0:06.35 GECKO(364480) block 0x7f0c6fe40fc8 GetPrefISize
0:06.35 GECKO(364480) block 0x7f0c6fe40fc8 GetPrefISize=5189
0:06.35 GECKO(364480) HTMLbutton 0x7f0c6fe40f10 GetPrefISize=5189
0:06.35 GECKO(364480) HTMLbutton 0x7f0c6fe40f10 InitConstraints= cw=(0 <= 5189 <= UC) ch=(0 <= UC <= UC) co=0,0,0,0
0:06.35 GECKO(364480) HTMLbutton 0x7f0c6fe40f10 Reflow a=75120,UC c=5189,UC dirty v-resize cnt=334

Wrong:

0:07.45 GECKO(364480) HTMLbutton 0x7f0c6e8b0f10 InitConstraints parent=0x7ffdfcfb59f8 cb=UC,UC as=0,UC b=(nil) p=(nil)
0:07.45 GECKO(364480) HTMLbutton 0x7f0c6e8b0f10 InitOffsets pct_basis=0 b=(nil) p=(nil)
0:07.45 GECKO(364480) HTMLbutton 0x7f0c6e8b0f10 InitOffsets= m=0,0,0,0 p=60,240,60,240 b+p=180,360,180,360
0:07.45 GECKO(364480) HTMLbutton 0x7f0c6e8b0f10 GetMinISize
0:07.45 GECKO(364480) block 0x7f0c6e8b0fc8 GetMinISize
0:07.45 GECKO(364480) block 0x7f0c6e8b0fc8 GetMinISize=2938
0:07.45 GECKO(364480) HTMLbutton 0x7f0c6e8b0f10 GetMinISize=2938
0:07.45 GECKO(364480) HTMLbutton 0x7f0c6e8b0f10 InitConstraints= cw=(0 <= 2938 <= UC) ch=(0 <= UC <= UC) co=0,0,0,0
0:07.45 GECKO(364480) HTMLbutton 0x7f0c6e8b0f10 Reflow a=0,UC c=2938,UC dirty v-resize cnt=988

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.