1. 14 Jul, 2023 1 commit
    • Pavel Mazhnik's avatar
      [web] remove unnecessary awaits from flutter.js (#130204) · 1c1c273b
      Pavel Mazhnik authored
      Fixed types for `_getNewServiceWorker` and `_waitForServiceWorkerActivation` functions.  
      These functions currently expect a Promise as an argument, but we're actually passing in an already resolved value:
      ```js
      .then(this._getNewServiceWorker)
      .then(this._waitForServiceWorkerActivation);
      ```
      1c1c273b
  2. 13 Jul, 2023 1 commit
  3. 23 Jun, 2023 1 commit
    • David Iglesias's avatar
      [web] Hides that Flutter uses requireJS in debug. (#129032) · 34b42acf
      David Iglesias authored
      Flutter web uses requireJS in `debug` mode to assemble a DDC-compiled app from a bunch of small files ("modules").
      
      This caused that `canvaskit.js` (and all other modules that used a browserify-like loading header) didn't work because they attempted to use the `define` function provided by Flutter's instance of `requireJS` (which kept the defined modules private, rather than as globals on the page, as the users of the JS expected).
      
      A [fix](https://github.com/flutter/engine/pull/27342) was added to `flutter/engine` to trick loaders into *not* using the `requireJS` module loader, but a recent change in the fix's js-interop layer *subtly* changed its JS output on the page (objects went from `undefined` to `null`), causing this:
      
      * https://github.com/flutter/flutter/issues/126131 (and others)
      
      This PR hides a bit of code that is commonly used by module loaders to decide that they may use the `define` function provided by requireJS (so the engine workaround can be removed).
      
      ## Next steps
      
      * https://github.com/flutter/engine/pull/42941
      
      ## Issues
      
      Partially addresses: https://github.com/flutter/flutter/issues/126131 (and others)
      
      ## Tests
      
      * Added a unit test to ensure the `delete` stays
      * Manually tested with the Gallery app in `debug` mode with a bunch of user-supplied scripts that currently fail to load.
        * Also tested hot restart as suggested by @nshahan
      34b42acf
  4. 26 May, 2023 1 commit
    • Nate Bosch's avatar
      Remove more `test_api/src` imports (#127716) · 0b9cd865
      Nate Bosch authored
      Replace imports of `src/remote_listener.dart` with `backend.dart` which exports `RemoteListener`.
      
      Remove the unused imports of `src/backend/stack_trace_formatter.dart` (no uses of `StackTraceFormatter`) and
      `src/backend/suite_channel_manager.dart` (no uses of `SuiteChannelManager`).
      0b9cd865
  5. 15 May, 2023 1 commit
  6. 10 May, 2023 1 commit
  7. 08 May, 2023 1 commit
  8. 04 May, 2023 1 commit
  9. 03 May, 2023 1 commit
  10. 24 Apr, 2023 1 commit
  11. 21 Apr, 2023 1 commit
  12. 19 Apr, 2023 1 commit
  13. 14 Apr, 2023 2 commits
  14. 12 Apr, 2023 1 commit
  15. 11 Apr, 2023 1 commit
  16. 10 Apr, 2023 1 commit
  17. 06 Apr, 2023 5 commits
  18. 05 Apr, 2023 1 commit
  19. 22 Mar, 2023 1 commit
  20. 20 Mar, 2023 1 commit
  21. 17 Mar, 2023 2 commits
  22. 08 Mar, 2023 1 commit
  23. 01 Mar, 2023 1 commit
  24. 28 Feb, 2023 1 commit
  25. 27 Feb, 2023 3 commits
  26. 24 Feb, 2023 1 commit
  27. 23 Feb, 2023 1 commit
  28. 21 Feb, 2023 1 commit
    • David Iglesias's avatar
      [tool][web] Makes flutter.js more G3 friendly. (#120504) · a463bb82
      David Iglesias authored
      * Allow any JS file in flutter loader.
      
      * Nag only if service worker API is completely unavailable.
      
      * Add info about Secure Contexts if that may be the reason why serviceworker is not available.
      
      * Update sanity test.
      
      * If service worker settings are null, do not even check if the API is available.
      a463bb82
  29. 17 Feb, 2023 2 commits
  30. 13 Feb, 2023 1 commit
  31. 10 Feb, 2023 1 commit