RESOLVED FIXED 69694
PluginDocumentParser uses incorrect syntax for background color
https://bugs.webkit.org/show_bug.cgi?id=69694
Summary PluginDocumentParser uses incorrect syntax for background color
Nico Weber
Reported 2011-10-07 21:58:35 PDT
PluginDocument: bgcolor doesn't support rgb() syntax
Attachments
Patch (1.38 KB, patch)
2011-10-07 22:00 PDT, Nico Weber
no flags
Patch (2.38 KB, patch)
2011-10-08 12:50 PDT, Nico Weber
no flags
Patch (3.10 KB, patch)
2011-10-08 12:52 PDT, Nico Weber
no flags
Patch (6.31 KB, patch)
2011-10-09 12:11 PDT, Nico Weber
no flags
Patch for landing (5.88 KB, patch)
2011-10-09 13:04 PDT, Nico Weber
no flags
Patch for landing (6.79 KB, patch)
2011-10-10 15:10 PDT, Nico Weber
no flags
Patch for landing (6.75 KB, patch)
2011-10-10 15:18 PDT, Nico Weber
no flags
Patch for landing (6.73 KB, patch)
2011-10-10 15:25 PDT, Nico Weber
no flags
Nico Weber
Comment 1 2011-10-07 22:00:03 PDT
Nico Weber
Comment 2 2011-10-07 22:01:52 PDT
Andreas Kling
Comment 3 2011-10-08 07:12:04 PDT
Comment on attachment 110256 [details] Patch Looks sane, but needs a test.
Nico Weber
Comment 4 2011-10-08 09:45:54 PDT
The reason why this is happening now is because of http://trac.webkit.org/changeset/90139/trunk . With that, "rgb(38,38,38)" is converted to "0000380380380" -> "0000380380380" -> "00003 80380 38000" -> "#038038", which is the background green that's now visible for plugins.
Nico Weber
Comment 5 2011-10-08 12:50:54 PDT
Nico Weber
Comment 6 2011-10-08 12:52:22 PDT
Nico Weber
Comment 7 2011-10-08 12:52:49 PDT
Comment on attachment 110276 [details] Patch expected files still missing, i'll add them soon
Nico Weber
Comment 8 2011-10-09 12:11:12 PDT
Nico Weber
Comment 9 2011-10-09 12:13:30 PDT
Nico Weber
Comment 10 2011-10-09 13:04:12 PDT
Created attachment 110308 [details] Patch for landing
WebKit Review Bot
Comment 11 2011-10-09 14:41:57 PDT
Comment on attachment 110308 [details] Patch for landing Rejecting attachment 110308 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: SS media/video-playing-and-pause.html = MISSING PASS Regressions: Unexpected text diff mismatch : (1) plugins/iframe-plugin-bgcolor.html = TEXT Regressions: Unexpected image mismatch : (5) fast/text/atsui-multiple-renderers.html = IMAGE fast/text/international/danda-space.html = IMAGE fast/text/international/thai-baht-space.html = IMAGE fast/text/international/thai-line-breaks.html = IMAGE platform/chromium-linux/fast/text/international/complex-joining-using-gpos.html = IMAGE Full output: http://queues.webkit.org/results/10015598
Nico Weber
Comment 12 2011-10-09 16:09:49 PDT
Comment on attachment 110308 [details] Patch for landing can't repro that locally. trying again.
WebKit Review Bot
Comment 13 2011-10-09 17:13:17 PDT
Comment on attachment 110308 [details] Patch for landing Rejecting attachment 110308 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: SS media/video-playing-and-pause.html = MISSING PASS Regressions: Unexpected text diff mismatch : (1) plugins/iframe-plugin-bgcolor.html = TEXT Regressions: Unexpected image mismatch : (5) fast/text/atsui-multiple-renderers.html = IMAGE fast/text/international/danda-space.html = IMAGE fast/text/international/thai-baht-space.html = IMAGE fast/text/international/thai-line-breaks.html = IMAGE platform/chromium-linux/fast/text/international/complex-joining-using-gpos.html = IMAGE Full output: http://queues.webkit.org/results/10009823
Alexey Proskuryakov
Comment 14 2011-10-09 23:04:22 PDT
Bug title and description just say that "bgcolor doesn't support rgb() syntax", which doesn't seem to be what's fixed here. Would "PluginDocumentParser uses incorrect syntax for background color" correctly describe the bug?
Nico Weber
Comment 15 2011-10-10 15:10:43 PDT
Created attachment 110410 [details] Patch for landing
Nico Weber
Comment 16 2011-10-10 15:11:59 PDT
The document is 1px higher on linux for some reason, but the pixel test succeeds anyway. Trying with a platform-specific txt expectations file; I opened issue 69791 for getting win/linux baselines. ap: Thanks, that's way better, done.
WebKit Review Bot
Comment 17 2011-10-10 15:14:29 PDT
Comment on attachment 110410 [details] Patch for landing Rejecting attachment 110410 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: Hunk #1 FAILED at 3838. 1 out of 1 hunk FAILED -- saving rejects to file LayoutTests/platform/chromium/test_expectations.txt.rej patching file LayoutTests/platform/mac/plugins/iframe-plugin-bgcolor-expected.txt patching file LayoutTests/plugins/iframe-plugin-bgcolor.html patching file Source/WebCore/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file Source/WebCore/html/PluginDocument.cpp Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force']" exit_code: 1 Full output: http://queues.webkit.org/results/10027059
Nico Weber
Comment 18 2011-10-10 15:18:56 PDT
Created attachment 110416 [details] Patch for landing
WebKit Review Bot
Comment 19 2011-10-10 15:21:06 PDT
Comment on attachment 110416 [details] Patch for landing Rejecting attachment 110416 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: Hunk #1 FAILED at 3758. 1 out of 1 hunk FAILED -- saving rejects to file LayoutTests/platform/chromium/test_expectations.txt.rej patching file LayoutTests/platform/mac/plugins/iframe-plugin-bgcolor-expected.txt patching file LayoutTests/plugins/iframe-plugin-bgcolor.html patching file Source/WebCore/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file Source/WebCore/html/PluginDocument.cpp Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force']" exit_code: 1 Full output: http://queues.webkit.org/results/10030034
Nico Weber
Comment 20 2011-10-10 15:25:10 PDT
Created attachment 110419 [details] Patch for landing
WebKit Review Bot
Comment 21 2011-10-10 16:31:23 PDT
Comment on attachment 110419 [details] Patch for landing Clearing flags on attachment: 110419 Committed r97103: <http://trac.webkit.org/changeset/97103>
WebKit Review Bot
Comment 22 2011-10-10 16:31:28 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.