This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:
* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)
This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():
* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)
I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.
Differential Revision: https://phabricator.services.mozilla.com/D11183
--HG--
extra : moz-landing-system : lando
This patch removes the dom.webcomponents.shadowdom.enabled pref and all its
references, including the following functions:
* nsContentUtils::IsShadowDOMEnabled()
* nsIDocument::IsShadowDOMEnabled()
* nsDocument::IsShadowDOMEnabled(JSContext* aCx, JSObject* aGlobal)
* nsDocument::IsShadowDOMEnabled(const nsINode* aNode)
* nsTextNode::IsShadowDOMEnabled(JSContext* aCx, JSObject* aObject)
This function is renamed and updated to nsDocument::IsCallerChromeOrAddon():
* nsDocument::IsShadowDOMEnabledAndCallerIsChromeOrAddon(JSContext* aCx, JSObject* aObject)
I didn't change the tests that load Shadow DOM tests in an iframe, in the interest of keeping hg annotation history.
Differential Revision: https://phabricator.services.mozilla.com/D11183
--HG--
extra : moz-landing-system : lando
Move XUL persistence handling into it's own class and make it a separate
nsIDocumentObserver so it can also be used in non-XUL documents.
To avoid adding persistence to all non-XUL documents, a document must add
the "mozpersist" attribute to the root element if it wants enable the
feature.
Differential Revision: https://phabricator.services.mozilla.com/D6802
--HG--
extra : moz-landing-system : lando
I guess we can eventually replace the conditions for autoSize with
`width == nsViewportInfo::Auto` or `height == nsViewportInfo::Auto`, but it
will break current behavior so for now we are going to preserve the current
behavior. For example, we currently consider no viewport meta tag means
autoSize is disabled but it should be an autoSize case.
Depends on D9461
Differential Revision: https://phabricator.services.mozilla.com/D9462
--HG--
extra : moz-landing-system : lando
The previous resolution is restored when exiting fullscreen mode.
Depends on D9442
Differential Revision: https://phabricator.services.mozilla.com/D9443
--HG--
extra : moz-landing-system : lando
The majority of the XUL broadcaster logic is moved out of XULDocument and
into a separate class (XULBroadcastManager). The hookup points for when
listeners need to be created and listeners need to be notified is now
handled by the XULElement itself and nsDocument. To avoid any overhead,
the XULBroadcastManager is only ever created when a document uses a
listener.
The new approach does have the disadvantage that broadcasting can now only
work with XULElements, but going forward we'd like to discontinue this
feature and rely on MutationObservers to implement similar things.
One test had to be modified to use XUL elements instead of HTML elements
because of the reason noted above.
Differential Revision: https://phabricator.services.mozilla.com/D8888
--HG--
extra : moz-landing-system : lando
It is arguably more accurate to implement these boolean
getters in terms of whether we remember blocking anything
in the category being asked about. This will allow us to
correctly account for hiding the sheild icon when all
currently blocked trackers become unblocked, for example.
Differential Revision: https://phabricator.services.mozilla.com/D6600
It is arguably more accurate to implement these boolean
getters in terms of whether we remember blocking anything
in the category being asked about. This will allow us to
correctly account for hiding the sheild icon when all
currently blocked trackers become unblocked, for example.
Differential Revision: https://phabricator.services.mozilla.com/D6600
It is arguably more accurate to implement these boolean
getters in terms of whether we remember blocking anything
in the category being asked about. This will allow us to
correctly account for hiding the sheild icon when all
currently blocked trackers become unblocked, for example.
Differential Revision: https://phabricator.services.mozilla.com/D6600
It is arguably more accurate to implement these boolean
getters in terms of whether we remember blocking anything
in the category being asked about. This will allow us to
correctly account for hiding the sheild icon when all
currently blocked trackers become unblocked, for example.
Differential Revision: https://phabricator.services.mozilla.com/D6600
The next patch would create another subclass of FullscreenChange for
handling fullscreen exit.
Depends on D5988
Differential Revision: https://phabricator.services.mozilla.com/D5989
--HG--
rename : dom/base/FullscreenRequest.h => dom/base/FullscreenChange.h
extra : moz-landing-system : lando
To make it clear that ApplyFullscreen is one of the places where
fullscreen requests are consumed.
Depends on D5851
Differential Revision: https://phabricator.services.mozilla.com/D5852
--HG--
extra : moz-landing-system : lando
Some steps in file_fullscreen-api.html are adjusted in order to test
the behavior that the event is correctly dispatched to the document
when element is disconnected.
Depends on D5415
Differential Revision: https://phabricator.services.mozilla.com/D5416
--HG--
extra : moz-landing-system : lando
We only do unconditional move for FullscreenRequest, so the &&s are
pointless, based on guidance of UniquePtr.
Depends on D5639
Differential Revision: https://phabricator.services.mozilla.com/D5640
--HG--
extra : moz-landing-system : lando
Some methods on Window are not changed because they are part of public
interface. Method names from widget are also unchanged.
Many "full-screen" in comments are also updated to "fullscreen" instead.
Differential Revision: https://phabricator.services.mozilla.com/D5639
--HG--
extra : moz-landing-system : lando