RESOLVED CONFIGURATION CHANGED 46535
WebKit does not build when PLUGIN_PROXY_FOR_VIDEO is enabled
https://bugs.webkit.org/show_bug.cgi?id=46535
Summary WebKit does not build when PLUGIN_PROXY_FOR_VIDEO is enabled
Joe Mason
Reported 2010-09-24 15:51:50 PDT
Created attachment 68777 [details] build fixes The patches for these three bugs introduced a lot of build errors in code that's wrapped in "if ENABLE(PLUGIN_PROXY_FOR_VIDEO)": https://bugs.webkit.org/show_bug.cgi?id=36681 https://bugs.webkit.org/show_bug.cgi?id=42770 https://bugs.webkit.org/show_bug.cgi?id=45058 The attached patch fixes them. I'm not 100% sure that changing "url = src()" to "url = currentSrc()" is correct, but I don't see anything else obvious to do here.
Attachments
build fixes (5.82 KB, patch)
2010-09-24 15:51 PDT, Joe Mason
eric: review-
updated patch (5.06 KB, patch)
2010-09-24 19:58 PDT, Joe Mason
no flags
build fixes plus crash fix (5.67 KB, patch)
2010-09-24 20:09 PDT, Joe Mason
eric.carlson: review-
Eric Seidel (no email)
Comment 1 2010-09-24 16:01:52 PDT
Comment on attachment 68777 [details] build fixes View in context: https://bugs.webkit.org/attachment.cgi?id=68777&action=review > WebCore/loader/FrameLoader.cpp:3531 > +#if ENABLE(PLUGIN_PROXY_FOR_VIDEO) > + > +void FrameLoader::hideMediaPlayerProxyPlugin(Widget* widget) > +{ > + m_client->hideMediaPlayerProxyPlugin(widget); > +} > + > +void FrameLoader::showMediaPlayerProxyPlugin(Widget* widget) > +{ > + m_client->showMediaPlayerProxyPlugin(widget); > +} > + > +#endif // ENABLE(PLUGIN_PROXY_FOR_VIDEO) These methods do not belong on FrameLoader. Just talk directly to the client.
Adam Barth
Comment 2 2010-09-24 16:05:19 PDT
Comment on attachment 68777 [details] build fixes View in context: https://bugs.webkit.org/attachment.cgi?id=68777&action=review > WebCore/html/HTMLMediaElement.cpp:2235 > SubframeLoader* loader = document()->frame()->loader()->subframeLoader(); What if frame is null? Doesn't that crash?
Joe Mason
Comment 3 2010-09-24 19:58:08 PDT
Created attachment 68803 [details] updated patch Fixed Eric's suggestion, and fixed the "url = currentSrc()" line which didn't actually compile. (Which kind of defeats the purpose)
Joe Mason
Comment 4 2010-09-24 20:01:02 PDT
Comment on attachment 68803 [details] updated patch Oops, didn't notice Adam's comment on the potential crash. I might as well fix that too while I'm here.
Joe Mason
Comment 5 2010-09-24 20:09:10 PDT
Created attachment 68804 [details] build fixes plus crash fix
David Kilzer (:ddkilzer)
Comment 6 2010-10-24 08:54:38 PDT
Eric Carlson should really review this.
Eric Carlson
Comment 7 2010-10-26 11:06:41 PDT
Comment on attachment 68804 [details] build fixes plus crash fix View in context: https://bugs.webkit.org/attachment.cgi?id=68804&action=review > WebCore/html/HTMLMediaElement.cpp:3 > + * Copyright (C) Research In Motion Limited 2010. All rights reserved. I don't know if we have guidelines about this, but my own policy is to only add a new copyright line when I make significant additions or changes to a file. > WebCore/html/HTMLMediaElement.cpp:2182 > - url = src(); > + url = document()->completeURL(m_currentSrc); This is not correct, m_currentSrc may not have been set at this point (it is set a few lines later in this function). Use "getNonEmptyURLAttribute(srcAttr)" instead.
Ahmad Saleem
Comment 8 2023-10-12 13:48:16 PDT
This flag is gone since 2014: https://github.com/WebKit/WebKit/commit/898c9ce2877a71613aea3c172aaac20c3a5da95c & https://github.com/WebKit/WebKit/commit/3b7e09d5b985ce159418e6bac001ea9f62aa17fc I don't think we have anything to fix here. Marking this as 'RESOLVED CONFIGURATION CHANGED'.
Note You need to log in before you can comment on or make changes to this bug.