Mark Banner
42674415ed
Bug 1795322 - Update toolkit modules references in dom code. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D160034
2022-10-26 08:06:37 +00:00
Csoregi Natalia
5f9da7b301
Backed out 12 changesets (bug 1795322) for causing multiple failures e.g. test_deletion_request_ping.py. CLOSED TREE
...
Backed out changeset aba25cbcda51 (bug 1795322)
Backed out changeset a4a35005ada9 (bug 1795322)
Backed out changeset 8e8d790eb0f4 (bug 1795322)
Backed out changeset db8903454bd3 (bug 1795322)
Backed out changeset 60cc71c61cad (bug 1795322)
Backed out changeset bc6a674994ad (bug 1795322)
Backed out changeset 6ac8a611f8c7 (bug 1795322)
Backed out changeset 9fb873ecfb31 (bug 1795322)
Backed out changeset c8a7a40c2a2f (bug 1795322)
Backed out changeset f2c118b6c6ce (bug 1795322)
Backed out changeset 38df43b4a70f (bug 1795322)
Backed out changeset 89aea8373411 (bug 1795322)
2022-10-25 23:47:58 +03:00
Mark Banner
a23bba4111
Bug 1795322 - Update toolkit modules references in dom code. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D160034
2022-10-25 19:49:27 +00:00
Chris Peterson
2ae60bead7
Bug 1744425 - Replace nsContentUtils::GenerateUUID() to nsID::GenerateUUID(). r=nika
...
Bug 1723674 added a new nsID::GenerateUUID() static factory function to generate UUIDs without the overhead of querying and instantiating an nsIUUIDGenerator object. nsContentUtils::GenerateUUID() is a utility function that amortizes that overhead by holding an nsIUUIDGenerator singleton. That's no longer necessary because code that calls nsContentUtils::GenerateUUID() can now just call nsID::GenerateUUID(). No nsIUUDGenerator is needed.
Differential Revision: https://phabricator.services.mozilla.com/D132866
2022-02-03 04:39:34 +00:00
Matthew Gaudet
bc10b96605
Bug 1748888
- Add ErrorResult parameter to PromiseNativeHandler callbacks r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D136423
2022-01-20 19:11:39 +00:00
Cosmin Sabou
fdf40d5a31
Backed out changeset 1778ca2ab291 (bug 1744425) for bc failures on browser_xpcom_graph_wait.js. CLOSED TREE
2021-12-08 07:20:54 +02:00
Chris Peterson
aae95e46eb
Bug 1744425 - Replace nsContentUtils::GenerateUUID() to nsID::GenerateUUID(). r=nika
...
Bug 1723674 added a new nsID::GenerateUUID() static factory function to generate UUIDs without the overhead of querying and instantiating an nsIUUIDGenerator object. nsContentUtils::GenerateUUID() is a utility function that amortizes that overhead by holding an nsIUUIDGenerator singleton. That's no longer necessary because code that calls nsContentUtils::GenerateUUID() can now just call nsID::GenerateUUID(). No nsIUUDGenerator is needed.
Differential Revision: https://phabricator.services.mozilla.com/D132866
2021-12-08 03:19:11 +00:00
Dan Minor
e12f42285c
Bug 1733659 - Clean up naming style in Locale; r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D131511
2021-11-23 12:36:41 +00:00
Sandor Molnar
2594d2ac61
Backed out 2 changesets (bug 1733659) for causing build bustages. CLOSED TREE
...
Backed out changeset 9e23aa79fda9 (bug 1733659)
Backed out changeset e316768591c0 (bug 1733659)
2021-11-22 20:51:20 +02:00
Dan Minor
bcbfdb6d73
Bug 1733659 - Clean up naming style in Locale; r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D131511
2021-11-22 18:32:41 +00:00
Dan Minor
43d945e661
Bug 1736017 - Replace MozLocale with Locale in PaymentRequest.cpp; r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D129206
2021-11-04 16:36:02 +00:00
Noemi Erli
25dd04d4c5
Backed out 9 changesets (bug 1736017) for causing bustages in nsLineBreaker.cpp
...
Backed out changeset d7b7427bb29e (bug 1736017)
Backed out changeset 7249dec70600 (bug 1736017)
Backed out changeset f16572806b0c (bug 1736017)
Backed out changeset a78125c71b3e (bug 1736017)
Backed out changeset 84ba2cbd596a (bug 1736017)
Backed out changeset f771265e0930 (bug 1736017)
Backed out changeset c0cef271022d (bug 1736017)
Backed out changeset 19be73147fcc (bug 1736017)
Backed out changeset 11721cc861b0 (bug 1736017)
2021-10-28 00:06:35 +03:00
Dan Minor
6519a0bd5c
Bug 1736017 - Replace MozLocale with Locale in PaymentRequest.cpp; r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D129206
2021-10-27 20:35:55 +00:00
Dan Minor
a9e674d68d
Bug 1719746 - Rename Locale to MozLocale; r=platform-i18n-reviewers,zbraniecki
...
There is also a mozilla::intl::Locale in intl/locale/MozLocale.h. This naming
collision was causing crashes in debug builds where the wrong destructor ended
up being called. This patch renames the intl/locale/MozLocale.h class to
MozLocale.
I've filed Bug 1736017 to move callers of the MozLocale version to the
unified intl/components/Locale version.
Differential Revision: https://phabricator.services.mozilla.com/D128593
2021-10-18 13:38:24 +00:00
Eden Chuang
4e9aade4a5
Bug 1731763 - Always null-check on ParymentRequest::mAcceptPromise and PaymentResponse::mRetryPromise. r=jstutte
...
Since PaymentRequest::mAcceptPromise and PaymentResponse::mRetryPromise can be nulled in PaymentRequest::NotifyOwnerDocumentActivityChanged(), always null-check on these promise when calling RespondShowPayment() and RespondRetry().
Differential Revision: https://phabricator.services.mozilla.com/D127110
2021-10-05 10:12:46 +00:00
Jens Stutte
2a5a1d7a16
Bug 1731706: Explicitely check mAbortPromise and mState during PaymentRequest::RespondAbortPayment r=edenchuang
...
Differential Revision: https://phabricator.services.mozilla.com/D126180
2021-09-21 11:32:37 +00:00
Eden Chuang
21c1f22b47
Bug 1721897 - Getting the top same process parent document's principal for payment request. r=kmag
...
Details in https://bugzilla.mozilla.org/show_bug.cgi?id=1721897#c5
Differential Revision: https://phabricator.services.mozilla.com/D121153
2021-09-09 13:07:28 +00:00
Nika Layzell
b40ab34831
Bug 1728605 - Part 2: Rename misleading {Window,Browsing}Context::IsCached, r=smaug
...
This method actually tracks whether the context is current, so it has been
renamed, and the behaviour has been inverted.
Depends on D124210
Differential Revision: https://phabricator.services.mozilla.com/D124211
2021-09-02 14:15:04 +00:00
Kagami Sascha Rosylight
eddf271c1f
Bug 1726648 - Add a helper to trim brackets from nsID r=mccr8,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D123163
2021-08-23 10:54:11 +00:00
Iulian Moraru
a16afaadfe
Backed out changeset d21b3f88a2b4 (bug 1726648) for causing build bustages. CLOSED TREE
2021-08-23 04:12:02 +03:00
Kagami Sascha Rosylight
0c5086660f
Bug 1726648 - Add a helper to trim brackets from nsID r=mccr8,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D123163
2021-08-23 00:35:40 +00:00
Kris Maglione
62019b1fab
Bug 1704686: Rename Document::GetTopLevelContentDocument. r=nika
...
It's deprecated, and returns null if the top document isn't in-process, so its
name should be clear on that point.
Differential Revision: https://phabricator.services.mozilla.com/D111771
2021-04-15 21:19:28 +00:00
Eden Chuang
232e79bb40
Bug 1646556 - Make PaymentRequest APIs be fission compatible. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D85147
2021-03-25 12:57:13 +00:00
Simon Giesecke
971b645fe3
Bug 1660470 - Add missing include directives/forward declarations. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Sylvestre Ledru
fde06f6d21
Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
...
Also add some missing namespace qualifications
Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')
Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 17:04:01 +00:00
Butkovits Atila
964cca3198
Backed out changeset c0adbf7522dc (bug 1674637) for bustage on GMPParent.cpp. CLOSED TREE
2020-11-04 10:54:36 +02:00
Sylvestre Ledru
5f29324f60
Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
...
Also add some missing namespace qualifications
Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')
Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 08:29:00 +00:00
Andi-Bogdan Postelnicu
9495897723
Bug 1626555 - Add dom/payments
to the list of non-unified-build-compatible directories. r=sg
...
Differential Revision: https://phabricator.services.mozilla.com/D95155
2020-10-29 16:15:45 +00:00
Marcos Cáceres
a9ea25e663
Bug 1665252 - remove allowpaymentrequest attribute from HTMLIFrameElement r=dom-workers-and-storage-reviewers,smaug,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D90505
2020-10-05 05:45:38 +00:00
Dorel Luca
eb27bbe130
Backed out changeset a06cc26fbb60 (bug 1665252) for WPT failures in feature-policy/payment-allowed-by-feature-policy-attribute.https.sub.html. CLOSED TREE
2020-09-24 15:06:19 +03:00
Marcos Cáceres
41461b2487
Bug 1665252 - remove allowpaymentrequest attribute from HTMLIFrameElement r=dom-workers-and-storage-reviewers,smaug,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D90505
2020-09-24 03:41:26 +00:00
Simon Giesecke
de7bab0f06
Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi
...
Differential Revision: https://phabricator.services.mozilla.com/D82325
2020-09-23 15:17:15 +00:00
Andreea Pavel
d101db3d49
Backed out changeset be6c8fed6a40 (bug 1654227) for assertion failures on a CLOSED TREE
2020-07-24 15:56:38 +03:00
Marcos Cáceres
4b7144c3a5
Bug 1654227 - enable WPT + mochitests again for Web Payments r=kamidphish
...
Re-enable the tests... there are some painful fails but we should deal with them on a case by case basis.
Differential Revision: https://phabricator.services.mozilla.com/D84332
2020-07-24 05:14:04 +00:00
Simon Giesecke
cd8b8939b9
Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Dale Harvey
f5d6491063
Bug 1627547
- Switch WebPayments to use nsIRegion.idl interface r=edenchuang
...
Differential Revision: https://phabricator.services.mozilla.com/D80153
2020-06-25 18:04:37 +00:00
Eden Chuang
4f231bbd53
Bug 1633344 - Throw RangeError when creating PaymentRequest with a duplicate payment method. r=alchen
...
Differential Revision: https://phabricator.services.mozilla.com/D74686
2020-05-21 10:30:00 +00:00
Bogdan Tara
1498e0890a
Backed out 2 changesets (bug 1633344) for bustages complaining about PaymentRequest.cpp CLOSED TREE
...
Backed out changeset ec269840dc1b (bug 1633344)
Backed out changeset 0ec92438aef0 (bug 1633344)
2020-05-19 16:59:46 +03:00
Eden Chuang
8c59e98c15
Bug 1633344 - Throw RangeError when creating PaymentRequest with a duplicate payment method. r=alchen
...
Differential Revision: https://phabricator.services.mozilla.com/D74686
2020-05-19 13:17:13 +00:00
Boris Zbarsky
00cd5d4380
Bug 1619112 part 5. Stop accepting nsAString in ErrorResult error-throwing. r=smaug
...
Callers should pass in UTF-8, since that's what the JS engine ends up with in the end anyway.
The various URL changes are because NS_NewURI converts incoming nsAString to
UTF-8 anyway. So we might as well do that up-front and then use the UTF-8
string for both the NS_NewURI call and the error-reporting if it fails.
Differential Revision: https://phabricator.services.mozilla.com/D65543
--HG--
extra : moz-landing-system : lando
2020-03-06 21:08:02 +00:00
Boris Zbarsky
c878a8bb26
Bug 1619112 part 2. Pass char literals instead of char16_t literals into ErrorResult throwing methods. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D65538
--HG--
extra : moz-landing-system : lando
2020-03-06 21:04:58 +00:00
Boris Zbarsky
6c66fa85a4
Bug 1615022 part 2. Require an rvalue reference to reject a Promise with an ErrorResult. r=farre,kvark
...
The rejection process consumes the ErrorResult, so an rvalue reference is the honest thing here.
Differential Revision: https://phabricator.services.mozilla.com/D62632
--HG--
extra : moz-landing-system : lando
2020-02-14 15:42:30 +00:00
Eden Chuang
852445c77e
Bug 1610881 - Get rid of ErrorResult.Throw(DOMException) in Payment code r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D61557
--HG--
extra : moz-landing-system : lando
2020-02-11 08:45:49 +00:00
Zibi Braniecki
4fb4f2f900
Bug 1609585 - Migrate all possible uses from AppLocalesAsLangTag(s) to AppLocale(s)AsBCP47. r=marionette-reviewers,jfkthame,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D60096
--HG--
extra : moz-landing-system : lando
2020-01-17 19:29:09 +00:00
Boris Zbarsky
33acac0a74
Bug 1582196 part 3. Stop using NS_ERROR_RANGE_ERR and NS_ERROR_TYPE_ERR in payments code. r=edenchuang
...
The changes to the return type of MerchantValidationEvent::init are because
Result doesn't allow having an ErrorResult (or any other type without a copy
constructor) as its error type. Plus we would have had the impedance mismatch
between Result<Ok, nsresult> (which is what URL resolution on the document
returns) and Result<Ok, ErrorResult> anyway.
Differential Revision: https://phabricator.services.mozilla.com/D46461
--HG--
extra : moz-landing-system : lando
2019-09-19 23:53:14 +00:00
Edgar Chen
5bc0854d2b
Bug 1578355 - Part 1: Move user-activation code from EventStateManager to UserActivation; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D45168
--HG--
extra : moz-landing-system : lando
2019-09-20 20:51:25 +00:00
Daniel Varga
bc19cdb06d
Backed out 3 changesets (bug 1578355) for build bustage at build/src/dom/base/nsSyncLoadService.h:48:21. On a CLOSED TREE
...
Backed out changeset d50ad759f129 (bug 1578355)
Backed out changeset 339ab54ca471 (bug 1578355)
Backed out changeset 284299dac42c (bug 1578355)
2019-09-20 14:05:12 +03:00
Edgar Chen
5b6fe53148
Bug 1578355 - Part 1: Move user-activation code from EventStateManager to UserActivation; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D45168
--HG--
extra : moz-landing-system : lando
2019-09-20 10:31:55 +00:00
Kannan Vijayan
3fb6190ec6
Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D39378
--HG--
extra : moz-landing-system : lando
2019-07-26 16:48:31 +00:00
Nicholas Nethercote
18fae65f38
Bug 1563139 - Remove StaticPrefs.h. r=glandium
...
This requires replacing inclusions of it with inclusions of more specific prefs
files.
The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.
Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.
Differential Revision: https://phabricator.services.mozilla.com/D39138
--HG--
extra : moz-landing-system : lando
2019-07-26 01:10:23 +00:00