WebDriver: crash in Session::computeElementLayout when called without a current brows...
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Nov 2017 16:55:39 +0000 (16:55 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Nov 2017 16:55:39 +0000 (16:55 +0000)
commit32ce84dd86bcdfee60e1a93d35fb2abcf5bf37be
treec178dd3812ce8366256baf276d9b1992f6b7aea5
parentb4b94bcfc2479be8b82ea0c9b001feb63ad348b1
WebDriver: crash in Session::computeElementLayout when called without a current browsing context
https://bugs.webkit.org/show_bug.cgi?id=179917

Reviewed by Darin Adler.

In the case of computeElementLayout message, the frameHandle parameter is not optional, but we still need to
provide a valid value (empty string means the default frame) when m_currentBrowsingContext is std::nullopt. The
same applies to selectOptionElement.

* Session.cpp:
(WebDriver::Session::computeElementLayout):
(WebDriver::Session::selectOptionElement):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225082 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebDriver/ChangeLog
Source/WebDriver/Session.cpp