Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images are not displayed in Edge Bing Chat #1744

Closed
AdamWr opened this issue Apr 5, 2023 · 8 comments
Closed

Images are not displayed in Edge Bing Chat #1744

AdamWr opened this issue Apr 5, 2023 · 8 comments

Comments

@AdamWr
Copy link
Member

AdamWr commented Apr 5, 2023

https://www.microsoft.com/en-gb/edge?form=MA13FJ

Comment

AG prevents the Bing AI feature from... drawing images.

STR:

  • Update to the most recent version of Edge (111.0.1661.62 in my case)
  • Click on the 'b' icon in the upper right to launch the dialogue
  • Ask it to draw an image (可以帮我画一个苹果?)

Expected: It show an image of an apple (2nd screenshot)

Actual behavior: It does not show any images

As soon as you stop AdGuard, it starts working as expected, i.e. shows images.

Screenshots

Screenshot 1

Screenshot 1

Screenshot 2

Screenshot 2

System configuration

Information value
AdGuard product: AdGuard for Mac v2.10.0.1270+nightly
Browser: Edge 111.0.1661.62 (Chromium-based)
Stealth mode options: Hide your search queries,
Send Do-Not-Track header,
Remove X-Client-Data header from HTTP requests,
Strip URLs from tracking parameters,
Self-destructing third-party cookies (180),
Block Push API,
Block Location API,
Block Java
DNS filtering: server: sdns://AgcAAAAAAAAADDk0LjE0MC4xNC40OQAaZGIxYjY0NDIuZC5hZGd1YXJkLWRucy5jb20KL2Rucy1xdWVyeQ
filters: https://filters.adtidy.org/mac_v2/filters/15.txt
Filters: Ad Blocking:
AdGuard Base

Privacy:
AdGuard Tracking Protection

Social Widgets:
AdGuard Social Media

Annoyances:
AdGuard Annoyances,
AdGuard Cookie Notices,
AdGuard Popups,
AdGuard Mobile App Banners,
AdGuard Other Annoyances,
AdGuard Widgets

Language-specific:
AdGuard Russian,
AdGuard German,
AdGuard French,
AdGuard Ukrainian,
AdGuard Chinese,
EasyList Czech and Slovak,
EasyList Italy,
Hungarian
Userscripts: 全网VIP视频破解去广告免费看+全网音乐下载+知乎增强+短视频无水印下载+(url:+local),
AdGuard+Extra+(Beta)+(url:+https://userscripts.adtidy.org/beta/adguard-extra/1.0/adguard-extra.user.js)
Referrer: https://www.bing.com/

Originally posted by @adguard-bot in AdguardTeam/AdguardFilters#147117 (comment)

@AdamWr
Copy link
Member Author

AdamWr commented Apr 5, 2023

It seems that this issue is not caused by filters, because it occurs even with all modules disabled.
I'm not sure exactly, but it's probably related to CSP.

This error occurs:

Refused to display 'https://www.bing.com/' in a frame. The embedder requires it to enforce the following Content Security Policy: 'frame-src '*'; base-uri 'self'; script-src 'nonce-required' 'strict-dynamic';'. However, the frame neither accepts that policy using the Allow-CSP-From header nor delivers a Content Security Policy which is at least as strong as that one.

Screenshot

image

If I add these rules:

@@||bing.com^$generichide,badfilter
@@||bing.com/search?$generichide,badfilter
@@||bing.com/search?showselans=$elemhide,jsinject,extension,content,important

to user rules, then images are displayed correctly and there is no such error related to CSP.

AdGuard for Windows version 7.13 nightly 8 (build 4242, CL 1.11.79)

@YelenaKoroleva
Copy link

A user from ticket #740274 added these user rules, however, the issue persists for them

@AdamWr
Copy link
Member Author

AdamWr commented Apr 11, 2023

User can try to add:

@@||bing.com^$generichide,badfilter
@@||bing.com/search?$generichide,badfilter
@@||bing.com/search?showselans=$document

or

@@||bing.com^$generichide,badfilter
@@||bing.com/search?$generichide,badfilter
@@||bing.com^$document

to user rules.

Although it will probably unblock ads on bing.com and I'm not sure if it will work because for whatever reason I don't have access to Edge Bing Chat anymore.

@sfionov
Copy link
Member

sfionov commented Apr 17, 2023

@AdamWr The CSP is set on iframe inside edgeservice.bing.com/shell. We don't patch csp attributes on iframe yet.

This rule should be enough for now:

@@||bing.com/search?showselans=$document,frame,important

@sfionov
Copy link
Member

sfionov commented Apr 17, 2023

csp attribute of iframe is something new: https://w3c.github.io/webappsec-cspee/

I think we should support it in one of future releases

@AdamWr
Copy link
Member Author

AdamWr commented Apr 17, 2023

@AdamWr The CSP is set on iframe inside edgeservice.bing.com/shell. We don't patch csp attributes on iframe yet.

This rule should be enough for now:

@@||bing.com/search?showselans=$document,frame,important

The problem is that I cannot use Bing chat in the sidebar for whatever reason, so unfortunately I cannot check this rule.
I had Bing Chat in the sidebar before, but now there is only discover with news/trending search.

Does this rule work for you?

@sfionov
Copy link
Member

sfionov commented Apr 18, 2023

@AdamWr Checked with both Win and Mac Edges, rule works for me.

On Windows, chat was unavailable with my current locale. I have to set English as main language in edge://settings/languages . After that, Chat works.

AdamWr added a commit to AdguardTeam/AdguardFilters that referenced this issue Apr 19, 2023
@AdamWr
Copy link
Member Author

AdamWr commented Apr 19, 2023

Thank you for checking it out, I have added this rule.

On Windows, chat was unavailable with my current locale. I have to set English as main language in edge://settings/languages . After that, Chat works.

I have browser and system language set to English and Chat worked correctly before, I have no idea why it stopped working (and it still doesn't work) ¯\_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants