const GURL install_url =
https_server()->GetURL("/web_apps/custom_id/install_url.html");Is this a cross-origin URL? It's using the same server.
EXPECT_EQ(install_future.Get<webapps::InstallResultCode>(),
webapps::InstallResultCode::kSuccessNewInstall);Also check
```
EXPECT_EQ(provider().registrar_unsafe().GetAppIds().size(), 1u);
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
const GURL install_url =
https_server()->GetURL("/web_apps/custom_id/install_url.html");Is this a cross-origin URL? It's using the same server.
This isn't a cross-origin URL, but for our case, we only need it to be not the current document. I think mentioning cross-origin is confusing here so I've removed that. Our API browsertests used the titles of crossorigin, but I will omit that here to avoid confusion. Thanks for pointing this out!
EXPECT_EQ(install_future.Get<webapps::InstallResultCode>(),
webapps::InstallResultCode::kSuccessNewInstall);Kristin LeeAlso check
```
EXPECT_EQ(provider().registrar_unsafe().GetAppIds().size(), 1u);
```
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hi Dan and Mike, my CL is also ready for review but note that it is chained to be after Lia's CL that you both are currently reviewing, https://chromium-review.googlesource.com/c/chromium/src/+/7241206, because I needed to add test cases to the new install_element_browsertest.cc file she created in her CL. Otherwise, the code logic should be fairly separate so I'm hoping an early review is still possible if you have time. Thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
// WebInstallFromUrlCommand which also fetches the manifest.can you do
```
// TODO(https://crbug.com/468047211): Change to ui_test_utils::NavigateToURL after WebInstallServiceImpl stops using InstallableManager.
```
And if possible, also add this to the WebInstallServiceImpl part where we talk to the InstallableManager
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// WebInstallFromUrlCommand which also fetches the manifest.can you do
```
// TODO(https://crbug.com/468047211): Change to ui_test_utils::NavigateToURL after WebInstallServiceImpl stops using InstallableManager.
```And if possible, also add this to the WebInstallServiceImpl part where we talk to the InstallableManager
Sounds good, added to both places!
const GURL install_url =
https_server()->GetURL("/web_apps/custom_id/install_url.html");Kristin LeeIs this a cross-origin URL? It's using the same server.
This isn't a cross-origin URL, but for our case, we only need it to be not the current document. I think mentioning cross-origin is confusing here so I've removed that. Our API browsertests used the titles of crossorigin, but I will omit that here to avoid confusion. Thanks for pointing this out!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
3 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: chrome/browser/web_applications/install_element_browsertest.cc
Insertions: 45, Deletions: 33.
The diff is too large to show. Please review the diff.
```
```
The name of the file: chrome/browser/web_applications/web_install_service_impl.cc
Insertions: 2, Deletions: 0.
The diff is too large to show. Please review the diff.
```
[<install> Element] Do not show the permission prompt
Adds `InstallFromElement()` to the mojo interface that accepts the same
parameters as `Install()` but is used for installations triggered from
an <install> element. We do not want to show the permission prompt for
triggers from an <install> element so the permission is allowed by
default unless previously denied.
- Feature flag: InstallElement
- Internal design doc: https://docs.google.com/document/d/1rGvLhD4SR8Y9M1wVmqgyesPNkbZGU7HOqlttjEFJ5Vo/edit?tab=t.0
- Test site: https://kbhlee2121.github.io/pwa/web-install/index.html
- Explainer: https://github.com/WICG/install-element
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |