Valentin Gosu
76fe90c6ed
Bug 1433958 - Change code that uses nsIURI.setHostAndPort() to use nsIURIMutator r=mayhemer
...
* Removes setHostAndPort from nsIURIMutator as it only has one use
* Instead, the consumer sets the port to -1 before calling setHostPort()
MozReview-Commit-ID: Jx9UMW440hq
--HG--
extra : rebase_source : cb60e76c905db6bb308ddfd8fa548cc13d3afe06
2018-02-26 20:43:45 +01:00
Hiroyuki Ikezoe
1b0cba9367
Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
...
It would be convenient to get nsPresContext from nsIDocument.
MozReview-Commit-ID: Ei6V3UE8XGr
--HG--
extra : rebase_source : 8d2a917eb62cf341e4e1810451fd01c01dbc3bad
2018-02-21 07:00:10 +09:00
Boris Zbarsky
7c392f077e
Bug 1418085 part 6. Remove nsIDOMHTMLElement. r=mystor
...
MozReview-Commit-ID: 5QUyFeAQYZQ
2018-01-30 00:25:36 -05:00
Boris Zbarsky
9da3878bc9
Bug 1418076 part 11. Eliminate the nsIDOMHTMLDocument interface. r=mystor
...
MozReview-Commit-ID: 4lEcUeenbg3
2018-01-26 01:03:25 -05:00
Boris Zbarsky
94892c7519
Bug 1418076 part 8. Remove remaining, unused, nsIDOMHTMLDocument methods. r=mystor.
...
MozReview-Commit-ID: AshWkds4I8Z
2018-01-26 01:01:16 -05:00
Boris Zbarsky
7fdae0afd0
Bug 1418076 part 7. Get rid of nsIDOMHTMLDocument's color attributes. r=mystor
...
MozReview-Commit-ID: 4jgoGqWyymA
2018-01-26 01:01:08 -05:00
Boris Zbarsky
aa98a6d46b
Bug 1418076 part 6. Get rid of nsIDOMHTMLDocument's queryCommand* methods. r=mystor
...
MozReview-Commit-ID: Jch0wfisBZa
2018-01-26 01:00:58 -05:00
Boris Zbarsky
311e6cf3f4
Bug 1418076 part 5. Get rid of nsIDOMHTMLDocument's designMode attribute. r=mystor
...
MozReview-Commit-ID: 8CB3OZBHa9q
2018-01-26 01:00:49 -05:00
Boris Zbarsky
48ae6aca91
Bug 1418076 part 4. Get rid of nsIDOMHTMLDocument's open/close/write/writeln methods. r=mystor
...
MozReview-Commit-ID: 4HbZljdQR2I
2018-01-26 01:00:41 -05:00
Boris Zbarsky
ff483d92c6
Bug 1418076 part 3. Get rid of nsIDOMHTMLDocument's head attribute. r=mystor
...
MozReview-Commit-ID: Cj7l9TqmAby
2018-01-26 01:00:33 -05:00
Boris Zbarsky
9350bc9e65
Bug 1418076 part 2. Get rid of nsIDOMHTMLDocument's cookie attribute. r=mystor
...
MozReview-Commit-ID: JLW7dFPbY3m
2018-01-26 01:00:20 -05:00
Boris Zbarsky
3c11d297e3
Bug 1418076 part 1. Get rid of nsIDOMHTMLDocument's domain attribute. r=mystor
...
MozReview-Commit-ID: Igf83iosX8L
2018-01-26 01:00:04 -05:00
Boris Zbarsky
2e85a4c2dc
Bug 1276438 part 7. Get rid of nsIDOMHTMLDocument::GetBody. r=mystor
...
MozReview-Commit-ID: 5XyZc8hQndQ
2018-01-26 00:53:35 -05:00
Boris Zbarsky
8d8cae1597
Bug 1276438 part 2. Move the implementation of the .body setter from nsHTMLDocument to nsIDocument. r=mystor
...
MozReview-Commit-ID: EJAZfrXC0QJ
2018-01-26 00:36:57 -05:00
Boris Zbarsky
672340ede6
Bug 1276438 part 1. Move the implementation of the .body getter from nsHTMLDocument to nsIDocument. r=mystor
...
MozReview-Commit-ID: BhQuGS1NdmQ
2018-01-25 06:55:47 -05:00
Andrea Marchesini
c6da271117
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
...
* * *
Bug 1425458 - Resource timing entries Workers - part 10 - Correct parameters in NS_NewChannel in nsDataObj.cpp, r=me
2018-01-24 17:17:31 +01:00
Brindusan Cristian
368c3d5b6b
Backed out 12 changesets (bug 1425458) for mochitest failures on WorkerPrivate.cpp on a CLOSED TREE
...
Backed out changeset 11997de13778 (bug 1425458)
Backed out changeset 100b9d4f36bc (bug 1425458)
Backed out changeset a29e9dbb8c42 (bug 1425458)
Backed out changeset b96d58fd945c (bug 1425458)
Backed out changeset f140da44ba68 (bug 1425458)
Backed out changeset af56400233d9 (bug 1425458)
Backed out changeset 7034af4332e4 (bug 1425458)
Backed out changeset f70500179140 (bug 1425458)
Backed out changeset 793bbfc23257 (bug 1425458)
Backed out changeset 2efb375a8ffc (bug 1425458)
Backed out changeset 07e781e37451 (bug 1425458)
Backed out changeset e875f3702a5f (bug 1425458)
2018-01-24 20:47:48 +02:00
Andrea Marchesini
6480b95ba3
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
2018-01-24 17:17:31 +01:00
Jonathan Watt
d80eff51f9
Bug 1430619 part 3 - Remove nsIContentViewerContainer. r=smaug
...
MozReview-Commit-ID: BxpgH0DPKQw
2018-01-11 12:27:00 +00:00
Boris Zbarsky
7ee28da3b9
Bug 1426002. Bail out of document.open if beforeunload tears things down. r=mystor
...
MozReview-Commit-ID: GDozCq4Qbni
2017-12-21 15:08:49 -05:00
Masatoshi Kimura
0eee3482dc
Bug 1071816 - Add a pref to fallback to UTF-8 for files from file: URLs. r=hsivonen
...
MozReview-Commit-ID: KFjIqYmgzTl
--HG--
extra : rebase_source : 9c8af1c9b488ed945832ab1cb83e11a74e91cd08
2017-11-30 20:55:07 +09:00
Alphan Chen
54f4537537
Bug 980904 - Disable the Character Encoding menu when document is decoded as UTF-8 without errors. r=hsivonen,emk,Gijs
2017-11-23 15:03:41 +08:00
Csoregi Natalia
8f1a81caad
Merge inbound to mozilla-central r=merge a=merge
2017-11-14 00:57:47 +02:00
Ting-Yu Lin
dfca359d6e
Bug 1416699 - Add a space between #include and comment. r=jeremychen
...
Skip files under intl/icu/ because they're imported from third party.
DONTBUILD because this is a whitespace-only change.
MozReview-Commit-ID: GSd6oeFSTO7
--HG--
extra : rebase_source : 38c20bf6099c18b2fcb4c324d470b279addf8891
2017-11-13 17:54:18 +08:00
Boris Zbarsky
dfd96e6bd3
Bug 1415677 part 4. Remove nsIDOMHTMLDocument accessors that use nsIDOMHTMLCollection. r=qdot
...
MozReview-Commit-ID: Aq3rfMBQKmn
2017-11-13 10:39:09 -05:00
Henri Sivonen
2069543e3c
Bug 1414490 - Permanently undefine the insertion point at EOF. r=smaug.
...
MozReview-Commit-ID: Kijs3Rxhq0X
2017-11-13 16:59:11 +02:00
Nika Layzell
3409141758
Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
...
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.
MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Sebastian Hengst
a353221537
merge mozilla-inbound to mozilla-central. r=merge a=merge
2017-11-09 00:00:16 +02:00
Boris Zbarsky
272cbb590b
Bug 1415176. Move getElementsByName from HTMLDocument to Document. r=mccr8
...
MozReview-Commit-ID: CRfrXC2x97S
2017-11-08 11:13:33 -05:00
Brad Werth
2a43297875
Bug 1412173 Part 1: Implement the Document ignore-opens-during-unload counter required by spec. r=bz
...
MozReview-Commit-ID: IWfT5c0H3t
--HG--
extra : rebase_source : 9a61f095a8c31ee3ac0f89b413d0cc62eec24292
2017-11-02 11:47:21 -07:00
Phil Ringnalda
81c6fb1b5b
Backed out 2 changesets (bug 1412173) for unexpected passes in wpt's /html/browsers/browsing-the-web/unloading-documents/003.html
...
Backed out changeset 68de62dd7a9b (bug 1412173)
Backed out changeset 97de1e0cd693 (bug 1412173)
MozReview-Commit-ID: HiASSDNl4DD
2017-11-06 19:32:05 -08:00
Brad Werth
28b0ab34dc
Bug 1412173 Part 1: Implement the Document ignore-opens-during-unload counter required by spec. r=bz
...
MozReview-Commit-ID: IWfT5c0H3t
--HG--
extra : rebase_source : d0c03ea38bf4d33ca7ac8ee7696936bdb3ea7518
2017-11-02 11:47:21 -07:00
Henri Sivonen
080aa07386
Bug 1412866 - Use spec nomenclature for the ignore-destructive-writes counter. r=smaug
...
MozReview-Commit-ID: FKwbEZll95J
--HG--
extra : rebase_source : b42a7a17434f1c711c395fd5a09893cac81b7a9d
2017-10-30 17:45:09 +02:00
Jessica Jong
d70b8d543c
Bug 1378079 - Part 2: Introduce throw-on-dynamic-markup-insertion counter. r=hsivonen
...
Per spec, document objects have a throw-on-dynamic-markup-insertion counter,
which is used in conjunction with the create an element for the token algorithm
to prevent custom element constructors from being able to use document.open(),
document.close(), and document.write() when they are invoked by the parser.
--HG--
extra : rebase_source : 7cbc10c77765b84bbaf07a05f205f02169a79ee0
2017-10-26 14:08:35 +08:00
Nicholas Nethercote
d225f7151b
Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
...
(Path is actually r=froydnj.)
Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.
MozReview-Commit-ID: 91U22X2NydP
--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Olli Pettay
61679d58d1
Bug 1398605, keep nsContentList objects alive for awhile when generating state keys so that new objects don't need to be created all the time, r=ehsan
...
--HG--
extra : rebase_source : 8ba989365f0c9b5fbacc9effd4a41b628614b788
2017-09-14 21:56:58 +03:00
Boris Zbarsky
342f622ad1
Bug 1393806 part 4. Rename the ErrorResult argument of nsHTMLDocument::Open to aError.
...
This makes it clear that it's not a local.
MozReview-Commit-ID: 5OwXRIIra93
2017-09-13 13:34:58 -04:00
Boris Zbarsky
4d16655b25
Bug 1393806 part 3. Change dom::ReparentWrapper to take an ErrorResult. r=peterv
...
This makes it easier for its consumers to avoid leaving a dangling exception on
the JSContext.
MozReview-Commit-ID: Xep7IkYxSx
2017-09-13 13:34:55 -04:00
Michael Layzell
c67b1f18a3
Bug 1340578 - Allow execCommand('paste') to be called from webextensions without a target, r=ehsan
2017-09-11 14:13:26 -04:00
Masayuki Nakano
4ce89d8f61
Bug 1369072 - part3: nsXBLPrototypeHandler::DispatchXBLCommand() should use controller of visible window r=smaug
...
With previous change, KeyboardEvent is dispatched even when invisible window
has focus. However, nsRootWindow::GetControllerForCommand() returns controller
for focused window even when the window is invisible because it uses
nsFocusManager::GetFocusedDescendant() to retrieve focused window.
Perhaps, we can assume that users won't expect to do something with invisible
window when they type some keys. Then, nsRootWindow::GetControllerForCommand()
should return controller for visible ancestor window if focused window is
invisible.
This patch makes nsFocusManager::GetFocusedDescendant() can return only visible
descendants. However, it already has a bool argument. Therefore, it should
have a flag instead of adding new flag. Most changes of this patch is replacing
its callers.
Then, nsRootWindow::GetControllerForCommand() and nsRootWindow::GetControllers()
should have a bool flag if it should return controller(s) for visible window.
This patch adds a bool flag for it. Fortunately, the interface isn't scriptable.
Finally, this patch makes nsXBLPrototypeHandler::DispatchXBLCommand() and
EventStateManager::DoContentCommandEvent() retrieve controller for visible
window since they are always handles user input.
MozReview-Commit-ID: GygttTHuKRm
--HG--
extra : rebase_source : 1341273c4606298cb9b890b9312d9f5c8a75d144
2017-09-07 22:54:49 +09:00
Andrew McCreight
7f7f149167
Bug 1395636 - Convert code to use NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED. r=peterv
...
MozReview-Commit-ID: DivJPerL5SF
--HG--
extra : rebase_source : 890df75914906a5d34e8af67f9fc3a4be239d2d6
2017-08-31 16:29:22 -07:00
Sebastian Hengst
2f7f455fa1
Backed out changeset 9306866e8df0 (bug 1395636) for build bustage. r=backout on a CLOSED TREE
...
--HG--
extra : amend_source : 20d028d6b971cf6a221dc2f1553687d6c074bdcb
2017-09-06 19:18:06 +02:00
Andrew McCreight
4d6e76dfcf
Bug 1395636 - Convert code to use NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED. r=peterv
...
MozReview-Commit-ID: DivJPerL5SF
--HG--
extra : rebase_source : cb952cfc5600a163a5580438e5b0177595689dab
2017-08-31 16:29:22 -07:00
Kris Maglione
04acc0aace
Bug 1396449: Part 2 - Use atoms to test WebExtension permissions. r=krizsa
...
The extension policy services uses atoms internally for permission names, so
using them directly rather than strings is considerably cheaper.
MozReview-Commit-ID: Io8EuOXHKVy
--HG--
extra : rebase_source : 577b4bdf7f899729e4cf92961a8e9e25bf886a72
2017-09-03 18:51:02 -07:00
Ehsan Akhgari
9807a0448d
Bug 1395442 - Remove nsHTMLDocument::mFormControls because it's never set; r=smaug
2017-08-31 12:41:04 -04:00
Sebastian Hengst
2a9cc8e3be
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: BQuBmVtsdki
2017-08-29 20:30:41 +02:00
Ehsan Akhgari
0aeb82a9cc
Bug 1392891 - Part 4: Remove nsIHTMLDocument::GetFormControls(); r=smaug
2017-08-29 07:30:28 -04:00
Ehsan Akhgari
399ce96953
Bug 1392891 - Part 3: Avoid creating live nsContentList objects in nsContentUtils::GenerateStateKey(); r=smaug
2017-08-29 07:30:26 -04:00
Blake Kaplan
f48bc2cbf2
Bug 1325923 - Use this API where we're supposed to. r=Ehsan
...
MozReview-Commit-ID: HGU5YtUzv9U
2017-08-28 16:41:49 -07:00
Henri Sivonen
30ebfb2e95
Bug 1385836 - Remove special cases obsoleted by "replacement" becoming a label of the replacement encoding. r=emk
...
MozReview-Commit-ID: 52uO6AVRHWX
--HG--
extra : rebase_source : de5bef4768724c68bc938f9456f906554b6290d1
2017-08-28 12:57:17 +03:00