flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

Fix RangeError: Maximum call stack size exceeded

Open liasica opened this issue 2 years ago • 2 comments

When using shouldInterceptFetchRequest or shouldInterceptAjaxRequest upload file (500Kb jpg file in my case), it will be throw an error with "Fix RangeError: Maximum call stack size exceeded"

liasica avatar Jun 04 '22 16:06 liasica

Same problem

Maybe we can add some condition to skip this, like use key words from request headers Content-Type: multipart/form-data

Usually when i use shouldInterceptFetchRequest , i won't modify form-data.

image

image

image

var bodyString = window.flutter_inappwebview._Util.arrayBufferToString(result.body);

gujintao1900 avatar Aug 09 '22 12:08 gujintao1900

If skipped, it becomes "unexpected" intercept :)

liasica avatar Aug 09 '22 15:08 liasica

Thanks! I just replaced the arrow function implementation with a normal js function to maintain browser compatibility. @all-contributors please add @liasica for code.

pichillilorenzo avatar Oct 13 '22 13:10 pichillilorenzo

@pichillilorenzo

I've put up a pull request to add @liasica! :tada:

allcontributors[bot] avatar Oct 13 '22 13:10 allcontributors[bot]