Commit Graph

11884 Commits

Author SHA1 Message Date
Adrien Destugues
5546a3dbcd BeOS/Haiku: improve menus management
* Embed language resources in executable, so they can be used without
installing
* Add a few strings we want to use
* Remove most menus since they are not implemented yet

Fixes http://bugs.netsurf-browser.org/mantis/view.php?id=2164
2015-10-12 21:11:25 +01:00
Adrien Destugues
af66ed3194 BeOS/Haiku: use Haiku native dialog box.
* Looks better than a standard alert.
2015-10-12 21:11:21 +01:00
Adrien Destugues
15777ee750 BeOS/Haiku: Disable replicant dragger
* While making NetSurf replicable is nice, it doesn't work at all
* The dragger is not useful: the main interest of replicability is apps
programmatically embedding NetSurf, rather than manually dragging it
around.
* I leave this around if mmu_man wants to fix and re-enable it, but
under a define so it doesn't get in the way for release builds.

Fixes http://bugs.netsurf-browser.org/mantis/view.php?id=2163.
2015-10-12 21:09:44 +01:00
Adrien Destugues
0e606ac64b BeOS/Haiku: use cross-platform "select" code.
Fixes http://bugs.netsurf-browser.org/mantis/view.php?id=2165.
2015-10-12 21:09:07 +01:00
Adrien Destugues
2071c2a91b Fix BeOS build
Mainly C/C++ conflicts:
* Designated initializer are not part of C++
* C++ already defines min() and max()
* Force C99 and remove -O0 since we now use a decent compiler
2015-10-12 21:08:25 +01:00
Adrien Destugues
46ff49baef BeOS build instructions: advise to use Quick-Start method
It is now fully supported on Haiku, so let anyone interested know.
Unfortunately BeOS will still need the manual build, and it can't work
because Duktape is C99 only. I'll let mmu_man handle that, I don't need
the BeOS port myself.
2015-10-12 21:06:46 +01:00
Adrien Destugues
15256411d8 env.sh: Fix Haiku support
* We need libsvgtiny and nsgenbind
* We need to get packages for gcc4 (_x86 suffix)
* Use virtual provides for getting the package, for example devel:libpng
means "development files for libpng", no matter how it is packaged
(currently the package is named libpng16, but this could change again).
2015-10-12 20:57:47 +01:00
Vincent Sanders
7b6d89db04 Introduce a binding flags to allow local config changes 2015-10-12 20:33:11 +01:00
Vincent Sanders
f3e0267ccd turn full debugging off again 2015-10-12 20:25:54 +01:00
Michael Drake
b8ea788aba Ensure the cause of the problem is logged when an htmlc has no parser. 2015-10-12 19:51:13 +01:00
Vincent Sanders
ce32141057 Split up javascript engine makefiles
by splitting javascript engine specific makefiles and source up we
avoid having to consider old JSAPI or none code while working on
duktape.
2015-10-12 17:40:35 +01:00
Vincent Sanders
3877d4ad03 add automaticaly generated property setter and getters to HTMLFormElement 2015-10-12 13:29:40 +01:00
Vincent Sanders
967cfda0f8 add automaticaly generated property setter and getters to HTMLFontElement 2015-10-12 09:18:04 +01:00
Vincent Sanders
0d4942d42c add automaticaly generated property setter and getters to HTMLElement 2015-10-12 09:10:03 +01:00
Dave Higton
9443f201fe fix null dereference in document.writeln
The fix recently applied to document.write() also needs to be applied
to document.writeln()  This prevents a null pointer dereference.
2015-10-10 11:14:54 +01:00
Vincent Sanders
0636ee0f20 Add automaticaly generated property setter and getters to HTMLBodyElement 2015-10-10 11:08:48 +01:00
Vincent Sanders
9f925da516 Add automaticaly generated property setter and getters to HTMLBaseElement 2015-10-10 10:28:10 +01:00
Vincent Sanders
5a569322a4 Add automaticaly generated property setter and getters to HTMLAreaElement 2015-10-09 15:03:25 +01:00
Vincent Sanders
c7275edc26 Add automaticaly generated property setter and getters to HTMLAppletElement 2015-10-09 14:54:26 +01:00
Vincent Sanders
7c4fa72fa4 Add automaticaly generated property setter and getters to HTMLAnchorElement 2015-10-09 14:40:14 +01:00
Vincent Sanders
f075b4cde6 Update unimplemented javascript document with types on setters 2015-10-09 14:07:18 +01:00
Vincent Sanders
b72f750748 implement cookie reading in js document binding 2015-10-09 12:54:40 +01:00
Vincent Sanders
f34a223b9a Implement user agent reporting 2015-10-09 12:54:00 +01:00
Vincent Sanders
a897d87d18 use the duckky_instanceof from the bindings
The bindings provide a generated duckky_instanceof function, this
changes to using that implementation.
2015-10-09 10:16:17 +01:00
Vincent Sanders
b9a23939b2 Add some HTML Element specialisations for HR and BR
These specialisations make use of the new nsgenbind feature of
generated property accessors.
2015-10-08 16:20:18 +01:00
Vincent Sanders
6fd2c320f2 Turn off excessive debugging in javascript 2015-10-07 21:06:17 +01:00
Vincent Sanders
b5f1c5eee2 complete binding for HTML BR element 2015-10-07 14:45:57 +01:00
Vincent Sanders
315339cbc8 Add a brief explanation of whats in the unimplemented documentation 2015-10-07 10:28:01 +01:00
Vincent Sanders
d0371d5d3b Add documentation showing unimplemented javascript bindings 2015-10-07 09:18:14 +01:00
Vincent Sanders
b7eb35ef24 putforwards test on location 2015-10-05 23:09:07 +01:00
Vincent Sanders
a46d9057d8 Update html IDL to current spec 2015-10-05 21:54:44 +01:00
Vincent Sanders
6a4a7d7c25 report error getting user data in document.write 2015-10-05 21:53:43 +01:00
Vincent Sanders
fbc3f36fb5 initial js navigator binding 2015-10-05 15:46:22 +01:00
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
Dave Higton
33264e012b Makes the Javascript document.writeln() function work as well as write() 2015-10-01 12:38:39 +01:00
Vincent Sanders
4bdd4cf7b6 Update bindings to cope with improved nsgenbind syntax 2015-09-28 08:57:45 +01:00
Michael Drake
51c2dd70e2 Add assert before we wander off into the weeds.
Visiting slashdot we get a document write with a node that has no
html content user data.
2015-09-26 12:53:43 +01:00
Vincent Sanders
46945f6362 Improve location implementation to be more complete 2015-09-20 10:35:32 +01:00
Vincent Sanders
63dba3a061 expose the location object through document as well as window 2015-09-10 08:51:56 +01:00
Daniel Silverstone
73c6476112 Fix instanceof to be correct and improve documentation of stack contents 2015-09-09 14:00:37 +01:00
Chris Young
410f6fdb9e Allow the popupmenu-based select menu to cascade into multiple sub-menus containing further items, when there are too many to fit on the screen in one column. 2015-09-07 17:41:24 +01:00
Vincent Sanders
1a43dd21b3 Add initial readonly location implementation 2015-09-07 13:53:59 +01:00
Vincent Sanders
1f07c45740 fix gadget resource leak (coverity #1109875) 2015-09-07 13:53:59 +01:00
Chris Young
d137bda454 Move status bar gadget to the correct place on OS3
Still practically useless as it constantly overprints.
2015-09-06 09:33:00 +01:00
Chris Young
e5c34567dc Fix broken headers 2015-09-06 09:23:08 +01:00
Chris Young
d1ccd3e53d Create menu on OS3 and 3 the same way (old GadTools method)
This makes it easier to switch to menuclass.
It also fixes a crash-on-exit bug on OS3.
2015-09-06 09:12:26 +01:00
Chris Young
de75959362 Create menus on OS3 and 4 the same way (manual GadTools method).
This makes it easier to switch to menuclass.
It also fixes a crash-on-exit bug on OS3.
2015-09-06 09:06:20 +01:00
Chris Young
1e83301251 Remove errorneous addition. 2015-09-05 16:54:12 +01:00
Chris Young
1a8cf5b7a7 Merge branch 'chris/menuclass'
This replaces the old popupmenu.class-based context menus with Intuition-based ones.  This provides the following advantages:
- No more RMBTrap, so menu shortcuts work without having to be manually handled
- Standard menus now display when not over a contextual zone, so the not-really-contextual menu items have been removed
- No buggy system crash problems, so they are always enabled now
- Menus can be attached directly to gadgets, so the history menu is now attached directly to the back/forward buttons (however they now need to be periodically refreshed as they can't be created on demand)

Additionally, the menu items now have images.
popupmenu.class is now only used (optionally) for form select menus.  This code has been bug-fixed and is now toggleable from the prefs GUI.  However, due to the inability to display more items than fit on the screen, it still isn't recommended to use it.
2015-09-05 16:38:48 +01:00
Chris Young
5b880e586c Fix memory leak 2015-09-05 16:33:23 +01:00