Bug 139379

Summary: Fix the parsing of advanced :lang() after r176902
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: New BugsAssignee: Benjamin Poulain <benjamin>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, diorahman, kling, mark.lam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch kling: review+

Benjamin Poulain
Reported 2014-12-07 17:51:44 PST
Fix the parsing of advanced :lang() after r176902
Attachments
Patch (23.05 KB, patch)
2014-12-07 20:19 PST, Benjamin Poulain
kling: review+
Benjamin Poulain
Comment 1 2014-12-07 20:19:39 PST
Mark Lam
Comment 2 2014-12-07 22:59:13 PST
Comment on attachment 242782 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=242782&action=review > Source/WebCore/css/CSSParser.cpp:11489 > + } If you want this ‘}’, then you should move the one at line 11503 before the #endif.
Benjamin Poulain
Comment 3 2014-12-08 00:22:02 PST
Comment on attachment 242782 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=242782&action=review >> Source/WebCore/css/CSSParser.cpp:11489 >> + } > > If you want this ‘}’, then you should move the one at line 11503 before the #endif. Oh crap, my bad. I'll fix that before landing.
Andreas Kling
Comment 4 2014-12-08 14:53:29 PST
Comment on attachment 242782 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=242782&action=review r=me > Source/WebCore/ChangeLog:18 > + The problem is that CSSParserString does not keep the source string alive. > + Consequently, the list of language range was accumulating pointers to dead > + StringImpls. Whoops!
Benjamin Poulain
Comment 5 2014-12-08 15:54:27 PST
Note You need to log in before you can comment on or make changes to this bug.