WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
59322
Web Inspector: CSS is parsed improperly when saved in UTF-8 with a BOM
https://bugs.webkit.org/show_bug.cgi?id=59322
Summary
Web Inspector: CSS is parsed improperly when saved in UTF-8 with a BOM
Alexander Pavlov (apavlov)
Reported
2011-04-25 07:59:26 PDT
A UTF-8 BOM is not handled properly by the CSSParser (and it should never get through to it). Upstreaming
http://code.google.com/p/chromium/issues/detail?id=78703
Attachments
[PATCH] Suggested fix
(5.26 KB, patch)
2011-04-25 08:27 PDT
,
Alexander Pavlov (apavlov)
pfeldman
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexander Pavlov (apavlov)
Comment 1
2011-04-25 08:27:59 PDT
Created
attachment 90917
[details]
[PATCH] Suggested fix
Yury Semikhatsky
Comment 2
2011-04-25 08:34:08 PDT
Comment on
attachment 90917
[details]
[PATCH] Suggested fix View in context:
https://bugs.webkit.org/attachment.cgi?id=90917&action=review
> LayoutTests/inspector/styles/parse-utf8-bom.html:15 > + InspectorTest.dumpSelectedElementStyles(true, false, true);
Can we be sure that the styles content is already loaded at this point?
Alexander Pavlov (apavlov)
Comment 3
2011-04-25 08:41:00 PDT
(In reply to
comment #2
)
> (From update of
attachment 90917
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=90917&action=review
> > > LayoutTests/inspector/styles/parse-utf8-bom.html:15 > > + InspectorTest.dumpSelectedElementStyles(true, false, true); > > Can we be sure that the styles content is already loaded at this point?
Yes, all external stylesheets will have been loaded by the time window.onload fires.
Alexander Pavlov (apavlov)
Comment 4
2011-04-25 08:54:42 PDT
Committed
r84777
: <
http://trac.webkit.org/changeset/84777
>
Pavel Feldman
Comment 5
2011-04-25 09:33:48 PDT
Comment on
attachment 90917
[details]
[PATCH] Suggested fix View in context:
https://bugs.webkit.org/attachment.cgi?id=90917&action=review
> Source/WebCore/inspector/InspectorStyleSheet.cpp:1061 > + success = resourceStyleSheetText(&rawText);
You should instead fetch CachedResource, cast it to the Stylesheet and get decoded data.
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