Bug 9577 - Fallback for <object> not rendered if plug-in unavailable
Summary: Fallback for <object> not rendered if plug-in unavailable
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://web.nickshanks.com/typography/...
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-25 11:25 PDT by Nicholas Shanks
Modified: 2008-02-01 11:04 PST (History)
3 users (show)

See Also:


Attachments
First attempt (12.57 KB, patch)
2006-07-01 15:13 PDT, Rob Buis
no flags Details | Formatted Diff | Diff
Improved patch (12.02 KB, patch)
2006-07-02 13:09 PDT, Rob Buis
no flags Details | Formatted Diff | Diff
improved patch (12.28 KB, patch)
2006-07-03 06:45 PDT, Rob Buis
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Shanks 2006-06-25 11:25:02 PDT
When plug-ins are disabled, <object> elements don't instead display their fallback HTML code.
See above page for an example
Comment 1 Alexey Proskuryakov 2006-06-25 13:25:05 PDT
Duplicate of bug 3742?
Comment 2 Rob Buis 2006-07-01 15:13:03 PDT
Created attachment 9129 [details]
First attempt

The patch fixes the bug for me. I can do testcase(s) if the code gets okayed in the first place :-)
Cheers,

Rob.
Comment 3 Rob Buis 2006-07-02 13:09:22 PDT
Created attachment 9151 [details]
Improved patch

This patch fixes a problem with the one before, m_hasFallbackContent
has to be determined if plugins are disabled.
Cheers,

Rob.
Comment 4 Rob Buis 2006-07-03 06:45:11 PDT
Created attachment 9166 [details]
improved patch

I am not sure whether the previous patch worked 100%, anyway this one is tested ok
against the testcase and has no regressions. Also it fixes bug 7536, since that one is closely
related. I checked the testcases in FF and IE6 and the patch matches that behaviour.
Let me know if I can start doing the testcases, I think the ones from bug 7536 and this one
are an ok start?
Cheers,

Rob.
Comment 5 Darin Adler 2006-07-03 18:26:54 PDT
Comment on attachment 9166 [details]
improved patch

Does Acid2 still pass?
Comment 6 Rob Buis 2006-07-04 00:55:51 PDT
Hi Darin,

(In reply to comment #5)
> (From update of attachment 9166 [details] [edit])
> Does Acid2 still pass?
In my run-webkit-tests runs acid2 works fine. I wonder btw if it takes into
account plugins enabled/disabled? I tried both but didnt spot a difference.
Cheers,

Rob.
Comment 7 Maciej Stachowiak 2006-07-04 01:15:11 PDT
Comment on attachment 9166 [details]
improved patch

r=me
Comment 8 Rob Buis 2006-07-04 03:21:44 PDT
Hi Maciej, Darin,

(In reply to comment #7)
> (From update of attachment 9166 [details] [edit])
> r=me

Nice!
Any advice on the best road to finish the patch? Is it ok
that it may fix two seperate bugs? Does it need a testcase for
both, a combined testcase or are there existing testcases that test
the two bugs?
Cheers,

Rob.
Comment 9 Darin Adler 2006-07-04 10:50:48 PDT
(In reply to comment #8)
> Any advice on the best road to finish the patch? Is it ok
> that it may fix two seperate bugs? Does it need a testcase for
> both, a combined testcase or are there existing testcases that test
> the two bugs?

The more test cases the better. Ideally the test cases independently demonstrate each thing you noticed that was broken in the old code, anything you realize you might have gotten wrong if you weren't such a careful programmer, and anything you're concerned that later hackers might break in the new code you made.

It doesn't really matter how many separate bug reports there are. What's more important is what observable problems there are -- we want to test each of these in case they get screwed up later.

I don't know the status here about which test cases already exist -- you could make a list of what needs to be tested and then check yourself.
Comment 10 Darin Adler 2006-07-08 09:36:15 PDT
Comment on attachment 9166 [details]
improved patch

Clearing the review flag so this doesn't appear in our patches to be commited list. Please set the review flag again when you have a patch with tests that's ready to review and land.
Comment 11 mitz 2007-09-20 10:39:15 PDT
Is the bug still present in TOT?
Comment 12 David Kilzer (:ddkilzer) 2007-09-20 10:45:15 PDT
See also Bug 15202.

Comment 13 Robert Blaut 2008-02-01 11:04:55 PST
Based on other related and fixed bugs and after checking test url I can suppose that this bug is fixed.