Bug 39232 - WebKit/gtk/resources/error.html font-size error
Summary: WebKit/gtk/resources/error.html font-size error
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-17 13:17 PDT by Landry Breuil
Modified: 2012-03-16 14:20 PDT (History)
3 users (show)

See Also:


Attachments
Screenshot showing the error (26.14 KB, image/png)
2010-05-17 13:17 PDT, Landry Breuil
no flags Details
Screenshot showing the error (63.03 KB, image/png)
2010-05-17 13:18 PDT, Landry Breuil
no flags Details
proposed fix (316 bytes, patch)
2010-05-17 13:19 PDT, Landry Breuil
no flags Details | Formatted Diff | Diff
Screenshot showing the fix (26.14 KB, image/png)
2010-05-17 13:20 PDT, Landry Breuil
no flags Details
Double % so it doesnt get filtered out in error.html (1.10 KB, patch)
2012-03-14 13:21 PDT, Landry Breuil
pnormand: review-
Details | Formatted Diff | Diff
Double % so it doesnt get filtered out in error.html (1.16 KB, patch)
2012-03-15 12:33 PDT, Landry Breuil
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Landry Breuil 2010-05-17 13:17:34 PDT
Created attachment 56260 [details]
Screenshot showing the error

error.html is apparently passed through a filter expanding %X constructs, so the embedded css is outputted wrong for font-size. 120% becomes 120, 80% becomes 80, and the error message is huge.
Apparently only affects epiphany to my knowledge, as other browsers seem to use their own 404 handling.
Comment 1 Landry Breuil 2010-05-17 13:18:24 PDT
Created attachment 56262 [details]
Screenshot showing the error

Oops, this shot is actually the one showing the error.
Comment 2 Landry Breuil 2010-05-17 13:19:56 PDT
Created attachment 56264 [details]
proposed fix

Lets' double the % so that font size gets rendered correctly.
Comment 3 Landry Breuil 2010-05-17 13:20:30 PDT
Created attachment 56265 [details]
Screenshot showing the fix
Comment 4 Landry Breuil 2012-03-14 13:21:39 PDT
Created attachment 131909 [details]
Double % so it doesnt get filtered out in error.html

Let's retry.
Comment 5 Philippe Normand 2012-03-15 10:53:42 PDT
Comment on attachment 131909 [details]
Double % so it doesnt get filtered out in error.html

Thanks! Do you want the commit-queue to land the patch?
Comment 6 Philippe Normand 2012-03-15 11:14:20 PDT
Comment on attachment 131909 [details]
Double % so it doesnt get filtered out in error.html

View in context: https://bugs.webkit.org/attachment.cgi?id=131909&action=review

> WebKit/gtk/ChangeLog:5
> +        Fix font-size in the 404 error page. Apparently the % is filtered out,
> +        so 120% becomes 120 and the error message is huge. Experienced in epiphany.
> +        https://bugs.webkit.org/show_bug.cgi?id=39232

This should be 2 lines:

bug title
bug link

The prepare-ChangeLog script can help with the entry generation if needed.
Comment 7 Philippe Normand 2012-03-15 11:15:21 PDT
(In reply to comment #6)
> (From update of attachment 131909 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=131909&action=review
> 
> > WebKit/gtk/ChangeLog:5
> > +        Fix font-size in the 404 error page. Apparently the % is filtered out,
> > +        so 120% becomes 120 and the error message is huge. Experienced in epiphany.
> > +        https://bugs.webkit.org/show_bug.cgi?id=39232
> 
> This should be 2 lines:
> 
> bug title
> bug link
> 
> The prepare-ChangeLog script can help with the entry generation if needed.

And the fix description goes after the Reviewed by line :)
Comment 8 Landry Breuil 2012-03-15 12:33:19 PDT
Created attachment 132103 [details]
Double % so it doesnt get filtered out in error.html

Here you are... *sigh*
Comment 9 Martin Robinson 2012-03-15 14:19:51 PDT
Comment on attachment 132103 [details]
Double % so it doesnt get filtered out in error.html

Thank you! Sorry it took so long to review this patch.
Comment 10 WebKit Review Bot 2012-03-16 01:12:40 PDT
Comment on attachment 132103 [details]
Double % so it doesnt get filtered out in error.html

Rejecting attachment 132103 [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:
viewer', u'Martin Rob..." exit_code: 1 cwd: /mnt/git/webkit-commit-queue/

Parsed 2 diffs from patch file(s).
patching file WebKit/gtk/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file WebKit/gtk/resources/error.html
Hunk #1 FAILED at 21.
1 out of 1 hunk FAILED -- saving rejects to file WebKit/gtk/resources/error.html.rej

Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Martin Rob..." exit_code: 1 cwd: /mnt/git/webkit-commit-queue/

Full output: http://queues.webkit.org/results/11967024
Comment 11 Martin Robinson 2012-03-16 09:41:01 PDT
Committed r111014: <http://trac.webkit.org/changeset/111014>
Comment 12 Martin Robinson 2012-03-16 10:04:23 PDT
I'm not sure what's up with your patch. The file paths seems relative to the Source directory. I fixed it up and landed it, but in the future using Tools/Scripts/webkit-patch upload will take care of this for you. Thanks for your contribution!
Comment 13 Landry Breuil 2012-03-16 14:20:02 PDT
(In reply to comment #12)
> I'm not sure what's up with your patch. The file paths seems relative to the Source directory. I fixed it up and landed it, but in the future using Tools/Scripts/webkit-patch upload will take care of this for you. Thanks for your contribution!

Well... it's a vcs, i used a vcs tool, named svn diff :) You guys use so many wrapper scripts (prepare-Changelog, now webkit-patch...), it makes the entry bar rather high for contribution... oh well, thanks for commiting it, i'll know it for the other patches i have to report :)