[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Review Request: KProtocolManager patch to allow componenets to
From:       "Dawit Alemayehu" <adawit () kde ! org>
Date:       2010-04-13 23:46:21
Message-ID: 20100413234621.5938.85745 () localhost
[Download RAW message or body]


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/3584/
-----------------------------------------------------------

(Updated 2010-04-13 23:46:21.706194)


Review request for kdelibs.


Changes
-------

* Reverted the one liner modifier changes so that the previous default of only \
                sending OS information is preserved.
* The default user-agent lookup code now checks the desktop file of the "Application" \
configured to handle the service first and failing that checks the default component. \
This way, if a browser other than Konqueror (e.g. reKonq) is configured as the \
default, the correct user-agent string will be sent.


Summary
-------

The attached patch changes something that has been hard-coded into KProtocolManager \
from day one, most likely by myself ;) ; the default user agent string. As a result \
of this hard coding whenever one enters a url in Konqueror's location bar, the \
incorrect user-agent string will always be sent. That happens because Konqueror will \
always attempt to determine the mime-type of the request, specially for the http \
protocol (see KParts::BrowserRun::scanFile), in order to embed/use the appropriate \
component. Unfortunately this causes issues like the one described in bug # 231932.

Anyhow, the patch simply attempts to look for a property named \
"X-KDE-UA-DEFAULT-STRING" in the preferred service handler's .desktop file for the \
"text/html" mime-type and use that if it is available or default back to the old \
hard-coded default if not. This string can contain several keywords that will be \
replaced dynamically. See the patch for details. I have also updated what information \
gets sent along with the default string to match the other major browsers. Before \
only the OS type was sent. With this patch OS type, platform, machine type and \
language information will be sent by default. Of course, this only affects what is \
set by default and can be changed back to the previous settings from the \
configuration dialog.


This addresses bug 231932.
    https://bugs.kde.org/show_bug.cgi?id=231932


Diffs (updated)
-----

  trunk/KDE/kdelibs/kio/kio/kprotocolmanager.cpp 1113359 

Diff: http://reviewboard.kde.org/r/3584/diff


Testing
-------


Thanks,

Dawit


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic