Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Issue #2985: Add fallback in case Promise.any not available #7044

Merged
merged 1 commit into from
May 20, 2020

Conversation

csadilek
Copy link
Contributor

This is handling promise.any not being available (current beta). The only part we miss is the optimization to let the faster operation of fetch|cache win, but that's fine for now.

Copy link
Contributor

@jonalmeida jonalmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunate that we need to add this, but it won't stay for long! 😄 🩹

@codecov
Copy link

codecov bot commented May 20, 2020

Codecov Report

Merging #7044 into master will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #7044      +/-   ##
============================================
+ Coverage     77.04%   77.12%   +0.08%     
+ Complexity     4886     4765     -121     
============================================
  Files           650      636      -14     
  Lines         24140    23478     -662     
  Branches       3544     3461      -83     
============================================
- Hits          18599    18108     -491     
+ Misses         4056     3938     -118     
+ Partials       1485     1432      -53     
Impacted Files Coverage Δ Complexity Δ
...ozilla/components/feature/downloads/ext/Context.kt
...nents/feature/downloads/manager/DownloadManager.kt
.../components/feature/downloads/ext/DownloadState.kt
.../feature/downloads/SimpleDownloadDialogFragment.kt
...ponents/feature/downloads/provider/FileProvider.kt
...mozilla/components/feature/downloads/ext/Intent.kt
.../feature/downloads/AbstractFetchDownloadService.kt
...mponents/feature/downloads/DownloadNotification.kt
...mponents/feature/downloads/facts/DownloadsFacts.kt
...a/components/feature/downloads/DownloadsFeature.kt
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f7d306a...624fb90. Read the comment docs.

@csadilek
Copy link
Contributor Author

bors r=jonalmeida

bors bot pushed a commit that referenced this pull request May 20, 2020
7031: Closes #5249: Long URI in the address bar will hang the UI r=pocmo a=csadilek

We've had two cases now where this was a problem. A bookmarklet (see #6985) and a data URI (#5249).

This fix is similar to the one we landed last week for our Awesomebar (csadilek@bba846d), but tapping on long URLs or copying them from the clipboard etc. would still cause the UI to hang. With data URIs I can reproduce seconds/minutes long hangs that are fixed with this.

Took this from Fennec (https://github.com/pocmo/fennec-graveyard/blob/master/mobile/android/chrome/content/browser.js#L4308), and applied to both display and edit toolbar (otherwise the UI would hang once the toolbar is in edit mode).

7044: Issue #2985: Add fallback in case Promise.any not available r=jonalmeida a=csadilek

This is handling `promise.any` not being available (current beta). The only part we miss is the optimization to let the faster operation of fetch|cache win, but that's fine for now.

Co-authored-by: Christian Sadilek <[email protected]>
@bors
Copy link

bors bot commented May 20, 2020

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request May 20, 2020
7044: Issue #2985: Add fallback in case Promise.any not available r=jonalmeida a=csadilek

This is handling `promise.any` not being available (current beta). The only part we miss is the optimization to let the faster operation of fetch|cache win, but that's fine for now.

Co-authored-by: Christian Sadilek <[email protected]>
@bors
Copy link

bors bot commented May 20, 2020

Build failed:

@csadilek
Copy link
Contributor Author

bors retry

@bors
Copy link

bors bot commented May 20, 2020

Build succeeded:

@bors bors bot merged commit 3aa8dc6 into mozilla-mobile:master May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants