-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[iPhone] nba.com: Fullscreen broken when requesting Desktop Website #47204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iPhone] nba.com: Fullscreen broken when requesting Desktop Website #47204
Conversation
EWS run on previous version of this PR (hash 0a40a62) |
0a40a62
to
3ca02c2
Compare
EWS run on previous version of this PR (hash 3ca02c2) |
3ca02c2
to
95e584a
Compare
EWS run on previous version of this PR (hash 95e584a) |
95e584a
to
af05622
Compare
EWS run on previous version of this PR (hash af05622) |
af05622
to
da9c241
Compare
EWS run on previous version of this PR (hash da9c241) |
Safer C++ Build #41607 (da9c241)❌ Found 1 failing file with 1 issue. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
da9c241
to
c1a4173
Compare
EWS run on previous version of this PR (hash c1a4173) |
c1a4173
to
89993c7
Compare
EWS run on previous version of this PR (hash 89993c7) |
89993c7
to
bd1b260
Compare
EWS run on previous version of this PR (hash bd1b260) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we write a bindings test for CustomEnabledBy
?
bd1b260
to
d9fe6a6
Compare
EWS run on previous version of this PR (hash d9fe6a6) |
// Translate the request to enter fullscreen into requesting native fullscreen | ||
// for the largest inner video element. | ||
auto maybeVideoList = element->querySelectorAll("video"_s); | ||
if (maybeVideoList.hasException()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to call completionHandler
here too.
d9fe6a6
to
456b86a
Compare
EWS run on current version of this PR (hash 456b86a) |
rdar://133321190 https://bugs.webkit.org/show_bug.cgi?id=294992 Reviewed by Eric Carlson. Adds a quirk that, because the Destop version of nba.com uses webkitRequestFullscreen() unconditionally, finds the biggest video inside the requesting element and takes that video into fullscreen instead. * Source/WebCore/bindings/js/JSElementCustom.cpp: (WebCore::JSElement::shouldEnableWebkitRequestFullScreen): * Source/WebCore/bindings/scripts/CodeGeneratorJS.pm: (GenerateHeader): (GenerateRuntimeEnableConditionalString): * Source/WebCore/bindings/scripts/IDLAttributes.json: * Source/WebCore/dom/DocumentFullscreen.cpp: (WebCore::DocumentFullscreen::requestFullscreen): * Source/WebCore/dom/Element+Fullscreen.idl: * Source/WebCore/page/Quirks.cpp: (WebCore::Quirks::shouldEnterNativeFullscreenWhenCallingElementRequestFullscreenQuirk const): (WebCore::handleNBAQuirks): (WebCore::Quirks::determineRelevantQuirks): * Source/WebCore/page/Quirks.h: * Source/WebCore/page/QuirksData.h: Canonical link: https://commits.webkit.org/296749@main
456b86a
to
ca89498
Compare
Committed 296749@main (ca89498): https://commits.webkit.org/296749@main Reviewed commits have been landed. Closing PR #47204 and removing active labels. |
ca89498
456b86a