mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00

Subtle things: * We now have shadow trees in NAC, inception! Only a couple lines of code in the style system had to be changed to match :host rules and so properly. * Had to make highlighters.css contentaccessible, because otherwise we can't load it from the shadow tree. I don't think it's a big deal. * I removed some of the code from highlighters.css that claimed that stuff inherited from the html element. That's just no longer true. * Had to switch from `setAttribute("style", ...)` to `.style = ...;`. This is needed because CSSOM from chrome code bypasses CSP (as AnonymousContent did), but setAttribute() doesn't, see bug 1424474. Differential Revision: https://phabricator.services.mozilla.com/D173998
18 lines
670 B
Plaintext
18 lines
670 B
Plaintext
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
/*
|
|
* This file declares the AnonymousContent interface which is used to
|
|
* manipulate content that has been inserted into the document's canvasFrame
|
|
* anonymous container. See Document.insertAnonymousContent.
|
|
* Users of this API must never remove the host of the shadow root.
|
|
*/
|
|
|
|
[ChromeOnly, Exposed=Window]
|
|
interface AnonymousContent {
|
|
readonly attribute ShadowRoot root;
|
|
};
|