John Dai
9cf331e8fc
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
2019-09-06 20:50:50 +00:00
Cosmin Sabou
bb559ffcc7
Backed out 6 changesets (bug 1518442) as requested by jdai.
...
Backed out changeset 74c27d7d13c5 (bug 1518442)
Backed out changeset a092042068ab (bug 1518442)
Backed out changeset 1df8f544b3b7 (bug 1518442)
Backed out changeset 65f7059b0080 (bug 1518442)
Backed out changeset c8fbe42eba38 (bug 1518442)
Backed out changeset e7a459689227 (bug 1518442)
2019-09-06 17:58:57 +03:00
John Dai
9f35969d60
Bug 1518442 - Part 3: Add dom.formdata.event.enabled preference for Event-based form participation; r=smaug,edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D43987
2019-09-06 09:47:31 +00:00
John Dai
e564534204
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
2019-09-06 09:47:29 +00:00
Tom Schuster
19210b5259
Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D40108
2019-08-02 08:54:18 +00:00
Mihai Alexandru Michis
5a74ddfbef
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
1079fb412e
Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D40108
2019-08-02 08:54:18 +00:00
Kannan Vijayan
c690c1925f
Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D39378
2019-07-26 16:48:31 +00:00
Noemi Erli
481ed55c7b
Merge mozilla-central to autoland. a=merge CLOSED TREE
2019-07-16 00:48:17 +03:00
Mirko Brodesser
090d7efc5e
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
ed4f8b7e51
Bug 1565767 part 5. Remove some unnecesary refcounting at nsIContent::GetBaseURI callsites. r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D37973
2019-07-15 18:29:05 +00:00
Emilio Cobos Álvarez
9b6e807979
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
7a5944a08d
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)
2019-07-09 22:04:13 +03:00
Dorel Luca
3ed2964940
Backed out changeset ab9d5eeaa90e (bug 1370630) on dev's request
2019-07-09 21:44:43 +03:00
Emilio Cobos Álvarez
19f9994690
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 16:17:47 +00:00
Cameron McCormack
f03f1b844c
Bug 1553705 - Use a cheaper to compute state key for parser inserted form controls. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D32259
2019-07-01 10:06:16 +00:00
Narcis Beleuzu
edbd8aaa24
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
e0c2d268cb
Bug 1553705 - Use a cheaper to compute state key for parser inserted form controls. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D32259
2019-06-26 21:44:11 +00:00
Boris Zbarsky
95de682140
Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
...
Differential Revision: https://phabricator.services.mozilla.com/D34196
2019-06-11 15:51:51 +00:00
Ehsan Akhgari
200d6ea9cc
Bug 836176 - Part 3: Remove nsIHTMLDocument; r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D32925
2019-06-04 17:27:43 +00:00
Emilio Cobos Álvarez
ec4b914a30
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
a3b32df884
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
91b534b401
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
2019-05-29 07:48:16 +00:00
Emilio Cobos Álvarez
9160cd2967
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
2019-05-28 22:47:08 +00:00
Edgar Chen
ea9872bc1b
Bug 1554122 - Rename nsAutoPopupStatePusher* to AutoPopupStatePusher; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D32457
2019-05-24 12:42:29 +00:00
Stone Shih
7ef9618f83
Bug 1370630 - Untrusted submit event shouldn't trigger form submission; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D28070
2019-05-23 20:30:20 +00:00
Edgar Chen
95006cd6ea
Bug 1551264 - Move user-initiated flag for form submission from HTMLFormElement to HTMLFormSubmission; r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D30945
2019-05-14 12:41:19 +00:00
Jonathan Kingston
120094db6a
Bug 1549754 - Prevent external protocol handlers from being considered insecure. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D30247
2019-05-10 14:17:40 +00:00
Sylvestre Ledru
72e7e7d7e7
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D27245
2019-04-12 13:14:25 +00:00
Makoto Kato
3e074594a2
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
2019-04-05 17:14:47 +09:00
Olli Pettay
104407b3f5
Bug 1535988, backout because bug 1537555, r=backout
2019-03-22 17:20:27 +02:00
Olli Pettay
37f75f47bf
Bug 1535988 - Synthetic submit event should not trigger form submitting, r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D23925
2019-03-19 06:30:28 +00:00
Ryan Hunt
ad7b7dbb30
Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D21106
2019-02-25 16:05:29 -06:00
Matthew Noorenberghe
7472578d85
Bug 1474143 - Replace form submission observer notifications with events. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16651
2019-02-23 00:23:55 +00:00
Matthew Noorenberghe
a2aea60470
Bug 1474143 - Remove unused 'firstformsubmit' category and gFirstFormSubmitted. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16650
2019-02-23 00:23:37 +00:00
Matthew Noorenberghe
88b19bea34
Bug 1474143 - Remove unused 'passwordmanager' category and gPasswordManagerInitialized. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16649
2019-02-23 00:23:14 +00:00
Ciure Andrei
52e4d1503d
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)
2019-02-22 21:16:49 +02:00
Matthew Noorenberghe
84384d1787
Bug 1474143 - Replace form submission observer notifications with events. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16651
2019-02-22 15:12:33 +00:00
Matthew Noorenberghe
d10f1600e7
Bug 1474143 - Remove unused 'firstformsubmit' category and gFirstFormSubmitted. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16650
2019-02-22 15:12:11 +00:00
Matthew Noorenberghe
03dade6272
Bug 1474143 - Remove unused 'passwordmanager' category and gPasswordManagerInitialized. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D16649
2019-02-22 15:11:56 +00:00
Ehsan Akhgari
5530c0b72d
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
d11ea7935f
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
2019-01-09 15:42:04 +00:00
Emilio Cobos Álvarez
dc336a73ba
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
ab2f923d5e
Bug 1513895 - Unify PopupBlocker algorithm in 1 single file, r=smaug
2018-12-16 10:21:16 +01:00
Ehsan Akhgari
61fe3c0a09
Bug 1510911 - Part 2: Backout changeset f8849239da42 (bug 1493563 - Part 5) for regressing performance
2018-12-03 14:27:53 -05:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Boris Zbarsky
a16438afe4
Bug 1509101. Stop passing around anchor targets as char16_t*; use nsAString instead. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D12579
2018-11-21 18:53:39 +00:00
Andrea Marchesini
57bd031744
Bug 1498510 - Move nsICSPEventListener out of CSP object, r=ckerschb
2018-10-23 08:17:13 +02:00
Ehsan Akhgari
7bddc35620
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
7fb8829472
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