MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]: WebResourceResponseReceived not fired for requests done in iframe

Open
#5,376 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

What happened?

As per the title, when the request are sent from the iframe, WebResourceResponseReceived doesn't fired. Is it the restriction of iframe?

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

No response

Framework

Win32

Operating System

Windows 11

OS Version

No response

Repro steps
  1. Create a simple webview2 demo using c++
  2. Let c++ native code load a html file name test.html
  3. test.html has an iframe which load any site
  4. Using WebResourceResponseReceived to try to listen for the responses of the requests from iframe
Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

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 a simple C++ Win32 WebView2 demo that loads test.html, then inspect WebResourceResponseReceived while the iframe loads another site. Compare the observed iframe request responses with the corresponding Edge behavior; done means the event behavior and any iframe restriction are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, html
Domain
api, desktop-dev, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.