John Dai
7cc4da92b6
Bug 1518442 - Part 2: Implement Event-based form participation; r=smaug,edgar
...
For Event-based form participation specification PR:
https://github.com/whatwg/html/pull/4239
Differential Revision: https://phabricator.services.mozilla.com/D43986
--HG--
extra : moz-landing-system : lando
2019-09-06 09:47:29 +00:00
Tom Schuster
88855a7ee5
Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D40108
--HG--
extra : source : 3da6e9e86be4a4a9eeaceec222398475b6679193
2019-08-02 08:54:18 +00:00
Mihai Alexandru Michis
0cc257addd
Backed out 2 changesets (bug 1558915) for causing bustages. CLOSED TREE
...
Backed out changeset e44c9fd81e5b (bug 1558915)
Backed out changeset 3da6e9e86be4 (bug 1558915)
2019-08-02 12:17:42 +03:00
Tom Schuster
f115dd9113
Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D40108
--HG--
extra : moz-landing-system : lando
2019-08-02 08:54:18 +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
Noemi Erli
2f99f5d875
Merge mozilla-central to autoland. a=merge CLOSED TREE
2019-07-16 00:48:17 +03:00
Mirko Brodesser
2f40f072ab
Bug 1565584: move nsIContentUtils::ContentIsDescendantOf to nsINode::IsInclusiveDescendantOf. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D37880
2019-07-15 10:02:21 +02:00
Boris Zbarsky
374137e8d8
Bug 1565767 part 5. Remove some unnecesary refcounting at nsIContent::GetBaseURI callsites. r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D37973
--HG--
extra : moz-landing-system : lando
2019-07-15 18:29:05 +00:00
Emilio Cobos Álvarez
c17be889ab
Bug 1218456 - Remove nsILinkHandler. r=smaug
...
Interfaces with just one implementation don't seem very useful.
Differential Revision: https://phabricator.services.mozilla.com/D37406
2019-07-09 23:08:05 +02:00
Dorel Luca
9925ca654c
Backed out 5 changesets (bug 1218456) for Crashtest failures on dom/l10n/tests/mochitest/dom_localization/test_overlay.html. CLOSED TREE
...
Backed out changeset 31afe89c2d42 (bug 1218456)
Backed out changeset 8bd57ebc4528 (bug 1218456)
Backed out changeset e5d37afff36a (bug 1218456)
Backed out changeset e3da86278ecf (bug 1218456)
Backed out changeset 343046089f8e (bug 1218456)
--HG--
extra : rebase_source : f092d903c8c80581d187493e036b1875d8668b3d
2019-07-09 22:04:13 +03:00
Dorel Luca
a36e8cbbab
Backed out changeset ab9d5eeaa90e (bug 1370630) on dev's request
...
--HG--
extra : rebase_source : f583c253821b50a25ae0f023bcc8312b526ea8da
2019-07-09 21:44:43 +03:00
Emilio Cobos Álvarez
23a7cb7a68
Bug 1218456 - Remove nsILinkHandler. r=smaug
...
Interfaces with just one implementation don't seem very useful.
Differential Revision: https://phabricator.services.mozilla.com/D37406
--HG--
extra : moz-landing-system : lando
2019-07-09 16:17:47 +00:00
Cameron McCormack
0a6fb940c5
Bug 1553705 - Use a cheaper to compute state key for parser inserted form controls. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D32259
--HG--
extra : moz-landing-system : lando
2019-07-01 10:06:16 +00:00
Narcis Beleuzu
cc10ed7ce5
Backed out 2 changesets (bug 1553705) for causing Bug1562142 . CLOSED TREE
...
Backed out changeset fbb26a04ec1f (bug 1553705)
Backed out changeset dd6e7c0970d5 (bug 1553705)
2019-06-29 02:39:01 +03:00
Cameron McCormack
4d1517b69f
Bug 1553705 - Use a cheaper to compute state key for parser inserted form controls. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D32259
--HG--
extra : moz-landing-system : lando
2019-06-26 21:44:11 +00:00
Boris Zbarsky
9de72a3ac6
Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
...
Differential Revision: https://phabricator.services.mozilla.com/D34196
--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Ehsan Akhgari
adf073ce68
Bug 836176 - Part 3: Remove nsIHTMLDocument; r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D32925
--HG--
extra : moz-landing-system : lando
2019-06-04 17:27:43 +00:00
Emilio Cobos Álvarez
6ada67c323
Bug 1555216 - Cache owner doc in the BindContext. r=bzbarsky
...
And use it to avoid some pointer chases per the review comments of D32949.
Differential Revision: https://phabricator.services.mozilla.com/D33288
2019-05-31 23:31:57 +02:00
Emilio Cobos Álvarez
6917a38081
Bug 1555216 - Change the signature of BindToTree to be (BindContext&, nsINode& aParentNode). r=bzbarsky
...
BindContext was going to have way more information at first, but then I realized
that most of the things I wanted to know were basically a flag away using the
parent node.
Still I think it's worth it, now experimenting with BindToTree will only mean
adding a field to a struct that's included from a couple cpp files, instead of a
massive pain.
I also think this is clearer, and doing this highlights quite a few
inconsistencies in our code which I've left untouched, but commented with
FIXMEs.
Steps are:
$ for file in $(rg 'nsresult BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#nsresult BindToTree(Document\* aDocument, nsIContent\* aParent,#nsresult BindToTree(BindContext\&, nsINode\& aParent)#g' $file; done
$ for file in $(rg 'nsresult BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's# nsIContent\* aBindingParent) override#override#g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#::BindToTree(Document\* aDocument, nsIContent\* aParent,#::BindToTree(BindContext\& aContext, nsINode\& aParent)#g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#nsIContent\* aBindingParent)##g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#::BindToTree(aDocument, aParent, aBindingParent)#::BindToTree(aContext, aParent)#g' $file; done
$ ./mach clang-format
Then manual fixups.
Depends on D32948
Differential Revision: https://phabricator.services.mozilla.com/D32949
2019-05-31 23:31:52 +02:00
Edgar Chen
4b1ff2f791
Bug 1543439 - Part 1: Move special handling for MouseDown/Up event out of AutoHandlingUserInputStatePusher; r=masayuki
...
PresShell::EventHandler::HandleEventWithCurrentEventInfo is the only possible
place will do such handling; other places pass either a nullptr or a
non-MouseDown/Up event.
Differential Revision: https://phabricator.services.mozilla.com/D32431
--HG--
extra : moz-landing-system : lando
2019-05-29 07:48:16 +00:00
Emilio Cobos Álvarez
ff732c2cdf
Bug 1555143 - Remove unused aDeep argument from UnbindFromTree. r=bzbarsky
...
$ for file in $(rg UnbindFromTree | cut -d : -f 1 | sort | uniq); do sed -i 's#UnbindFromTree(bool aDeep = true,#UnbindFromTree(#g' $file; done
$ for file in $(rg UnbindFromTree | cut -d : -f 1 | sort | uniq); do sed -i 's#UnbindFromTree(bool aDeep,#UnbindFromTree(#g' $file; done
$ for file in $(rg UnbindFromTree | cut -d : -f 1 | sort | uniq); do sed -i 's#UnbindFromTree(aDeep,#UnbindFromTree(#g' $file; done
$ ./mach clang-format
And fix the two callers and little use of the aDeep argument (see the "Manual
changes" patch attached to bug).
Differential Revision: https://phabricator.services.mozilla.com/D32898
--HG--
extra : moz-landing-system : lando
2019-05-28 22:47:08 +00:00
Edgar Chen
800499a9f9
Bug 1554122 - Rename nsAutoPopupStatePusher* to AutoPopupStatePusher; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D32457
--HG--
extra : moz-landing-system : lando
2019-05-24 12:42:29 +00:00
Stone Shih
946b97b939
Bug 1370630 - Untrusted submit event shouldn't trigger form submission; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D28070
--HG--
extra : moz-landing-system : lando
2019-05-23 20:30:20 +00:00
Edgar Chen
2617857bc6
Bug 1551264 - Move user-initiated flag for form submission from HTMLFormElement to HTMLFormSubmission; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D30945
--HG--
extra : moz-landing-system : lando
2019-05-14 12:41:19 +00:00
Jonathan Kingston
ad11ea7746
Bug 1549754 - Prevent external protocol handlers from being considered insecure. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D30247
--HG--
extra : moz-landing-system : lando
2019-05-10 14:17:40 +00:00
Sylvestre Ledru
7f60810d86
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D27245
--HG--
extra : moz-landing-system : lando
2019-04-12 13:14:25 +00:00
Makoto Kato
49372ed79b
Bug 1474902 - Part 4. Set hint to next when next focusable element is input element that is text control. r=masayuki
...
Summary:
Currently, `IMEStateManager::SetIMEState` sets hint to the following logic.
- If there is no submit button into form element, set `next`
- If there is submit button, set `search` or `go`
- If there isn't into form element, no hint.
But Chrome sets `next` hint when next focusable element is input that is text
control. So even if there is submit button into form element, we should set
`next` to hint when next focusable element is input that is text/number
control and is in form.
Also, If current focused element isn't in `<form>`, I don't still set hint.
`nsFocusManager::DetermineElementToMoveFocus` may set focus to cross-process
document. So `next` is set when in form and it isn't last element in form.
Reviewers: masayuki
Reviewed By: masayuki
Subscribers: JanH
Bug #: 1474902
Differential Revision: https://phabricator.services.mozilla.com/D12885
--HG--
extra : rebase_source : f9d297416c046d9b718d9ff925006c162d67f286
extra : histedit_source : d8d946deb81f1f961d002e32720eb9a40a91bf64
2019-04-05 17:14:47 +09:00
Olli Pettay
59b1b91619
Bug 1535988, backout because bug 1537555, r=backout
2019-03-22 17:20:27 +02:00
Olli Pettay
4b409ef374
Bug 1535988 - Synthetic submit event should not trigger form submitting, r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D23925
--HG--
extra : moz-landing-system : lando
2019-03-19 06:30:28 +00:00
Ryan Hunt
00e98538aa
Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D21106
--HG--
extra : rebase_source : ea3f51c2c11247114deccbc86e90fb02b8a97257
2019-02-25 16:05:29 -06:00
Matthew Noorenberghe
2913059e69
Bug 1474143 - Replace form submission observer notifications with events. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16651
--HG--
extra : moz-landing-system : lando
2019-02-23 00:23:55 +00:00
Matthew Noorenberghe
0ad4c17e2f
Bug 1474143 - Remove unused 'firstformsubmit' category and gFirstFormSubmitted. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16650
--HG--
extra : moz-landing-system : lando
2019-02-23 00:23:37 +00:00
Matthew Noorenberghe
cc5d6f955d
Bug 1474143 - Remove unused 'passwordmanager' category and gPasswordManagerInitialized. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16649
--HG--
extra : moz-landing-system : lando
2019-02-23 00:23:14 +00:00
Ciure Andrei
f7412ac1f2
Backed out 10 changesets (bug 1474143) for perma failing browser_markup_events_01.js CLOSED TREE
...
Backed out changeset 1b5d04866585 (bug 1474143)
Backed out changeset 78bfb4dd1f6a (bug 1474143)
Backed out changeset 85ec4f1f5f60 (bug 1474143)
Backed out changeset 5c112b77e489 (bug 1474143)
Backed out changeset 5d35599598bb (bug 1474143)
Backed out changeset 9fd0d7a7946f (bug 1474143)
Backed out changeset 1a83be7a75ca (bug 1474143)
Backed out changeset 2fc9b13171d0 (bug 1474143)
Backed out changeset 3983d7b6d9ad (bug 1474143)
Backed out changeset 9fe55dd58cd8 (bug 1474143)
--HG--
rename : browser/actors/FormValidationChild.jsm => browser/actors/FormSubmitChild.jsm
rename : toolkit/components/satchel/FormSubmitChild.jsm => toolkit/components/satchel/formSubmitListener.js
2019-02-22 21:16:49 +02:00
Matthew Noorenberghe
bc7d5bc37e
Bug 1474143 - Replace form submission observer notifications with events. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16651
--HG--
extra : moz-landing-system : lando
2019-02-22 15:12:33 +00:00
Matthew Noorenberghe
702cf2d5ed
Bug 1474143 - Remove unused 'firstformsubmit' category and gFirstFormSubmitted. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16650
--HG--
extra : moz-landing-system : lando
2019-02-22 15:12:11 +00:00
Matthew Noorenberghe
44ada4578b
Bug 1474143 - Remove unused 'passwordmanager' category and gPasswordManagerInitialized. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16649
--HG--
extra : moz-landing-system : lando
2019-02-22 15:11:56 +00:00
Ehsan Akhgari
4137a92662
Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
...
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Jonathan Kingston
bb647b021c
Bug 1517301 - Move CSP check for form-action to be within HTMLFormSubmission to prevent checking before the form should be submitted. r=ckerschb,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D16032
--HG--
extra : moz-landing-system : lando
2019-01-09 15:42:04 +00:00
Emilio Cobos Álvarez
d2ed260822
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Andrea Marchesini
9cc643f6d3
Bug 1513895 - Unify PopupBlocker algorithm in 1 single file, r=smaug
2018-12-16 10:21:16 +01:00
Ehsan Akhgari
0dcf936804
Bug 1510911 - Part 2: Backout changeset f8849239da42 (bug 1493563 - Part 5) for regressing performance
2018-12-03 14:27:53 -05:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Boris Zbarsky
c38419de6d
Bug 1509101. Stop passing around anchor targets as char16_t*; use nsAString instead. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D12579
--HG--
extra : moz-landing-system : lando
2018-11-21 18:53:39 +00:00
Andrea Marchesini
4439acd683
Bug 1498510 - Move nsICSPEventListener out of CSP object, r=ckerschb
2018-10-23 08:17:13 +02:00
Ehsan Akhgari
5f0be07390
Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D6595
2018-09-28 14:46:02 -04:00
Noemi Erli
4419e20e14
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
f0108e78c2
Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D6595
2018-09-28 13:24:41 -04:00
Tiberius Oros
70e8d3a299
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
4ced8fedcb
Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D6595
2018-09-25 21:02:51 -04:00