[Bugs] #4011 Browse NORM: PDF tabs don't display error page when there is no internet connection

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Jan 21 13:31:47 EST 2013


#4011: PDF tabs don't display error page when there is no internet connection
----------------------------+-----------------------------------------------
    Reporter:  humitos      |          Owner:  humitos    
        Type:  defect       |         Status:  new        
    Priority:  Normal       |      Milestone:  1.0        
   Component:  Browse       |        Version:  Unspecified
    Severity:  Unspecified  |       Keywords:             
Distribution:  Unspecified  |   Status_field:  Unconfirmed
----------------------------+-----------------------------------------------
Changes (by humitos):

 * cc: manuq (added)


Old description:

> If you try to load a PDF url without being connected to Internet, the
> error page does not shown.

New description:

 If you try to load a PDF url without being connected to Internet, the
 error page is not shown.

--

Comment:

 @manuq: how we should implement this?

 Nowadays, when an error occurs when a page is loading we load a error page
 in HTML format inside the same WebView that is being used.

 The PDF case is a bit different because we do not create a WebView,
 instead of that we create a DummyBrowser and start the download process
 using a WebKit.Download and when it finishes we use Evince to show the
 PDF.

 At the moment we have the signal 'error' of the WebKit.Download connected
 to log the reason. I think we should do something there to show the error
 page

 I see two possibilities here:

  1. Create a common Browser -or a WebKit.WebView- (not a DummyBrowser) to
 show the error page.
  1. Create a Gtk widget that looks similar to the error page (something
 like the PDFMessageBox that you created.

 Any other idea? What do you think?

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4011#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list