On Tuesday, December 20, 2016, Xidorn Quan <m...@upsuper.org> wrote: > On Wed, Dec 21, 2016, at 11:12 AM, Mats Palmgren wrote: >> Hi Tim, can you describe how the modality of dialog.showModal() works? >> Does a web page have the power to block the user from interacting >> with the entire browser (all windows)? Or is it just one window? >> or just one tab? or something else? > > It just blocks the same document it is in (not even the tab if the > document is in iframe). A modal <dialog> is just another normal HTML > element with some special rendering (and focusing) rules.
So dialog.showModal() does not need to block script like other modal APIs? Just wondering if you need something like our nsGlobalWindow::EnterModalState(). It has some rough edges in my experience. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform