Package: luakit Version: 2010.08.30-1 Severity: normal Tags: patch Hi!
Since the Luakit user-agent string does not contain any reference to Gecko (and maybe KHTML), the new Flickr website is not at all functional. Clicking on any of the buttons such as "Actions" or "Share This" just displays some moving Flickr logo balls, but doesn't do go anywhere. Similarly, the map on the geotagged photos doesn't "react" by autozooming when the mouse goes over. This is since their Javascript seems sensitive to the user-agent string. By adding a "KHTML (like Gecko)" reference, which shouldn't be too deprecating to Luakit, in my opinion, the problem goes away. A simple patch is attached. As always, feel free to overrule. ;-) Thanks. Kumar -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (101, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages luakit depends on: ii libatk1.0-0 1.30.0-1 The ATK accessibility toolkit ii libc6 2.11.2-5 Embedded GNU C Library: Shared lib ii libcairo2 1.8.10-6 The Cairo 2D vector graphics libra ii libfontconfig1 2.8.0-2.1 generic font configuration library ii libfreetype6 2.4.2-2 FreeType 2 font engine, shared lib ii libglib2.0-0 2.24.2-1 The GLib library of C routines ii libgtk2.0-0 2.20.1-1+b1 The GTK+ graphical user interface ii liblua5.1-0 5.1.4-5 Simple, extensible, embeddable pro ii libpango1.0-0 1.28.1-1 Layout and rendering of internatio ii libsoup2.4-1 2.30.2-1 an HTTP library implementation in ii libwebkit-1.0-2 1.2.4-1+b1 Web content engine library for Gtk luakit recommends no packages. luakit suggests no packages. -- no debconf information -- Hesitating to act because the whole vision might not be achieved, or because others do not yet share it, is an attitude that only hinders progress. -- Mahatma Gandhi
From 934e53250b169bbf69b472e9472891e5a0b4ff2e Mon Sep 17 00:00:00 2001 From: Kumar Appaiah <a.ku...@alumni.iitm.ac.in> Date: Sun, 12 Sep 2010 22:10:29 -0500 Subject: [PATCH] Add a reference to KHTML and Gecko in the user-agent Some websites, such as the new Flickr, seem to use Javascript sensitive to the user-agent, which makes several essential aspects of the website unusable. This patch merely adds a KHTML and Gecko reference to satisfy those websites. --- config/globals.lua | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/config/globals.lua b/config/globals.lua index 3361ff7..57ae25a 100644 --- a/config/globals.lua +++ b/config/globals.lua @@ -15,7 +15,7 @@ local rv, out, err = luakit.spawn_sync("uname -sm") local webkit_version = string.format("WebKitGTK+/%d.%d.%d", luakit.webkit_major_version, luakit.webkit_minor_version, luakit.webkit_micro_version) local luakit_version = string.format("luakit/%s", luakit.version) -globals.useragent = string.format("Mozilla/5.0 (%s) %s %s", string.match(out, "([^\n]*)"), webkit_version, luakit_version) +globals.useragent = string.format("Mozilla/5.0 (%s) %s (KHTML, like Gecko) %s", string.match(out, "([^\n]*)"), webkit_version, luakit_version) -- Search common locations for a ca file which is used for ssl connection validation. local ca_files = {luakit.data_dir .. "/ca-certificates.crt", -- 1.7.1
signature.asc
Description: Digital signature