[Webkit-unassigned] [Bug 213690] New: REGRESSION (r262776): Leak of NSMutableURLRequest in -[WebCoreResourceHandleAsOperationQueueDelegate connection:willSendRequest:redirectResponse:]

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 27 20:40:11 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=213690

            Bug ID: 213690
           Summary: REGRESSION (r262776): Leak of NSMutableURLRequest in
                    -[WebCoreResourceHandleAsOperationQueueDelegate
                    connection:willSendRequest:redirectResponse:]
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: achristensen at apple.com, rwlbuis at gmail.com
        Depends on: 211999, 213059

Leak of NSMutableURLRequest in -[WebCoreResourceHandleAsOperationQueueDelegate connection:willSendRequest:redirectResponse:]:

+        if (equalLettersIgnoringASCIICase(m_handle->firstRequest().httpMethod(), "post") && !m_handle->firstRequest().hasHTTPHeaderField(HTTPHeaderName::ContentType)) {
+            NSMutableURLRequest *modifiedRequest = [newRequest mutableCopy];
+            [modifiedRequest setValue:nil forHTTPHeaderField:@"Content-Type"];
+            return modifiedRequest; // LEAK: This variable needs to be autoreleased.
+        }

Regressed with:

    Bug 211999: XMLHTTPRequest.send should not send Content-Type headers when Blob has no type
    <https://bugs.webkit.org/show_bug.cgi?id=211999>
    <https://trac.webkit.org/r262776>


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=211999
[Bug 211999] XMLHTTPRequest.send should not send Content-Type headers when Blob has no type
https://bugs.webkit.org/show_bug.cgi?id=213059
[Bug 213059] REGRESSION (r262776): Flaky crash under -[WebCoreResourceHandleAsOperationQueueDelegate connection:willSendRequest:redirectResponse:]
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200628/1f0379a2/attachment-0001.htm>


More information about the webkit-unassigned mailing list