Michael Drake
b4e044f6c9
Use browser_window_get_url() instead of getting URL from current content.
2014-11-21 14:30:09 +00:00
Michael Drake
3b686eaccc
Use browser_window_can_select(), instead of assuming based on content type.
2014-11-21 14:26:29 +00:00
Vincent Sanders
9fb0eaa1cd
fix missing semicolon
2014-11-21 13:14:20 +00:00
Michael Drake
19af487fa1
Shouldn't need browser_private.h now.
2014-11-21 12:56:19 +00:00
Michael Drake
47f6e29b4c
Use browser_window_stop_available()
...
Looking at bw->loading_content was bad and wrong in the cases
of frames, and object fetches.
2014-11-21 12:53:55 +00:00
Michael Drake
6ea2fd3a7f
Use API to get content for view source.
2014-11-21 12:51:30 +00:00
Michael Drake
22ebdd3315
Use API to get current scale.
2014-11-21 12:50:02 +00:00
Vincent Sanders
a481e5965a
remove atari need to use browser internal data structures
2014-11-21 12:32:46 +00:00
Vincent Sanders
3ff4846c1a
Remove usage of browser private interfaces
...
The cocoa frontend was directly acessing browser internals instead of
using the API. In the case of gui.m there was a check for the browser
window not being root (browser->parent != NULL) . As gui windows can
only ever be associated with the root brower window (i.e. its parent
will always be NULL) this was completely redundant.
2014-11-21 11:48:43 +00:00
Michael Drake
0f0c3b02d7
Use public bw header.
2014-11-21 09:28:37 +00:00
Michael Drake
c3ae0c0699
Should be able to switch to public bw header now.
2014-11-21 09:28:37 +00:00
Michael Drake
8fc7da72c6
Use browser_window_get_url, instead of fishing content out of bw and getting URL from that.
2014-11-21 09:28:37 +00:00
Michael Drake
8a6be34a62
Use public bw header.
2014-11-21 09:28:37 +00:00
Michael Drake
6832f80be3
Don't appear to need browser_private.h here.
2014-11-21 09:28:37 +00:00
Vincent Sanders
eb87406758
update entry points to backing store ready for allowing differing object lifetimes
2014-11-20 22:28:19 +00:00
Chris Young
75623179aa
Revert "Write out to the backing store asynchronously."
...
This reverts commit 1ddf8215cf
.
Appears to be unsafe to run this in a new process.
2014-11-19 23:34:53 +00:00
Vincent Sanders
69f4397fe4
Limit creation of store path directories.
...
Only create all elements of a path in the store when it is being
opened for creation instead of causing reads to create directories.
2014-11-19 16:26:29 +00:00
Vincent Sanders
92a1ac4fbb
Improve backing store control data serialisation
...
By scheduling the control data to be maintained (entries index written
and headers updated) once activity occurs to update these control
structures rather than a single serialisation at browser exit the data
is more likely to be up to date and not lost on a crash.
2014-11-19 16:22:06 +00:00
Vincent Sanders
a79b30bd6f
make backing store use rename to atomicly replace entries file
2014-11-19 11:26:27 +00:00
Chris Young
1ddf8215cf
Write out to the backing store asynchronously.
...
Despite the fact AmigaOS filesystems run as separate processes,
DOS filesystem writes occur synchronously waiting for the disk
write to finish before returning. Here we have effectively taken
the core's fs backing store and extended it slightly so the store
operation is spun off into a new process, running at a lower task
priority than NetSurf itself. This stops the UI pauses that occur
shortly after loading pages as NetSurf commits the cache to disk.
Somewhat experimental, pending more extensive user testing.
2014-11-18 19:31:11 +00:00
Vincent Sanders
669df172ec
Fix my spelling of teh everywhere
2014-11-18 17:16:26 +00:00
Chris Young
cfc9971d0e
Remove no longer used poll option from schedule runner
2014-11-17 23:47:28 +00:00
Vincent Sanders
d4c7a0ff77
Improve data scheme fetcher allocation
...
The data scheme fetcher was over allocating the space for decoded
base64 encoded urls and not using the base64 API that allocated the
correct size storage.
2014-11-17 16:05:17 +00:00
Vincent Sanders
d83935f0bd
add libnsutils to default conveniance library setup
2014-11-17 16:04:30 +00:00
Chris Young
230e348315
update comments
2014-11-16 16:44:19 +00:00
Chris Young
0966b8097c
Allocate screen title when first needed and keep it private to amiga/gui.c
2014-11-16 16:40:41 +00:00
Chris Young
20705189b9
Make win_destroyed variable private to amiga/gui.c
2014-11-16 16:31:35 +00:00
Chris Young
3c4b721621
Avoid bw->window ref
2014-11-16 16:24:07 +00:00
Chris Young
261e68592b
Fix ARexx for gui_window changes
2014-11-16 16:13:13 +00:00
Chris Young
6ce6b9ae97
Replace curbw (current browser_window, used mostly for ARexx support) with cur_gw (current gui_window)
2014-11-16 16:01:59 +00:00
Chris Young
79690c6c90
Remove the global which meant we could only open one local history window.
...
Now we can open multiple local history windows, which avoids the confusion when requesting a local history window when one is already open.
2014-11-16 15:51:57 +00:00
Chris Young
456734a5c2
Stop history_local accessing gui_window via browser_window, and remove some unneeded globals
2014-11-16 15:42:45 +00:00
Chris Young
7053638a72
Remove some more cyclic references
2014-11-16 15:33:11 +00:00
Chris Young
668aa3d84b
Remove some cyclic referencing
2014-11-16 15:28:42 +00:00
Chris Young
d626487fe1
Remove any pending favicon refresh to avoid a crash on exit/window close
2014-11-16 15:06:32 +00:00
Chris Young
12d25c56af
Restructure gui_window and gui_window_2 to avoid accessing browser_window to find out which gui_window is currently displayed.
2014-11-16 15:02:33 +00:00
Chris Young
0f85ed7b9d
Fix amiga/tree.c for new structs
2014-11-16 14:57:25 +00:00
Chris Young
aa28650b30
Fix amiga/search.c for new structs
2014-11-16 14:56:51 +00:00
Chris Young
e8d551398b
Fix amiga/menu.c for new structs
2014-11-16 14:55:58 +00:00
Chris Young
223da14e72
Fix amiga/file.c for new structs
2014-11-16 14:54:25 +00:00
Chris Young
bab178d3c1
Fix amiga/drag.c for new structs
2014-11-16 14:53:26 +00:00
Chris Young
f2d1cfc7de
Fix amiga/download.c for new structs
2014-11-16 14:52:49 +00:00
Chris Young
30039a06ee
Fix amiga/context_menu.c for new struct
2014-11-16 14:50:48 +00:00
Chris Young
49e524c1d8
Fix amiga/clipboard.c for new structure
2014-11-16 14:49:42 +00:00
Chris Young
6a891b47c0
Fix amiga/arexx.c for new structure layout
2014-11-16 14:47:26 +00:00
Chris Young
497994b0f4
Fix amiga/gui.c to not ref gui_window via browser_window
2014-11-16 14:44:40 +00:00
Chris Young
7cb7879427
Remove a loop which appears to do nothing
2014-11-16 14:25:31 +00:00
Chris Young
e3620ac675
Change clicktab userdata to hold gui_window instead of browser_window
2014-11-16 14:24:18 +00:00
John-Mark Bell
ccbfe50ca3
Fix platform detection; always build tools for HOST.
2014-11-16 14:17:32 +00:00
Chris Young
1d50a2ff8a
Remove unused variable
2014-11-16 14:08:00 +00:00