Bug 1505887 - Make UAWidgets chromeonly content. r=bz
☠☠ backed out by dc298299ebad ☠ ☠
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 26 Nov 2018 21:09:51 +0100
changeset 504713 15da6e919d804d770219f720fb93b7c2d42e5f10
parent 504712 aabcdc32ab3ca9a0eab35055ff8ba1f3a109b019
child 504714 7b9afff4ff11f683d9a5e46ae92d80d6e9e7add3
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1505887
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1505887 - Make UAWidgets chromeonly content. r=bz Differential Revision: https://phabricator.services.mozilla.com/D11408
dom/base/ShadowRoot.h
--- a/dom/base/ShadowRoot.h
+++ b/dom/base/ShadowRoot.h
@@ -206,16 +206,18 @@ public:
 
   bool IsUAWidget() const
   {
     return mIsUAWidget;
   }
 
   void SetIsUAWidget()
   {
+    MOZ_ASSERT(!HasChildren());
+    SetFlags(NODE_IS_ROOT_OF_CHROME_ONLY_ACCESS | NODE_CHROME_ONLY_ACCESS);
     mIsUAWidget = true;
   }
 
   void GetEventTargetParent(EventChainPreVisitor& aVisitor) override;
 
   // nsIRadioGroupContainer
   NS_IMETHOD WalkRadioGroup(const nsAString& aName,
                             nsIRadioVisitor* aVisitor,