WebKit Bugzilla
Attachment 350188 Details for
Bug 169276
: Align XMLHttpRequest's overrideMimeType() with the standard
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-169276-20180920142131.patch (text/plain), 1.47 KB, created by
Rob Buis
on 2018-09-20 05:21:33 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Rob Buis
Created:
2018-09-20 05:21:33 PDT
Size:
1.47 KB
patch
obsolete
>Subversion Revision: 236165 >diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog >index 9fcb657142ed7fe2503cc27f7bdae634efdf21e4..af258c2a8aa40c4b7f8078919d6bbfb133bbaea1 100644 >--- a/Source/WebCore/ChangeLog >+++ b/Source/WebCore/ChangeLog >@@ -1,3 +1,13 @@ >+2018-09-20 Rob Buis <rbuis@igalia.com> >+ >+ Align XMLHttpRequest's overrideMimeType() with the standard >+ https://bugs.webkit.org/show_bug.cgi?id=169276 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * xml/XMLHttpRequest.cpp: >+ (WebCore::XMLHttpRequest::overrideMimeType): >+ > 2018-09-19 Philippe Normand <pnormand@igalia.com> > > [GStreamer] Add support for AV1 decoding >diff --git a/Source/WebCore/xml/XMLHttpRequest.cpp b/Source/WebCore/xml/XMLHttpRequest.cpp >index 631ba78b74cc4a8bf3dfa9ba81de98317c4621f9..629f5a487de0a0b16e8dc05f726c6d968e677cd6 100644 >--- a/Source/WebCore/xml/XMLHttpRequest.cpp >+++ b/Source/WebCore/xml/XMLHttpRequest.cpp >@@ -776,12 +776,15 @@ void XMLHttpRequest::dropProtection() > unsetPendingActivity(this); > } > >-ExceptionOr<void> XMLHttpRequest::overrideMimeType(const String& override) >+ExceptionOr<void> XMLHttpRequest::overrideMimeType(const String& mimeType) > { > if (readyState() == LOADING || readyState() == DONE) > return Exception { InvalidStateError }; > >- m_mimeTypeOverride = override; >+ m_mimeTypeOverride = "application/octet-stream"; >+ if (isValidContentType(mimeType)) >+ m_mimeTypeOverride = mimeType; >+ > return { }; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 169276
:
350188
|
350198
|
350199
|
350201
|
350205
|
350210
|
350251
|
350741