Commit Graph

327 Commits

Author SHA1 Message Date
Ehsan Akhgari
e195d030f5 Bug 1591813 - Make nsICookieManager.getCookiesFromHost() return an Array<nsICookie>; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D50750
2019-10-28 12:08:09 +00:00
Gurzau Raul
7fbca78494 Backed out 6 changesets (bug 1578465) for mochitest leakcheck failures on a CLOSED TREE.
Backed out changeset 46073b8c1da9 (bug 1578465)
Backed out changeset bd41e1217534 (bug 1578465)
Backed out changeset 38a4c02bc815 (bug 1578465)
Backed out changeset a3857bf2b069 (bug 1578465)
Backed out changeset ca658e02223d (bug 1578465)
Backed out changeset 4420f02e5c3a (bug 1578465)
2019-10-25 02:02:07 +03:00
Kashav Madan
53ae97c4de Bug 1578465 - Update fission annotations, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D49005
2019-10-22 20:46:00 +00:00
Kashav Madan
5cba5d7ed2 Bug 1578465 - Remove the content-utils.js framescript, r=nika
This also updates the two functions (BrowserTestUtils.firstBrowserLoaded,
browser_broadcastchannel.js#browserFrameLoaded) that rely on the previous
event to use the new one.

Differential Revision: https://phabricator.services.mozilla.com/D49002
2019-10-22 20:44:40 +00:00
Paul Zuehlcke
7aaa589abf Bug 1574469 - Removed block param from nsICookieManager::Remove. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D45848
2019-09-24 17:13:43 +00:00
Oana Pop Rus
0b45091dcf Backed out changeset cb1b6afa9f33 (bug 1574469) for multiple failures in nsICookieManager.remove on a CLOSED TREE 2019-09-24 13:10:07 +03:00
Paul Zuehlcke
380cac0210 Bug 1574469 - Removed block param from nsICookieManager::Remove. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D45848
2019-09-19 17:10:58 +00:00
monikamaheshwari
edb30ffaec Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629
2019-09-14 09:39:26 +00:00
Thomas Nguyen
afd661198b Bug 1528697 - Add cenum referrerpolicy in ReferrerInfo.idl r=ckerschb,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D41955
2019-08-21 13:28:23 +00:00
Kendall Werts
a2b6d38b52 Bug 1570005 updated and rearranged icons. r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D39972
2019-07-31 14:14:26 +00:00
Kris Maglione
9f00b7395d Bug 1566182: Annotate mochitests that fail with Fission enabled. r=mccr8
My preference was to annotate most of the failing tests with `fail-if` so that
if they start passing, the `fail-if` needs to be removed and they need to keep
passing. That doesn't work for tests that timeout, or which trigger failures
from their cleanup functions, however, so those tests need skip-if. And tests
with fail in their cleanup functions likely leave the browser in an
inconsistent state for subsequent tests, anyway, so really should be skipped
regardless.

There are some remaining tests which still fail because of crashes. I chose
not to skip them here, but to fix the crashes in separate bugs instead.

Differential Revision: https://phabricator.services.mozilla.com/D38247
2019-07-15 16:19:32 -07:00
Erica Wright
55a77aa43a Bug 1557058 - use real data for protection report graph r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D36249
2019-07-11 03:01:18 +00:00
Luke Crouch
37661e0c94 Bug 1559365: UI indication of breached logins r=jaws,MattN
Differential Revision: https://phabricator.services.mozilla.com/D35105
2019-07-10 19:57:25 +00:00
Noemi Erli
037871b522 Backed out changeset d050bd93ea39 (bug 1557058) for failing in browser_protections_UI.js CLOSED TREE 2019-07-10 21:50:07 +03:00
Erica Wright
cac0042b98 Bug 1557058 - use real data for protection report graph r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D36249
2019-07-10 16:48:48 +00:00
Jonathan Kingston
32524b62e2 Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D35504
2019-07-08 16:37:45 +00:00
Victor Porof
8eb72fd3fc Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36042
2019-07-05 09:53:32 +02:00
Andrew Swan
c124590602 Bug 1555060 Convert <tabs> to a custom element
The conversion for "regular" <tabs> elements is straightforward, most of
the work here is to support the tab strip (the <tabs> element with the id
"tabbrowser-tabs").  The markup needed for the tab strip moves directly
into browser.xhtml and the construction/teardown logic is now explicitly
driven from gBrowser.  There are many more little tweaks too numerous to
enumerate.

Differential Revision: https://phabricator.services.mozilla.com/D32855
2019-06-20 14:09:37 -07:00
Andrew Swan
a74f65b714 Bug 1555060 Stop using dom structure for <tabs>/<tab> relationships
A bunch of existing code assumes that <tab> elements are the immediate
and only children of a <tabs> element, and uses dom apis to traverse
relationships between these elements.  To simplify conversion of <tabs>
to a custom element (and hopefully improve readability a bit at the same
time!), introduce new apis:

On <tab>
this.parentNode -> this.container
this.nextElementSibling -> this.container.findNextTab(...)
this.previousElementSibiling -> this.container.findNextTab(...)

On <tabs>
this.children -> this.allTabs

Differential Revision: https://phabricator.services.mozilla.com/D34648
2019-06-11 14:49:46 -07:00
Ciure Andrei
360ee087a8 Backed out 3 changesets (bug 1555060) for causing test_tabbar.py to perma fail CLOSED TREE
Backed out changeset a5c6deeda8a9 (bug 1555060)
Backed out changeset f4e21e465f38 (bug 1555060)
Backed out changeset c71c45fe3e63 (bug 1555060)
2019-06-28 00:21:50 +03:00
Andrew Swan
c20b711ae1 Bug 1555060 Convert <tabs> to a custom element
The conversion for "regular" <tabs> elements is straightforward, most of
the work here is to support the tab strip (the <tabs> element with the id
"tabbrowser-tabs").  The markup needed for the tab strip moves directly
into browser.xhtml and the construction/teardown logic is now explicitly
driven from gBrowser.  There are many more little tweaks too numerous to
enumerate.

Differential Revision: https://phabricator.services.mozilla.com/D32855
2019-06-20 14:09:37 -07:00
Andrew Swan
795b5037d0 Bug 1555060 Stop using dom structure for <tabs>/<tab> relationships
A bunch of existing code assumes that <tab> elements are the immediate
and only children of a <tabs> element, and uses dom apis to traverse
relationships between these elements.  To simplify conversion of <tabs>
to a custom element (and hopefully improve readability a bit at the same
time!), introduce new apis:

On <tab>
this.parentNode -> this.container
this.nextElementSibling -> this.container.findNextTab(...)
this.previousElementSibiling -> this.container.findNextTab(...)

On <tabs>
this.children -> this.allTabs

Differential Revision: https://phabricator.services.mozilla.com/D34648
2019-06-11 14:49:46 -07:00
Ehsan Akhgari
5f57b1b6e4 Bug 1557887 - Part 5: Pass a storage principal argument through the browser loadURI()/addTab() APIs; r=baku,mconley
Differential Revision: https://phabricator.services.mozilla.com/D34459
2019-06-12 23:05:36 +00:00
Rob Wu
24e7833ffe Bug 1555012 - Skip about:addons in browser_aboutURLs.js r=rpl
Upon enabling the HTML about:addons discovery pane, about:addons page
start to send a fetch request from the default user context, instead of
a content load request with the tab's user context.

This mismatch in userContextId triggers the following debug assertion:
https://searchfox.org/mozilla-central/rev/c606cdd6d014f/netwerk/base/nsNetUtil.cpp#3021-3024

This assertion can be ignored, because the request has no credentials,
so its context should not matter.

Differential Revision: https://phabricator.services.mozilla.com/D34688
2019-06-12 10:45:01 +00:00
Dão Gottwald
30f3874b48 Bug 1556726 - Ensure #userContext-label doesn't increase the height of the address bar. r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D33941
2019-06-06 12:43:43 +00:00
Andrea Marchesini
5cde15b155 Bug 1554464 - Merge nsICookie2 and nsICookie in 1 single interface, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33031
2019-05-31 09:36:44 +00:00
Jared Wein
1001663494 Bug 1548463 - Tests for HTML-based login manager. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D29625
2019-05-08 18:02:26 +00:00
Luke Crouch
0c06f212e3 contextualIdentity: add gray color and fence icon (Bug 1532746); r=jkt,flod
Adds a gray color and fence icon for Containers. This is originally from
Facebook Container: https://addons.mozilla.org/firefox/addon/facebook-container/

User Research showed a strong affinity for the fence icon as an indicator of
the kind of "boundary" protection that Containers provide.
https://docs.google.com/spreadsheets/d/1bnqjcWTV893RESMPJzAXOrDN0juN_Z0-EE93Mvn3Z5g/edit#gid=0

Differential Revision: https://phabricator.services.mozilla.com/D26988
2019-04-17 16:43:30 +00:00
Jonathan Kingston
7af9989152 Bug 1479433 - Changing icons and colors for containers to be class based. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D24918
2019-04-10 11:19:00 +00:00
Johann Hofmann
a722dbbd0c Bug 1532203 - Disable browser/components/contextualidentity/test/browser/browser_forgetaboutsite.js because of bug 1541885. r=baku
This test was not actually testing what it expected, and we need to properly solve that (clearing by hostname across OAs) in bug 1541885.

Differential Revision: https://phabricator.services.mozilla.com/D26249
2019-04-05 09:57:02 +00:00
Mark Banner
d5029e0dae Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850
2019-03-28 09:38:14 +00:00
Thomas Nguyen
e5f8eebf98 Bug 1528695 - Part 2 : Use referrerInfo in openWindow, contextmenu and openLinkIn r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21911
2019-03-15 05:10:17 +00:00
Edwin Gao
62a2048ac9 Bug 1531927 - disable EME and event_listener_leak tests from mochitest-browser-chrome-4 r=jmaher,gbrown
- browser_eme.js
- browser_forgetAPI_EME_forgetThisSite.js
- test_event_listener_leaks.html (bonus - this is not strictly media test, but it seems to crop up a lot in related tests)

Differential Revision: https://phabricator.services.mozilla.com/D22367
2019-03-06 21:31:27 +00:00
Kris Maglione
856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
Rob Wu
b6bf81f235 Bug 1501244 - Preserve privateBrowsingId OA when userContextId is set r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D9535
2018-10-24 21:23:17 +00:00
Julian Descottes
61a19140ab Bug 1512454 - Register about:debugging-new for Nightly builds;r=ladybenko,Ola
Differential Revision: https://phabricator.services.mozilla.com/D13923
2018-12-12 13:30:34 +00:00
Jan Varga
d09c27c4a1 Bug 1286798 - Part 17: Fix a test failing in --verify mode; r=asuth 2018-11-29 21:48:08 +01:00
Jan Varga
dde095681d Bug 1286798 - Part 14: Enhance clearStoragesForPrincipal() to support clearing of storages for specific quota client; r=asuth
See also bug 1402254, original patch by baku.
2018-11-29 21:47:58 +01:00
Jan Varga
e40233c80f Bug 1286798 - Part 5: More integration with QuotaManager; r=asuth
Preparation of datastores now creates real database files on disk. The LocalStorage directory is protected by a directory lock.
Infrastructure for database schema upgrades is in place too.
Database actors are now explicitely tracked by the datastore. When the last actor finishes the directory lock is released.
Added also implementation for QuotaClient::GetUsageForOrigin() and QuotaClient::AbortOperations().
2018-11-29 21:47:27 +01:00
Jan Varga
193a16d873 Bug 1286798 - Part 3: New basic (memory only) implementation of LocalStorage; r=asuth,mccr8
The implementation is based on a cache (datastore) living in the parent process and sync IPC calls initiated from content processes.
IPC communication is done using per principal/origin database actors which connect to the datastore.
The synchronous blocking of the main thread is done by creating a nested event target and spinning the event loop.
2018-11-29 21:47:20 +01:00
Gijs Kruitbosch
9c32bda3dd Bug 1501079 - fix various tests to not race with window focus/activate, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D9437
2018-10-23 10:16:35 +00:00
Alexandre Poirot
bfcc24e9f1 Bug 1500070 - Avoid using about:debugging in generic about: page tests. r=jdescottes
Opening about:debugging may lead to pending listAddons requests.
Tests that open about:debugging should be careful to wait for the end
of these requests, which this test doesn't do.

MozReview-Commit-ID: 6YyfdW78kOS

Depends on D8828

Differential Revision: https://phabricator.services.mozilla.com/D8867
2018-10-18 13:40:48 +00:00
Mike Conley
3823fb6b03 Bug 1495885 - Get rid of uses-unsafe-cpows directive on tests that don't need it anymore. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D7552
2018-10-02 23:20:04 +00:00
Mike Conley
aae44a27ad Bug 1492482 - Remove CPOW usage from browser_usercontext.js. r=Felipe
Depends on D6954

Differential Revision: https://phabricator.services.mozilla.com/D6955
2018-10-02 17:57:20 +00:00
Mark Banner
462116b7f9 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439
2018-08-31 05:59:17 +00:00
Kris Maglione
f6a4413b4c Bug 1484496: Part 5a - Convert browser/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3729
2018-08-18 19:27:33 -07:00
Brian Grinstead
dd4fd5c38b Bug 1482667 - Migrate mochitest-browser tests in browser/ to use element variations of firstChild, etc;r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3530
2018-08-17 16:45:52 +00:00
Joel Maher
d0823df1ef Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Ciure Andrei
415495288b Merge inbound to mozilla-central. a=merge 2018-06-08 00:50:18 +03:00
J. Ryan Stinnett
1608fbfdd3 Bug 1309735 - Test container isolation with mozbrowser frames. r=baku
MozReview-Commit-ID: FcydOsaVZvs
2018-06-06 17:15:51 -05:00