Skip to content

Commit 79059cf

Browse files
committed
Write more about context menus
1 parent 18c5b2e commit 79059cf

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

_posts/2025-12-12-november-in-servo.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ summary: ao!! wrrrrao!!
77
categories:
88
---
99

10-
Landing in [**Servo 0.0.3**](https://github.com/servo/servo/releases/tag/v0.0.3) and our November nightly builds, we now have **context menus** for links, images, and other web content (@mrobinson, @atbrakhi, #40402, #40501, #40607), plus several web platform features:
10+
Landing in [**Servo 0.0.3**](https://github.com/servo/servo/releases/tag/v0.0.3) and our November nightly builds, we now have **context menus** for links, images, and other web content (@atbrakhi, @mrobinson, #40434, #40501), plus several web platform features:
1111

1212
- **<video controls>** (@rayguo17, #40578)
1313
- **<use>** in SVG (@WaterWhisperer, #40684)
@@ -42,6 +42,9 @@ We now have full support for **SHA3-256**, **SHA3-384**, **SHA3-512** (@kkoyung,
4242
**Each webview** can now now have its **own rendering context** (@mrobinson, @mukilan, #40794, #40738, #40721, #40594, #40923).
4343
This effectively enables full support for **multiple windows**, and you’ll see servoshell make use of that this month.
4444

45+
Our previously unused **context menu API** has been replaced with a new, more effective API that includes actions for links, images, and other web content (@mrobinson, @atbrakhi, #40402, #40501, #40607).
46+
For more details, see the docs for **[ContextMenu](https://doc.servo.org/servo/struct.ContextMenu.html)**, [EmbedderControl::<wbr>ContextMenu](https://doc.servo.org/servo/enum.EmbedderControl.html#variant.ContextMenu), and [WebViewDelegate::<wbr>show_<wbr>embedder_<wbr>control()](https://doc.servo.org/servo/trait.WebViewDelegate.html#method.show_embedder_control).
47+
4548
[**WebView**](https://doc.servo.org/servo/struct.WebView.html) now has [**can_go_back()**](https://doc.servo.org/servo/struct.WebView.html#method.can_go_back) and [**can_go_forward()**](https://doc.servo.org/servo/struct.WebView.html#method.can_go_forward) methods, and servoshell now uses those to disable the back and forward buttons (@mrobinson, #40598).
4649

4750
Having introduced our new [**RefreshDriver**](https://doc.servo.org/servo/trait.RefreshDriver.html) API in October, we’ve now **removed [Servo](https://doc.servo.org/servo/struct.Servo.html)::<wbr>animating()** (@mrobinson, #40799) and **[ServoDelegate](https://doc.servo.org/servo/trait.ServoDelegate.html)::<wbr>notify_<wbr>animating_<wbr>changed()** (@mrobinson, #40886), and similarly cleaned up the obsolete and inefficient “animating” state in servoshell (@mrobinson, #40715).

commits.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ https://github.com/servo/servo/pull/40491 (@mrobinson, #40491) script: Rename `S
12511251
# already called `Pipeline::spawn`.
12521252
# Testing: This is just a rename, so existing tests should cover this change.
12531253
+https://github.com/servo/servo/pull/40434 (@atbrakhi, @mrobinson, #40434) servoshell: Implement context menu in servoshell (#40434)
1254-
servoshell; initial context menu (back, forward, reload)
1254+
;servoshell; initial context menu (back, forward, reload)
12551255
# This PR adds context menu support with clickable menu items in the Minibrowser. The menu appears on right click
12561256
# and supports basic navigation actions (Back, Forward, Reload).
12571257
# Testing: We already have tests for ContextMenu in WebView API test.

outline.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@
112112
- https://github.com/servo/servo/pull/40725 (@mrobinson, #40725) script: Use a `WeakRef` for references to `WebGLRenderingContext` (#40725)
113113
security; fix use-after-free in WebGL
114114
- servoshell
115-
- https://github.com/servo/servo/pull/40402 (@mrobinson, @atbrakhi, #40402) libservo: Integrate context menu into the show_embedder_control API (#40402)
115+
- DONE https://github.com/servo/servo/pull/40402 (@mrobinson, @atbrakhi, #40402) libservo: Integrate context menu into the show_embedder_control API (#40402)
116116
api servoshell; rework context menu api, embedders can now know the position and know what each item does (`show_context_menu(webview, result_sender, title, items)` → `ContextMenu.{id,position,items,select,dismiss}()`)
117117
- https://github.com/servo/servo/pull/40306 (@mrobinson, #40306) servoshell: Add a `VsyncRefreshDriver` for Android (#40306)
118118
servoshell; use system compositor for vsync
119-
- https://github.com/servo/servo/pull/40434 (@atbrakhi, @mrobinson, #40434) servoshell: Implement context menu in servoshell (#40434)
119+
- DONE https://github.com/servo/servo/pull/40434 (@atbrakhi, @mrobinson, #40434) servoshell: Implement context menu in servoshell (#40434)
120120
servoshell; initial context menu (back, forward, reload)
121-
- https://github.com/servo/servo/pull/40501 (@mrobinson, @atbrakhi, #40501) script: Add context-based context menu options (#40501)
121+
- DONE https://github.com/servo/servo/pull/40501 (@mrobinson, @atbrakhi, #40501) script: Add context-based context menu options (#40501)
122122
api servoshell; copy link, open link in new, copy image link, open image in new, cut, copy, paste, select all
123123
- DONE https://github.com/servo/servo/pull/40598 (@mrobinson, #40598) libservo: Add `WebView::can_go_forward` and `WebView::can_go_back` (#40598)
124124
api servoshell

0 commit comments

Comments
 (0)