Andreas Kling
4d9ce42532
AK: Remove unused kprintf macro
...
This hasn't been used for quite some time.
2021-02-20 17:21:03 +01:00
Andreas Kling
8d98051551
AK+LibC: Remove dbgprintf() :^)
...
Everything has been moved to dbgln() or other AK::Format-based APIs.
We can finally get rid of this old thing.
2021-02-20 17:17:30 +01:00
Andreas Kling
542d8591e0
LibVT: Oops, fix dbgln() invocation mistake
2021-02-20 17:16:33 +01:00
Andreas Kling
68406fc0ef
LibCpp: Replace dbgprintf() with outln()
2021-02-20 17:12:25 +01:00
Andreas Kling
b1a705d7d8
LibTLS: Replace dbgprintf() with dbgln()
2021-02-20 17:06:39 +01:00
Andreas Kling
499a59ed86
LibVT: Put "unimplemented escape" whining on debug log
...
I'm not sure why we were injecting these debug messages into the
terminal output, but it makes a big mess for no benefit.
2021-02-20 17:04:46 +01:00
Andreas Kling
81b21504a7
LibVT: Implement switching between 80/132 column modes (DECCOLM)
...
This gets us past a few more screens in vttest. :^)
2021-02-20 17:04:46 +01:00
Andreas Kling
8c9ae4e537
Terminal+LibVT: Resize Terminal app window when requested by VT
...
This will allow us to react to things like DECCOLM.
2021-02-20 17:04:46 +01:00
Andreas Kling
bb6d6dce7b
LibVT: Give proper names to remaining VTxxx control functions
2021-02-20 17:04:46 +01:00
Andreas Kling
61c5bd08af
Ports: Update vttest to latest version
2021-02-20 17:04:46 +01:00
Andreas Kling
a59d96e461
LibVT: Give proper names to SD and SU
2021-02-20 17:04:46 +01:00
Andreas Kling
75084d3b3f
LibVT: Move control function doc comments to Terminal.h header
...
Putting the little documentation comment about what each VTxxx control
function does in the header allows them to be picked up by IDE's.
2021-02-20 17:04:46 +01:00
Andreas Kling
6c7c6de52b
LibVT: Give proper names to SCOSC and SCORC
2021-02-20 17:04:46 +01:00
Linus Groh
17959c1408
Base: Update path in js(1) manpage example
2021-02-20 16:05:20 +01:00
Linus Groh
1002236715
Base: Mention -n option in echo(1) manpage
2021-02-20 16:05:20 +01:00
Linus Groh
4896005fb2
Base: Tweak ddate(1) manpage tagline
2021-02-20 16:05:20 +01:00
Linus Groh
b80b6ffca0
Base: Unify synopsis format in manpages
2021-02-20 16:05:20 +01:00
Itamar
5bc82c0185
LanguageServers/Cpp: Add 'FindDeclaration' capability
...
The C++ LanguageServer can now find the matching declaration for
variable names, function calls, struct/class types and properties.
When clicking on one of the above with Ctrl pressed, HackStudio will
ask the language server to find a matching declaration, and navigate
to the result in the Editor. :^)
2021-02-20 15:53:37 +01:00
Itamar
d3ff82ba80
LibCpp: Store filename in ASTNodes
...
As part of the position information, we now also store the filename the
ASTNode belongs to.
2021-02-20 15:53:37 +01:00
Itamar
c4139be461
HackStudio: Always use relative paths when opening project files
2021-02-20 15:53:37 +01:00
Itamar
7ecb21afa7
AK: Add LexicalPath::relative_path
2021-02-20 15:53:37 +01:00
Itamar
50f887c9d5
HackStudio: Display identifiers as clickable
...
This extends the "navigate to include" feature to also display
identifiers as clickable when they're hovered over while left control
is pressed.
2021-02-20 15:53:37 +01:00
Andreas Kling
adb6db9774
FileManager: Set tooltips on the path breadcrumb bar
...
Each segment of the breadcrumb bar now shows the path it represents.
2021-02-20 14:23:41 +01:00
Andreas Kling
85271a4dd8
LibGUI: Allow setting a tooltip on BreadcrumbBar segments
2021-02-20 14:23:21 +01:00
Andreas Kling
4853576db7
LibGUI: Ignore keydown events with Alt modifier in AbstractView
...
AbstractView doesn't actually do anything with them anyway, but they
would get swallowed by the cursor logic and not bubble up the widget
parent chain.
2021-02-20 13:27:21 +01:00
Andreas Kling
d9212bb2f4
LibGUI: Parent FilePicker toolbar buttons to the window
...
This makes the shortcuts actually work since unparented actions are
considered application-global, and we disable application-global
shortcuts while a modal dialog (like FilePicker) is up. This is pretty
counter-intuitive so I think there's room for API improvement here
but let's at least make Alt+Up work in FilePicker for now. :^)
2021-02-20 13:27:21 +01:00
Andreas Kling
716dc5bec9
LibGUI: Use delegating constructors in GUI::Action
2021-02-20 13:25:04 +01:00
Andreas Kling
1bc17d2870
LibGUI: Tidy up Action constructors and factory functions a bit
2021-02-20 13:25:04 +01:00
Linus Groh
a1a625b565
LibWeb: Move ExceptionOr bindings utils into own header
2021-02-20 13:10:55 +01:00
Linus Groh
5e07c27e25
LibWeb: Implement Window.prompt()
2021-02-20 12:19:46 +01:00
Linus Groh
f10967e364
LibGUI: Set InputBox initial value to text_value string
2021-02-20 12:19:46 +01:00
Linus Groh
3583b62ad3
LibGUI: Swap order of InputBox value and parent window args
...
This is now consistent with the other dialog classes.
2021-02-20 12:19:46 +01:00
Andreas Kling
3b9f110161
LibWeb+LibImageDecoderClient: Reuse ImageDecoder service process
...
The overhead from spawning a new ImageDecoder for every decoding job is
way too large and causing other problems as well (#5421 )
Let's keep the same decoder open and reuse it as long as it's working.
2021-02-20 11:37:55 +01:00
Andreas Kling
8fb9d1fd1d
LibImageDecoderClient: Gracefully recover from decoder crashes :^)
...
If the ImageDecoder service crashes while decoding an image for us,
we now recover gracefully and simply return null.
This shields the browser from bugs in our image decoders.
2021-02-20 11:37:55 +01:00
Andreas Kling
a446cea759
LibIPC: Add Connection::send_sync_but_allow_failure()
...
Instead of asserting that the peer responds successfully, this API
allows for the peer to die/crash/whatever happens on the other side
while handling a synchronous request.
This will be useful when using process separation to parse untrusted
data from the web.
2021-02-20 11:37:55 +01:00
Andreas Kling
8fd86fe6c9
Base: Do a little copy-editing in Mitigations(7)
2021-02-20 11:37:55 +01:00
Luke
0304f7bbbe
test-web: Create execution scope for new interpreter instead of the old one
...
It was accidentally creating a scope for the old interpreter
instead of the new one.
Fixes #5415
2021-02-20 10:48:34 +01:00
Andreas Kling
7e959d7430
Base: Fix a broken commit link in Mitigations(7)
2021-02-20 09:32:40 +01:00
Bui Quang Minh
ff67340d81
Userland: Support moving files between different mounted filesystems
...
In case we cannot use rename() because of cross-device error, copy file to the
destination then unlink the old source file.
2021-02-20 09:30:11 +01:00
Linus Groh
14058b6858
LibWeb: Use DOMException in XMLHttpRequest::send()
2021-02-20 09:14:19 +01:00
Linus Groh
70878290b9
LibWeb: Use DOMException in XMLHttpRequest::open()
2021-02-20 09:14:19 +01:00
Linus Groh
c4d8cce9a2
LibWeb: Use DOMException in XMLHttpRequest::set_request_header()
2021-02-20 09:14:19 +01:00
Linus Groh
4e1de09340
LibWeb: Use DOMException in HTMLElement::set_content_editable()
2021-02-20 09:14:19 +01:00
Linus Groh
dd621cc650
LibWeb: Use DOMException in Document::set_body()
2021-02-20 09:14:19 +01:00
Brian Gianforcaro
0d196d14d2
Base: Document more the mitigations in man7/Mitigations.md
...
Document:
* Unmap After Init
* RELRO
* -fstack-clash-protection
* -fstack-protector / -fstack-protector-strong
2021-02-20 09:01:02 +01:00
Linus Groh
8b78ed6308
Browser: Wrap DOMException values in regular JS::Error for console printing
...
Small hack to effortlessly make JS::MarkupGenerator output DOMExceptions
formatted like regular errors.
2021-02-20 00:09:11 +01:00
Linus Groh
e064194061
LibWeb: Return InvalidCharacterError from Element::set_attribute() for empty attr
...
This is the first user of the new DOMException, using ExceptionOr. :^)
2021-02-20 00:09:11 +01:00
Linus Groh
3da2b51d74
LibWeb: Generate code for throwing DOMExceptions based on ExceptionOr<T>
...
There's a little bit of template magic involved here to make it work,
but this seems alright. Very cool! :^)
Co-authored-by: AnotherTest <ali.mpfard@gmail.com>
2021-02-20 00:09:11 +01:00
Linus Groh
e708f1c3a2
LibWeb: Add DOM::ExceptionOr<T> container
...
Much like AK::Result this carries either a DOM::DOMException or regular
return value and will be used by DOM functions for exceptions that
should be thrown.
2021-02-20 00:09:11 +01:00
Linus Groh
ada71dc71b
LibWeb: Add DOM::DOMException class and bindings
2021-02-20 00:09:11 +01:00