| Summary: | Allow lax MIME type parsing for same-origin CSS in quirks mode. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||||
| Component: | CSS | Assignee: | Chris Dumez <cdumez> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | ap, benjamin, ddkilzer, joepeck, kling, koivisto, simon.fraser | ||||||||||
| Priority: | P1 | Keywords: | BlinkMergeCandidate | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| URL: | https://src.chromium.org/viewvc/blink?revision=196678&view=revision | ||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 141501 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Chris Dumez
2015-07-27 11:23:25 PDT
Known broken sites: http://www.physioadvisor.com.au/14838650/wrist-tendonitis-physioadvisor.htm http://wallpaperscraft.com http://www.spoj.com/ST2015/ Created attachment 257600 [details]
Patch
Created attachment 257609 [details]
Patch
Created attachment 257614 [details]
Patch
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? Created attachment 257654 [details]
Patch
Comment on attachment 257654 [details] Patch Clearing flags on attachment: 257654 Committed r187489: <http://trac.webkit.org/changeset/187489> All reviewed patches have been landed. Closing bug. 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. (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. Follow-up test baseline landed in <http://trac.webkit.org/changeset/187512>. Committed r187523: <http://trac.webkit.org/changeset/187523> |