Closed
Bug 959199
Opened 12 years ago
Closed 12 years ago
[APZC-only] Calling "preventDefault" on the contextmenu event does not prevent the click event.
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox27 | --- | unaffected |
firefox28 | --- | fixed |
firefox29 | --- | fixed |
b2g-v1.2 | --- | unaffected |
b2g-v1.3 | --- | fixed |
b2g-v1.4 | --- | fixed |
People
(Reporter: julienw, Assigned: daleharvey)
References
Details
(Keywords: regression)
Attachments
(1 file)
885 bytes,
patch
|
kats
:
review+
julienw
:
feedback+
|
Details | Diff | Splinter Review |
STR:
1. loads https://everlong.org/mozilla/testcase-contextmenu/ in the browser
2. longpress in the middle of the page
Expected:
* we get only the contextmenu event
Actual:
* we get both the contextmenu and the click event
qawanted: please test the STR in 1.3, I only tested in 1.4. Thanks !
Assigning to Dale per request.
Reporter | ||
Comment 1•12 years ago
|
||
Note that the bug does not happen when I disable APZC. (I tested a consequence of this in the SMS app).
Comment 2•12 years ago
|
||
In the browser ? How that's interesting because the codepath for the browser should not depends on APZC.
Dale do you have any ideas about what's going on ?
Flags: needinfo?(dale)
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Vivien Nicolas (:vingtetun) (:21) from comment #2)
> In the browser ? How that's interesting because the codepath for the browser
> should not depends on APZC.
I thought the Browser used APZC since ages?
Reporter | ||
Updated•12 years ago
|
Keywords: regressionwindow-wanted
Comment 4•12 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #3)
> (In reply to Vivien Nicolas (:vingtetun) (:21) from comment #2)
> > In the browser ? How that's interesting because the codepath for the browser
> > should not depends on APZC.
>
> I thought the Browser used APZC since ages?
Yes, this is what it is funny that it regressed only now :)
Assignee | ||
Comment 5•12 years ago
|
||
Ugh, The original patch was rather large and needed rebased a few times http://mxr.mozilla.org/mozilla-central/source/dom/ipc/TabChild.cpp#1626 should be |mContextMenuHandled = Dispatch....|
we have unit tests for the gesturedetector, but nothing thats testing the actual content events with apzc enabled
Flags: needinfo?(dale)
Assignee | ||
Comment 6•12 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=942929 would have regressed this
Assignee | ||
Comment 7•12 years ago
|
||
Should be the fix, I dont think we have any framework currently in place to test this kats? Julien if you could verify it fixes your problem it would be useful
cheers
Attachment #8359732 -
Flags: review?(bugmail.mozilla)
Attachment #8359732 -
Flags: feedback?(felash)
Reporter | ||
Comment 8•12 years ago
|
||
Comment on attachment 8359732 [details] [diff] [review]
959199.patch
Fixes the issue for me :) Both in the Browser and the SMS app.
Attachment #8359732 -
Flags: feedback?(felash) → feedback+
Comment 9•12 years ago
|
||
See the blocking bug for the ongoing QA analysis - still waiting for 1.3 confirmation.
blocking-b2g: --- → 1.4?
Updated•12 years ago
|
Attachment #8359732 -
Flags: review?(bugmail.mozilla) → review+
Comment 10•12 years ago
|
||
This will need uplifting to aurora as well, so please request aurora approval on the patch when you land it.
Blocks: 942929
blocking-b2g: 1.4? → 1.3?
status-b2g-v1.2:
--- → unaffected
status-b2g-v1.3:
--- → affected
status-b2g-v1.4:
--- → affected
status-firefox27:
--- → unaffected
status-firefox28:
--- → affected
status-firefox29:
--- → affected
Updated•12 years ago
|
blocking-b2g: 1.3? → 1.3+
Assignee | ||
Comment 11•12 years ago
|
||
Assignee | ||
Comment 12•12 years ago
|
||
Comment on attachment 8359732 [details] [diff] [review]
959199.patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #): 942929
User impact if declined: Quite severe break to web content
Testing completed (on m-c, etc.): verified
Risk to taking this patch (and alternatives if risky): low risk
String or IDL/UUID changes made by this patch:
Attachment #8359732 -
Flags: approval-mozilla-aurora?
Comment 13•12 years ago
|
||
Comment on attachment 8359732 [details] [diff] [review]
959199.patch
This already 1.3+, so this already has approval to land.
Attachment #8359732 -
Flags: approval-mozilla-aurora?
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Comment 15•12 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•