[Content Extensions] Test regular expression parse failures.
authorenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Mar 2015 22:39:55 +0000 (22:39 +0000)
committerenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Mar 2015 22:39:55 +0000 (22:39 +0000)
https://bugs.webkit.org/show_bug.cgi?id=142872

Patch by Alex Christensen <achristensen@webkit.org> on 2015-03-19
Reviewed by Benjamin Poulain.

* contentextensions/URLFilterParser.cpp:
(WebCore::ContentExtensions::GraphBuilder::finalize):
(WebCore::ContentExtensions::GraphBuilder::quantifyAtom):
(WebCore::ContentExtensions::URLFilterParser::addPattern):
(WebCore::ContentExtensions::URLFilterParser::statusString):
* contentextensions/URLFilterParser.h:
Changed failures that can never happen to assertions.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@181763 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/page/EventHandler.cpp

index abd8a04670f6c7f0e60cb7bc7067fefc1eba29ca..49802087a4f11d1063ed94deb949171d39a07be5 100644 (file)
         * contentextensions/URLFilterParser.h:
         Changed failures that can never happen to assertions.
 
+2015-03-19  Enrica Casucci  <enrica@apple.com>
+
+        Release build fix after https://trac.webkit.org/r181760.
+
+        Unreviewed.
+
+        * page/EventHandler.cpp:
+        (WebCore::EventHandler::handleDrag):
+
 2015-03-19  Enrica Casucci  <enrica@apple.com>
 
         <attachment> should put URLs on the pasteboard so that Finder can accept drops.
index 1b767ddd0e898e907e65bccf70cfb0db6da82bef..fd01a40b5dae5493df5296906e62dd82c54e8006 100644 (file)
@@ -3433,8 +3433,10 @@ bool EventHandler::handleDrag(const MouseEventWithHitTestResults& event, CheckDr
         ASSERT((dragState().type & DragSourceActionSelection));
         ASSERT((dragState().type & ~DragSourceActionSelection) == DragSourceActionDHTML
             || (dragState().type & ~DragSourceActionSelection) == DragSourceActionImage
+#ifndef NDEBUG
 #if ENABLE(ATTACHMENT_ELEMENT)
             || (dragState().type & ~DragSourceActionSelection) == DragSourceActionAttachment
+#endif
 #endif
             || (dragState().type & ~DragSourceActionSelection) == DragSourceActionLink);
         dragState().type = DragSourceActionSelection;