Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Firefox Incognito Mode #78955

Closed
BartusZak opened this issue Mar 24, 2021 · 11 comments
Closed

Support Firefox Incognito Mode #78955

BartusZak opened this issue Mar 24, 2021 · 11 comments
Labels
in triage Presently being triaged by the triage team r: timeout Issue is closed due to author not providing the requested details in time

Comments

@BartusZak
Copy link

BartusZak commented Mar 24, 2021

Steps to Reproduce

  1. Run flutter build web --release.
  2. Deploy web directory to Amazon S3 configured to handle Static Web Hosting
  3. Open http://flutter-web.s3-website-eu-west-1.amazonaws.com/ with Firefox in Private Window (87.0 (64-bit))

Expected results:
Page should load without any errors in web console.

Actual results:
App get stuck on splash screen and displays some weird errors

Logs

Firefox Console

unreachable code after return statement
main.dart.js:3:42
Uncaught Error: undefined main.dart.js:4002:3
    d http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:4002
    $0 http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:48201
    bN0 http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5910
    bNx http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5912
    $1 http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:46694
    c3w http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:4083
    s http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:4091
    (Async: MutationCallback)
    bJI http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5697
    <anonymous> http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:129847
    c http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:36
    bw7 http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5917
    bgX http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:6029
    fW http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5929
    c5l http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:8450
    bia http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:33160
    s http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5728
    $2 http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:46763
    q http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5714
    bia http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:33163
    <anonymous> http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:130121
    <anonymous> http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:130115
    dartProgram http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:130118
    <anonymous> http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:130121
Uncaught Error: undefined main.dart.js:4002:3
    d http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:4002
    $0 http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:48201
    bN0 http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5910
    bNx http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5912
    $1 http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:46694
    c3w http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:4083
    s http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:4091
    (Async: MutationCallback)
    bJI http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5697
    <anonymous> http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:129847
    c http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:36
    bw7 http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5917
    bgX http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:6029
    fW http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5929
    c5l http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:8450
    bia http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:33160
    s http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5728
    $2 http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:46763
    q http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:5714
    bia http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:33163
    <anonymous> http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:130121
    <anonymous> http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:130115
    dartProgram http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:130118
    <anonymous> http://flutter-web.s3-website-eu-west-1.amazonaws.com/main.dart.js:13012

flutter doctor -v

[√] Flutter (Channel beta, 1.26.0-17.6.pre, on Microsoft Windows [Version 10.0.19042.867], locale en-US)
    • Flutter version 1.26.0-17.6.pre at C:\FlutterSDK\flutter
    • Framework revision a29104a69b (5 weeks ago), 2021-02-16 09:26:56 -0800
    • Engine revision 21fa8bb99e
    • Dart version 2.12.0 (build 2.12.0-259.12.beta)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\bplos\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.54.3)
    • VS Code at C:\Users\bplos\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.20.0

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 89.0.774.57

• No issues found!
@TahaTesser TahaTesser added the in triage Presently being triaged by the triage team label Mar 24, 2021
@TahaTesser
Copy link
Member

Hi @BartusZak
Thanks for filing the issue, I don't have AWS so I just deployed to Netlify, the app loads fine in the Incognito window on Firefox 87.0.
image

flutter doctor -v
[✓] Flutter (Channel beta, 2.1.0-12.2.pre, on Microsoft Windows [Version 10.0.19042.867], locale en-US)
    • Flutter version 2.1.0-12.2.pre at C:\Users\Taha\Code\flutter_beta
    • Framework revision 5bedb7b1d5 (6 days ago), 2021-03-17 17:06:30 -0700
    • Engine revision 711ab3fda0
    • Dart version 2.13.0 (build 2.13.0-116.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Users\Taha\AppData\Local\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.2)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31112.23
    • Windows 10 SDK version 10.0.18362.0

[✓] Android Studio (version 4.1.0)
    • Android Studio at C:\Users\Taha\Code\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.54.3)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.20.0

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.867]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 89.0.4389.90
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 89.0.774.45

• No issues found!

Please try again on Netlify, you can use drag and drop to host

App get stuck on splash screen and displays some weird errors

Can you please provide a complete reproducible minimal code sample
Thank you

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 24, 2021
@BartusZak
Copy link
Author

Hey @TahaTesser

Thank you very much for all work.

  1. There is a minimal part of code to reproduce https://github.com/BartusZak/flutter_application_1
  2. There is a web page deployed with netlify https://youthful-wescoff-efa861.netlify.app/#/
Firefox Private Window Screenshoot

image

Google Chrom Incognito Window Screenshoot

image

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 25, 2021
@TahaTesser
Copy link
Member

Hi @BartusZak
I just realized you're on Channel beta, 1.26.0-17.6.pre while I used latest beta Channel beta, 2.1.0-12.2.pre in my testing #78955 (comment)

Can you please upgrade to the latest beta and try again
flutter channel beta
flutter upgrade --force
flutter doctor -v

Thank you

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 25, 2021
@BartusZak
Copy link
Author

I would love to update to Flutter Stable 2.0 with null safety support even but...

image
There are still some packages I depend of which have not migrated yet.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 25, 2021
@TahaTesser
Copy link
Member

TahaTesser commented Mar 26, 2021

@BartusZak
Unfortunately, there won't be a fix for the old Flutter version, you would need to update your Fluter setup to confirm if the problem persists or not for Firefox, since this is not reproducible with latest version
Thank you

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 26, 2021
@BartusZak
Copy link
Author

@TahaTesser
Please give me some time to update Flutter 2.0 and get back to you.

Can we do not close that issue, so I can report back the status?

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 26, 2021
@TahaTesser
Copy link
Member

@BartusZak
Take your time, issue would close in 3 weeks
Thank you

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 26, 2021
@pedromassangocode
Copy link

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

@pedromassangocode pedromassangocode added r: timeout Issue is closed due to author not providing the requested details in time and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Apr 16, 2021
@BartusZak
Copy link
Author

BartusZak commented Apr 22, 2021

Hey @TahaTesser,

I have finnally migrate project to Flutter 2.0.

Link to deployed project before migration to null-safety and its minimal repository to reproduce:
https://github.com/BartusZak/flutter_application_1
https://youthful-wescoff-efa861.netlify.app/#/

With sound null-safety support:
https://github.com/BartusZak/null_safety_flutter_auto_route
https://hungry-mayer-4e5438.netlify.app/

Result:
Problem occurs still.

@TahaTesser
Copy link
Member

TahaTesser commented Apr 23, 2021

@BartusZak
Thanks for the details, I can see a blank window with tab title when running your project locally flutter run -d web-server

However, the project seems to use a third party, can you please reproduce the issue without third-party packages? or file an issue on the package that's causing this problem?
providing a minimal reproducible code sample that does not use 3rd party plugins, your complete flutter run -v logs running the minimal code sample and I will reopen it.
Thank you

@github-actions
Copy link

github-actions bot commented Aug 2, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in triage Presently being triaged by the triage team r: timeout Issue is closed due to author not providing the requested details in time
Projects
None yet
Development

No branches or pull requests

3 participants