Firefox Source Docs Logo

Getting Started

  • Getting Set Up To Work On The Firefox Codebase

Working On Firefox

  • Working on Firefox
  • Bug Handling

Source Code Documentation

  • Firefox
  • DOM
  • Editor
  • Layout & CSS
  • Graphics
  • Firefox DevTools Contributor Docs
  • Toolkit
  • SpiderMonkey
  • Welcome to GeckoView’s documentation!
  • WebIDL
  • libpref
  • Remote Protocol
  • Services
  • File Handling
  • Firefox on macOS
  • Code quality
  • Writing Rust Code
  • Gecko Profiler

The Firefox Build System

  • Mach
  • Try Server
  • Build System
  • TaskCluster Task-Graph Generation
  • Managing Documentation

Testing & Test Infrastructure

  • Testing Policy
  • Configuration Changes
  • Marionette
    • Introduction to Marionette
    • Building
    • Mn Python tests
    • Protocol
    • Contributing
    • New contributors
    • Submitting patches
    • Debugging
    • Testing
    • Testing with one-click loaners
    • Style guide
    • Selenium atoms
    • Preferences
    • Internals
      • action module
      • addon module
      • assert module
      • browser module
      • capabilities module
      • capture module
      • cert module
      • cookie module
      • dom module
      • driver module
      • element module
      • error module
      • evaluate module
      • event module
      • format module
      • interaction module
      • listener module
      • log module
      • message module
      • modal module
      • navigate module
      • packets module
      • prefs module
      • proxy module
      • reftest module
      • server module
      • sync module
    • Bugs
    • Communication
  • geckodriver
  • web-platform-tests documentation
  • Fuzzing
  • Sanitizer
  • Performance Testing
  • Code coverage
  • Testing & Debugging Rust Code

Localization & Internationalization

  • Internationalization
  • Localization

Firefox and Python

  • mozbase
  • Using third-party Python packages

Metrics Collected in Firefox

  • Metrics
  • Pings
Firefox Source Docs
  • »
  • Marionette »
  • Internals »
  • modal module
  • View page source

modal module¶

class modal()¶
modal.Dialog¶
modal.DialogObserver¶
modal.findModalDialogs(context)¶

Check for already existing modal or tab modal dialogs

Arguments
  • context (browser.Context) – Reference to the browser context to check for existent dialogs.

Returns

modal.Dialog – Returns instance of the Dialog class, or null if no modal dialog is present.

Next Previous

Built with Sphinx using a theme provided by Read the Docs.