[Bugzilla] Server-Sent Events problem under Bugzilla 4.4 / 3.0.3 with IE11

下午4:47

[Problem]

In bugzilla 3.0.3, when you using IE11 to search bugs, it will pop-up  message as follow:
WARNING: YOUR BROWSER DOESN'T SUPPORT THIS SERVER-PUSH TECHNOLOGY. --------- =_aaaaaaaaaa0 Content-Type: text/html

...................

In Bugzilla 4.4, when you using IE 11 to search bugs, it sent the results back to IE11, which offered to save it to a file named buglist.cgi


[Root Cause]
Bugzilla use HTML 4.01 Transitional, not HTML 5, and so doesn't support Server-Sent Events which is part of HTML5. And IE11 gets multipart/x-mixed-replace since it not follow older versions of IE.

[Solution]
Since IE 11 's string contains 'like Gecko', so  add "Tridents" to detect IE.

Modified file buglist.cgi 
Bugzilla 3.0.3 / Bugzilla 4.4
-          && $ENV{'HTTP_USER_AGENT'} !~ /WebKit/
+          && $ENV{'HTTP_USER_AGENT'} !~ /(?:WebKit|Trident)/


[Reference]
Bugzilla 
Server-sent Events
IE 11 capability


You Might Also Like

0 意見