Граф коммитов

619 Коммитов

Автор SHA1 Сообщение Дата
Ian Moody 011b59d595 Bug 1536556 - Replace raw thrown Cr.ERRORs with Components.Exception. r=mossop,remote-protocol-reviewers,marionette-reviewers,whimboo,necko-reviewers,geckoview-reviewers,valentin,agi
Raw Cr.ERROR don't get stack information, same as throwing JS literals instead
of `new Error()`s.

This was done automatically with a new eslint rule that will be introduced in
the next commit.  One instance of a raw Cr.ERROR was not replaced since it is
used in a test that specifically checks the preservation of raw Cr values in
XPCJS.  The rule will be disabled for that instance.

Differential Revision: https://phabricator.services.mozilla.com/D28073
2020-05-05 17:41:36 +00:00
Simon Giesecke 03360c8ab8 Bug 1626570 - Improve handling of copying arrays in dom/push/. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D73659
2020-05-05 10:20:12 +00:00
Kris Maglione 1d79fbe4d7 Bug 1614462: Part 1 - Remove unused message principals. r=nika
These were added for the sake of app browsers, and all of the code which
actually needed them has since been removed.

Differential Revision: https://phabricator.services.mozilla.com/D70741
2020-04-20 22:15:19 +00:00
Ciure Andrei a5ac2a8bbc Backed out 10 changesets (bug 1614462) for causing test_ipc_messagemanager_blob.js failures CLOSED TREE
Backed out changeset bf4f8253c708 (bug 1614462)
Backed out changeset c61b797d63e9 (bug 1614462)
Backed out changeset 284002de7137 (bug 1614462)
Backed out changeset 7f604ee5731c (bug 1614462)
Backed out changeset a73ef8167cd4 (bug 1614462)
Backed out changeset ecc3477ed34e (bug 1614462)
Backed out changeset 2106f3ccc4b5 (bug 1614462)
Backed out changeset e68c38a7741d (bug 1614462)
Backed out changeset 93b3bacdbb34 (bug 1614462)
Backed out changeset 0cf4898ae08d (bug 1614462)
2020-04-21 01:11:37 +03:00
Mark Banner 91b65009eb Bug 1549945 - Avoid the need for import-globals-from when (x)html files load scripts via /tests/. r=mossop
When loading from /tests/ we can strip off the /tests/ part and find the file with the rest of the path.

Differential Revision: https://phabricator.services.mozilla.com/D71411
2020-04-20 16:15:11 +00:00
Kris Maglione 4660e2ccc6 Bug 1614462: Part 1 - Remove unused message principals. r=nika
These were added for the sake of app browsers, and all of the code which
actually needed them has since been removed.

Differential Revision: https://phabricator.services.mozilla.com/D70741
2020-04-20 20:11:29 +00:00
Coroiu Cristina 43be71277d Backed out 2 changesets (bug 1625500) for multiple failures on a CLOSED TREE
Backed out changeset 7d80233bcfcd (bug 1625500)
Backed out changeset 0a35b13dfcde (bug 1625500)
2020-04-17 15:36:05 +03:00
Gijs Kruitbosch cc39a339a0 Bug 1625500 - fix use of .then(x, x) in the tree, r=marionette-reviewers,Standard8,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D68614
2020-04-17 11:41:49 +00:00
Ciure Andrei c15dcac93b Backed out 10 changesets (bug 1614462) for causing xpcshell failures CLOSED TREE
Backed out changeset 34d4a86530b4 (bug 1614462)
Backed out changeset dbc2e2556d08 (bug 1614462)
Backed out changeset 512bbab4730c (bug 1614462)
Backed out changeset cd6b8d630f4c (bug 1614462)
Backed out changeset e4ad5037658f (bug 1614462)
Backed out changeset 0ffed1dc4296 (bug 1614462)
Backed out changeset 90ed81cbfe34 (bug 1614462)
Backed out changeset 6d2137eb1d52 (bug 1614462)
Backed out changeset b4819c99e16e (bug 1614462)
Backed out changeset b7deaed376ed (bug 1614462)
2020-04-17 02:26:14 +03:00
Kris Maglione 0cbfb2510e Bug 1614462: Part 1 - Remove unused message principals. r=nika
These were added for the sake of app browsers, and all of the code which
actually needed them has since been removed.

Differential Revision: https://phabricator.services.mozilla.com/D70741
2020-04-16 16:58:08 +00:00
Agi Sferro 05aa0f0db0 Bug 1628117 - Remove BrowserApp.tabs. r=lina,snorp
Differential Revision: https://phabricator.services.mozilla.com/D70454

--HG--
extra : moz-landing-system : lando
2020-04-14 17:07:38 +00:00
Mihai Alexandru Michis 81ac402a67 Backed out 6 changesets (bug 1628117) for causing Marionette failures.
CLOSED TREE

Backed out changeset 6319076b66d6 (bug 1628117)
Backed out changeset d867e385620f (bug 1628117)
Backed out changeset 12827a9f8ed2 (bug 1628117)
Backed out changeset a0508a8f0733 (bug 1628117)
Backed out changeset 30116ea848c7 (bug 1628117)
Backed out changeset 63b977732075 (bug 1628117)
2020-04-14 20:03:30 +03:00
Agi Sferro aff542f7f1 Bug 1628117 - Remove BrowserApp.tabs. r=lina,snorp
Differential Revision: https://phabricator.services.mozilla.com/D70454

--HG--
extra : moz-landing-system : lando
2020-04-14 15:25:48 +00:00
Lina Cambridge 4dac2b2a1d Bug 1621756 - Don't send the Push UAID if there are no push subscriptions. r=englehardt
This commit changes the Push client code to check for existing push
subscriptions when connecting to the server, and omits the UAID from
the `hello` handshake if there are none. This, in turn, causes the
server to issue a new UAID, which we keep until either the next
reconnect, or when the user subscribes to push. It's a way to rotate
the UAID and reduce the privacy risk of tying a persistent identifier
to the connection.

Differential Revision: https://phabricator.services.mozilla.com/D66485

--HG--
extra : moz-landing-system : lando
2020-03-30 18:21:09 +00:00
Bogdan Tara 70597faf60 Backed out changeset 2f302b1f5cb9 (bug 1621756) for xpc failures on test_unregister_empty_scope.js CLOSED TREE 2020-03-30 08:24:02 +03:00
Lina Cambridge 082cfa14cc Bug 1621756 - Don't send the Push UAID if there are no push subscriptions. r=englehardt
This commit changes the Push client code to check for existing push
subscriptions when connecting to the server, and omits the UAID from
the `hello` handshake if there are none. This, in turn, causes the
server to issue a new UAID, which we keep until either the next
reconnect, or when the user subscribes to push. It's a way to rotate
the UAID and reduce the privacy risk of tying a persistent identifier
to the connection.

Differential Revision: https://phabricator.services.mozilla.com/D66485

--HG--
extra : moz-landing-system : lando
2020-03-30 01:56:00 +00:00
Brindusan Cristian db0ef6b876 Backed out changeset 3ff5a0976b14 (bug 1621756) for xpcshell failures at test_removeDataFromDomain.js. CLOSED TREE 2020-03-30 02:13:30 +03:00
Lina Cambridge 99093219c9 Bug 1621756 - Don't send the Push UAID if there are no push subscriptions. r=englehardt
This commit changes the Push client code to check for existing push
subscriptions when connecting to the server, and omits the UAID from
the `hello` handshake if there are none. This, in turn, causes the
server to issue a new UAID, which we keep until either the next
reconnect, or when the user subscribes to push. It's a way to rotate
the UAID and reduce the privacy risk of tying a persistent identifier
to the connection.

Differential Revision: https://phabricator.services.mozilla.com/D66485

--HG--
extra : moz-landing-system : lando
2020-03-29 20:42:51 +00:00
Ed Lee acb960676c Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128

--HG--
extra : moz-landing-system : lando
2020-03-13 23:38:52 +00:00
Simon Giesecke 7c764ee1da Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/push. r=smaug
Depends on D66025

Differential Revision: https://phabricator.services.mozilla.com/D66027

--HG--
extra : moz-landing-system : lando
2020-03-09 15:05:52 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Jason Kratzer dfb316510b Bug 1610582 - Don't prompt for permission if dom.push.testing.ignorePermission enabled r=lina
Differential Revision: https://phabricator.services.mozilla.com/D60542

--HG--
extra : moz-landing-system : lando
2020-01-22 21:28:24 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
shindli 91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
J.C. Jones ac5dfc4597 Bug 1333140 - Require SecureContext for WebCrypto r=bholley,keeler,baku
Adds [SecureContext] for crypto.subtle, CryptoKey, and SubtleCrypto, retiring
the WebCrypto WPT overrides for WebCryptoAPI/historical.any.js.

Rebased on https://phabricator.services.mozilla.com/D58743

Differential Revision: https://phabricator.services.mozilla.com/D58555

--HG--
extra : moz-landing-system : lando
2020-02-11 09:25:09 +00:00
Brian Grinstead 3d2d2d0ea7 Bug 1608281 - Automated rewrite away from reading properties on the global `this` in JSM files - round 1 r=mossop
This patch was generated with a script. It doesn't include all files:

- Files that use the preprocessor or fail to parse are skipped
- Files that are loaded as JSMs but don't use the .jsm extension are skipped (those will be renamed in Bug 1609269)

It was generated with the following command using d855222aa2/no-this-property-read.js:

```
hg revert --all &&
cp .gitignore .rgignore &&
rg --files-without-match -g '*.jsm' '^#endif|^#include|^#filter' | jscodeshift --stdin --transform ~/Code/jsm-rewrites/no-this-property-read.js --ignore-pattern ./mobile/android/modules/Sanitizer.jsm --ignore-pattern ./js/xpconnect/tests/unit/syntax_error.jsm &&
./mach eslint `hg st | rg '^M ' | sed 's/^M //'`
```

Differential Revision: https://phabricator.services.mozilla.com/D60187

--HG--
extra : moz-landing-system : lando
2020-01-29 21:50:04 +00:00
Edgar Chen 9e846bd48a bug 1610296 - Rename TypedArray_base::ComputeLengthAndData to TypedArray_base::ComputeState; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D60514

--HG--
extra : moz-landing-system : lando
2020-01-23 03:22:06 +00:00
Johann Hofmann 038631d30b Bug 1606839 - Use new user activation API for guarding notification permission prompts. r=Ehsan,edgar
Differential Revision: https://phabricator.services.mozilla.com/D59342

--HG--
extra : moz-landing-system : lando
2020-01-15 14:22:46 +00:00
Arthur Iakab 99c5970d7f Backed out changeset 209adca8625c (bug 1606839) for multiple failures on browser_permissions_handling_user_input.js
CLOSED TREE
2020-01-14 16:52:02 +02:00
Johann Hofmann b8ab0954d2 Bug 1606839 - Use new user activation API for guarding notification permission prompts. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D59342

--HG--
extra : moz-landing-system : lando
2020-01-14 13:49:23 +00:00
Andreea Pavel e7802d1d01 Backed out changeset fcbd865d22bc (bug 1274773) for causing high frequency failures in Bug 1274773 2019-12-12 19:24:00 +02:00
Johann Hofmann 749da501d5 Bug 1600942 - Remove userHadInteractedWithDocument and documentDOMContentLoadedTimestamp attributes from nsIContentPermissionPrompt. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D56540

--HG--
extra : moz-landing-system : lando
2019-12-10 14:38:30 +00:00
Perry Jiang d574806ada Bug 1274773 - re-enable test_multiple_register_during_service_activation.html r=asuth
The test was disabled 8 months ago. Re-enabling to see if this intermittent
still exists.

Differential Revision: https://phabricator.services.mozilla.com/D55989

--HG--
extra : moz-landing-system : lando
2019-12-09 16:11:23 +00:00
Boris Zbarsky 75124bdd98 Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D53067

--HG--
extra : moz-landing-system : lando
2019-12-05 04:44:32 +00:00
Perry Jiang 8ae16063a4 Bug 1592699 - Fix test_serviceworker_lifetime.html r=asuth
- Reset idle timeout when dispatching service worker operations even if the
worker is alive.
- Use MessageEvent instead of FetchEvent to avoid creating objects that leak
when the test finishes.

Differential Revision: https://phabricator.services.mozilla.com/D51016

--HG--
extra : moz-landing-system : lando
2019-10-30 17:23:53 +00:00
Rob Wu 34c77beb98 Bug 1591102 - Let some SpecialPowers.pushPermissions callers use promises r=jdm
Some callers of SpecialPowers.pushPermissions wrapped the call in a
promise. That is not needed; directly use the returned promise instead.

Differential Revision: https://phabricator.services.mozilla.com/D50487

--HG--
extra : moz-landing-system : lando
2019-10-27 15:28:41 +00:00
Paul Zuehlcke c462a0fcba Bug 1422056 - Updated tests to account for permission manager OA stripping. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D48665

--HG--
extra : moz-landing-system : lando
2019-10-24 14:19:57 +00:00
Perry Jiang 87c3eb5a96 Bug 1575185 - Subscribe content processes spawning Service Workers to permission updates r=asuth
Previously, Service Workers could spawn in a process that isn't subscribed
to permission updates, which could happen if that process hadn't loaded any
same-origin documents. To address this, parent-process logic for spawning
Service Workers would snapshot the permissions state to be sent to a content
process.

Unfortunately, this approach could lead to outdated, unsynchronized permissions.
Note that nsIPermissionManager::SetPermissionsWithKey is only used to initialize
permissions for a given key and is a no-op if already called with the same key
in a given process. As a result, the following sequence of events could happen:

Assume a content process CP that isn't subscribed to permission changes for an
origin A:

1) Parent process decides to spawn an origin A Service Worker in CP,
snapshotting a value V for permission P.
2) The Service Worker is spawned in CP, setting CP's permission manager's
permission P to value V (for origin A).
3) Parent process updates its permission P to a value A', which is not
broadcasted to CP (because it's not subscribed).
4) By now, the initial Service Worker has been terminated, and the parent
process decides once again to spawn an origin A Service Worker in CP.
5) The Service Worker is spawned in CP, but the call to SetPermissionsWithKey
is a no-op, leaving CP1 with a mismatched value for permission P.

An additional scenario is if the parent process updates a permission during a
remote Service Worker's lifetime.

This patch, which would subscribe CP1 to permission updates when the parent
process knows a Service Worker would be spawned in CP1, prevents these problems.

Differential Revision: https://phabricator.services.mozilla.com/D48620

--HG--
extra : moz-landing-system : lando
2019-10-09 02:23:41 +00:00
Geoff Brown dee3092cdc Bug 1575185 - Skip test_permissions.html on fission; r=mccr8
Avoid high frequency intermittent failure on fission.

Differential Revision: https://phabricator.services.mozilla.com/D47693

--HG--
extra : moz-landing-system : lando
2019-09-30 22:40:35 +00:00
Emma Malysz fffa5382c1 Bug 1385952, Remove usage of Preferences.jsm from PushService and PushServiceWebsocket in order to load preferences before becoming idle r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D45608

--HG--
extra : moz-landing-system : lando
2019-09-27 20:43:48 +00:00
Andrew McCreight f4726058d8 Bug 1579835, part 4 - Add a comment about why PushNotifier::Dispatch only matches "web". r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D45377

--HG--
extra : moz-landing-system : lando
2019-09-26 06:54:22 +00:00
Anny Gakhokidze f1c694e18f Bug 1582531 - Update fission annotations for skipped tests that are now passing succesfully, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D47347

--HG--
extra : moz-landing-system : lando
2019-09-27 14:25:10 +00:00
Valentin Gosu 099ff7434c Bug 1582515 - Add ability for httpd.js to execute code moz-http2.js and spawn new servers r=mayhemer,JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D46496

--HG--
extra : moz-landing-system : lando
2019-09-26 09:53:04 +00:00
Emma Malysz 6a0111db7b Bug 1369436, Load PushComponents.js after startup. r=lina,mconley
Differential Revision: https://phabricator.services.mozilla.com/D45079

--HG--
extra : moz-landing-system : lando
2019-09-25 15:50:58 +00:00
Dorel Luca 963e95b6db Backed out changeset a956d11fef6e (bug 1369436) for XPCshell failure on dom/push/test/xpcshell/test_notification_http2.js
--HG--
extra : rebase_source : faf44816363b784e7eacd15978d6aec558328ea2
2019-09-13 00:42:28 +03:00
Emma Malysz 8c1fe041e3 Bug 1369436, Load PushComponents.js after startup. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D45079

--HG--
extra : moz-landing-system : lando
2019-09-12 16:53:55 +00:00
Cosmin Sabou e5327b05c8 Bug 1578333 - Disable test because of frequent failures. r=egao
Differential Revision: https://phabricator.services.mozilla.com/D44593

--HG--
extra : moz-landing-system : lando
2019-09-04 04:23:42 +00:00
Cosmin Sabou d6435fae32 Backed out 4 changesets (bug 1456995) for OSX mochitest failures on test_serviceworkerinfo.xul. CLOSED TREE
Backed out changeset e4deba1aa285 (bug 1456995)
Backed out changeset 03db4932e3ca (bug 1456995)
Backed out changeset 962b6affd688 (bug 1456995)
Backed out changeset 5fbed7d37ac0 (bug 1456995)
2019-09-03 22:27:03 +03:00
Perry Jiang b3c3679dc5 Bug 1456995 - check parent-intercept pref within test_observer_remoting.js to conditionally run r=asuth
Depends on D44514

Differential Revision: https://phabricator.services.mozilla.com/D44515

--HG--
extra : moz-landing-system : lando
2019-09-03 18:08:47 +00:00