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)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.22
People
(Reporter: myk, Assigned: myk)
References
Details
Attachments
(2 files, 2 obsolete files)
|
964 bytes,
text/xml
|
Details | |
|
1.81 KB,
patch
|
Details | Diff | Splinter Review |
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".
| Assignee | ||
Comment 1•19 years ago
|
||
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)
| Assignee | ||
Comment 2•19 years ago
|
||
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)
| Assignee | ||
Comment 3•19 years ago
|
||
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 4•19 years ago
|
||
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+
| Assignee | ||
Comment 6•19 years ago
|
||
Attachment #232810 -
Attachment is obsolete: true
| Assignee | ||
Updated•19 years ago
|
Flags: approval?
Flags: approval2.22+
Flags: approval+
Updated•19 years ago
|
Target Milestone: Bugzilla 3.0 → Bugzilla 2.22
Comment 7•19 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•