Unreviewed, fix -Wreturn-type warning
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Jan 2019 05:09:34 +0000 (05:09 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Jan 2019 05:09:34 +0000 (05:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=193333
<rdar://problem/45649489>

* UIProcess/Automation/WebAutomationSession.cpp:
(WebKit::toProtocol):

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp

index 47d2fd1..5537af3 100644 (file)
@@ -1,3 +1,12 @@
+2019-01-20  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        Unreviewed, fix -Wreturn-type warning
+        https://bugs.webkit.org/show_bug.cgi?id=193333
+        <rdar://problem/45649489>
+
+        * UIProcess/Automation/WebAutomationSession.cpp:
+        (WebKit::toProtocol):
+
 2019-01-20  chris fleizach  <cfleizach@apple.com>
 
         AX: Support returning relative frames for accessibility
index 8995dc6..80547e6 100644 (file)
@@ -306,6 +306,8 @@ static Inspector::Protocol::Automation::BrowsingContextPresentation toProtocol(A
     case API::AutomationSessionClient::BrowsingContextPresentation::Window:
         return Inspector::Protocol::Automation::BrowsingContextPresentation::Window;
     }
+
+    RELEASE_ASSERT_NOT_REACHED();
 }
 
 void WebAutomationSession::createBrowsingContext(const String* optionalPresentationHint, Ref<CreateBrowsingContextCallback>&& callback)