Skip to content

Commit 9a9de95

Browse files
committed
Bugfix: crasher on 10.5 due to webkit and the <button> element
Something in webkit doesn't like the button html element nor the -webkit-appearance: button css tag. Ends up crashing in one of various WebCore::ThemeMac::paint functions. This would crash for anyone on 10.5 with the Gist it button enabled (which it is by default so that means anyone who ran it for the first time). Changing the button back to the way it was before SHA:b557d6b5c6e675216d340d20833f39d0096b7ccc
1 parent 3933744 commit 9a9de95

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

html/views/history/history.css

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,21 @@ body {
2626
float: left;
2727
}
2828

29-
#gist {
30-
-webkit-appearance: button;
31-
font: 13px bold 'Lucida Grande';
32-
width: 80px;
33-
height: 23px;
34-
margin-right: 5px;
29+
a.servicebutton {
30+
display: block;
31+
width: 80px;
32+
padding: 2px;
33+
margin-bottom: 4px;
34+
35+
border: 1px solid #3465a4;
36+
background-color: #cce5ff;
37+
color: #204a87;
38+
39+
font-size: 65%;
40+
text-decoration: none;
41+
text-align: center;
42+
43+
-webkit-border-radius: 2px;
3544
}
3645

3746
.gravatar {

html/views/history/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
<body style="padding: 0px; border: 0px">
1515
<div id="rightcontent">
1616
<div id="buttons">
17-
<button id="gist" onClick="confirm_gist();return false" style="display:none">Gist&nbsp;it</button>
17+
<a class="servicebutton" id="gist" onclick="confirm_gist();return false" href="#">
18+
Gist it
19+
</a>
1820
</div>
1921
</div>
2022
<table id="commit_header">

0 commit comments

Comments
 (0)