Nico Weber
daeaefad17
Everywhere: Clean up "the the" comment typos
2022-11-03 17:38:32 +00:00
Timothy Flynn
b820b9b2ff
LibUnicode: Make the generated .h and .cpp paths for emoji data optional
...
This is to allow people making emoji to run the generator to create the
expected commit message format.
2022-11-03 16:37:04 +00:00
Timothy Flynn
92f4f40198
LibJS: Rename the Intl Enumeration Available* AOs to AvailableCanonical*
...
This is an editorial change to the Intl Enumeration API proposal. See:
807b444
Note that this was followed by a normative change to actually ensure the
returned values are canonical:
075a6dc
But the values we return are already canonical.
2022-11-03 16:36:11 +00:00
Timothy Flynn
b10bbac061
LibXML+LibWeb: Store the XML document's original source
...
Similar to how we store an HTML document's original source. This allows
the source to be inspected with "View Source" in the Browser.
2022-11-03 14:52:16 +00:00
Timothy Flynn
e7412717b4
LibWeb: Make it obvious that DOM::Document makes a copy of its source
2022-11-03 14:52:16 +00:00
Timothy Flynn
f8cdfb8907
LibXML: Convert some tab characters to spaces
2022-11-03 14:52:16 +00:00
Timothy Flynn
61d0b66bfb
WebDriver+Browser: Implement GET /session/{id}/source
2022-11-03 14:48:04 +00:00
Timothy Flynn
82af1557dd
LibWebView+WebContent: Add IPC to run the fragment serialization steps
2022-11-03 14:48:04 +00:00
Timothy Flynn
13b8eeff54
LibWeb: Fully implement the fragment serializing algorithm
...
Rather than assuming the node's node document is an HTML document,
handle XML documents as well.
2022-11-03 14:48:04 +00:00
Timothy Flynn
e1ac9c83b2
CI: Also update the main workflow to use actions/checkout version 3
2022-11-03 13:32:16 +00:00
Filiph Sandström
0252d7291c
CI: Upgrade actions/setup-python
to v4
...
Just as the actions/checkout the only breaking change is a internal one
related to upgrading from node 12 to node 16.
2022-11-03 11:29:45 +00:00
Filiph Sandström
3ddefb9f5f
CI: Upgrade actions/checkout
to v3
...
actions/checkout's only change between v2 and v3 is an internal switch
to node 16 which wont effect our usage of it at all.
2022-11-03 11:29:45 +00:00
Andrew Kaster
5453d6e5ec
Flood: Link against all required libraries privately
...
Should have asked for a rebase on that PR due to the library linking
refactor!
2022-11-03 03:09:35 -06:00
implicitfield
7eca8f7e62
Games: Add Flood
2022-11-03 01:02:56 -06:00
Filiph Sandström
02baa1b005
Documentation: Give collapsed sections consistent headers
2022-11-03 06:58:19 +00:00
Dennis Bonke
ccb5151291
AK: Add support for mlibc in URL
2022-11-02 22:19:12 -06:00
Dennis Bonke
b4b7264fa5
AK: Add support for mlibc in LexicalPath
2022-11-02 22:19:12 -06:00
Moustafa Raafat
939374a037
LibJS: Use the UnsignedBigInteger compare_to_double algorithm
...
This also avoids an unnecessary copy
2022-11-02 22:04:34 -06:00
Moustafa Raafat
54b8a2b094
LibCrypto: Add a way to compare UnsignedBigInteger with double
...
This patch also make SignedBigInteger::compare_to_double make use
of the new function.
2022-11-02 22:04:34 -06:00
demostanis
e03f014e7a
Base: Update tail(1) man page
2022-11-02 21:29:20 -06:00
demostanis
c8f790e4dd
tail: Port to Core::Stream, use Core::FileWatcher
2022-11-02 21:29:20 -06:00
Linus Groh
629fbc2cfc
WebDriver: Implement POST /session/{session id}/execute/async
endpoint
2022-11-02 23:46:30 +00:00
Linus Groh
f88a0c51a3
WebDriver: Implement POST /session/{session id}/execute/sync
endpoint
2022-11-02 23:46:30 +00:00
Linus Groh
6e1131e6de
WebDriver: Support "data" field in error responses
2022-11-02 23:46:30 +00:00
Linus Groh
747ba2a88f
Browser+LibWebView: Add WebDriver IPC plumbing for executing scripts
2022-11-02 23:46:30 +00:00
Linus Groh
b572a91a6f
LibWeb+WebContent: Add WebDriver infrastructure for executing scripts
...
This cannot be done on the Browser or WebDriver ends, or via the
existing run_javascript() IPC endpoint, as we cannot transfer JS objects
through the IPC boundary (yet), only serialized JSON, so the individual
WebDriver steps around script execution need to run in the WebContent
process.
2022-11-02 23:46:30 +00:00
Timothy Flynn
ce8c34a8c9
Browser: Add a context menu item to take a screenshot of the current tab
2022-11-02 23:44:18 +00:00
Andreas Kling
43888b848c
LibWeb: Resolve unresolved CSS calc() values in StyleComputer
...
When mixing calc() and var(), we're forced to delay resolving them until
we're in StyleComputer. Previously we'd just skip over them.
This patch handles calc() in the same pass as attr(). We reparse the
calc() value after var() expansion, and then try to resolve it to a
constant value if possible. If it's not possible, we leave the calc()
where it is, and maybe layout can figure it out later.
Note that I've only implemented resolution to integer and percentage in
this commit. There are more things a calc() could resolve to, and we
should implement those as well.
2022-11-02 22:42:48 +01:00
Andreas Kling
8869dec5fd
LibWeb: Add CSS::Parser helper for parsing a standalone "calc()" value
2022-11-02 22:42:48 +01:00
Andreas Kling
f14ad0e8c1
LibWeb: Add helper functions to create CSS parser tokens
...
These will be used when resolving calc() values in StyleComputer.
It's indeed strange that calc() resolves to tokens, but it's how the
engine currently handles those things. There is room for improvement.
2022-11-02 22:42:48 +01:00
Andreas Kling
ab9aa9da0d
LibWeb: Do CSS var() expansion in a separate pass
...
By expanding all the var() values first, we allow var() to occur
anywhere, even as arguments to CSS functions.
2022-11-02 22:42:48 +01:00
Andreas Kling
767d632ab7
LibWeb: Don't panic on unsupported text-decoration-line values
...
Instead, just log a FIXME message and move on.
2022-11-02 22:42:48 +01:00
Andreas Kling
628baafefc
LibWeb: Fix justify-content: center
interaction with flex item margins
...
When centering flex items on the main axis, we can simply ignore margin
before the first item and after the last item.
2022-11-02 22:42:48 +01:00
Ali Mohammad Pur
77cc8c5612
Shell: Re-block SIGTT{IN,OU} on start
...
This also shows up when trying to read from a 0x0 buffer as it has no
PTY attached, avoid the mess by just blocking them (instead of ignoring
them).
2022-11-03 00:01:42 +03:30
Ali Mohammad Pur
922fa2e9d0
LibLine: Avoid crashing on a 0x0 terminal
...
Some terminals start with a 0x0 buffer, run the shell, then switch to
a normal buffer size; avoid crashing in this case.
Also downgrade the paging TODO to a FIXME, a slightly broken terminal is
okay if all you're doing is using unimplemented features such as putting
too much text into the terminal.
2022-11-03 00:01:42 +03:30
Timothy Flynn
1ffaad29e1
WebDriver+Browser: Implement GET /session/{id}/screenshot
...
This doesn't follow the spec to a tee. Our OutOfProcessWebView already
has a bitmap that can be used as the window screenshot. Therefore, we
can bypass the steps that assume we need to access the window's frame
buffer in-flight.
We also don't create an HTMLCanvasElement. We would need a Document in
the WebDriver process to do so. Instead, we can still run the encoding
steps exactly as-is using the screenshot bitmap.
2022-11-02 17:55:37 +00:00
Timothy Flynn
d603585802
Browser+LibWebView: Add a Tab hook to take a screenshot
2022-11-02 17:55:37 +00:00
Timothy Flynn
819598aecf
WebContent: Support sending large responses to the WebDriver client
...
Some endpoints, like /session/{id}/screenshot, will require sending
large data to the client. We won't be able to write all of the data in
one shot, so loop over the data until we've sent it all (or fail).
2022-11-02 17:55:37 +00:00
John Diamond
63c459b6c1
Documentation: Update macOS build dependencies to gcc-12
...
Since commit bc2ebcadc
serenity requires gcc version 12 or later to
build, so let's update the homebrew package version to match that.
2022-11-02 16:58:43 +00:00
Timothy Flynn
11d0489fa3
WebDriver+Browser: Implement POST /session/{id}/window/minimize
2022-11-02 15:41:19 +00:00
Timothy Flynn
0d5209cee6
LibGUI+WindowServer: Allow programatically minimizing windows
...
The backend methods in WindowServer already exist. This just adds the
IPC plumbing to connect those methods to GUI::Window.
2022-11-02 15:41:19 +00:00
Timothy Flynn
89b2ff72f7
WebDriver+Browser: Implement POST /session/{id}/window/maximize
2022-11-02 15:41:19 +00:00
Timothy Flynn
174248678e
WebDriver+Browser: Implement POST /session/{id}/window/rect
2022-11-02 15:41:19 +00:00
Timothy Flynn
dac91c5790
WebDriver+Browser: Implement GET /session/{id}/window/rect
2022-11-02 15:41:19 +00:00
Timothy Flynn
7561308af1
WebDriver: Convert a couple tabs to spaces
2022-11-02 15:41:19 +00:00
Moustafa Raafat
0ce854cf73
TextEditor: Save the selected font
2022-11-02 14:21:30 +00:00
Maciej
c90024fbab
SystemMonitor: Add context menu for opening adapter in NetworkSettings
2022-11-02 12:00:26 +00:00
Maciej
38fb3257c8
NetworkSettings: Add command line option for opening a specific adapter
2022-11-02 12:00:26 +00:00
Maciej
f4a5cd63bb
SystemMonitor: Add Command column to ProcessModel
...
This column shows full command line of a process, or empty line if an
error occures when reading it. The command is not escaped for now.
2022-11-02 12:00:26 +00:00
Aliaksandr Kalenik
e4db71c88b
LibWeb: Support translate3d
2022-11-02 11:04:23 +00:00