Public bug reported:

Binary package hint: konqueror-kde4

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"
====================================
konqueror-kde4:
  Installed: 4:4.0.1-0ubuntu2
  Candidate: 4:4.0.1-0ubuntu2
  Version table:
 *** 4:4.0.1-0ubuntu2 0
        500 http://nz.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status
====================================

Problem:
when switching to "Webkit View Mode", no user agent is sent (however it is sent 
on subsequent requests, I believe)... This is bad because some rare people will 
switch rendering engines to escape weird bugs - and if the site kicks them out 
when they do it, they're probably not going to like Konqueror very much ;)

TO REPRODUCE:
1: host the following php script:
<?php
if (!isset($_SERVER['HTTP_USER_AGENT']))
echo 'your browser is too cool to see this page';
else
echo
'welcome to my great page';
?>
2: Start Konqueror (kde4)
3: Visit the script you uploaded earlier
expected AND actual result thus far: script returns "welcome to my great page"
4: From the "view" menu, select "view mode" and confirm that it says the 
default "Webkit"
5: Select from that (sub) menu "KHTML"
expected AND actual result thus far: script returns "welcome to my great page"
6: From the "view" menu, select "view mode" and confirm that it says the 
default "KHTML"
7: Select from that (sub) menu "Webkit"
expected result: as above, "welcome to my great page"
actual result: "your browser is too cool" - no user agent was specified in the 
header

8+: refreshing the page, or changing back to khtml, will both produce
the intended result. Apparently it is only not sent at the very moment
you switch to webkit.

you can confirm with phpinfo(), wireshark, whatever.
I tested against Apache 1.3.3.7 and php5, and I couldn't get the user agent 
string from php in these conditions.

It shouldn't normally be a problem but remember some bad websites will
boot you for using an unrecognized browser - using server-side detects -
and my bank is one of those sites.

Thanks in advance guys, I know it's a little thing, sorry I can't patch
it myself, I hope it's valid and I'm not wasting your time.

** Affects: kdebase-kde4 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: http konqueror webkit

-- 
[konqueror-kde4-http][trivial] user agent not sent in headers when switching to 
webkit
https://bugs.launchpad.net/bugs/198273
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to