| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This fixes Bug#2322
|
|
|
|
|
| |
The semantic patch tool appears to have missed some difficult to
reason about callsites which have now been manually cleaned up
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Instead of asserting if a message contains an unsupported drag type
the message is now logged and ignored.
|
|
|
|
|
|
|
| |
This makes the box_move_xy function return a value on all code
paths. This was not really necessary as there is an assert in the path
that could have returned without a value. The gcc optimiser seems
unable to reason about this in this case causing a warning.
|
|
|
|
|
|
|
|
| |
The ftell call in the html renderer handling of drag and drop was not
checking its return value for errors which could have resulted in
attempting to read -1 bytes.
coverity 1251038
|
| |
|
| |
|
|
|
|
|
| |
Serveral reports of form freeing segfaulting on RISC OS so this adds
some debug in this area to see if we can tell why.
|
|
|
|
| |
Adds a NetSurf key code prefix of NS_ to all key codes.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the browser window is about to be destroyed html_close gets
called indicating the browser_window previously associated with the
html content is about to become invalid.
This makes the javascript context invalid within the html content (it
is held by the browser window) when that context is about to be
destroyed. Previously the javascript children would continue to
attempt to use the context after it had been destroyed causing all
sorts of strange errors and failures.
|
| |
|
|
|
|
|
| |
Even if the DOM is always sanitised, CSS display property can cause
other boxes to be required.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Additionaly we make the curl fetcher report errors instead of
uninitialised buffer.
|
| |
|
|
|
|
|
|
| |
By hiding all but the form selection menu option structure from code
outside of render this reduces the API to the absolute minimum to
support this feature.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Update the form API so instead of directly warning the user it returns
an error code to the caller allowing the appropriate action to be
taken outside the core. Additionally clean up documentation of this
API.
|
|
|
|
|
|
| |
Very little of the form API needed exposing outside of the
renderer. This makes the form API that may be used by frontends
obvious and limited.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Extend the content_get_encoding() API to retrieve the source of
the encoding as well as the actual encoding.
|
|
|
|
|
|
|
|
| |
Previously content handler debugging features were accessed by global
variables. This allows the setting of debugging parameters via a
content API giving per content control over debugging features.
Currently only used by the html content handler to toggle global
redraw debugging.
|
|
|
|
|
|
|
| |
The frontends previously had to use an html renderer API to get the
encoding of a content. This also required the explicit checking of the
contents type rather than using the existing content API to abstract
this knowledge.
|
| |
|
|
|
|
|
|
| |
This cleans up this header and moves the functionality into more
useful places while reducing the include complexity but only pulling
in whats required.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update the API which allows frontends to acquire the page features
(images, link urls or form elements) present at the given coordinates
within a browser window.
By making this an explicit browser_window API and using the browser.h
header for the associated data structure with a more appropriate API
naming the usage is much more obvious and contained.
Additionally the link url is now passed around as a nsurl stopping it
being converted from nsurl to text and back again several times.
|
| |
|
| |
|
|
|
|
| |
Fixes bw deref and browser_private.h #include in render/
|
| |
|
|
|
|
| |
Second in the series to decouple the core API usage from the frontends.
|
| |
|
|
|
|
| |
ends.
|
| |
|