<rdar://problem/5663888> Cannot type into a JavaScript prompt created from...
authorsfalken@apple.com <sfalken@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Jan 2008 00:43:37 +0000 (00:43 +0000)
committersfalken@apple.com <sfalken@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Jan 2008 00:43:37 +0000 (00:43 +0000)
        Allow nested timers from javascript prompts to allow for WebView-based edit fields.

        Reviewed by Darin.

        * WebChromeClient.cpp:
        (WebChromeClient::runJavaScriptPrompt):

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

WebKit/win/ChangeLog
WebKit/win/WebChromeClient.cpp

index f383c306d8ddcf775973b282b4e294e11b0f1242..b9e8a12299eea0558b8fe78c7b68791c21cd368d 100644 (file)
@@ -1,3 +1,14 @@
+2008-01-15  Steve Falkenburg  <sfalken@apple.com>
+
+        <rdar://problem/5663888> Cannot type into a JavaScript prompt created from a timer
+        
+        Allow nested timers from javascript prompts to allow for WebView-based edit fields.
+        
+        Reviewed by Darin.
+
+        * WebChromeClient.cpp:
+        (WebChromeClient::runJavaScriptPrompt):
+
 2008-01-14  Steve Falkenburg  <sfalken@apple.com>
 
         Use shared vsprops for most vcproj properties.
index a44d26485c79143c5b44ffbde31d2c19d3cf7127..c263744c729f4b339202e9ccf6c6c57004f45322 100644 (file)
@@ -349,6 +349,8 @@ bool WebChromeClient::runJavaScriptPrompt(Frame*, const String& message, const S
     if (FAILED(m_webView->uiDelegate(&ui)))
         return false;
 
+    TimerBase::fireTimersInNestedEventLoop();
+
     BSTR resultBSTR = 0;
     if (FAILED(ui->runJavaScriptTextInputPanelWithPrompt(m_webView, BString(message), BString(defaultValue), &resultBSTR)))
         return false;