chrome: Add extension support for Alloy style browsers (see #3681)

This change adds minimal tabs API support for Alloy style browsers.
Clicking links in PDF documents now navigate as expected.
This commit is contained in:
Marshall Greenblatt
2024-04-26 21:21:18 -04:00
parent 0783b4c57d
commit ed079792b6
18 changed files with 386 additions and 80 deletions

View File

@@ -118,8 +118,7 @@ class TestSchemeHandler : public TestHandler {
CefRefPtr<CefFrame> frame,
CefRefPtr<CefRequest> request,
CefRefPtr<CefCallback> callback) override {
if (!use_alloy_style_browser() &&
request->GetResourceType() == RT_FAVICON) {
if (request->GetResourceType() == RT_FAVICON) {
// Ignore favicon requests.
return RV_CANCEL;
}
@@ -421,7 +420,7 @@ class ClientSchemeHandler : public CefResourceHandler {
CefRefPtr<CefCallback> callback) override {
EXPECT_FALSE(CefCurrentlyOn(TID_UI) || CefCurrentlyOn(TID_IO));
if (IsChromeBootstrap() && request->GetResourceType() == RT_FAVICON) {
if (request->GetResourceType() == RT_FAVICON) {
// Ignore favicon requests.
return false;
}
@@ -496,7 +495,7 @@ class ClientSchemeHandler : public CefResourceHandler {
bool ProcessRequest(CefRefPtr<CefRequest> request,
CefRefPtr<CefCallback> callback) override {
if (IsChromeBootstrap() && request->GetResourceType() == RT_FAVICON) {
if (request->GetResourceType() == RT_FAVICON) {
// Ignore favicon requests.
return false;
}