[haiku-bugs] Re: [Haiku] #7106: WebPositive: Implement haiku error messages

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 03 May 2019 07:47:22 -0000

#7106: WebPositive: Implement haiku error messages
----------------------------------------+----------------------------------
   Reporter:  MichaelPeppers            |      Owner:  leavengood
       Type:  enhancement               |     Status:  assigned
   Priority:  normal                    |  Milestone:  Unscheduled
  Component:  Applications/WebPositive  |    Version:
 Resolution:                            |   Keywords:  haiku error messages
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------------

Comment (by pulkomandy):

 I'm pretty sure BResource allows appropriate error handling.

 However, something to keep in mind is that BWebView will ultimately be
 used in places other than WebPositive. So, I think the resources should be
 stored on the library side (either directly in the library, or as files in
 the data/ directory - I think we do this for the stylesheet for FTP and
 file:// listings already, and should be doing it for the Web Inspector
 resources as well).

 Since these will be stored in the haikudepot package, they are normally
 read-only, which is a good enough protection against malicious uses. If
 you have write access there, you can as well replace the web browser
 executable anyways.

 Now the decision to make is wether this should be handled directly by
 haikuwebkit, and therefore happen in all apps using it, or if it should be
 a WebPositive-specific feature, in which case haikuwebkit would just raise
 an error to the application, and the application would decide what to do -
 embedded HTML error message, alert, embedded native error message (this
 doesn't have to be HTML, after all), etc.

 There is an implementation for loading stuff from Resources in the Haiku
 port of the NetSurf web browser, which may provide some inspiration as
 well.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/7106#comment:16>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: