WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
41339
unicode-range property only with a descending range causes a crash
https://bugs.webkit.org/show_bug.cgi?id=41339
Summary
unicode-range property only with a descending range causes a crash
Yuzo Fujishima
Reported
2010-06-29 03:01:10 PDT
http://dev.w3.org/csswg/css3-fonts/#unicode-range-desc
says: ... interval ranges that descend (e.g. U+400-32f) are invalid and omitted rather than treated as parse errors ... Without any valid ranges, the descriptor is omitted. It follows that in the following example unicode-range must be omitted: @font-face { font-family: 'myfont'; src: local('Arial'); unicode-range: U+062-60; } But as of
r62096
, opening a file containing the above rule results in a crash.
Attachments
Testcase -- causes a crash
(461 bytes, text/html)
2010-06-29 03:01 PDT
,
Yuzo Fujishima
no flags
Details
Fix for Bug 41339 - unicode-range property only with a descending range causes
(4.34 KB, patch)
2010-06-29 04:42 PDT
,
Yuzo Fujishima
no flags
Details
Formatted Diff
Diff
Addressed review comment. Test by JavaScript.
(4.53 KB, patch)
2010-06-29 23:00 PDT
,
Yuzo Fujishima
mitz: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yuzo Fujishima
Comment 1
2010-06-29 03:01:55 PDT
Created
attachment 59998
[details]
Testcase -- causes a crash
Yuzo Fujishima
Comment 2
2010-06-29 04:42:31 PDT
Created
attachment 60007
[details]
Fix for
Bug 41339
- unicode-range property only with a descending range causes
mitz
Comment 3
2010-06-29 08:19:51 PDT
Comment on
attachment 60007
[details]
Fix for
Bug 41339
- unicode-range property only with a descending range causes Can this be tested with a text-only test using getComputedStyle or the CSSOM?
Yuzo Fujishima
Comment 4
2010-06-29 23:00:25 PDT
Created
attachment 60086
[details]
Addressed review comment. Test by JavaScript.
Yuzo Fujishima
Comment 5
2010-06-29 23:05:29 PDT
Hi, mitz, Thank you for the review. (In reply to
comment #3
)
> (From update of
attachment 60007
[details]
) > Can this be tested with a text-only test using getComputedStyle or the CSSOM?
I tried but I couldn't find a way to retrieve the actual font name. (I can get 'myfont' but not 'Arial' in the above example). Instead, I used a monospace font and compare the width of two spans. I believe it is good enough for this test.
mitz
Comment 6
2010-06-29 23:11:08 PDT
(In reply to
comment #5
)
> Hi, mitz, > > Thank you for the review. > > (In reply to
comment #3
) > > (From update of
attachment 60007
[details]
[details]) > > Can this be tested with a text-only test using getComputedStyle or the CSSOM? > > I tried but I couldn't find a way to retrieve the actual font name. > (I can get 'myfont' but not 'Arial' in the above example).
What I meant was to test the value of documents.styleSheets[0].rules[0].style.unicodeRange, but it looks like there’s insufficient support for unicodeRange values in WebKit’s CSSOM implementation.
Yuzo Fujishima
Comment 7
2010-06-29 23:47:43 PDT
Committed
r62161
: <
http://trac.webkit.org/changeset/62161
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug