WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188172
[WinCairo] <select> elements do not popup options
https://bugs.webkit.org/show_bug.cgi?id=188172
Summary
[WinCairo] <select> elements do not popup options
Stephan Szabo
Reported
2018-07-30 10:23:08 PDT
On WinCairo (non-legacy) <select> elements do not pop up the list of options. Selecting the element multiple times in a row can cause assertion failures because the menu is not up.
Attachments
Patch
(53.91 KB, patch)
2018-07-30 10:49 PDT
,
Stephan Szabo
no flags
Details
Formatted Diff
Diff
Patch
(53.41 KB, patch)
2018-07-31 13:30 PDT
,
Stephan Szabo
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Stephan Szabo
Comment 1
2018-07-30 10:49:35 PDT
Created
attachment 346069
[details]
Patch
Fujii Hironori
Comment 2
2018-07-30 19:29:48 PDT
https://github.com/WebKit/webkit/commit/43768040539a01ec2d52954f17fdb39763724623
This is the revision the original implementaion has been removed.
Fujii Hironori
Comment 3
2018-07-30 19:32:39 PDT
Bug 48701
– Windows Popup widget support (<select>) The original bug ticket.
Fujii Hironori
Comment 4
2018-07-30 19:40:29 PDT
Comment on
attachment 346069
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=346069&action=review
> Source/WebKit/ChangeLog:21 > + removed wincairo implementation plus some fixes/api changes
Not "wincairo implementation" IIRC, but Windows implementation or AppleWin implementation.
> Source/WebKit/ChangeLog:65 > + removed wincairo implementation plus some fixes/api changes
Ditto.
> Source/WebKit/Shared/PlatformPopupMenuData.cpp:40 > + , m_itemHeight(0)
WebKit prefers member initializer.
> Source/WebKit/Shared/PlatformPopupMenuData.h:58 > + int m_itemHeight;
I think WebKit prefers member initializer. int m_clientPaddingLeft { 0 }; int m_clientPaddingRight { 0 }; int m_clientInsetLeft { 0 }; int m_clientInsetRight { 0 }; int m_popupWidth { 0 }; int m_itemHeight { 0 };
> Source/WebKit/UIProcess/win/WebPopupMenuProxyWin.cpp:36 > +#include <WebCore/BString.h>
Is BString used?
> Source/WebKit/UIProcess/win/WebPopupMenuProxyWin.cpp:47 > +using namespace std;
Don't "using namespace std;"
https://webkit.org/code-style-guidelines/#using-in-cpp
> Source/WebKit/UIProcess/win/WebPopupMenuProxyWin.cpp:221 > + shouldAnimate = FALSE;
You added this line. But, It seems for me that this line not needed. Does SystemParametersInfo change shouldAnimate if it fails?
> Source/WebKit/UIProcess/win/WebPopupMenuProxyWin.h:38 > +typedef struct HBITMAP__* HBITMAP;
<windows.h> is included in WebCorePrefix.h. I think you can remove these typedefs.
Stephan Szabo
Comment 5
2018-07-31 09:51:23 PDT
Comment on
attachment 346069
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=346069&action=review
>> Source/WebKit/UIProcess/win/WebPopupMenuProxyWin.cpp:221 >> + shouldAnimate = FALSE; > > You added this line. But, It seems for me that this line not needed. Does SystemParametersInfo change shouldAnimate if it fails?
This was added in the similar place in the legacy path after the non-legacy code was removed. "[Win] Resolve various static analyzer warnings in WebCore."
https://github.sie.sony.com/WebCore/neko/commit/ca06693684d7a9bf69d7db2deb1c21ca823d6384#diff-d88e6bcdaacad433c28da98715f946d3
Stephan Szabo
Comment 6
2018-07-31 09:52:37 PDT
Sorry, public ref is:
https://github.com/WebKit/webkit/commit/ca06693684d7a9bf69d7db2deb1c21ca823d6384#diff-d88e6bcdaacad433c28da98715f946d3
Stephan Szabo
Comment 7
2018-07-31 13:30:48 PDT
Created
attachment 346198
[details]
Patch
WebKit Commit Bot
Comment 8
2018-07-31 18:40:47 PDT
Comment on
attachment 346198
[details]
Patch Clearing flags on attachment: 346198 Committed
r234442
: <
https://trac.webkit.org/changeset/234442
>
WebKit Commit Bot
Comment 9
2018-07-31 18:40:48 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 10
2018-08-01 20:24:25 PDT
<
rdar://problem/42840235
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug