Commit Graph

20 Commits

Author SHA1 Message Date
Vincent Sanders
9ebdc7dd7a ensure completion of async js scripts completes the fetch
When the fetch of asynchronous javascript scripts completed the
completion of html rendering was not processed leaving the state
machine waiting forever.
2015-10-02 09:29:51 +01:00
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.

The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.

A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Vincent Sanders
84c29f1d86 Add invalidate API to html content script handling and use it.
The html content script handling needs to invalidate its JavaScript
context when the browsing context (browser_window) containing it is
either closed or the content fetch is aborted (stopped)

Previously the invalidation was only done on browser_window close
which resulted in use after free crashes because of the now invalid
JavaScript context.
2015-03-09 13:47:12 +00:00
Rob Kendrick
1bd4a34a27 Remove asserts for default cases from all content message handlers; this is laborious and is no longer useful for catching bugs. 2014-01-05 14:39:08 +00:00
Vincent Sanders
e2056974ca fixup script message handling 2013-05-31 09:22:08 +01:00
Michael Drake
5930e4bcc4 Fix bug where html conversion began before STYLE element fetch had been launched. 2013-03-18 14:48:00 +00:00
Vincent Sanders
beffd9e481 search for teh correct script type in the defer callback.
Should fix SF bug #3599063
2013-01-02 23:14:31 +00:00
Michael Drake
153c444454 Move browser_window struct to private header. Places that shouldn't include it do, such as front end code.
Frontends that have been updated to build:
  framebuffer
  gtk
  monkey
  riscos

TODO:
  amiga
  atari
  beos
  cocoa
  windows
2012-08-22 12:22:58 +01:00
Michael Drake
e5374cc042 Let contents broadcast explicit status messages as well as announce that their internal status has been updated. 2012-08-15 19:00:50 +01:00
Vincent Sanders
845dca45de resume parse on sync script error as well as success 2012-07-31 22:59:18 +01:00
Vincent Sanders
5c25b8255a add post parse script execution 2012-07-31 22:33:08 +01:00
Vincent Sanders
d763e57d30 fix dom parser error return check 2012-07-31 12:49:41 +01:00
Vincent Sanders
4182685d1e fix parse completion - working syncronous scripts 2012-07-30 22:56:40 +01:00
Vincent Sanders
b0a41606ff extend html data processing to deal with paused parse 2012-07-30 22:56:15 +01:00
Vincent Sanders
db76dd3b1a extend completion types 2012-07-30 22:55:13 +01:00
Vincent Sanders
06608c1bf0 extend script enumeration to include asyncronous and deferred scripts 2012-07-30 22:54:14 +01:00
Vincent Sanders
4f0e70b50d split up the script processing 2012-07-30 22:54:14 +01:00
Michael Drake
1947019095 Interned string cleanup, phase 4: Move html_script.c to corestring. 2012-07-22 18:58:22 +01:00
Vincent Sanders
d7289f6701 remove parser binding layer 2012-07-13 17:37:22 -06:00
Vincent Sanders
019be7616c split out script handling from html 2012-07-13 17:37:21 -06:00