Closed Bug 402089 Opened 18 years ago Closed 18 years ago

nsDOMUIEvent should cache coordinates when DuplicatePrivateData is called

Categories

(Core :: DOM: Events, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

This is sort of regression from 1.8.0, though in that branch coordinates from already dispatched events works only in some cases and apparently occasionally trying to get the coordinates causes crashes. But anyway to work more like Opera and Safari, the coordinates should be cached.
Attached file testcase
This testcase passes on Opera and Safari.
Attached patch proposed patch (obsolete) — Splinter Review
Not sure if this should block 1.9. Probably not, but at least should be wanted-1.9. Adding more members to nsDOMUIEvent shouldn't be bad, since we usually have only very few events alive in the same time.
Attachment #287004 - Flags: superreview?(jst)
Attachment #287004 - Flags: review?(jst)
Attached patch proposed patchSplinter Review
Oops, the testcase didn't quite work in the previous patch.
Attachment #287004 - Attachment is obsolete: true
Attachment #287007 - Flags: superreview?(jst)
Attachment #287007 - Flags: review?(jst)
Attachment #287004 - Flags: superreview?(jst)
Attachment #287004 - Flags: review?(jst)
Attachment #287007 - Flags: superreview?(jst)
Attachment #287007 - Flags: superreview+
Attachment #287007 - Flags: review?(jst)
Attachment #287007 - Flags: review+
Attachment #287007 - Flags: approval1.9?
Making events to work more consistently with other browsers is IMO definitely wanted-1.9, so asking approval-
Attachment #287007 - Flags: approval1.9? → approval1.9+
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
Flags: in-testsuite? → in-testsuite+
Depends on: 403514
This seems to trigger an assertion when you hit Esc to close Print Preview.
um, right, that sort of useless assertion. nsPresContext::PresShell() should be removed, and only nsPresContext::GetPresShell() should be used.
Depends on: 405632
This check-in completely breaks the maps.live.com site. See bug 405632 for details.
(In reply to comment #7) > This check-in completely breaks the maps.live.com site. Why "completely" ?
Blocks: 1581453
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: