mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user