WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
147327
Allow lax MIME type parsing for same-origin CSS in quirks mode.
https://bugs.webkit.org/show_bug.cgi?id=147327
Summary
Allow lax MIME type parsing for same-origin CSS in quirks mode.
Chris Dumez
Reported
2015-07-27 11:23:25 PDT
Allow lax MIME type parsing for same-origin CSS in quirks mode. Radar: <
rdar://problem/22010303
>
Attachments
Patch
(41.68 KB, patch)
2015-07-27 15:23 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(59.15 KB, patch)
2015-07-27 16:06 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(58.41 KB, patch)
2015-07-27 16:56 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(58.32 KB, patch)
2015-07-28 10:23 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-07-27 13:22:54 PDT
Known broken sites:
http://www.physioadvisor.com.au/14838650/wrist-tendonitis-physioadvisor.htm
http://wallpaperscraft.com
http://www.spoj.com/ST2015/
Chris Dumez
Comment 2
2015-07-27 15:23:50 PDT
Created
attachment 257600
[details]
Patch
Chris Dumez
Comment 3
2015-07-27 16:06:43 PDT
Created
attachment 257609
[details]
Patch
Chris Dumez
Comment 4
2015-07-27 16:56:02 PDT
Created
attachment 257614
[details]
Patch
alan baradlay
Comment 5
2015-07-28 09:37:00 PDT
Comment on
attachment 257614
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=257614&action=review
> Source/WebCore/css/StyleSheetContents.cpp:309 > + if (isStrictParserMode(m_parserContext.mode)) > + page->console().addMessage(MessageSource::Security, MessageLevel::Error, "Did not parse stylesheet at '" + cachedStyleSheet->url().stringCenterEllipsizedToLength() + "' because its MIME type was invalid and we are in strict mode."); > + else > + page->console().addMessage(MessageSource::Security, MessageLevel::Error, "Did not parse stylesheet at '" + cachedStyleSheet->url().stringCenterEllipsizedToLength() + "' because its MIME type was invalid and it is cross-origin."); > + }
- we were in strict mode? - and it was cross-origin?
Chris Dumez
Comment 6
2015-07-28 10:23:59 PDT
Created
attachment 257654
[details]
Patch
Chris Dumez
Comment 7
2015-07-28 10:25:51 PDT
Comment on
attachment 257654
[details]
Patch Clearing flags on attachment: 257654 Committed
r187489
: <
http://trac.webkit.org/changeset/187489
>
Chris Dumez
Comment 8
2015-07-28 10:25:56 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 9
2015-07-28 11:39:05 PDT
Comment on
attachment 257614
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=257614&action=review
> Source/WebCore/css/StyleSheetContents.h:43 > class StyleRuleBase; > class StyleRuleImport; > +class SecurityOrigin;
Not sorted correctly; Security should come before Style.
Chris Dumez
Comment 10
2015-07-28 12:49:44 PDT
(In reply to
comment #9
)
> Comment on
attachment 257614
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=257614&action=review
> > > Source/WebCore/css/StyleSheetContents.h:43 > > class StyleRuleBase; > > class StyleRuleImport; > > +class SecurityOrigin; > > Not sorted correctly; Security should come before Style.
Follow-up nit fix in <
http://trac.webkit.org/changeset/187503
>, thanks.
Chris Dumez
Comment 11
2015-07-28 14:21:06 PDT
Follow-up test baseline landed in <
http://trac.webkit.org/changeset/187512
>.
Chris Dumez
Comment 12
2015-07-28 15:39:52 PDT
Committed
r187523
: <
http://trac.webkit.org/changeset/187523
>
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