Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMechanism to allow Servo to prompt the user #25242
Conversation
highfive
commented
Dec 11, 2019
|
Heads up! This PR modifies the following files:
|
highfive
commented
Dec 11, 2019
|
Small nit, otherwise the changes to the embedder LGTM. I'll leave the HL code up to @Manishearth. |
|
|
||
| #[derive(Deserialize, Serialize, PartialEq)] | ||
| pub enum PromptOrigin { | ||
| Untrusted, |
This comment has been minimized.
This comment has been minimized.
| #[derive(Deserialize, Serialize)] | ||
| pub enum PromptDefinition { | ||
| Alert(String, IpcSender<()>), | ||
| OkCancel(String, IpcSender<bool>), |
This comment has been minimized.
This comment has been minimized.
asajeffrey
Dec 11, 2019
Member
An enum rather than a bool? Or at least a comment saying that true is Ok?
|
Added comments and enum instead of bool. |
|
r? @Manishearth |
|
@Manishearth Review ping. |
|
looks good to me! (sorry for the delay, was waiting on some XR permissions discussions to happen) |
|
|
|
Shoot, we should have merged this :( |
|
It looks like this is adding more tinyfiledialogs calls; if any of them can come from strings written by page authors, send them through the escaper. |
|
I’ll get back to that once I figured #25683 |
|
@bors-servo r=manishearth |
|
|
Mechanism to allow Servo to prompt the user This blocks the embedder thread (compositor thread). Not ideal. I don't think it's too much work to only block script, I'll do that in a follow up bug. Fix #23376 @Manishearth we have a few new APIs. Hopefully this will cover your needs. A thing I haven't implemented yet is a way to ask the user to pick from a list. Let me know if it's something you'll need.
|
@bors-servo try=linux,windows |
|
|
|
Didn’t try to build locally: @bors-servo try=magicleap |
Mechanism to allow Servo to prompt the user This blocks the embedder thread (compositor thread). Not ideal. I don't think it's too much work to only block script, I'll do that in a follow up bug. Fix #23376 @Manishearth we have a few new APIs. Hopefully this will cover your needs. A thing I haven't implemented yet is a way to ask the user to pick from a list. Let me know if it's something you'll need.
|
|
|
@bors-servo r=manishearth |
|
|
Mechanism to allow Servo to prompt the user This blocks the embedder thread (compositor thread). Not ideal. I don't think it's too much work to only block script, I'll do that in a follow up bug. Fix #23376 @Manishearth we have a few new APIs. Hopefully this will cover your needs. A thing I haven't implemented yet is a way to ask the user to pick from a list. Let me know if it's something you'll need.
|
|
|
@bors-servo retry |
Mechanism to allow Servo to prompt the user This blocks the embedder thread (compositor thread). Not ideal. I don't think it's too much work to only block script, I'll do that in a follow up bug. Fix #23376 @Manishearth we have a few new APIs. Hopefully this will cover your needs. A thing I haven't implemented yet is a way to ask the user to pick from a list. Let me know if it's something you'll need.
|
|
paulrouget commentedDec 11, 2019
This blocks the embedder thread (compositor thread). Not ideal. I don't think it's too much work to only block script, I'll do that in a follow up bug.
Fix #23376
@Manishearth we have a few new APIs. Hopefully this will cover your needs. A thing I haven't implemented yet is a way to ask the user to pick from a list. Let me know if it's something you'll need.