Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(942)

Issue 122743002: MIME type predicates and case-insensitive matching. (Closed)

Created:
6 years, 11 months ago by sof
Modified:
6 years, 11 months ago
CC:
blink-reviews, caseq+blink_chromium.org, alph+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, sof, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, adamk+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

MIME type predicates and case-insensitive matching. The registered type portion of a MIME type must be compared case-insensitively for equality. Make all Blink-side predicates (e.g., is*MIMEType()) do such equality testing. If the equality testing delegates to external platform predicates, then ensure that the MIME type is first translated to lower case. (This is due to the net/base/ MIME type predicates assuming lower-cased input.) The downstream benefit of this is that we can let go of various explicit lower case conversions before invoking these predicates. R=jochen BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164453

Patch Set 1 #

Patch Set 2 : Disambiguate char/UChar comparison #

Total comments: 3

Patch Set 3 : Simplify check for empty +xml subtype #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -36 lines) Patch
M Source/core/dom/DOMImplementation.h View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/dom/DOMImplementation.cpp View 1 2 1 chunk +5 lines, -8 lines 0 comments Download
M Source/core/dom/DOMImplementationTest.cpp View 1 2 2 chunks +34 lines, -0 lines 0 comments Download
M Source/core/dom/ScriptLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/NetworkResourcesData.cpp View 1 chunk +9 lines, -12 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/platform/MIMETypeRegistry.cpp View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sof
At your leisure (or when returning from such :) ), please take a look. Just ...
6 years, 11 months ago (2014-01-02 08:26:17 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/122743002/diff/40001/Source/core/dom/DOMImplementation.cpp File Source/core/dom/DOMImplementation.cpp (right): https://codereview.chromium.org/122743002/diff/40001/Source/core/dom/DOMImplementation.cpp#newcode238 Source/core/dom/DOMImplementation.cpp:238: return static_cast<UChar>(asciiUpper) == (u & static_cast<UChar>(~0x20)); nit. use toASCIIUpper() ...
6 years, 11 months ago (2014-01-03 11:31:09 UTC) #2
sof
https://codereview.chromium.org/122743002/diff/40001/Source/core/dom/DOMImplementation.cpp File Source/core/dom/DOMImplementation.cpp (right): https://codereview.chromium.org/122743002/diff/40001/Source/core/dom/DOMImplementation.cpp#newcode258 Source/core/dom/DOMImplementation.cpp:258: || !equalToUpperCaseASCIIIgnoringCase('X', mimeType[length - 3]) On 2014/01/03 11:31:09, jochen ...
6 years, 11 months ago (2014-01-03 13:51:02 UTC) #3
jochen (gone - plz use gerrit)
lgtm
6 years, 11 months ago (2014-01-03 14:02:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/122743002/160001
6 years, 11 months ago (2014-01-03 15:53:02 UTC) #5
commit-bot: I haz the power
6 years, 11 months ago (2014-01-03 18:07:02 UTC) #6
Message was sent while issue was closed.
Change committed as 164453

Powered by Google App Engine
This is Rietveld 408576698