Closed Bug 274400 Opened 20 years ago Closed 20 years ago

Safari doesn't show lock icons

Categories

(Bugzilla :: Query/Bug List, defect)

PowerPC
All
defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: timeless, Assigned: nb+bz)

References

()

Details

Attachments

(2 files)

Safari 1.2.4 (v125.11) doesn't show lock icons.
justdave claims it works in mac ie 5.2
regression, requesting blocking release and such...
because security bugs are no longer distinguishable on buglists in Safari
Flags: blocking2.20?
Flags: approval2.18?
Are the locks actually in 2.18 or is that a 2.19 thing?
Flags: blocking2.20?
Flags: blocking2.20+
Flags: blocking2.18+
Flags: approval2.18?
Target Milestone: --- → Bugzilla 2.18
NS 4.7 had the same problem. The problem is that old browsers use the html file
as the absolute path to start with instead of the CSS file.

This may work, but I haven't Safari. Please try:

background-image: url("images/padlock.png");
@media all {
background-image: url("../../images/padlock.png");
}

I think Safari won't understand @media all and will use the first path while
modern browser will use the second path.
(In reply to comment #3)

> I think Safari won't understand @media all and will use the first path while
> modern browser will use the second path.

Safari is a modern browser. :)

And the path isn't the issue, I tried straight out changing it to
"images/padlock.png" on http://webtools.mozilla.org/bztest/ and now it doesn't
show up in any of IE, Safari, or Firefox.
(In reply to comment #4)
> And the path isn't the issue, I tried straight out changing it to
> "images/padlock.png" on http://webtools.mozilla.org/bztest/ and now it doesn't
> show up in any of IE, Safari, or Firefox.
> 

IE and Firefox need "../../images/padlock.png", because the path must be
relative to the CSS file. About Safari, I don't know. I only tell you what I did
with NS 4.7.

My syntax in comment 3 was incorrect as background-image: url() must be in
tr.bz_secure td.first-child {...} but the idea was correct.

I cannot tell you more if I don't know what Safari understands about CSS. :(
It's apparently the multi-line classes, like this:

<tr class="bz_foo
	   bz_bar
	   bz_baz">

Stops the CSS from working in Safari.  Whether it's valid HTML/CSS or not I
neither know no care.  It's trivial to tell the template toolkit to drop the
newlines at the ends of these lines.  Here's a patch, tested on 2.18 tip
against Safari and Firefox.
Attachment #168625 - Flags: review?
Attached patch v1 for trunkSplinter Review
Very similar patch for trunk, also tested.
Attachment #168630 - Flags: review?
Comment on attachment 168625 [details] [diff] [review]
v1 for 2.18 branch

As far as I know you can have tags on multiple lines but quoted values on
multiple lines might have problems.

I'm still unhappy that Safari doesn't handle this :-). As far as I know this is
the only portion in the code where we have a class attribute on multiple lines
(or any other quoted value on multiple lines).
Attachment #168625 - Flags: review? → review+
Attachment #168630 - Flags: review? → review+
Assignee: justdave → Nick.Barnes
Flags: approval?
Flags: approval2.18?
Summary: Safari doesn't show lock icons :( → Safari doesn't show lock icons
Whiteboard: patch awaiting approval
Flags: approval?
Flags: approval2.18?
Flags: approval2.18+
Flags: approval+
Checking in template/en/default/list/table.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/list/table.html.tmpl,v 
<--  table.html.tmpl
new revision: 1.21; previous revision: 1.20
done

Checking in template/en/default/list/table.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/list/table.html.tmpl,v 
<--  table.html.tmpl
new revision: 1.16.2.4; previous revision: 1.16.2.3
done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: patch awaiting approval
*** Bug 275416 has been marked as a duplicate of this bug. ***
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: