maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Tear 0.3 - Simple WebKit browser, now with Dashboard (https://talk.maemo.org/showthread.php?t=26475)

qwerty12 2009-04-08 11:46

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by munky261 (Post 278283)
I can confirm that, but, do you think it might have something to do with it being a russian page?

It's Hebrew to my knowledge. Pretty different to Cyrillic lettering :)

munky261 2009-04-08 11:47

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
looked like the hammer and sickle in the upper right corner to me...wouldnt even display most of the text.

Bundyo 2009-04-08 12:00

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Matan (Post 278281)
Is this the place to report bugs?

There is a bug in libwebkit - numbers in RTL pages appear reversed (9002 instead of 2009). I believe that it is in webkit since it is in both tear and midori. There is no problem with arora, so it is not a general webkit bug, but only in libwebkit packages from Bundyo.

To see this bug look at page

http://www.shedim.com/bb/

On the top line there are numbers that represent years, but in tear they appear 3002 4002 5002, instead of 2003 2004 2005.

Yes, you are right, will check it.

qwerty12 2009-04-08 12:56

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
http://repository.maemo.org/extras-d...free/w/webkit/ ;)

An old revision now though, I wouldn't use it to install the lib from - rather just if you want to upload something "webkitty" to extras.

fpp 2009-04-08 13:44

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 278258)
Quote:

Originally Posted by daperl (Post 278249)
What did you do? This thing is blazing!

Removed a test handler that I forgot in there.

ROTFL. This made my day, thanks to all involved ! :-)

tso 2009-04-08 13:50

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
heh, when i first read that, i thought about surgeons forgetting clamps or scalpels in their patients...

Cowboydan 2009-04-08 19:36

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Hi there,

I just have two (simple) things to say :

- first is : THANK YOU. Since I installed Tear I'm starting using back again my N800. MicroB was so sloooow I just dropped my N800 and abandonned it. Right now I feel surfing the web on my device is really possible.

- second is : how can I make Tear the default browser ? This question must have been answered previously but I haven't found out the anwser. Any help ?

Keep up the good work !

kornish 2009-04-08 19:47

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
In some pages with frames, Tear shows a download box and asks to download the page, rather than opening it. When I point the browser to the frames individually, it has no problem rendering them.

Is this a bug of some sorts or am I doing something wrong?

Bundyo 2009-04-08 19:54

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
@Cowboydan: You can partially make it default using the Task Navigator plugin mentioned earlier and Dbus-switchboard.

@kornish: Its a bug with some post requests, yes.

Bundyo 2009-04-08 22:48

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
770 version now works properly.

http://bundyo.org/maemo/webkit/libwe...70-5_armel.deb

Sho 2009-04-09 00:37

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Now as is well known, Tear has major problems with black themes such as the wonderful LCARS themes: Input fields using native GTK+ appearance end up having black type on black background, and are as such unusable.

Now, one approach to solving this is to use user CSS to restyle <input> and other tags to be readable again, but that means losing the integration factor. At least, unless putting in a little more effort.

Is anyone interested in creating a user stylesheet that essentially recreates the LCARS themes' GTK+ widgets in Tear on a CSS basis (just without the font color problem)? Using attributes like --webkit-border-radius and the recently-added ability to style scrollbars in a pretty sophisticated manner should make this possible.

jeffklee 2009-04-09 04:37

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by daperl (Post 278249)
What did you do? This thing is blazing!

Wish I had the same experience. Seems slightly faster -- if any -- than the previous version and is still much slower than microb. Ideas?

Bundyo 2009-04-09 04:55

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by jeffklee (Post 278512)
Wish I had the same experience. Seems slightly faster -- if any -- than the previous version and is still much slower than microb. Ideas?

Latest versions for libwebkit and Tear? Also the Minimalistic theme of this forum will be severely slower if -webkit-border-radius is not disabled in the user styleseet.

Bundyo 2009-04-09 05:00

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Sho (Post 278481)
Now as is well known, Tear has major problems with black themes such as the wonderful LCARS themes: Input fields using native GTK+ appearance end up having black type on black background, and are as such unusable.

Now, one approach to solving this is to use user CSS to restyle <input> and other tags to be readable again, but that means losing the integration factor. At least, unless putting in a little more effort.

Is anyone interested in creating a user stylesheet that essentially recreates the LCARS themes' GTK+ widgets in Tear on a CSS basis? Using attributes like --webkit-border-radius and the recently-added ability to style scrollbars in a pretty sophisticated manner should make this possible.

It wasn't well known to me. :) Please file a bug.

I would advise against using border-radius, it is very slow.

jeffklee 2009-04-09 05:31

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 278514)
Latest versions for libwebkit and Tear? Also the Minimalistic theme of this forum will be severely slower if -webkit-border-radius is not disabled in the user styleseet.

libwebkit = 41137-5
tear = 0.3-6
-webkit-border-radius = disabled

Time to uninstall/re-install?

Laughing Man 2009-04-09 05:35

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Hmm, do any bookmarklets work? I tried using the one from Evernote by copying and pasting it into the url box (after highlighting some text) and it just gets stuck trying to load. In Microb this will start the Evernote clipping dialog and add it to my Evernote account

Bundyo 2009-04-09 06:52

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Laughing Man (Post 278521)
Hmm, do any bookmarklets work? I tried using the one from Evernote by copying and pasting it into the url box (after highlighting some text) and it just gets stuck trying to load. In Microb this will start the Evernote clipping dialog and add it to my Evernote account

No. Please add it to http://bugs.bundyo.org/

Quote:

Originally Posted by jeffklee
libwebkit = 41137-5
tear = 0.3-6
-webkit-border-radius = disabled

Time to uninstall/re-install?

Could you please provide more information? Like explaining what exactly is slower and how do you open it?

daperl 2009-04-09 07:05

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by jeffklee (Post 278512)
Wish I had the same experience. Seems slightly faster -- if any -- than the previous version and is still much slower than microb. Ideas?

Yes, disable plugins till needed and beg Bundyo to implement a very simple stylesheet algorithm. Maybe a three-liner like the following:

if hostname.css exists use hostname.css
else if domain.css exists use domain.css
else use default.css

Then fall in love with your tablet all over again.

munky261 2009-04-09 12:05

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
About the bug to which kornish was referring , when I try to attach an image to a post on ITT when I click upload after selecting a file a download dialog pops up and wont let me upload anything. Is this the same bug?

Bundyo 2009-04-09 13:05

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Probably..

Sho 2009-04-09 19:00

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 278518)
It wasn't well known to me. :) Please file a bug.

Sorry, I thought it was well-known because of this existing report in the bug tracker: http://bugs.bundyo.org/viewissue.php?issue_no=7

I thought that alluded to the black-on-black problem when using a dark theme like LCARS. I mean, MicroB essentially uses a "browser-only theme change" too, by virtue of Gecko using its own input field rendering rather than GTK+.

This is also why my above post came out a bit annoyed - "filed for weeks, no movement on it" ;).

Edit: Bug filed: http://bugs.bundyo.org/viewissue.php?issue_no=29

Bundyo 2009-04-09 19:14

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
The previous bug was about dark to light controls, but I wasn't aware of any invisible text.

By the way I'm facing similar problem on the Desktop - I'm using black theme on my openSUSE and my controls in the browser are dark gray with black text. This is due to the browser using specified colors by default. You can switch system colors but it gets worse - many sites are setting the background and not the color of the text and it becomes light gray or white on white... So I suspect your problem is due to the same feature/setting.

Sho 2009-04-09 20:08

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Not sure. Browsers like Firefox have a default font color setting that is used if the website doesn't specify a color. I assume WebKit has a similar default color setting, and I'd like it to be initialized to the system default text color at least for input fields. Basically, if it uses system native widgets to render an unstyled input field, it should also use the system native font color that goes along with it. Makes sense, no? If a site actually applies any formatting to the input field, it can divert from the system default at that point. This is also a smarter approach than using user CSS, which would always override the site author's formatting.

Sho 2009-04-09 20:22

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Getting trigger-happy, I suppose, I also filed two other bugs:

Issue #30 - Ctrl+C to copy and Ctrl+V to paste don't work in the address bar

Issue #31 - Add an option to auto-select address bar contents on widget activation

Bundyo 2009-04-09 20:49

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
@Sho - The first is a duplicate, the second is very hard :) GTKEntry auto-select on focus was ripped off in Maemo, sorry. Also the focus events don't fire on it :( I lost several days to that. There probably is a way, but I don't know it yet so I suspended it for now. Good to have a bug report though :)

About the colors - yes, I think I wrote just that above, though you missed something - when you turn on the system colors, the rest of the site breaks, not the input boxes. :)

Sho 2009-04-09 20:54

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Oops, sorry about the dupe. I used "Find on page" to scan the list for "copy" and "ctrl", but forgot "paste", or I would have found it.

Regarding the auto-select: If MicroB can do it, you should be able to, too, right? Strange that the widget doesn't get a QFocusEvent of type QEvent::FocusIn that you can simply hook QLineEdit::selectAll() up to in an event handler, though, to translate into the jargon used by my QBrain. :D

Bundyo 2009-04-09 20:58

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Let me be more specific:
Here's the Firefox 3 Colors dialog:
http://bundyo.org/maemo/screenshot1.png

Here's what the Google News looks like with system colors enabled:
http://bundyo.org/maemo/screenshot2.png

And that's a big player. My line is this: the problem is in the web sites, not in the browsers. If you set all your colors, your site will be readable despite any settings.

Bundyo 2009-04-09 21:00

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
I can check MicroB's sources to check how they do it. Didn't notice that it was possible there, I seldom write in the URL bar :)

Sho 2009-04-09 21:06

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 278684)
About the colors - yes, I think I wrote just that above, though you missed something - when you turn on the system colors, the rest of the site breaks, not the input boxes. :)

Sorry, this was a later edit to your post, so I'll reply in a separate post now:

I did understand your point that using the system theme colors outright as default background and font colors would break many pages; I'm familiar with the problem, actually. Site authors frequently set a text color but forget to set a background color, so a browser inheriting a black window background color from the system for its document viewport corrupts site layout. I get it.

However, this is a more limited problem. It's about input fields. Somewhere in WebKit(GTK) is code that checks whether an input field is styled or unstyled, and then either uses custom drawing or goes to the system widgets. E.g. if I set "border:1px solid black" on an <input>, WebKit will draw a simple 1px border rectangle instead of a GTK+ widget. In the Google case I cite in the bug report, the website sets up black as default text color in <body>, but applies no other formatting to <input> tags. So WebKit(GTK) probably decides that this is an amount/a type of formatting that can be handled by the system widget and spawns one, asking it to render text in black. I believe that this decision right there is broken, because the widget's *background color* isn't taken from the site (because, well, there usually isn't one set by the author) while the *font color* is, which causes problems like this.

So I ask that it ignores the site's formatting and goes for the system default input field font color in all rendering cases that can satisfied by the system widget. This basically won't really break any pages, because any page that cares to set an unusual (i.e. other than black) font color on <input> will usually also change its background and border properties to a degree causing the GTK+ widget not to be used anyway.

As a KDE developer, I'm more familiar with the KHTML code than with WebKit's, and I expect this is one of the areas where the WebKit codebase diverges the most from KHTML, as KHTML simply directly goes for Qt widgets whereas WebKit has a platform/backend abstraction mechanism. But if the WebKit authors have at all managed to preserve the cleanness and simplicity of the KHTML codebase, the above behavioral change should be fairly simple to pull off.

Bundyo 2009-04-09 21:14

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Yes, probably won't be so hard. I'll check it at some point.

Sho 2009-04-09 21:26

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Thanks :).

Of course the "browser-only theme change" approach from Issue #2 would sort of fix my problem, too, since if the browser used one of the Maemo GTK+ themes with a white input field background, the black-on-black thing goes away. This would also still be more elegant than the user CSS workaround which conflicts with site stylesheets that do apply their own formatting to a degree that causes the GTK+ widget not to be used (e.g. if I force text color for <input> to white via user CSS and then a site comes along that gives their input fields a pink border and a mostly white background image with pink polka dots ;)).

That said, loading up another theme to use in the browser is probably more resource-intensive than changing the behavior as suggested above ... MicroB only get this for "free" because it uses/activates Gecko's old pre-GTK-integration codepath where Gecko gets to draw its very own simple Windows 95-like input field widgets, I guess. The other downside of using a different theme is losing the extra integration provided by using system widgets when possible in the first place, but then the LCARS widgets don't really fit into most websites visually. As in, they're not very neutral-looking.

munky261 2009-04-09 21:35

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Im having a problem on a particular site, when I press the back button it doesnt go back but seems to reload the page. Any ideas?

Bundyo 2009-04-09 21:39

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Probably Ajax and injects history?

munky261 2009-04-09 21:43

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Its a singles site, plentyoffish.com try viewing a users profile and try to hit the back button and see if you think thats what it is when you get a chance.

jeffklee 2009-04-09 22:06

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 278529)

Could you please provide more information? Like explaining what exactly is slower and how do you open it?


Exactly the same symptoms under the same conditions that Tso reported here:

http://www.internettablettalk.com/fo...&postcount=819

(i.e, very slow on un-cached load of page with images; better on re-load)

TrueJournals 2009-04-09 22:47

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by munky261 (Post 278707)
Its a singles site, plentyoffish.com try viewing a users profile and try to hit the back button and see if you think thats what it is when you get a chance.

I haven't looked at the site, so I'm not sure, but my guess is this: When viewing a user profile, the page redirects you to another, so when you hit back, you go back to the redirect page, instead of the page you wanted to go to.

Solutions: In tear, either:
  • Detect "redirect" pages, and remove these from the back history
  • Allow the user to tap and hold the back button to pop up a back history selection dialog
Chrome implements the second point via right-clicking on the back button (they actually allow tap-and-hold, too). Firefox has the little arrow you can click on. Microb implements tap-and-hold.

Regardless, the best you can do for now is try to hit the back button twice, really quick. This is a change that needs to be made in tear, I'll file a bug.

tso 2009-04-09 23:24

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
another duplicate then. i filed a enhancement request for tap-n-hold on back/forward a while back...

TrueJournals 2009-04-10 00:38

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Woops. Sorry about that! It's closed, so in the next version, I assume. Removing link, Bundyo, can you remove the bug?

Bundyo 2009-04-10 05:18

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Yeah, tap_and_hold history is implemented. :)

TobyK 2009-04-10 09:09

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Oh my gawd! I just discovered this today, installed it on my N800, and I am blown away! Hasn't crashed yet, is stable and fast, and improves on MicroB in so many ways that it brings tears to my eyes! I love the ability to turn off js, images and flash - this is a must for mobile browsing. I can use the backspace button on the virtual keyboard without it closing. Kinetic scrolling! Awesome bar type search! Dashboard! Even you tube plays smoother! Thank you for essentially giving me a whole new internet tablet!


All times are GMT. The time now is 20:34.

vBulletin® Version 3.8.8