[webkit-changes] [WebKit/WebKit] 3622b4: Regression(255052 at main) Unable to log into Marcus....

Chris Dumez noreply at github.com
Tue Dec 6 07:31:25 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3622b4c14b28cbd60481fe9952e40e4a4f83cfa7
      https://github.com/WebKit/WebKit/commit/3622b4c14b28cbd60481fe9952e40e4a4f83cfa7
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2022-12-06 (Tue, 06 Dec 2022)

  Changed paths:
    M Source/WebCore/page/Navigator.cpp
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/page/Quirks.h

  Log Message:
  -----------
  Regression(255052 at main) Unable to log into Marcus.com on iOS
https://bugs.webkit.org/show_bug.cgi?id=248798
rdar://102959860

Reviewed by Brent Fulgham.

Since 255052 at main, login on marcus.com fails on iOS and complains about being
outside the USA. The same thing happened by we dropped `window.showModalDialog()`.
The site's login seems to rely on which properties are present on the `window`
and `navigator` object and what their values are.

In this case, the log in fails because `navigator.plugins` and
`navigator.mimeTypes` now returns the values hard-coded in the HTML
specification instead of being empty arrays.

This is a site issue so I am adding a quirk for now and contacted evangelism.

* Source/WebCore/page/Navigator.cpp:
(WebCore::Navigator::initializePluginAndMimeTypeArrays):
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::shouldNavigatorPluginsBeEmpty const):
* Source/WebCore/page/Quirks.h:

Canonical link: https://commits.webkit.org/257407@main




More information about the webkit-changes mailing list