author | Coroiu Cristina <ccoroiu@mozilla.com> |
Tue, 19 Mar 2019 17:50:08 +0200 | |
changeset 465054 | 22a25f360f553b9bff4fca2c29432c7771aa5832 |
parent 465053 | 82e0ac6d662e14a1868c2fb7ac067b4205c965dc |
child 465055 | 416d1c916c8501df83408bcee3fb3e485f062d25 |
push id | 80861 |
push user | ccoroiu@mozilla.com |
push date | Tue, 19 Mar 2019 15:50:41 +0000 |
treeherder | autoland@22a25f360f55 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
bugs | 1534343 |
milestone | 68.0a1 |
backs out | bdefd9c7fc998f54e25fb07ac83213299b22dc6a |
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
|
dom/base/Document.cpp | file | annotate | diff | comparison | revisions | |
netwerk/cookie/test/mochitest/mochitest.ini | file | annotate | diff | comparison | revisions | |
netwerk/cookie/test/mochitest/test_xmlDocument.html | file | annotate | diff | comparison | revisions |
--- a/dom/base/Document.cpp +++ b/dom/base/Document.cpp @@ -11825,17 +11825,17 @@ void Document::SetDocTreeHadPlayRevoked( } } DocumentAutoplayPolicy Document::AutoplayPolicy() const { return AutoplayPolicy::IsAllowedToPlay(*this); } void Document::MaybeAllowStorageForOpenerAfterUserInteraction() { - if (CookieSettings()->GetCookieBehavior() != + if (mCookieSettings->GetCookieBehavior() != nsICookieService::BEHAVIOR_REJECT_TRACKER) { return; } // This will probably change for project fission, but currently this document // and the opener are on the same process. In the future, we should make this // part async. @@ -12347,17 +12347,17 @@ already_AddRefed<mozilla::dom::Promise> // Step 2. If the document has a null origin, reject. if (NodePrincipal()->GetIsNullPrincipal()) { promise->MaybeRejectWithUndefined(); return promise.forget(); } // Only enforce third-party checks when there is a reason to enforce them. - if (CookieSettings()->GetCookieBehavior() != + if (mCookieSettings->GetCookieBehavior() != nsICookieService::BEHAVIOR_REJECT_TRACKER) { // Step 3. If the document's frame is the main frame, resolve. if (IsTopLevelContentDocument()) { promise->MaybeResolveWithUndefined(); return promise.forget(); } // Step 4. If the sub frame's origin is equal to the main frame's, resolve. @@ -12400,17 +12400,17 @@ already_AddRefed<mozilla::dom::Promise> if (nsContentUtils::IsInPrivateBrowsing(this)) { // If the document is in PB mode, it doesn't have access to its persistent // cookie jar, so reject the promise here. promise->MaybeRejectWithUndefined(); return promise.forget(); } - if (CookieSettings()->GetCookieBehavior() == + if (mCookieSettings->GetCookieBehavior() == nsICookieService::BEHAVIOR_REJECT_TRACKER && inner) { // Only do something special for third-party tracking content. if (nsContentUtils::StorageDisabledByAntiTracking(this, nullptr)) { // Note: If this has returned true, the top-level document is guaranteed // to not be on the Content Blocking allow list. DebugOnly<bool> isOnAllowList = false; // If we have a parent document, it has to be non-private since we
--- a/netwerk/cookie/test/mochitest/mochitest.ini +++ b/netwerk/cookie/test/mochitest/mochitest.ini @@ -6,10 +6,9 @@ support-files = [test_document_cookie.html] [test_fetch.html] [test_image.html] [test_script.html] [test_sharedWorker.html] [test_worker.html] [test_xhr.html] -[test_xmlDocument.html] [test_metaTag.html]
deleted file mode 100644 --- a/netwerk/cookie/test/mochitest/test_xmlDocument.html +++ /dev/null @@ -1,28 +0,0 @@ -<!DOCTYPE HTML> -<html> -<head> - <title>Test for Document constructor</title> - <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> - <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> -</head> -<body> -<script type="application/javascript"> - -SpecialPowers.pushPrefEnv({set: [ - ["dom.storage_access.enabled", true], - ["dom.storage_access.prompt.testing", true], - ["dom.storage_access.prompt.testing.allow", true], - ["dom.testing.sync-content-blocking-notifications", true], -]}).then(_ => { - const doc = new Document(); - doc.requestStorageAccess().catch(__ => {}).then(___ => { - ok(true, "No crash!"); - SimpleTest.finish(); - }); -}); - -SimpleTest.waitForExplicitFinish(); - -</script> -</body> -</html>