Closed
Bug 308734
Opened 19 years ago
Closed 19 years ago
Limit the values we accept for currentScale
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
People
(Reporter: jwatt, Assigned: jwatt)
Details
(Keywords: fixed1.8, hang)
Attachments
(1 file)
|
6.20 KB,
patch
|
tor
:
review+
tor
:
superreview+
asa
:
approval1.8b5-
|
Details | Diff | Splinter Review |
We need to put limits on the values we allow for currentScale. Playing with http://jwatt.org/svg/tests/zoom-and-pan-controls.svg shows that you don't have to zoom in or out too many times before nasty artifacts and maxing out of CPU and memory occurs. ASV allows for a maximum value of 16 and a minimum value of 0.0625. Unless anyone has other ideas, I suggest we use these limits too.
| Assignee | ||
Comment 1•19 years ago
|
||
This patch keeps currentScale clamped to what are hopefully safe values. For the record I tried doing this in WillModify/DidModify, but it isn't possible. Once you get past the first issues (hint - recursion) you find that it's impossible to dispatch event's with the correct data when you need to clamp.
Attachment #196276 -
Flags: superreview?(tor)
Attachment #196276 -
Flags: review?(tor)
Attachment #196276 -
Flags: superreview?(tor)
Attachment #196276 -
Flags: superreview+
Attachment #196276 -
Flags: review?(tor)
Attachment #196276 -
Flags: review+
| Assignee | ||
Comment 2•19 years ago
|
||
Comment on attachment 196276 [details] [diff] [review] patch Requesting approval. It's very important that we include this in FF1.5. The risk is next to nothing.
Attachment #196276 -
Flags: approval1.8b5?
| Assignee | ||
Updated•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Attachment #196276 -
Flags: approval1.8b5? → approval1.8b5+
Comment 3•19 years ago
|
||
Comment on attachment 196276 [details] [diff] [review] patch we're now locked down and in ship mode for 1.8b5. If you'd like to re-request approval for this change, please set the approval1.8rc1? flag.
Attachment #196276 -
Flags: approval1.8b5+ → approval1.8b5-
| Assignee | ||
Comment 4•19 years ago
|
||
Sorry Asa, this is actually already landed. I just forgot to add the fixed1.8 keyword.
Keywords: fixed1.8
You need to log in
before you can comment on or make changes to this bug.
Description
•