Commit Graph

49449 Commits

Author SHA1 Message Date
Adrien Destugues
d417133ed2 Fix cookies with far expiration date.
Some websites set cookies expiring in the (not so) far future, after year 2038.
So, using time_t to store the cookie expiration date won't do. Use the
BDateTime class instead.

This makes goodsearch.com login work again (#10460).
2014-01-23 17:22:46 +01:00
Adrien Destugues
281727261d urlRequest: interrupt syscalls using a signal
Sometimes an HTTP request would get stuck in a call to connect(). While
our read() and write() implementations are interrupted if you close()
the socket, our connect() isn't. It would nonetheless abort the
connection process, and connect would stay blocked for quite a long
time.

When navigating away from a page, WebKit closes all pending connections,
and in our network backend this also means freeing the request object.
But, the destructor can't be called until the thread has stopped
running, to ensure proper cleanup.

Avoid the lockup in connect by sending a signal (SIGUSR1) to the thread
we want to unlock. This interrupts the syscall, and the thread exits
immediately.
2014-01-23 16:01:39 +01:00
Stephan Aßmus
d5c2ed6b14 FileRequest: Better error handling for size mismatches 2014-01-23 10:20:22 +01:00
Adrien Destugues
9e751dda2e Let the PLL lockup before using it.
* The PLL need some time to stabilize and generate a reliable pixel
clock
* Enabling the display pipe before that happens leads to some frames
with bad timing. This may confuse some VGA displays into entering
"unsupported mode" error.

Fixes #10271. Thanks for investigating this!
2014-01-23 08:27:15 +01:00
John Scipione
0def0b0d62 Icons Screensaver: Grab vector icons via query, fixes #10166
Iterate through each BFS volume and find vector icon data in apps
using a BFS query. Cap off at 128 total icons, we could get more if
desired. Default install comes with ~100 at present.

Make sure we have at least 20 icons (15 display at a time) before we
start drawing icons.

Rename VectorIcon to vector_icon and treat it like the POD struct that it is.
Also add a type_code parame to vector_icon that should be set to
B_VECTOR_ICON.

Some style fixes also included, e.g. turned defines into static const int32’s.
2014-01-22 20:43:22 -05:00
John Scipione
3cbb1132f8 Icons Screensaver: Style fixes only 2014-01-22 20:39:37 -05:00
John Scipione
05cf63e3a7 Icons Screensaver: Update copyright header and version
Add myself to authors, assign copyright to Haiku, Inc.

Bump version to 1.0.1-final, update short and long description
2014-01-22 20:35:05 -05:00
Stephan Aßmus
000c26330b TextDocumentLayout: First/LastOffsetOnLine() forgot to convert...
... back from paragraph local offsets to document global offsets.
2014-01-22 23:18:26 +01:00
Stephan Aßmus
937ad5c6b8 ParagraphLayout: Off-by-one error in LastOffsetOnLine() 2014-01-22 23:17:48 +01:00
Stephan Aßmus
433f08a481 Paragraph::Remove() Optimized and fixed various situations...
... where adjacent TextSpans with the same style should be merged.
2014-01-22 23:01:24 +01:00
Stephan Aßmus
318bc4b58c TextSpan: Added Append() method for convenience. 2014-01-22 23:01:23 +01:00
Stephan Aßmus
8346431fdd TextDocumentLayout: Fixed finding paragraph by line index. 2014-01-22 23:01:23 +01:00
Stephan Aßmus
b5951f2063 HaikuDepot: Prevent future oversight...
... and init fSpanStartOffset. CID 1108437
2014-01-22 22:23:32 +01:00
Stephan Aßmus
511fe1d5f2 HaikuDepot: Initialize fMainWindow in App. CID 1108452 2014-01-22 22:23:31 +01:00
Stephan Aßmus
14652ec4bb trim support code: The passed in MemoryDeleter was never used.
When a buffer has to be allocated, I guess the intention was to
assign the MemoryDeleter to it, so that it would later be freed.
CID 1130505
2014-01-22 22:23:31 +01:00
Stephan Aßmus
084a160655 FileRequest: Fix transfer error detection not working. CID 1162764 2014-01-22 22:23:31 +01:00
Jérôme Duval
1d63ae96cd libmidi2: fix BMidiRoster init.
* should fix #10175.
2014-01-22 19:12:59 +01:00
Jérôme Duval
c71a35bdd5 PathMonitor: check for NULL before dereferencing.
* should fix #10277.
2014-01-22 18:50:32 +01:00
Adrien Destugues
fd9ceef841 Memory allocation fixes. 2014-01-22 17:47:01 +01:00
Stephan Aßmus
48810d1b3a listusb: Out of bounds array access. CID 1162781 2014-01-22 17:41:52 +01:00
Stephan Aßmus
840aeab5b9 NetEndpoint: Don't forget to close socket in error case. CID 1162792 2014-01-22 17:41:52 +01:00
Stephan Aßmus
dae0b385cf DataRequest: Don't leak buffer in error case. CID 1162796 2014-01-22 17:41:52 +01:00
Stephan Aßmus
59246cf737 HttpRequest: Apparently fContext can be NULL. CID 1162798 2014-01-22 17:41:51 +01:00
Stephan Aßmus
892200f35b Network preflet: Removed unused member (CID 1162811) 2014-01-22 17:41:51 +01:00
Stephan Aßmus
cb3dc4b2cf Uninitialized members CID 1162813 and 1162814 2014-01-22 17:41:51 +01:00
Stephan Aßmus
8db7af4f5f LaunchBox: Fixed uninitialized member CID 1162820 2014-01-22 17:41:51 +01:00
Oliver Tappe
68f8b94e2a Drop --remote-user configuration option again.
* as Ingo has pointed out, the remote user settings doesn't
  relate to the build configuration at all, so setting the
  remote user via HAIKU_REMOTE_USER in UserBuildConfig or
  via shell environment is the way to go
* additionally: drop debug output
2014-01-22 17:31:26 +01:00
Adrien Destugues
e0d1cc186a BView: move ClipToPicture code to app_server
Now that DrawingContext makes it possible to draw on a ServerBitmap
without the need for a BView, we can replay pictures on app_server side,
avoiding the cost of creating a BBitmap, offscreen BWindow, and BView
from the application side.

The offscreen drawing context gets the same state as the view it's
rendering the picture for, so font size, drawing mode, etc are used.

The implementation is still the suboptimal one, converting the BBitmap
to a BRegion, and using that for clipping. Changing that comes next.
2014-01-22 17:30:12 +01:00
Adrien Destugues
70ebf47bab Add test for ClipToPicture
This draws a rect clipped by a text, and a text clipped by a rect. They
should look the same, but they don't because of lack of antialiasing
support in ClipToPicture.
2014-01-22 16:18:51 +01:00
Adrien Destugues
c2dcc4d500 Get test_app_server to run again
* We should have the buildbots compile this to make sure it still works
* I had to split two ServerApp methods to a searate C++ file to link
them in libtestappserver.so
* some fixes related to the switch to PM and better hybrid support in
jam rules; moving of MIME stuff from registrar to storage kit, merge of
Locale Kit and ICU in libbe, and a few more.
* Modified the test_app_server hwinterface and rdef file so it is not a
background app, and the window isn't floating. Otherwise, hiding the
window would leave you without a way to recover it.
2014-01-22 11:12:22 +01:00
Oliver Tappe
86d7e28306 Add support for specifying remote ssh login user.
* add option --remote-user to configure, which sets HAIKU_REMOTE_USER
* add evaluation of HAIKU_REMOTE_USER variable when ssh-ing
  into git.haiku-os.org
2014-01-22 09:36:26 +01:00
Adrien Destugues
492ac4160a Fixes CID 1162805, 1162804, 1162773, 1162759. 2014-01-22 08:15:32 +01:00
Alexander von Gluck IV
e1cb851018 mesa: update x86 packages to 10.0.2-2
* Revision bump goes from llvm-3.2 to llvm-3.4 internally
* mesa_swpipe gallium llvmpipe renderer is working again, enjoy!
2014-01-22 00:55:54 -06:00
Alexander von Gluck IV
1fe66815b7 mesa: update x86 packages to 10.0.2-1
* Fixes x86 primary side of #10456
* x86 secondary still needs rebuilt
2014-01-21 22:08:06 -06:00
Pawel Dziepak
5d79095e44 scheduler: Do not update load of disabled cores 2014-01-22 03:04:01 +01:00
Stephan Aßmus
c9b30004b8 TextEditor: Dump the TextDocument on all edits for now. 2014-01-22 00:18:47 +01:00
Stephan Aßmus
04b0e36ac0 TextDocument: More fixes.
* Handle shifting the contents of the next paragraph into the preceeding
   paragraph if text up to and including the line break of the preceeding
   paragraph is removed.
 * Fixed removing the correct paragraph in the loop when it hits the last
   paragraph. (though that code is still untested)
2014-01-22 00:16:44 +01:00
Stephan Aßmus
5aabe5e88f TextDocumentTest: Give the text view initial focus. 2014-01-22 00:15:53 +01:00
Stephan Aßmus
5cad1e1cc9 TextDocumentLayout: Fixed finding the right paragraph for an offset.
It was not possible to place the cursor at the beginning of a paragraph
once they actually contain the \n at the end.
2014-01-22 00:14:09 +01:00
Stephan Aßmus
41889b59f3 ParagraphLayout: Refactored _GetEmptyLayoutBounds().
Even for an empty Paragraph, some meaningful bounds can be computed when
it contains an empty TextSpan. However, this is not yet achieved, since
no LineInfo is generated for such an empty Paragraph.
2014-01-22 00:12:11 +01:00
Stephan Aßmus
b3299ecd73 Paragraph: Added simple PrintToStream(). 2014-01-22 00:10:49 +01:00
Stephan Aßmus
0e36794492 MarkupParser: Append \n to each paragraph. 2014-01-22 00:09:55 +01:00
Stephan Aßmus
f944b405c4 TextEditor: Comment on up/down behavior for first/last line. 2014-01-21 23:02:19 +01:00
Stephan Aßmus
0cd95bf315 TextDocumentView: Don't blink cursor when not in focus. 2014-01-21 23:01:56 +01:00
Adrien Destugues
8e7d9c7245 Attempt to fix test_appserver build again.
There seem to be a problem with the architecture, when building for an
x86_gcc2 system things are generated in libbe_test/x86, and then fail
with a lot of undefined references. Help welcome.
2014-01-21 17:17:58 +01:00
Adrien Destugues
77bf4d8d51 Style fixes. 2014-01-21 13:59:35 +01:00
Adrien Destugues
2585a0c5c9 Fix build. 2014-01-21 12:31:28 +01:00
Adrien Destugues
e1a301151f Introduce DrawingContext View superclass
In order to properly implement ClipToPicture in BView, we need to render
a Picture to a Bitmap. This is currently done client-side, but the
overhead for this (creating a BBitmap that accepts views, including a
window thread, adding a view to it, and rendering the picture to the
view, then sending the result to app_server) isn't acceptable. Moreover,
the bitmap drawn this way is clipped to the view size, and the clipping
won't work when the view is scaled or translated. So, we need to move
the Bitmap creation server-side.

However, app_server currently have no means of doing this. Factor out the
relevant parts of View: a DrawingState stack with PushState/PopState, a
DrawingEngine, and a ConvertToScreen transformation. Another implementation
of the DrawingContext will allow us to also draw a picture directly using
a Painter and low-level pixel buffer, in a format suitable for use as an
AGG alpha mask.
2014-01-21 12:05:59 +01:00
Pawel Dziepak
ae81c98aaf intel_cstates: Fix integer division inaccuracy
Integer division could have result in an out of bound substate.
2014-01-21 04:18:20 +01:00
Pawel Dziepak
d01fa1ffe3 scheduler: Always update core load at thread reenqueue 2014-01-21 03:50:26 +01:00