Closed Bug 188712 Opened 23 years ago Closed 23 years ago

Apple's Browser Safari does not support server-push

Categories

(Bugzilla :: Query/Bug List, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: melo, Assigned: melo)

References

Details

(Whiteboard: [fixed in 2.16.5] [fixed in 2.17.3])

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/4.5 (compatible; OmniWeb/4.1.1-v424.6; Mac_PowerPC) Build Identifier: The new browser from Apple, Safari, does not support server-push. Editing the buglist.cgi, searching for multipart-mixed, and adding to the IF statement something like && $ENV{HTTP_USER_AGENT} !~ /Safari/ solves the problem. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Ah, nifty. my $serverpush = exists $ENV{'HTTP_USER_AGENT'} && $ENV{'HTTP_USER_AGENT'} =~ /Mozilla.[3-9]/ && $ENV{'HTTP_USER_AGENT'} !~ /[Cc]ompatible/ && $format->{'extension'} eq "html" && !defined($::FORM{'serverpush'}) || $::FORM{'serverpush'}; so Safari doesn't say "compatible" I take it...
Confirming.... buglist.cgi is definitely broken in Safari. When I click the Search button, I get a file download of "buglist.cgi". Examining the contents of said file shows it contains the entirety of the server transmission, including the part headers.
Status: UNCONFIRMED → NEW
Ever confirmed: true
grr. I'd suggest checking in the accept headers, but we don't list multipart push there...
No, and we shouldn't - it's far too much of a niche feature. Dave: any plans to support server push, or do we need to fix Bugzilla? Gerv
FYI,The user agent safari is using rigth now (latest beta) is:Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/51 (like Gecko) Safari/51No compatible here...
Add's a check for Safari's user-agent to prevent server-push.
I provided the patch in case you want to fix this in bugzilla. I would prefer, of course, that Apple fixes this in Safari.
Comment on attachment 111940 [details] [diff] [review] Do not use server-push with Apple Safari per Dave Hyatt in IRC, this probably will be fixed in Safari, but probably not by 1.0. He also says we should sniff for "WebKit" and not for "Safari" since that way we'll catch anything else using Safari's libraries as well.
Attachment #111940 - Flags: review-
As suggested by David Hyatt, this patch sniff's for WebKit, instead of Safari.
Attachment #111940 - Attachment is obsolete: true
Attachment #112192 - Flags: review?(timeless)
Comment on attachment 112192 [details] [diff] [review] new patch to sniff for WebKit personally i think i'd check $format->{'extension'} eq "html" earlier (first?).
Attachment #112192 - Flags: review?(timeless) → review+
-> patch author
Assignee: endico → melo
Flags: approval+
checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 2.18
*** Bug 191022 has been marked as a duplicate of this bug. ***
*** Bug 192326 has been marked as a duplicate of this bug. ***
Whiteboard: [applied to b.m.o]
*** Bug 226807 has been marked as a duplicate of this bug. ***
nominating for 2.16.5, as this is a usability issue and low-risk.
Whiteboard: [applied to b.m.o] → [wanted for 2.16.5] [fixed in 2.17.3] [applied to b.m.o]
Target Milestone: Bugzilla 2.18 → Bugzilla 2.16
checked in on 2.16 branch (applies without errors, and seems to work on landfill). Checking in buglist.cgi; /cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v <-- buglist.cgi new revision: 1.169.2.11; previous revision: 1.169.2.10 done
Whiteboard: [wanted for 2.16.5] [fixed in 2.17.3] [applied to b.m.o] → [fixed in 2.16.5] [fixed in 2.17.3] [applied to b.m.o]
Whiteboard: [fixed in 2.16.5] [fixed in 2.17.3] [applied to b.m.o] → [fixed in 2.16.5] [fixed in 2.17.3]
I noticed the code for this in buglist.cgi in 3.1.4. Does this bug still apply to modern versions of Safari? We're going on version 4 now, and this bug dates to 1.0 from five years ago.... I set $serverpush to true then tried to load a bug list in Safari 3.1.1, and it came up just fine. However, I have few enough bugs in my install that every search is virtually instant, so I don't know if this bug would even be triggered.
It seems Safari has supported multipart/x-mixed-replace since 2.0.2 in 2005: http://webkit.org/blog/32/webkit-fixes-in-safari-202-mac-os-x-1043/ Bug 441496 filed. Gerv
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: