* For #18877 - Support updated PromptRequest AC APIs This issue stemming from a race condition is fully resolved in AC by adding support for having multiple prompts at a time. Fenix needs just a small change to support the AC refactoring. * Update Android Components version to 91.0.20210603145049 Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
This commit is contained in:
parent
a5110f8c0a
commit
0455cc3cd4
|
@ -135,10 +135,10 @@ class ShareFragment : AppCompatDialogFragment() {
|
||||||
args.sessionId
|
args.sessionId
|
||||||
?.let { sessionId -> browserStore.state.findTabOrCustomTab(sessionId) }
|
?.let { sessionId -> browserStore.state.findTabOrCustomTab(sessionId) }
|
||||||
?.let { tab ->
|
?.let { tab ->
|
||||||
val promptRequest = tab.content.promptRequest
|
val promptRequest = tab.content.promptRequests.lastOrNull { it is PromptRequest.Share }
|
||||||
if (promptRequest is PromptRequest.Share) {
|
if (promptRequest is PromptRequest.Share) {
|
||||||
consume(promptRequest)
|
consume(promptRequest)
|
||||||
browserStore.dispatch(ContentAction.ConsumePromptRequestAction(tab.id))
|
browserStore.dispatch(ContentAction.ConsumePromptRequestAction(tab.id, promptRequest))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
object AndroidComponents {
|
object AndroidComponents {
|
||||||
const val VERSION = "91.0.20210601143118"
|
const val VERSION = "91.0.20210603145049"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user