MicrosoftEdge / MicrosoftEdge/WebView2Samples

Cannot run extension

Open
#23 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1k
Forks
521
Avg merge
13m
Merged PRs (30d)
1

Description

I've installed a Chrome extension on Microsoft Edge (Chromium) to play HLS video. I've tried on Microsoft Edge (Chromium) and it works fine. The HLS URL is http://localhost/hls/taiguo/playlist.m3u8 and the Microsoft Edge browser displays the full URL as: extension://ekcifneimckhkjdfklkkpdlnckcjhmke/index.html#http://localhost/hls/taiguo/playlist.m3u8.

I want to use the code sample from Getting Started with WebView2 (developer preview) to play the media in a Windows program. If I call Navigate(...) using the .m3u8 URL as follows:
webviewWindow->Navigate(L"http://localhost/hls/taiguo/playlist.m3u8");
the application will download the playlist file, but not play the media automatically. If I use the full extension like:
webviewWindow->Navigate(L"extension://ekcifneimckhkjdfklkkpdlnckcjhmke/index.html#http://localhost/hls/taiguo/playlist.m3u8");
the app will display the following error message:
ekcifneimckhkjdfklkkpdlnckcjhmke is blocked
Requests to the server have been blocked by an extension.
Try disabling your extensions.

I hope someone can tell me what is the correct way to run extension using WebView2. Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Getting Started with WebView2 sample and the Navigate(...) call described in the issue, then check WebView2 documentation for extension:// navigation and Chromium extension support. Done would be a documented, reproducible way to run the extension in a Windows WebView2 app, or a confirmed limitation with an alternative path.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.