Closed
Bug 946529
Opened 11 years ago
Closed 11 years ago
Parsing of numbers in scientific notation in SVG is broken when there is no sign after the 'e'
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla28
Tracking | Status | |
---|---|---|
firefox25 | --- | unaffected |
firefox26 | --- | unaffected |
firefox27 | - | fixed |
firefox28 | --- | fixed |
People
(Reporter: birtles, Assigned: birtles)
References
Details
(Keywords: regression, Whiteboard: [qa-])
Attachments
(5 files, 2 obsolete files)
10.96 KB,
image/svg+xml
|
Details | |
7.75 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
2.13 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
4.29 KB,
patch
|
longsonr
:
review+
bkerensa
:
approval-mozilla-aurora+
bkerensa
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
3.24 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
A gradientTransform value of the form "matrix(-.7235 .6903 .6903 .7235 -2050 1.14e4)" no longer parses but reports "Unexpected value matrix(-.7235 .6903 .6903 .7235 -2050 1.14e4) parsing gradientTransform attribute."
Using the attached test graphic I get a regression range of:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=f0d363d72753&tochange=abe6790a5dd8
which points to bug 929011.
(The tail of foxkeh should have a gradient if the transform is parsed correctly.)
According to SVG 1.1F2 scientific notation should be supported for <number> when used in an attribute (http://www.w3.org/TR/SVG11/types.html#DataTypeNumber).
Comment 1•11 years ago
|
||
SVGContentUtils:ParseNumber should support scientific notation you could put a breakpoint there when its called by ParseArguments.
Assignee | ||
Comment 2•11 years ago
|
||
Proposed patch to fix parsing of numbers using scientific notation of the form 1e1 (i.e. no sign between the 'e' and following digit).
Tryserver run: https://tbpl.mozilla.org/?tree=Try&rev=ff1f2dbaef2b
Assignee | ||
Updated•11 years ago
|
Summary: gradientTransform no longer supports exponential/scientific notation → Parsing of numbers in scientific notation in SVG is broken when there is no sign after the 'e'
Updated•11 years ago
|
Attachment #8342903 -
Flags: review?(jwatt) → review+
Comment 3•11 years ago
|
||
You'll need a separate beta/aurora patch as the code is slightly different there.
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Robert Longson from comment #3)
> You'll need a separate beta/aurora patch as the code is slightly different
> there.
Thanks for the review Robert! I thought this code was only in nightly?
(By the way I would have asked you for review but I thought you weren't around--so thanks!)
Assignee | ||
Comment 5•11 years ago
|
||
Pushed to inbound: https://hg.mozilla.org/integration/mozilla-inbound/rev/f5eecc6d6dd9
Flags: in-testsuite+
Comment 6•11 years ago
|
||
Bug 919319 was the start of my parsing updates. Has an earlier version of this code. So that's aurora but not beta I think.
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Robert Longson from comment #6)
> Bug 919319 was the start of my parsing updates. Has an earlier version of
> this code. So that's aurora but not beta I think.
Oh, you're right. I was only testing transform lists (which are fine on Aurora) but numbers in other places will be buggy on Aurora.
Assignee | ||
Comment 8•11 years ago
|
||
There's a silly bug in the test case from the previous patch.
Attachment #8343566 -
Flags: review?(longsonr)
Assignee | ||
Comment 9•11 years ago
|
||
I started working on fixing the number parsing on Aurora but I'm having trouble with building and I'm not going to be able to fix it before the weekend.
I've attached a WIP patch of the regression test for this. The idea is to:
- Land the test patch on trunk
- Make another patch with this test for Aurora and basically fix the parsing same way as in attachment 8342903 [details] [diff] [review] and land that on Aurora
I'll pick it up on Monday and see if I make it before the merge.
Assignee | ||
Comment 10•11 years ago
|
||
And after refreshing...
Attachment #8343583 -
Attachment is obsolete: true
Updated•11 years ago
|
Attachment #8343566 -
Flags: review?(longsonr) → review+
Comment 11•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•11 years ago
|
status-firefox25:
--- → unaffected
status-firefox26:
--- → unaffected
status-firefox27:
--- → affected
status-firefox28:
--- → fixed
tracking-firefox27:
--- → ?
Assignee | ||
Comment 12•11 years ago
|
||
Pushed test fix to m-i: https://hg.mozilla.org/integration/mozilla-inbound/rev/0ba0b5224e04
Assignee | ||
Comment 13•11 years ago
|
||
Patch to fix parsing on Aurora branch (v27)
Attachment #8343588 -
Attachment is obsolete: true
Attachment #8344423 -
Flags: review?(longsonr)
Updated•11 years ago
|
Attachment #8344423 -
Flags: review?(longsonr) → review+
Assignee | ||
Comment 14•11 years ago
|
||
Test case for length parsing for trunk
Attachment #8344433 -
Flags: review?(longsonr)
Assignee | ||
Comment 15•11 years ago
|
||
Comment on attachment 8344423 [details] [diff] [review]
Fix parsing of numbers on aurora
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 919319
User impact if declined: SVG content that uses scientific notation for numbers or lengths will not render correctly
Testing completed (on m-c, etc.): Similar patch landed on m-c 2~3 days ago. Includes test case.
Risk to taking this patch (and alternatives if risky): No obvious risk.
String or IDL/UUID changes made by this patch: None
Attachment #8344423 -
Flags: approval-mozilla-aurora?
Comment 16•11 years ago
|
||
Updated•11 years ago
|
Attachment #8344433 -
Flags: review?(longsonr) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #8344433 -
Attachment description: fixLengthParsing → Regression test for length parsing
Assignee | ||
Comment 17•11 years ago
|
||
Pushed length parsing regression test to m-i: https://hg.mozilla.org/integration/mozilla-inbound/rev/031d2c4386da
Comment 18•11 years ago
|
||
Updated•11 years ago
|
Comment 19•11 years ago
|
||
We are probably not going to see too many users impacted by this but I'm going to go ahead and approve the low risk uplift.
Updated•11 years ago
|
Attachment #8344423 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 20•11 years ago
|
||
Comment on attachment 8344423 [details] [diff] [review]
Fix parsing of numbers on aurora
Transferring the previous approval request to beta since it didn't get approved in time for the merge.
Note that I think this will affect much content since the popular SVG scour tool compacts SVG coordinates using this notation.[1]
[1] http://www.codedread.com/scour/ops.php
Attachment #8344423 -
Flags: approval-mozilla-beta?
Updated•11 years ago
|
Attachment #8344423 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 21•11 years ago
|
||
I'm approving this low risk uplift. Thanks!
Assignee | ||
Comment 22•11 years ago
|
||
(In reply to Benjamin Kerensa [:bkerensa] from comment #21)
> I'm approving this low risk uplift. Thanks!
Thank you!
https://hg.mozilla.org/releases/mozilla-beta/rev/6bbfc4a81d06
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•