[haiku-bugs] Re: [Haiku] #10924: Webpositive crashed WebCore::ResourceHandle::client()

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 29 Feb 2016 06:05:16 -0000

#10924: Webpositive crashed WebCore::ResourceHandle::client()
----------------------------------------+---------------------------------
   Reporter:  xray7224                  |      Owner:  pulkomandy
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  R1
  Component:  Applications/WebPositive  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:  11602                     |   Blocking:  12047, 12137, 12605
Has a Patch:  1                         |   Platform:  All
----------------------------------------+---------------------------------

Comment (by pulkomandy):

 That sounds like an error in AuthenticationNeeded. Unknown authentication
 types should be passed as-is to the web page and not interrupt the
 request. Javascript code can then access the HTTP headers and process the
 authentication request.

 As for the services kit design:

 Each HTTP request (BHttpRequest) runs in its own thread. It notifies an
 UrlProtocolListener of all events. In the case of WebKit, an
 UrlProtocolDispatchingListener is used, which relays the messages to an
 UrlProtocolAsynchronousListener running in the main thread. This
 serializes the events so there shouldn't be too much locking problems in
 this case.

 There are some exceptions:
 - Some XmlHttpRequests are handled synchronously, which means the main
 thread is blocked waiting for them to complete. This may cause some of the
 freezes we get.
 - WebSockets are handled with separate code in the WebKit repo, with even
 more threads (2 per sockets IIRC), and is known to be broken in several
 cases.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10924#comment:13>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: