文件最后提交记录最后更新时间
[url_launcher][web] Prevent browser from navigating when followLink isn't called (#8675) When a DOM click event is received, we need to make a decision before the end of the event loop whether to allow the browser to navigate or not. At the end of the event loop, the browser will perform the navigation if we don't prevent it. The problem occurs when the followLink signal arrives AFTER the event loop (this can happen in semantics mode when the web engine uses a debouncer to queue events and send them to the framework after some delay). This leads to a situation where we can't make a definitive decision by the end of the event loop, so this PR does the following: 1. [best case] If the followLink signal is received before the end of the event loop, we let the browser do the navigation for a full web link experience. 2. [meh case] If no followLink signal is received before the end of the event loop, we PREVENT the browser from navigating. But we keep waiting for the followLink signal. If the signal arrives a bit later, we fallback to a programmatic navigation through the launchUrl API. Fixes https://github.com/flutter/flutter/issues/162927 Fixes https://github.com/flutter/flutter/issues/1624081 年前
Disable two lint rules which are being removed. (#7959) Each of these are going to be removed soon. * avoid_null_checks_in_equality_operators * unsafe_html Work towards https://github.com/dart-lang/linter/issues/5063 and https://github.com/dart-lang/linter/issues/50011 年前