[M108 Migration][VD] Disable show DateTimeDialog for datetime input type 06/289306/2
authorliuxd <xd123.liu@samsung.com>
Mon, 6 Mar 2023 06:21:59 +0000 (14:21 +0800)
committerBot Blink <blinkbot@samsung.com>
Fri, 10 Mar 2023 06:32:11 +0000 (06:32 +0000)
Issue: click the below input type, will show black screen
<input type="date">
<input type="datetime-local">
<input type="month">
<input type="time">
<input type="week">

Solution: disable show DateTimeDialog for avoid show black screen

Root Cause:
Click the above datetime input type, will show DateTimeDialog.
But the DateTimeDialog don't support well when CreateAndShowDateLayout,
will show black screen.

And we don't support show DateTimeDialog for datetime input type before.
So follow as previous, don't support show DateTimeDialog.

refer:
https://review.tizen.org/gerrit/#/c/282731

Change-Id: Ia585744b046782061a96b490c10c8ac8718c0593
Signed-off-by: liuxd <xd123.liu@samsung.com>
tizen_src/chromium_impl/content/browser/date_time_chooser_efl.cc

index 372ca2b..3cb6e55 100644 (file)
@@ -35,10 +35,13 @@ void DateTimeChooserEfl::OpenDateTimeDialog(
   open_date_time_response_callback_ = std::move(callback);
 
   WebContentsImplEfl* wcie = static_cast<WebContentsImplEfl*>(web_contents_);
+// Don't support show DateTimeDialog for date/time input type as previos for TV.
+#if !BUILDFLAG(IS_TIZEN_TV)
   if (wcie->GetEflDelegate())
     wcie->GetEflDelegate()->OpenDateTimeDialog(value->dialog_type,
                                                value->dialog_value, this);
   else
+#endif
     std::move(open_date_time_response_callback_).Run(false, "");
 }