Images in contenteditable can not be resized if stopPropagation is called within mouseup

RESOLVED FIXED in mozilla5

Status

()

defect
RESOLVED FIXED
8 years ago
7 years ago

People

(Reporter: JoWie, Assigned: Ehsan)

Tracking

unspecified
mozilla5
x86_64
Windows 7
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

Reporter

Description

8 years ago
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12) Gecko/20100101 Firefox/4.0b12
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12) Gecko/20100101 Firefox/4.0b12

If an image in an element with contenteditable="true" is resized and event.stopPropagation is called, the resizing will not stop after the mouse button has been released.

With preventDefault this could be understandable, but this should not happen with stopPropagation

Reproducible: Always

Steps to Reproduce:
1. Open the testcase 
2. Click on the first image
3. Drag one of the resize square's 
4. Let go of the mouse
Actual Results:  
The image will keep resizing towards the mouse cursor even though the mouse button has been released.

Expected Results:  
(see second image)
The resizing should stop after releasing the mouse button
Reporter

Comment 1

8 years ago
Posted file Test case
Sounds like that listener needs to be in the system event group...
Posted patch Patch (v1)Splinter Review
As a bonus, this patch includes a test which tests all of the resizer handles in all of the directions with aspect ratio preserving turned on and off.
Assignee: nobody → ehsan
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #519521 - Flags: review?(roc)
Depends on: 641969
Depends on: post2.0
Whiteboard: [post-2.0]
http://hg.mozilla.org/mozilla-central/rev/f3e986f772e3
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
No longer depends on: post2.0
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [post-2.0]
Target Milestone: --- → mozilla2.2
Can you please document your additions to the SpecialPowers API here:
https://developer.mozilla.org/en/SpecialPowers
Documentation complete.
You need to log in before you can comment on or make changes to this bug.