RESOLVED FIXED Bug 234013
Add a new WKWebpagePreferences SPI for modal container observation policies
https://bugs.webkit.org/show_bug.cgi?id=234013
Summary Add a new WKWebpagePreferences SPI for modal container observation policies
Wenson Hsieh
Reported 2021-12-08 09:56:19 PST
.
Attachments
Patch (13.82 KB, patch)
2021-12-08 11:09 PST, Wenson Hsieh
no flags
Patch (14.62 KB, patch)
2021-12-09 18:08 PST, Wenson Hsieh
no flags
Radar WebKit Bug Importer
Comment 1 2021-12-08 10:52:00 PST
Wenson Hsieh
Comment 2 2021-12-08 11:09:28 PST
Brent Fulgham
Comment 3 2021-12-09 15:54:00 PST
Comment on attachment 446390 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446390&action=review r=me > Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm:466 > + _websitePolicies->setModalContainerObservationPolicy(WebCore::ModalContainerObservationPolicy::Disabled); It really seems silly to require these adaptor methods for these equivalent enums, but I realize that's just the way this stuff is designed.
Wenson Hsieh
Comment 4 2021-12-09 16:15:00 PST
Comment on attachment 446390 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446390&action=review Thanks for the review! >> Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm:466 >> + _websitePolicies->setModalContainerObservationPolicy(WebCore::ModalContainerObservationPolicy::Disabled); > > It really seems silly to require these adaptor methods for these equivalent enums, but I realize that's just the way this stuff is designed. Indeed. That said, it does seem like it would be cleaner to separate the adapter method away from the call to `setModalContainerObservationPolicy` by adding a helper method like `WebKit::coreModalContainerObservationPolicy()`, similar to the mouse event policy one above. I'll do this before landing!
Wenson Hsieh
Comment 5 2021-12-09 18:08:07 PST
EWS
Comment 6 2021-12-09 21:06:38 PST
Committed r286831 (245064@main): <https://commits.webkit.org/245064@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 446646 [details].
Note You need to log in before you can comment on or make changes to this bug.