Age | Commit message (Collapse) | Author |
|
.. and make travis run it.
I renamed check-license-headers.sh to check-style.sh and expanded it so
that it now also checks for the presence of "#pragma once" in .h files.
It also checks the presence of a (single) blank line above and below the
"#pragma once" line.
I also added "#pragma once" to all the files that need it: even the ones
we are not check.
I also added/removed blank lines in order to make the script not fail.
I also ran clang-format on the files I modified.
|
|
This widget doesn't just view HTML, it views a web page. :^)
|
|
Instead of dropping focus entirely, which felt weird.
|
|
You can now pass "-n" to the browser to use the new HTML parser.
It's not turned on by default since it's still very immature, but this
is a huge step towards bringing it into maturity. :^)
|
|
The console has now enabled history in its input text box. Pretty
nice to not have to retype things all the time :^)
|
|
When a download has completed, instead of graying out the cancel
option, replace it with an option to open your download in the file
manager.
|
|
|
|
This patch uses the new JS::MarkupGenerator to stylize all of the
source code and runtime values printed in the console's output panel.
This also does away with the Console's global style sheet, as all
styling is handled by the MarkupGenerator and the System Palette.
|
|
The new JS::MarkupGenerator class can convert both a JS source string
and a JS Runtime Value into properly formatted HTML using the new
LibWeb System Palette css color values.
It makes more sense for this JS -> HTML process to occur in LibJS
so that it can be used elsewhere, namely Markdown code block syntax
highlighting. It also means the Browser can worry less about LibJS
implementation details.
|
|
This patch adds spans around most of the console's output, allowing
for a global document stylesheet to customize the highlighting of
the console's output. It also adds some basic styling for values
like strings, numbers, and arrays using the system Palette.
Note: This patch simply adds support for highlighting output values,
the lines of JS code printed to console are still unformatted.
|
|
Here's a freshly drawn icon without antialiasing so it fits better with
the system visual style. :^)
|
|
Previously, once a console was opened for a tab, its interpreter
would never change, leaving it with a stale interpreter. Now, when
the tab's HtmlView loads a new document, the console will receive
that document's interpreter.
|
|
The JavaScript console can be opened with Control+I, or using
the menu option. The console is currently a text box with JS
syntax highlighting which will send commands to the document's
interpreter. All output is printed to an HTML view in the console.
The output is an HtmlView to easily allow complex output, such
as expandable views for JS Objects in the long run.
|
|
Previously, clicking on an anchor link (href="#section1")
would always scroll to it on the current page, even if control was
held or the target="_blank" attribute was set. This fixes that
behaviour, and the link will always open in a new tab if required.
|
|
|
|
This right click context menu currently allows for the removal of
bookmarks as well as opening them in a new tab.
|
|
Currently, the tab's context menu only has options to reload and
close, but this patch allows for those options to be quickly
expanded!
|
|
Auto-sizing of view columns is now enabled by default. This removes the
last remaining need for ColumnMetadata, so this patch gets rid of it.
|
|
|
|
|
|
|
|
Closes https://github.com/SerenityOS/serenity/issues/2080
|
|
|
|
This will allow you us to implement special behavior when Ctrl+clicking
a button.
|
|
- Use the same reload action in menu and toolbar
- Scope more actions inside Browser::Tab
|
|
HTTP headers are case-insensitive, so just add CaseInsensitiveTraits
to the HashMap and we're good to go! :^)
|
|
|
|
|
|
This can be overridden in Browser.ini, but if there's no value there,
we now use "about:blank"
|
|
For now, we simply load an empty resource from any about: URL.
|
|
|
|
|
|
It didn't feel right to have a "DHCPClient" in a "Servers" directory.
Rename this to Services to better reflect the type of programs we'll
be putting in there.
|
|
|
|
|
|
Otherwise the following is printed:
printf_internal: Unimplemented format specifier (fmt: 0% of %s)
|
|
|
|
|
|
Basically a window containing a read-only GUI::TextEditor containing the
source code of the current webpage. No temporary file needed :^)
Fixes #1103.
|
|
|
|
We now allow you to download files by right-clicking a link and then
choosing "Download".
All files are currently saved to the standard downloads location that
we get from Core::StandardPaths::downloads_directory().
In the future, we'll probably want to come up with a more restrictive
way of doing the "write to disk" portion of this.
We should also improve the ProtocolServer to allow streaming of data
instead of writing everything in one big go.
At the moment, I'm just pretty happy with this GUI. :^)
|
|
This only has "Open" and "Open in new tab" for now. :^)
|
|
We're starting with a very basic decoding API and only ISO-8859-1 and
UTF-8 decoding (and UTF-8 decoding is really a no-op since String is
expected to be UTF-8.)
|
|
|
|
|
|
The tip will say "Add Bookmark" if not a bookmark and "Remove
Bookmark" if it is.
|
|
|
|
..by making sure the Tab actions are scoped to the Tab.
|
|
It's nicer to always use the browser's own app icon instead. :^)
|
|
Browser was using the filetype-html icon instead of a dedicated one, so
we now have the globe from that icon reimagined and in good Buggie
company :^)
|