flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

[web] fix web callbacks

Open p-mazhnik opened this issue 4 months ago • 10 comments

Fixes #2026, fixes #2045, fixes #2046

Related to https://github.com/flutter/flutter/issues/143922

p-mazhnik avatar Mar 08 '24 13:03 p-mazhnik

@p-mazhnik you didn't assign any reviewer.

asarkar101 avatar Mar 13 '24 05:03 asarkar101

@asarkar101 I am not a maintainer of this repository, therefore it is not possible to request reviews.

p-mazhnik avatar Mar 13 '24 08:03 p-mazhnik

@pichillilorenzo Please kindly review this.

sanalkv avatar Mar 21 '24 10:03 sanalkv

@p-mazhnik looks like the owner is not active :( @pichillilorenzo

sanalkv avatar Apr 02 '24 08:04 sanalkv

@pichillilorenzo This issue is so important for us, please consider this commit.

GelistirmeKF avatar Apr 19 '24 19:04 GelistirmeKF

@p-mazhnik How can I test your branch or import your branch to my project with your solution?

david98pp avatar Apr 25 '24 23:04 david98pp

@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 avatar Apr 26 '24 12:04 p-mazhnik

@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?

david98pp avatar Apr 26 '24 15:04 david98pp

@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

david98pp avatar Apr 26 '24 16:04 david98pp

@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

asarkar101 avatar Apr 29 '24 07:04 asarkar101