flutter_inappwebview
flutter_inappwebview copied to clipboard
[web] fix web callbacks
Fixes #2026, fixes #2045, fixes #2046
Related to https://github.com/flutter/flutter/issues/143922
@p-mazhnik you didn't assign any reviewer.
@asarkar101 I am not a maintainer of this repository, therefore it is not possible to request reviews.
@pichillilorenzo Please kindly review this.
@p-mazhnik looks like the owner is not active :( @pichillilorenzo
@pichillilorenzo This issue is so important for us, please consider this commit.
@p-mazhnik How can I test your branch or import your branch to my project with your solution?
@david98pp you can add dependency override
dependency_overrides:
flutter_inappwebview_web:
git:
url: [email protected]:p-mazhnik/flutter_inappwebview.git
path: flutter_inappwebview_web
ref: 7cac4c3c0ce50302cb9144901f425d00e4bf4870
# or ref: web-fix
@p-mazhnik thanks for your help, the method onUpdateVisitedHistory is still not working for me, do I have to do anything extra? or any solution?
@p-mazhnik the error is: DOMException: Failed to read a named property 'history' from 'Window': Blocked a frame with origin "http://localhost:58988" from accessing a cross-origin frame.
at HTMLIFrameElement.
@p-mazhnik the error is: DOMException: Failed to read a named property 'history' from 'Window': Blocked a frame with origin "http://localhost:58988" from accessing a cross-origin frame. at HTMLIFrameElement. (http://localhost:58988/assets/packages/flutter_inappwebview_web/assets/web/web_support.js
same issue