Title: [225468] trunk/Source/WebCore
Revision
225468
Author
[email protected]
Date
2017-12-03 19:34:44 -0800 (Sun, 03 Dec 2017)

Log Message

WebArchiveResourceWebResourceHandler leaks when pasting
https://bugs.webkit.org/show_bug.cgi?id=180339

Reviewed by Joseph Pecoraro.

* editing/cocoa/WebContentReaderCocoa.mm:
(WebCore::attributesForAttributedStringConversion):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (225467 => 225468)


--- trunk/Source/WebCore/ChangeLog	2017-12-04 02:15:09 UTC (rev 225467)
+++ trunk/Source/WebCore/ChangeLog	2017-12-04 03:34:44 UTC (rev 225468)
@@ -1,3 +1,13 @@
+2017-12-03  Alexey Proskuryakov  <[email protected]>
+
+        WebArchiveResourceWebResourceHandler leaks when pasting
+        https://bugs.webkit.org/show_bug.cgi?id=180339
+
+        Reviewed by Joseph Pecoraro.
+
+        * editing/cocoa/WebContentReaderCocoa.mm:
+        (WebCore::attributesForAttributedStringConversion):
+
 2017-12-03  Chris Dumez  <[email protected]>
 
         Support serviceWorker.postMessage() inside service workers

Modified: trunk/Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm (225467 => 225468)


--- trunk/Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm	2017-12-04 02:15:09 UTC (rev 225467)
+++ trunk/Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm	2017-12-04 03:34:44 UTC (rev 225468)
@@ -95,7 +95,7 @@
         @"InterchangeNewline": @YES,
         @"CoalesceTabSpans": @YES,
         @"OutputBaseURL": [(NSURL *)URL::fakeURLWithRelativePart(emptyString()) retain], // The value needs +1 refcount, as NSAttributedString over-releases it.
-        @"WebResourceHandler": [WebArchiveResourceWebResourceHandler new],
+        @"WebResourceHandler": [[WebArchiveResourceWebResourceHandler new] autorelease],
     };
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to