Timothy Flynn
31469ee45a
Browser+WebContent+WebDriver: Move Execute Async Script to WebContent
...
With this, WebDriverEndpoints is unused and removed :^)
2022-11-11 11:36:07 +00:00
Timothy Flynn
88dcdf681f
Browser+WebContent+WebDriver: Move Get Page Source to WebContent
2022-11-11 11:36:07 +00:00
Timothy Flynn
ea0561a0b3
Browser+WebContent+WebDriver: Move Take Element Screenshot to WebContent
2022-11-11 11:36:07 +00:00
Timothy Flynn
93e14799c5
Browser+WebContent+WebDriver: Move Is Element Enabled to WebContent
2022-11-10 17:02:11 +00:00
Timothy Flynn
30d6a73d0e
Browser+WebContent+WebDriver: Move Get Element Rect to WebContent
2022-11-10 17:02:11 +00:00
Timothy Flynn
9dd62228c8
Browser+WebContent+WebDriver: Move Get Element Tag Name to WebContent
2022-11-10 17:02:11 +00:00
Timothy Flynn
5d32fd7026
Browser+WebContent+WebDriver: Move Get Element Text to WebContent
2022-11-10 17:02:11 +00:00
Timothy Flynn
06f1b8825c
Browser+WebContent+WebDriver: Move Get Element CSS Value to WebContent
2022-11-10 17:02:11 +00:00
Timothy Flynn
3c00d0e92b
Browser+WebContent+WebDriver: Move Get Element Property to WebContent
2022-11-10 17:02:11 +00:00
Timothy Flynn
1bc94e135f
Browser+WebContent+WebDriver: Move Get Element Attribute to WebContent
...
In doing so, this also implements a FIXME to handle boolean attributes.
2022-11-10 17:02:11 +00:00
Timothy Flynn
04ea3992e9
Browser+WebContent+WebDriver: Move Is Element Selected to WebContent
2022-11-10 17:02:11 +00:00
Timothy Flynn
560da56a1d
Browser+WebContent+WebDriver: Move Find Elements From Element to WC
...
This also lets us remove the element location strategy and some
WebContent IPC from Browser/LibWebView now that they are unused.
2022-11-10 13:10:16 +00:00
Timothy Flynn
ea7ce76d20
Browser: Add a context menu item to take a full document screenshot
2022-11-05 09:29:28 +01:00
Timothy Flynn
59b1dfa4e5
Browser: Rename "take screenshot" action to "take visible screenshot"
...
This is to differentiate between this and an upcoming action to take a
screenshot of the entire document.
2022-11-05 09:29:28 +01:00
Timothy Flynn
b0eb45f7c7
WebDriver+Browser: Implement GET /session/{id}/element/{id}/screenshot
2022-11-05 01:10:03 +00:00
Timothy Flynn
2d75229192
WebDriver+Browser: Implement GET /session/{id}/element/{id}/selected
2022-11-03 19:40:43 -04:00
Timothy Flynn
0f2b4d0aac
WebDriver+Browser: Implement GET /session/{id}/element/{id}/enabled
2022-11-03 19:15:43 +00:00
Timothy Flynn
08c687ef20
WebDriver+Browser: Implement GET /session/{id}/element/{id}/rect
2022-11-03 19:15:43 +00:00
Timothy Flynn
61d0b66bfb
WebDriver+Browser: Implement GET /session/{id}/source
2022-11-03 14:48:04 +00:00
Linus Groh
747ba2a88f
Browser+LibWebView: Add WebDriver IPC plumbing for executing scripts
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
Timothy Flynn
d603585802
Browser+LibWebView: Add a Tab hook to take a screenshot
2022-11-02 17:55:37 +00:00
Timothy Flynn
325e3c7bc6
Browser: Inform WebView processes of the browser window's position/size
2022-11-01 21:16:50 +00:00
martinfalisse
5ffff09e05
WebContent+Friends: Add get_element_text IPC and plumbing
2022-11-01 10:55:34 +00:00
demostanis
34acae90c7
Userland: Let applications make use of make_command_palette_action()
2022-10-25 10:21:18 +01:00
Tobias Christiansen
be6bbdaa3b
WebContent+Friends: Add get_element_tag_name IPC and plumbing
2022-10-22 13:44:49 +02:00
Tobias Christiansen
c11462f40e
WebDriver: Introduce a WebDriverEndpoints class
...
This holds the Functions used by the WebDriver to not clutter up the
`Tab.h` file.
2022-10-20 21:48:12 +02:00
Tobias Christiansen
202b2be1f2
WebContent+Friends: Add IPC and plumbing for WebDriver endpoint
...
To use the `GET /session/{id}/element/{id}/css/{property name}`
WebDriver endpoint, two new IPC calls through the Browser are
implemented:
- get_active_documents_type returns the type of the active document,
which is either "xml" or "html"
- get_computed_value_for_element returns the computed CSS value (as
String) for the given element and CSS property name
2022-10-20 21:26:10 +02:00
Tobias Christiansen
3db92885cd
WebContent+Friends: Add get_element_property IPC and plumbing
2022-10-19 22:30:06 +02:00
Tobias Christiansen
3f5a620b5d
WebContent+Friends: Add get_element_attribute IPC and plumbing
2022-10-19 17:30:58 +02:00
Tobias Christiansen
5d762bd448
WebDriver+Friends: Add IPC and plumbing for Element-getting
...
This extends the IPC calls `get_document_element` and
`query_selector_all` to be usable by the WebDriver. For this the
`WebDriverConnection` provides the same interfaces and takes care of
routing the data through the Browser.
2022-10-18 19:18:33 +02:00
Tobias Christiansen
30360918d4
Browser: Allow changing of existing Cookies in the CookieJar
...
And attach all the plumbing through to Tab over BrowserWindow.
2022-10-17 11:31:30 +02:00
kleines Filmröllchen
cb0b82ec46
Userland+LibCore: Remove legacy SERENITY_VERSION from Core::Version
...
This was being used as a default version argument in a couple of APIs,
so those need to change signature and the caller always needs to provide
a version.
2022-10-14 13:45:33 +02:00
Kemal Zebari
90719d34af
Browser: Provide ability to create new browser windows
...
This change allows a user to spawn new browser processes by either
going to "File -> New Window" or by the shortcut "Ctrl + N".
2022-10-06 16:52:57 +01:00
networkException
802cf9bc69
Everywhere: Use my very shiny serenityos.org email :^)
2022-09-12 15:13:12 +01:00
Andreas Kling
33c13f1bdc
Browser: Rename menu item from "Settings" to "Browser Settings"
2022-08-14 23:33:28 +02:00
sin-ack
3f3f45580a
Everywhere: Add sv suffix to strings relying on StringView(char const*)
...
Each of these strings would previously rely on StringView's char const*
constructor overload, which would call __builtin_strlen on the string.
Since we now have operator ""sv, we can replace these with much simpler
versions. This opens the door to being able to remove
StringView(char const*).
No functional changes.
2022-07-12 23:11:35 +02:00
Xexxa
6571455499
Browser+BrowserSettings: Add preference for new tab
2022-06-26 22:18:30 +01:00
networkException
52ee5026ea
LibGUI+Browser: Fix crash when activating a "Tab n" action
...
Previously we would try setting the tab index regardless if that tab
actually existed, resulting in Browser crashing by either pressing
Control + N or using the CommandPalette.
2022-06-05 13:46:52 +01:00
Rafał Babiarz
b162b7eec6
Browser+LibWeb+WebContent: Add ability to inspect session storage
2022-05-28 23:54:06 +01:00
MacDue
7c8541b914
Userland: Use GUI::Process::spawn_or_show_error() for spawn() from a GUI
2022-05-25 23:14:22 +01:00
MacDue
3fc0350caf
LibCore: Return ErrorOr<pid_t> and support arguments in Process::spawn
...
This makes the wrapper more like the rest in LibCore, and also
removes the annoying limitation of not supporting arguments.
There are three overloads one for String, char const *, and StringView
argument lists. As long as there are <= 10 arguments the argv list
will be allocated inline, otherwise on the heap.
2022-05-25 23:14:22 +01:00
Cameron Youell
df7fd39fcc
Browser: Allow usage of vertical tabs
...
Add implementation of vertical tabs into the browser,
with the new `Ctrl + ,` shortcut, or within the View Options
2022-05-21 22:25:16 +02:00
DexesTTP
dcbbbf5b4a
LibWebView: Move OutOfProcessWebView to a new LibWebView library
...
Also moves WebContentClient and the references to the generated IPC
descriptions, since they are all components of OutOfProcessWebView.
This patch has no functional changes.
2022-05-15 12:17:36 +02:00
Sam Atkins
cdffe556c8
LibGUI+Userland: Make Dialog::ExecResult an enum class
2022-05-13 16:27:43 +02:00
Sam Atkins
84b98da259
Userland: Set tab-widget properties in GML instead of code
2022-05-11 20:16:43 +02:00
Rafał Babiarz
dc66d16dc2
Browser: Rename "on_want_cookies" to match local storage equivalent
2022-05-05 21:54:38 +02:00
Ali Mohammad Pur
a42e03b01a
Browser+LibWeb+WebContent: Implement per-URL-pattern proxies
...
...at least for SOCKS5.
2022-04-09 12:21:43 +02:00
Andreas Kling
06d97c892b
LibWeb+Browser: Remove Web::WebViewHooks class
...
This was a mixin class that allowed sharing a set of hooks between
InProcessWebView and OutOfProcessWebView. Now that there is only OOPWV,
we don't need the mixin.
2022-04-06 19:35:08 +02:00
Valtteri Koskivuori
45a81f5a2c
Browser+LibWeb+WebContent: Add ability to inspect local storage
...
The storage inspector now has a new tab for local storage. The next step
would be to persist local storage and receive real-time notifications
for changes to update the table view.
2022-04-03 13:13:10 +01:00