Commit Graph

1458 Commits

Author SHA1 Message Date
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
Dorel Luca
c5923e7872 Backed out changeset 2c01f22661fa (bug 1263734) for wpt failures in fetch/api/request/destination/fetch-destination-no-load-event.https.html. CLOSED TREE 2018-10-10 18:31:01 +03:00
Dorel Luca
ec1b8e7cf6 Backed out 4 changesets (bug 1494476) for build bustage and lining failure. CLOSED TREE
Backed out changeset 70d95bda8458 (bug 1494476)
Backed out changeset f89516a277dc (bug 1494476)
Backed out changeset 3c38fad722a6 (bug 1494476)
Backed out changeset 473362250320 (bug 1494476)
2018-10-10 18:29:04 +03:00
Ehsan Akhgari
2869d8f06b 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 14:51:25 +00:00
Ehsan Akhgari
b262b3c70c Bug 1494476 - Part 1: Make AntiTrackingCommon::AddFirstPartyStorageAccessGrantedFor() accept a principal argument instead of a string r=baku
Differential Revision: https://phabricator.services.mozilla.com/D8155
2018-10-10 14:49:22 +00:00
Yaron Tausky
4c1c93469e Bug 1263734: Implement ServiceWorkerContainer.startMessages() r=asuth,smaug
Differential Revision: https://phabricator.services.mozilla.com/D4237
2018-10-10 13:55:23 +00:00
Cameron McCormack
198a280c43 Bug 1496308 - Require URLExtraData::mPrincipal to be non-null r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D7682
2018-10-10 03:10:07 +00:00
Ehsan Akhgari
687715e472 Bug 1491403 - Part 4: Call the resolve handler of the promise returned from Document.requestStorageAccess() and Document.hasStorageAccess() preserving the user input event handling state r=baku
Depends on D7005

Differential Revision: https://phabricator.services.mozilla.com/D7006
2018-10-09 21:42:30 +00:00
Hiroyuki Ikezoe
fdefc2a5f0 Bug 1496651 - Drop mAllowDoubleTapZoom in nsIDocument. r=kats
It's no longer used since this commit.
https://hg.mozilla.org/mozilla-central/rev/ea9f2295023b

Differential Revision: https://phabricator.services.mozilla.com/D7841
2018-10-05 13:47:01 +00:00
Botond Ballo
8626ae6069 Bug 1290420 Part 2: Respect the metaViewportOverride flag on the docshell. r=dholbert
Depends on D3373

Differential Revision: https://phabricator.services.mozilla.com/D3375
2018-10-04 00:19:40 +00:00
Christoph Kerschbaumer
40b6bebb5f Bug 1495983: Assert system privileged about: pages have CSP. r=smaug 2018-10-03 09:47:08 +02:00
Andrea Marchesini
8041d63466 Bug 1390801 - FeaturePolicy - part 2 - WebIDL + DOM integration, r=ckerschb 2018-10-01 08:09:44 +02:00
Ehsan Akhgari
424140868e Bug 1493563 - Part 10: Implement the per-document blocked states in terms of the content blocking log; r=baku
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
2018-09-28 14:46:02 -04:00
Ehsan Akhgari
46183a5d0e Bug 1493563 - Part 8: Report the memorty usage of the Content Blocking log; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6598
2018-09-28 14:46:02 -04:00
Noemi Erli
7fb8829472 Backed out 12 changesets (bug 1493563) for failures in test_css-logic-getCssPath.html CLOSED TREE
Backed out changeset d2e83655082f (bug 1493563)
Backed out changeset 1ce58f004593 (bug 1493563)
Backed out changeset 344298c73ee7 (bug 1493563)
Backed out changeset 02b8b073f7d7 (bug 1493563)
Backed out changeset 3ef707008502 (bug 1493563)
Backed out changeset bb2720a401fe (bug 1493563)
Backed out changeset ce0211be57a1 (bug 1493563)
Backed out changeset 83d6c2bf8dc6 (bug 1493563)
Backed out changeset 1844af4cc25b (bug 1493563)
Backed out changeset c8ab17addb7a (bug 1493563)
Backed out changeset a1ff0cd62563 (bug 1493563)
Backed out changeset 932b41e211e0 (bug 1493563)
2018-09-28 21:31:18 +03:00
Ehsan Akhgari
765b666baf Bug 1493563 - Part 10: Implement the per-document blocked states in terms of the content blocking log; r=baku
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
2018-09-28 13:24:43 -04:00
Ehsan Akhgari
bd3b8b30bb Bug 1493563 - Part 8: Report the memorty usage of the Content Blocking log; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6598
2018-09-28 13:24:42 -04:00
Tiberius Oros
967e769da9 Backed out 11 changesets (bug 1493563) for failures on dom/workers/test/test_sharedworker_event_listener_leaks.html on a CLOSED TREE
Backed out changeset 0bb55b604bfd (bug 1493563)
Backed out changeset 8e25c301675a (bug 1493563)
Backed out changeset 4f608b8801d4 (bug 1493563)
Backed out changeset f58d0b1ca088 (bug 1493563)
Backed out changeset eae105f2bf6d (bug 1493563)
Backed out changeset 7a8a0d1cfd69 (bug 1493563)
Backed out changeset dbba8451aab1 (bug 1493563)
Backed out changeset a6141dbd0328 (bug 1493563)
Backed out changeset f4ca3d8fa90e (bug 1493563)
Backed out changeset 56bab7fae64d (bug 1493563)
Backed out changeset 66787e603401 (bug 1493563)
2018-09-26 06:16:22 +03:00
Ehsan Akhgari
badf241bdf Bug 1493563 - Part 10: Implement the per-document blocked states in terms of the content blocking log; r=baku
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
2018-09-25 21:02:51 -04:00
Ehsan Akhgari
08694fda14 Bug 1493563 - Part 8: Report the memorty usage of the Content Blocking log; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6598
2018-09-25 21:02:51 -04:00
Brendan Dahl
a327440df4 Bug 1492327 - Mimic XUL activeElement behavior for XUL in XHTML. r=smaug
Return the document element as the activeElement when there is no body
element, the document is chrome privileged, and the document element
is a XUL element.

MozReview-Commit-ID: JFDLAqOmLTS

Differential Revision: https://phabricator.services.mozilla.com/D6448
2018-09-25 16:00:13 +00:00
Ehsan Akhgari
22495ddc5a Bug 1493682 - Part 1: Introduce two new prefs for controlling whether the content blocking allow list would be honoured r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6747
2018-09-25 05:40:12 +00:00
Andrea Marchesini
744a688d25 Bug 1491835 - Store User-Interaction for AntiTracking purposes - part 4 - update permissions after X seconds, r=ehsan 2018-09-24 12:54:54 +02:00
Andrea Marchesini
ae4a9d42c2 Bug 1491835 - Store User-Interaction for AntiTracking purposes - part 2 - storing user-interaction, r=ehsan 2018-09-24 12:54:54 +02:00
Andrea Marchesini
8ee0b525ec Bug 1491835 - Store User-Interaction for AntiTracking purposes - part 1 - nsIDocument::SetUserHasInteracted should not receive a parameter, r=ehsan 2018-09-24 12:54:54 +02:00
Bogdan Tara
1ead862278 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-09-22 01:06:13 +03:00
Nathan Froyd
f93834868a Bug 1492894 - part 1 - make the node hierarchy consistently constructed with NodeInfo&&; r=mccr8
Various places in dom/ use the pattern:

  already_AddRefed<NodeInfo> ni = ...;

which is supposed to be disallowed by our static analysis code, but
isn't, for whatever reason.  To fix our static analysis code, we need to
eliminate instances of the above pattern.

Unfortunately, eliminating this pattern requires restructuring how Nodes
are created.  Most Node subclasses take `already_AddRefed<NodeInfo>&` in
their constructors, and a few accept `already_AddRefed<NodeInfo>&&`.  We
need to enforce the latter pattern consistently, which requires changing
dozens of source files.
2018-09-21 16:45:49 -04:00
Botond Ballo
7102486176 Bug 1476995 - Use device-width as the fallback for unrecognized width values in a meta viewport tag. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6189
2018-09-19 20:20:15 +00:00
Olli Pettay
24d8f0d24c Bug 1490406, radio groups should work in shadow DOM, r=ehsan 2018-09-21 03:39:47 +03:00
Andreea Pavel
a7ec930ee3 Merge mozilla-inbound to mozilla-central. a=merge 2018-09-21 00:54:47 +03:00
Brian Grinstead
38d8522e9f Bug 1465592 - Enable Shadow DOM unconditionally in chrome documents;r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D6278
2018-09-20 18:18:32 +00:00
Dorel Luca
327774427c Backed out 4 changesets (bug 1491061) for browser chrome failures on browser/components/preferences/in-content/tests/browser_contentblocking.js. CLOSED TREE
Backed out changeset e2c6afb1ce06 (bug 1491061)
Backed out changeset f6caae3590e3 (bug 1491061)
Backed out changeset 1497b1426062 (bug 1491061)
Backed out changeset 7066f941ce99 (bug 1491061)
2018-09-20 19:41:13 +03:00
Ehsan Akhgari
edb602488a Bug 1491061 - Part 1: Make Disable Protection honour both the Content Blocking UI pref and the pref controlling whether Third-Party Cookies section appears under Content Blocking UI r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5887
2018-09-20 15:45:50 +00:00
Ehsan Akhgari
4411c36c43 Bug 1491061 - Part 1: Make Disable Protection honour both the Content Blocking UI pref and the pref controlling whether Third-Party Cookies section appears under Content Blocking UI; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5887
2018-09-20 13:43:05 -04:00
Nathan Froyd
cf31a7c12c Bug 1415980 - make hash keys movable and not copyable; r=erahm
Everything that goes in a PLDHashtable (and its derivatives, like
nsTHashtable) needs to inherit from PLDHashEntryHdr. But through a lack
of enforcement, copy constructors for these derived classes didn't
explicitly invoke the copy constructor for PLDHashEntryHdr (and the
compiler didn't invoke the copy constructor for us). Instead,
PLDHashTable explicitly copied around the bits that the copy constructor
would have.

The current setup has two problems:

1) Derived classes should be using move construction, not copy
   construction, since anything that's shuffling hash table keys/entries
   around will be using move construction.

2) Derived classes should take responsibility for transferring bits of
   superclass state around, and not rely on something else to handle that.

The second point is not a huge problem for PLDHashTable (PLDHashTable
only has to copy PLDHashEntryHdr's bits in a single place), but future
hash table implementations that might move entries around more
aggressively would have to insert compensation code all over the
place. Additionally, if moving entries is implemented via memcpy (which
is quite common), PLDHashTable copying around bits *again* is
inefficient.

Let's fix all these problems in one go, by:

1) Explicitly declaring the set of constructors that PLDHashEntryHdr
   implements (and does not implement). In particular, the copy
   constructor is deleted, so any derived classes that attempt to make
   themselves copyable will be detected at compile time: the compiler
   will complain that the superclass type is not copyable.

This change on its own will result in many compiler errors, so...

2) Change any derived classes to implement move constructors instead of
   copy constructors. Note that some of these move constructors are,
   strictly speaking, unnecessary, since the relevant classes are moved
   via memcpy in nsTHashtable and its derivatives.
2018-09-20 11:20:36 -04:00
Narcis Beleuzu
15af1e6658 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-19 19:44:24 +03:00
Timothy Guan-tin Chien
559ecada5b Bug 1484048 - Part IV, Don't reset mDocumentLoadGroup if the same LoadGroup is passed r=bzbarsky
nsIDocument::ResetToURI() resets and set the mDocumentLoadGroup property
even if it is given the same instance. This has caused BlockOnload() to
break on media documents, which calls into there while removing UA Widget.

This patch checks the weak ref before resets it.

Depends on D3841

Differential Revision: https://phabricator.services.mozilla.com/D4484
2018-09-17 20:49:17 +00:00
Christoph Kerschbaumer
e29470ac55 Bug 1490977: Assert content privileged about page has CSP. r=smaug 2018-09-19 06:50:23 +02:00
Tiberius Oros
07e13ceadc Backed out changeset b4ac15e18538 (bug 1490977) for assertion failures at build/build/src/dom/base/nsDocument.cpp on a CLOSED TREE 2018-09-18 18:08:03 +03:00
Margareta Eliza Balazs
a23330d114 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-18 17:38:17 +03:00
Christoph Kerschbaumer
9754d9d8af Bug 1490977: Assert content privileged about page has CSP. r=smaug 2018-09-18 15:27:32 +02:00
Xidorn Quan
b5d4fc8c06 Bug 1491212 part 3 - Have Document.exitFullscreen return a Promise. r=smaug
Depends on D5989

Differential Revision: https://phabricator.services.mozilla.com/D5990
2018-09-17 23:25:10 +00:00
Xidorn Quan
aea206e90b Bug 1491212 part 2 - Have a new FullscreenChange superclass split from FullscreenRequest. r=smaug
The next patch would create another subclass of FullscreenChange for
handling fullscreen exit.

Depends on D5988

Differential Revision: https://phabricator.services.mozilla.com/D5989
2018-09-17 23:20:28 +00:00
Xidorn Quan
f943e2d7c0 Bug 1491212 part 1 - Move PendingFullscreenRequestList to a higher place. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D5988
2018-09-17 13:39:02 +00:00
Ehsan Akhgari
22bd077511 Bug 1469714 - Part 11: Add a storage permission check to Document.hasStorageAccess() to ensure that it always returns the correct value even in the presence of dynamic heuristics grantic storage access permission; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5923
2018-09-17 13:02:04 -04:00
Ehsan Akhgari
ba4a78f5ab Bug 1469714 - Part 10: Ensure that private browsing contexts cannot get storage access; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5819
2018-09-17 13:00:38 -04:00
Ehsan Akhgari
eedb245109 Bug 1469714 - Part 2: Implement the Storage Access API to grant first-party storage access to 3rd party trackers; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5811
2018-09-17 13:00:38 -04:00