RESOLVED FIXED Bug 24346
Remove Gears workaround in HTMLObjectElement.cpp
https://bugs.webkit.org/show_bug.cgi?id=24346
Summary Remove Gears workaround in HTMLObjectElement.cpp
Jeremy Moskovich
Reported 2009-03-04 02:02:58 PST
This bug is to track removal of the temporary workaround for Gears compatibility in WebKit (see https://bugs.webkit.org/show_bug.cgi?id=24215). Closing this bug should involve removing the workaround in favor of a long term solution. The underlying problem is that current users of gears use a standard gears_init.js that relies on a plugin loading if it's display attribute is set to hidden.
Attachments
Patch (1.53 KB, patch)
2010-11-29 02:55 PST, Jeremy Moskovich
no flags
Eric Seidel (no email)
Comment 1 2010-09-01 02:23:07 PDT
What's the status here? This code is still in the codebase.
Simon Fraser (smfr)
Comment 2 2010-09-01 08:19:44 PDT
The plan is to make plugins not go away when an element has display:none. Not sure if we have a bugzilla bug on that.
Simon Fraser (smfr)
Comment 3 2010-09-01 11:35:47 PDT
Jeremy Moskovich
Comment 4 2010-11-29 02:55:34 PST
Eric Seidel (no email)
Comment 5 2010-11-29 07:25:35 PST
Comment on attachment 75005 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=75005&action=review I think we can safely remove the entire rendererIsNeeded() call. I don't see any parent implementations preventing creation of renderers when a document doesn't have a frame, but I believe that to be the case. Frameless documents won't have a FrameView, thus won't be rendered is my understanding. I think this whole override can be removed unless we have a test which proves otherwise. > WebCore/html/HTMLObjectElement.cpp:289 > if (!frame) > return false; Are we sure this is still needed?
Eric Seidel (no email)
Comment 6 2010-11-29 07:31:20 PST
I'd rather see you commit this by hand and remove the whole function (or post a new patch to do so). I don't believe the !frame check has any utility.
Jeremy Moskovich
Comment 7 2010-11-29 07:35:13 PST
I'm not familiar with the surrounding code, I'm just removing the workaround I put in. I'd prefer for more ambitious cleanups to be done by other people who have better knowledge of the area. Does that sound OK?
WebKit Commit Bot
Comment 8 2010-11-29 07:52:04 PST
Comment on attachment 75005 [details] Patch Clearing flags on attachment: 75005 Committed r72799: <http://trac.webkit.org/changeset/72799>
WebKit Commit Bot
Comment 9 2010-11-29 07:52:11 PST
All reviewed patches have been landed. Closing bug.
Simon Fraser (smfr)
Comment 10 2010-11-29 08:47:22 PST
I'm confused. Bug 27775 is not fixed. Was Gears changed to avoid this issue?
Note You need to log in before you can comment on or make changes to this bug.