Bug 77724

Summary: Improve http-equiv content-language parsing
Product: WebKit Reporter: Matt Falkenhagen <falken>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: REOPENED ---    
Severity: Normal CC: ap, darin, falken, jshin, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 21417, 93571    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
tests for dynamic changes and comma-separated list none

Description Matt Falkenhagen 2012-02-03 01:44:40 PST
Spun off of bug 76701. We should figure out what behavior we want for content-language edge cases (whitespace, missing content, etc.) Also, how to handle dynamic changes to meta.
Comment 1 Darin Adler 2012-02-03 11:13:01 PST
To me it seems there are two parts to this:

1) Adding much more extensive test coverage.

2) Fixing any bugs we find.

We should do (1) first and land the tests ASAP.
Comment 2 Matt Falkenhagen 2012-02-08 02:30:28 PST
Created attachment 126035 [details]
Patch
Comment 3 Matt Falkenhagen 2012-02-08 02:53:17 PST
I uploaded a patch with some tests. I tried to choose reasonable expectations and documented what the spec says and what I've observed other browsers do. The current implementation is failing some of these expectations, which I'm not sure is acceptable or not when adding new tests. On the other hand it didn't quite feel correct to make expectations based only on what the current implementation does.

I haven't yet looked into dynamic changes to meta, as Darin suggested in bug 76701. I'll try that next. Also  a test for a comma-separated list of languages.
Comment 4 Alexey Proskuryakov 2012-02-08 08:59:32 PST
Comment on attachment 126035 [details]
Patch

Looks reasonable.
Comment 5 WebKit Review Bot 2012-02-08 17:42:02 PST
Comment on attachment 126035 [details]
Patch

Clearing flags on attachment: 126035

Committed r107159: <http://trac.webkit.org/changeset/107159>
Comment 6 WebKit Review Bot 2012-02-08 17:42:07 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Matt Falkenhagen 2012-02-08 21:47:25 PST
Thanks for the review. I'll upload the next patch with tests for dynamic changes and comma-separated list.
Comment 8 Matt Falkenhagen 2012-02-08 22:00:37 PST
Created attachment 126238 [details]
tests for dynamic changes and comma-separated list
Comment 9 Alexey Proskuryakov 2012-02-08 23:11:14 PST
Comment on attachment 126238 [details]
tests for dynamic changes and comma-separated list

Actually, I don't think that this kind of tests belong to fast/text. It's pure DOM/CSS.

cq+ because some tests have already been landed, but please consider moving them.
Comment 10 WebKit Review Bot 2012-02-09 01:50:23 PST
Comment on attachment 126238 [details]
tests for dynamic changes and comma-separated list

Clearing flags on attachment: 126238

Committed r107200: <http://trac.webkit.org/changeset/107200>
Comment 11 WebKit Review Bot 2012-02-09 01:50:28 PST
All reviewed patches have been landed.  Closing bug.
Comment 12 Matt Falkenhagen 2012-02-09 18:03:36 PST
Thanks for the review. Reopening since just tests have landed.
Comment 13 Darin Adler 2012-02-09 18:38:15 PST
Next time please use multiple bug reports. There’s no good reason to use one report for multiple patches when we can file others and have them blocking the original.
Comment 14 Matt Falkenhagen 2017-07-18 17:13:47 PDT
As far as I recall by re-reading this thread, the remaining task here is part 2) from comment 1:
"2) Fixing any bugs we find."

I think it may be acceptable to just close this bug and open a new one if bugs are indeed found based on what was landed in comment 5 and comment 10.