Closed Bug 347228 Opened 19 years ago Closed 19 years ago

turn off server push when X-Moz header set to "microsummary"

Categories

(Bugzilla :: Query/Bug List, defect)

2.23
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: myk, Assigned: myk)

References

Details

Attachments

(2 files, 2 obsolete files)

buglist.cgi enables server push for browsers that support it (principally Mozilla-based browsers) to display a "please wait" message to the user. But when Firefox sets the X-Moz header to "microsummary", it means the browser's microsummary service is initiating the request, and that service doesn't have any use for the "please wait" message, because it doesn't display anything to the user until after the request has been completed. We should turn off server push when the X-Moz header is set to "microsummary".
Here's the patch that does the deed. Dave, can you review and also apply to b.m.o in the interim so folks can take advantage of Dietrich's bug list microsummary generator?
Assignee: query-and-buglist → myk
Status: NEW → ASSIGNED
Attachment #232043 - Flags: review?(justdave)
In addition to the server push issue, there's also the issue that cookies, particularly the BUGLIST cookie, shouldn't be set for microsummary loads, or else users will see strange behavior when they have a buglist microsummary and are also executing queries manually. Here's a patch that turns off both server push and the setting of cookies for microsummary requests.
Attachment #232043 - Attachment is obsolete: true
Attachment #232810 - Flags: review?(LpSolit)
Attachment #232043 - Flags: review?(justdave)
Here's a microsummary generator that works against the Bugzilla trunk, which has reorganized the bug list HTML. I've set the <pages> section to include any buglist.cgi page on either localhost or landfill, so you should be able to test it with both local and landfill-based trunk installations of Bugzilla.
Comment on attachment 232810 [details] [diff] [review] patch v2: also turns off setting of cookies >+my $agent = ($cgi->http('X-Moz') =~ /\bmicrosummary\b/); This line should be: my $agent = ($cgi->http('X-Moz') && $cgi->http('X-Moz') =~ /\bmicrosummary\b/); else you get: buglist.cgi: Use of uninitialized value in pattern match (m//) at /var/www/html/cvsbugzilla/buglist.cgi line 119. r=LpSolit with this line fixed.
Attachment #232810 - Flags: review?(LpSolit) → review+
It would probably make sense to take it for 2.22 too.
Flags: approval?
Attachment #232810 - Attachment is obsolete: true
Flags: approval?
Flags: approval2.22+
Flags: approval+
Target Milestone: Bugzilla 3.0 → Bugzilla 2.22
myk forgot to mark the bug as fixed: tip: mozilla/webtools/bugzilla/buglist.cgi 1.343 2.22: mozilla/webtools/bugzilla/buglist.cgi 1.325.2.3
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Blocks: 745751
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: