Commit Graph
1504 Commits
Author SHA1 Message Date
arthur.iakab 69725c7dd7 Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE
Backed out changeset c3fe435e473a (bug 1509362)
Backed out changeset 6494840edc17 (bug 1509591)
Backed out changeset 123b5d5a3637 (bug 1509591)
Backed out changeset bce195f98895 (bug 1509930)
Backed out changeset 66db13126408 (bug 1500950)
Backed out changeset 3b5fffae2d2b (bug 1500949)
Backed out changeset 71c3b3677db8 (bug 1500948)
Backed out changeset 784b3b56e2ab (bug 1500944)
Backed out changeset 0bad27401ddb (bug 1500944)
Backed out changeset e0f95dd96d54 (bug 1448426)
Backed out changeset c60fa11538db (bug 1487249)
Backed out changeset 0190d4ffa54f (bug 1487249)
Backed out changeset 3cd10aba9130 (bug 1487249)
2018-11-28 02:57:32 +02:00
Nika Layzell 632428f2c6 Bug 1487249 - Part 3: Add the WindowGlobal actor representing a single window global, r=bzbarsky
This actor can be used for communicating with individual frames, without
depending on walking the tree in the content process.

This is not yet complete. No tests have been written for it, the
WindowGlobalParent objects need to be exposed to chrome JS, and a form of JS
actors should be installed under them.

In addition, BrowsingContextChrome objects should be updated to allow access to
the current WindowGlobalParent in that context.

Differential Revision: https://phabricator.services.mozilla.com/D4623
2018-11-27 18:09:27 -05:00
Ehsan Akhgari bb560f5484 Bug 1509555 - Part 3: Remove reporting of tracker statistics to docshell which was added for fastblock r=valentin,baku
Depends on D12829

Differential Revision: https://phabricator.services.mozilla.com/D12830
2018-11-27 08:55:36 +00:00
Ehsan Akhgari ed2eab3f65 Bug 1509555 - Part 1: Remove the telemetry probe for measuring the rate at which popular analytics providers get blocked by fastblock r=baku,valentin
Differential Revision: https://phabricator.services.mozilla.com/D12828
2018-11-27 08:50:36 +00:00
Gabriele Svelto e76fa2194a Bug 1509450 - Remove unnecessary inclusions of ContentParent.h and ContentChild.h r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D12728
2018-11-26 14:49:44 +00:00
Ehsan Akhgari f14967e85c Bug 1490811 - Part 1: Add a permission doorhanger for the storage access API r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D12467
2018-11-26 21:23:16 +00:00
Emilio Cobos Álvarez b8aa486399 Bug 1508845 - Make BlastSubtreeToPieces handle Shadow DOM. r=smaug
We can use the unattach shadow stuff because BlastSubtreeToPieces will remove
all the slots.

Differential Revision: https://phabricator.services.mozilla.com/D12531
2018-11-21 13:02:24 +00:00
Andreea Pavel bcd6b2f2fc Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-11-20 07:12:30 +02:00
Hiroyuki Ikezoe b94e310d36 Bug 1423709 - Set mDefaultZoomValid is false in the case of auto-scale. r=botond
Depends on D10194

Differential Revision: https://phabricator.services.mozilla.com/D10195
2018-11-20 03:55:56 +00:00
Hiroyuki Ikezoe 0c78ffb452 Bug 1423709 - Change boolean arguments for nsViewportInfo to enum classes. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D10194
2018-11-20 01:24:57 +00:00
arthur.iakab 49f94b9c70 Merge inbound to mozilla-central a=merge 2018-11-15 11:54:15 +02:00
Timothy Guan-tin Chien fb30ec3de3 Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
This patch removes the following functions:

* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)

and all references of the pref.

Depends on D11183

Differential Revision: https://phabricator.services.mozilla.com/D11249
2018-11-15 06:52:01 +00:00
Timothy Guan-tin Chien 2a63ce2955 Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
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
2018-11-15 06:51:07 +00:00
Andreea Pavel f667cd7449 Backed out 2 changesets (bug 1503019) for failing crashtests at dom/base/crashtests/1505811.html on a CLOSED TREE
Backed out changeset 06b12fd41ff1 (bug 1503019)
Backed out changeset 7b845eac9dd7 (bug 1503019)
2018-11-15 01:52:30 +02:00
Timothy Guan-tin Chien 3e86e5f53e Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
This patch removes the following functions:

* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)

and all references of the pref.

Depends on D11183

Differential Revision: https://phabricator.services.mozilla.com/D11249
2018-11-14 19:37:42 +00:00
Timothy Guan-tin Chien 0644cf5b9d Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug
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
2018-11-14 19:34:52 +00:00
Andrea Marchesini 2285527b85 Bug 1505571 - Don't chcek user-interaction permission when the operation starts from user-interaction, r=ehsan
The permission has been just set, but the content process haven't received it
back from the parent process.
2018-11-19 23:56:03 +01:00
Ciure Andrei 0148881172 Backed out 4 changesets (bug 1507769, bug 1505571) for browser_storageAccessWithHeuristics.js failures CLOSED TREE
Backed out changeset 401763b97e54 (bug 1507769)
Backed out changeset 838dfe679fdd (bug 1505571)
Backed out changeset 88af3329ee16 (bug 1505571)
Backed out changeset be17a8b7aefa (bug 1505571)
2018-11-19 22:06:24 +02:00
Andrea Marchesini 13e09d5ccd Bug 1505571 - Don't chcek user-interaction permission when the operation starts from user-interaction, r=ehsan
The permission has been just set, but the content process haven't received it
back from the parent process.
2018-11-19 19:16:24 +01:00
Andrea Marchesini d40fd94b20 Bug 1507230 - dom.security.featurePolicy.header.enabled pref controls the using of FeaturePolicy header, r=ckerschb 2018-11-14 23:58:35 +01:00
Emilio Cobos Álvarez 896d497e97 Bug 1505117 - Add telemetry for quirks mode. r=smaug,chutten. data-r=francois
Differential Revision: https://phabricator.services.mozilla.com/D11097
2018-11-07 14:25:39 +01:00
Brendan Dahl d2e0dfb1b9 Bug 1490464 - Fix XUL attribute persistence for browser.xhtml. r=smaug
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
2018-11-06 21:45:20 +00:00
Ehsan Akhgari d0733166bb Bug 1503697 - Record trackers being loaded on a site in the content blocking log; r=baku,francois
Differential Revision: https://phabricator.services.mozilla.com/D10439
2018-11-05 13:44:29 -05:00
Botond Ballo 435c0f1401 Bug 1502566 - When entering fullscreen mode, use the intrinsic resolution rather than a resolution of 1. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D10754
2018-11-02 21:18:42 +00:00
Jonathan Kingston b3d010794f Bug 1502743 - Replace black/whitelist within caps to block/allowlist r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10013
2018-10-31 17:56:43 +00:00
Ehsan Akhgari 5e975a4a5f Bug 1501978 - Part 1: Stop honouring the browser.contentblocking.enabled pref in Gecko r=baku
Differential Revision: https://phabricator.services.mozilla.com/D10074
2018-10-30 14:30:15 +00:00
Emilio Cobos Álvarez 8f2490ddad Bug 1502875 - Simplify AddIdElement. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D10072
2018-10-29 22:43:32 +01:00
Nathan Froyd 247b183c98 Bug 1502421 - fix undefined behavior in PendingFullscreenChangeList; r=mccr8
The order of evaluation of x and y in x->Func(y) is undefined, but the
code in PendingFullscreenChangeList depends on x being evaluated before
y.  We should make the ordering explicit.  (The ordering is fully
specified in C++17, but we're not ready to make that switch yet.)
2018-10-26 11:40:20 -04:00
Hiroyuki Ikezoe 530d74727a Bug 1501106 - Drop nsIDocument::mAutoSize and relevant members. r=botond
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
2018-10-24 21:43:50 +00:00
Botond Ballo 411615e564 Bug 1493976 - Reset the resolution to 1 when entering fullscreen mode. r=kats,xidorn
The previous resolution is restored when exiting fullscreen mode.

Depends on D9442

Differential Revision: https://phabricator.services.mozilla.com/D9443
2018-10-24 19:20:05 +00:00
Zibi Braniecki b122e2287d Bug 1488973: Wrap privileged promises in a promise for the document we`re returning to. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D7961
2018-10-24 17:41:46 +00:00
Narcis Beleuzu 5da0df1006 Backed out 3 changesets (bug 1488973) for causing TV failures on browser_resource_uri.js
Backed out changeset 6eab8a1b17ce (bug 1488973)
Backed out changeset c06b2c594294 (bug 1488973)
Backed out changeset 819df51e3083 (bug 1488973)
2018-10-24 10:49:10 +03:00
Zibi Braniecki 1c448277de Bug 1488973: Wrap privileged promises in a promise for the document we`re returning to. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D7961
2018-10-23 18:59:06 +00:00
Ehsan Akhgari 04f47f9e39 Bug 1501404 - Part 1: Remove the XPCOM registration for RequestContextService r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D9570
2018-10-23 20:07:17 +00:00
Andrea Marchesini 57bd031744 Bug 1498510 - Move nsICSPEventListener out of CSP object, r=ckerschb 2018-10-23 08:17:13 +02:00
Hiroyuki Ikezoe a92d25968c Bug 1494422 - Introduce extend-to-zoom and resolve width and height using it. r=botond
The relevant parts of the spec are:
 https://drafts.csswg.org/css-device-adapt/#resolve-extend-to-zoom
 https://drafts.csswg.org/css-device-adapt/#resolve-initial-width-height
 https://drafts.csswg.org/css-device-adapt/#resolve-width
 https://drafts.csswg.org/css-device-adapt/#resolve-height

This patch also introduces the parsing steps for width and height values in
viewport meta tag.
https://drafts.csswg.org/css-device-adapt/#width-and-height-properties

Differential Revision: https://phabricator.services.mozilla.com/D8690
2018-10-19 04:19:21 +00:00
Brendan Dahl 3ab9a6425f Bug 1486888 - Support XUL broadcasters in non-XUL documents. r=smaug
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
2018-10-19 01:22:46 +00:00
Ehsan Akhgari 2e2712249a Bug 1498369 - Ensure the promise returned from Document.hasStorageAccess() will propagate user activation r=baku
Differential Revision: https://phabricator.services.mozilla.com/D9011
2018-10-17 17:51:45 +00:00
Ehsan Akhgari 7dc0780b0e Bug 1499549 - Ensure that we only check the corresponding Content Blocking exception list when testing whether a top-level document is on the Content Blocking allow list r=francois
Differential Revision: https://phabricator.services.mozilla.com/D8927
2018-10-17 17:06:00 +00:00
Hiroyuki Ikezoe ec4609c7e9 Bug 1431601 - Implement "Resolve min-zoom and max-zoom values" in the spec. r=botond
https://drafts.csswg.org/css-device-adapt/#constraining-min-max-zoom

The test case in this commit fails without this change, width will be 8000 and
height will be 4800 respectively when it fails.

Depends on D8320

Differential Revision: https://phabricator.services.mozilla.com/D8321
2018-10-15 23:53:44 +00:00
Noemi Erli e68f7f10de Merge inbound to mozilla-central. a=merge 2018-10-16 01:20:08 +03:00
Ehsan Akhgari 43e94dc391 Bug 1498466 - Ensure that hasStorageAccess() returns a sensible value with cookieBehavior set to accept all cookies r=baku
Differential Revision: https://phabricator.services.mozilla.com/D8584
2018-10-15 10:36:48 +00:00
Ehsan Akhgari 40214fbb68 Bug 1498370 - Update the storage access flag when storage access is granted/denied r=baku
Differential Revision: https://phabricator.services.mozilla.com/D8550
2018-10-15 10:29:33 +00:00
Andrea Marchesini b42bc54e29 Bug 1495862 - Ensure FeaturePolicy creation in the document, r=ckerschb 2018-10-15 12:00:23 +02:00
Mats Palmgren a0cc868f8f Bug 1494745 part 5 - Don't check the result from ns[Auto]TObserverArray insertions since they're infallible. r=bz 2018-10-14 18:12:23 +02:00
Andrea Marchesini 8ff8d0d3fa Bug 1496034 - Remove FeaturePolicy assertion in getter methods, r=bz 2018-10-12 09:38:44 +02:00
Andrea Marchesini b51e9d489e Bug 1496034 - Apply bz's comments to FeaturePolicy, r=bz 2018-10-12 09:36:33 +02:00
Yaron Tausky f28a5ed0c4 Bug 1263734: Implement ServiceWorkerContainer.startMessages() r=asuth,smaug
Differential Revision: https://phabricator.services.mozilla.com/D4237
2018-10-11 12:37:37 +00:00
Ehsan Akhgari 0839a12f82 Bug 1494476 - Part 3: Require having had first-party interaction before being granted a first-party storage exception r=baku
Depends on D8156

Differential Revision: https://phabricator.services.mozilla.com/D8157
2018-10-10 15:47:10 +00:00
Ehsan Akhgari 31d1271504 Bug 1494476 - Part 1: Make AntiTrackingCommon::AddFirstPartyStorageAccessGrantedFor() accept a principal argument instead of a string r=baku
Depends on D8238

Differential Revision: https://phabricator.services.mozilla.com/D8155
2018-10-10 15:47:40 +00:00