зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1812868 - Expose chrome-only environment variables to all chrome:// documents, not just chrome-docshells. r=mstange
This will be necessary to make the new env var testable. Reviewed in: https://phabricator.services.mozilla.com/D168148
This commit is contained in:
Родитель
49f269b507
Коммит
122d6ccddd
|
@ -541,8 +541,11 @@ impl Device {
|
|||
}
|
||||
|
||||
/// Return whether the document is a chrome document.
|
||||
///
|
||||
/// This check is consistent with how we enable chrome rules for chrome:// and resource://
|
||||
/// stylesheets (and thus chrome:// documents).
|
||||
#[inline]
|
||||
pub fn is_chrome_document(&self) -> bool {
|
||||
self.pref_sheet_prefs().mIsChrome
|
||||
self.document().mDocURISchemeIsChrome()
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче