Skip to content
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

Remove WebGLLoadPolicy code #5792

Merged

Conversation

grorg
Copy link
Contributor

@grorg grorg commented Oct 26, 2022

82d2d64

Remove WebGLLoadPolicy code
https://bugs.webkit.org/show_bug.cgi?id=247039
rdar://101569935

Reviewed by Kimmo Kinnunen.

We don't use the WebGLLoadPolicy mechanism any more. Remove all the code.

* LayoutTests/fast/canvas/webgl/useWhilePending-expected.txt: Removed.
* LayoutTests/fast/canvas/webgl/useWhilePending.html: Removed.
* Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:
    Lots of removal for isContextLostOrPending().
* Source/WebCore/html/canvas/WebGLRenderingContext.cpp:
* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::isContextLostOrPending): Deleted.
* Source/WebCore/html/canvas/WebGLRenderingContextBase.h:
* Source/WebCore/loader/FrameLoaderClient.h:
* Source/WebCore/loader/FrameLoaderTypes.h:
* Source/WebCore/page/Settings.yaml:
* Source/WebKit/Scripts/webkit/messages.py:
(headers_for_type):
* Source/WebKit/UIProcess/API/APINavigationClient.h:
(API::NavigationClient::webGLLoadPolicy const): Deleted.
(API::NavigationClient::resolveWebGLLoadPolicy const): Deleted.
* Source/WebKit/UIProcess/API/C/WKAPICast.h:
(WebKit::toWebGLLoadPolicy): Deleted.
* Source/WebKit/UIProcess/API/C/WKPage.cpp:
(WKPageSetPageLoaderClient):
* Source/WebKit/UIProcess/API/C/WKPageLoaderClient.h:
* Source/WebKit/UIProcess/API/Cocoa/WKNavigationDelegatePrivate.h:
* Source/WebKit/UIProcess/Cocoa/NavigationState.h:
* Source/WebKit/UIProcess/Cocoa/NavigationState.mm:
(WebKit::NavigationState::setNavigationDelegate):
(WebKit::toWebCoreWebGLLoadPolicy): Deleted.
(WebKit::NavigationState::NavigationClient::webGLLoadPolicy const): Deleted.
(WebKit::NavigationState::NavigationClient::resolveWebGLLoadPolicy const): Deleted.
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::webGLPolicyForURL): Deleted.
(WebKit::WebPageProxy::resolveWebGLPolicyForURL): Deleted.
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebPageProxy.messages.in:
* Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::webGLPolicyForURL const): Deleted.
(WebKit::WebFrameLoaderClient::resolveWebGLPolicyForURL const): Deleted.
* Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::webGLPolicyForURL): Deleted.
(WebKit::WebPage::resolveWebGLPolicyForURL): Deleted.
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm:
(WebKit::WebPage::webGLPolicyForURL): Deleted.
(WebKit::WebPage::resolveWebGLPolicyForURL): Deleted.
* Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.h:
* Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:
(shouldBlockWebGL): Deleted.
(WebFrameLoaderClient::webGLPolicyForURL const): Deleted.
(WebFrameLoaderClient::resolveWebGLPolicyForURL const): Deleted.
* Tools/TestWebKitAPI/SourcesCocoa.txt:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WebGLPolicy.mm: Removed.

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

48ae15c

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe   πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim   πŸ›  mac-debug   πŸ›  gtk   πŸ›  wincairo
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2 βœ… πŸ›  mac-AS-debug   πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ webkitpy   πŸ§ͺ api-ios   πŸ§ͺ api-mac   πŸ§ͺ api-gtk
βœ… πŸ›  tv   πŸ§ͺ mac-wk1
  πŸ›  tv-sim   πŸ§ͺ mac-wk2
  πŸ›  πŸ§ͺ merge βœ… πŸ›  watch   πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  πŸ§ͺ unsafe-merge βœ… πŸ›  watch-sim   πŸ§ͺ mac-wk2-stress

@grorg grorg self-assigned this Oct 26, 2022
@grorg grorg added WebGL Bugs in WebKit’s implementation of the WebGL standard. WebKit Local Build labels Oct 26, 2022
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Oct 26, 2022
Copy link
Contributor

@mattwoodrow mattwoodrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like most of the commit is missing, there's lots of files in the message that aren't actually changed here.

@grorg
Copy link
Contributor Author

grorg commented Oct 26, 2022

Very weird! Not sure why the git webkit script detected all those changes and then didn't commit them!

@grorg grorg removed the merging-blocked Applied to prevent a change from being merged label Oct 26, 2022
@grorg grorg force-pushed the eng/Remove-WebGLLoadPolicy-code branch from d8867c7 to 1a8b75b Compare October 26, 2022 09:06
@grorg grorg force-pushed the eng/Remove-WebGLLoadPolicy-code branch from 1a8b75b to 226e110 Compare October 26, 2022 17:24
@@ -510,30 +509,14 @@ std::unique_ptr<WebGLRenderingContextBase> WebGLRenderingContextBase::create(Can

// The FrameLoaderClient might block creation of a new WebGL context despite the page settings; in
// particular, if WebGL contexts were lost one or more times via the GL_ARB_robustness extension.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment can probably go too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I will remove it.

Copy link
Contributor

@kkinnunen-apple kkinnunen-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no! I have had dreams about removing this. What do I do now?

@grorg
Copy link
Contributor Author

grorg commented Oct 27, 2022

This can't land until the code in Safari that uses it is removed.

@grorg grorg force-pushed the eng/Remove-WebGLLoadPolicy-code branch from 226e110 to e68005f Compare October 27, 2022 23:35
@grorg grorg added the merge-queue Applied to send a pull request to merge-queue label Oct 27, 2022
@webkit-commit-queue
Copy link
Collaborator

Commit message contains (OOPS!), blocking PR #5792

@webkit-commit-queue webkit-commit-queue added merging-blocked Applied to prevent a change from being merged and removed merge-queue Applied to send a pull request to merge-queue labels Oct 27, 2022
@grorg
Copy link
Contributor Author

grorg commented Oct 28, 2022

Where is the OOPS? The commit message doesn't have it.

@grorg
Copy link
Contributor Author

grorg commented Oct 28, 2022

Oh. It's there, just after the changelog.

@grorg grorg force-pushed the eng/Remove-WebGLLoadPolicy-code branch from e68005f to 48ae15c Compare October 28, 2022 20:48
@grorg grorg added merge-queue Applied to send a pull request to merge-queue and removed merging-blocked Applied to prevent a change from being merged labels Oct 28, 2022
@grorg grorg added unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing and removed merge-queue Applied to send a pull request to merge-queue labels Oct 28, 2022
@grorg
Copy link
Contributor Author

grorg commented Oct 28, 2022

Going unsafe. I checked the test failure locally.

https://bugs.webkit.org/show_bug.cgi?id=247039
rdar://101569935

Reviewed by Kimmo Kinnunen.

We don't use the WebGLLoadPolicy mechanism any more. Remove all the code.

* LayoutTests/fast/canvas/webgl/useWhilePending-expected.txt: Removed.
* LayoutTests/fast/canvas/webgl/useWhilePending.html: Removed.
* Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:
    Lots of removal for isContextLostOrPending().
* Source/WebCore/html/canvas/WebGLRenderingContext.cpp:
* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::isContextLostOrPending): Deleted.
* Source/WebCore/html/canvas/WebGLRenderingContextBase.h:
* Source/WebCore/loader/FrameLoaderClient.h:
* Source/WebCore/loader/FrameLoaderTypes.h:
* Source/WebCore/page/Settings.yaml:
* Source/WebKit/Scripts/webkit/messages.py:
(headers_for_type):
* Source/WebKit/UIProcess/API/APINavigationClient.h:
(API::NavigationClient::webGLLoadPolicy const): Deleted.
(API::NavigationClient::resolveWebGLLoadPolicy const): Deleted.
* Source/WebKit/UIProcess/API/C/WKAPICast.h:
(WebKit::toWebGLLoadPolicy): Deleted.
* Source/WebKit/UIProcess/API/C/WKPage.cpp:
(WKPageSetPageLoaderClient):
* Source/WebKit/UIProcess/API/C/WKPageLoaderClient.h:
* Source/WebKit/UIProcess/API/Cocoa/WKNavigationDelegatePrivate.h:
* Source/WebKit/UIProcess/Cocoa/NavigationState.h:
* Source/WebKit/UIProcess/Cocoa/NavigationState.mm:
(WebKit::NavigationState::setNavigationDelegate):
(WebKit::toWebCoreWebGLLoadPolicy): Deleted.
(WebKit::NavigationState::NavigationClient::webGLLoadPolicy const): Deleted.
(WebKit::NavigationState::NavigationClient::resolveWebGLLoadPolicy const): Deleted.
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::webGLPolicyForURL): Deleted.
(WebKit::WebPageProxy::resolveWebGLPolicyForURL): Deleted.
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebPageProxy.messages.in:
* Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::webGLPolicyForURL const): Deleted.
(WebKit::WebFrameLoaderClient::resolveWebGLPolicyForURL const): Deleted.
* Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::webGLPolicyForURL): Deleted.
(WebKit::WebPage::resolveWebGLPolicyForURL): Deleted.
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm:
(WebKit::WebPage::webGLPolicyForURL): Deleted.
(WebKit::WebPage::resolveWebGLPolicyForURL): Deleted.
* Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.h:
* Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm:
(shouldBlockWebGL): Deleted.
(WebFrameLoaderClient::webGLPolicyForURL const): Deleted.
(WebFrameLoaderClient::resolveWebGLPolicyForURL const): Deleted.
* Tools/TestWebKitAPI/SourcesCocoa.txt:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WebGLPolicy.mm: Removed.

Canonical link: https://commits.webkit.org/256114@main
@webkit-commit-queue
Copy link
Collaborator

Committed 256114@main (82d2d64): https://commits.webkit.org/256114@main

Reviewed commits have been landed. Closing PR #5792 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 82d2d64 into WebKit:main Oct 28, 2022
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Oct 28, 2022
@grorg grorg deleted the eng/Remove-WebGLLoadPolicy-code branch January 11, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebGL Bugs in WebKit’s implementation of the WebGL standard.
Projects
None yet
6 participants