Valentin Gosu
40fc96e930
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
2018-02-26 20:43:45 +01:00
Hiroyuki Ikezoe
b1da8534e8
Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
...
It would be convenient to get nsPresContext from nsIDocument.
MozReview-Commit-ID: Ei6V3UE8XGr
2018-02-21 07:00:10 +09:00
Boris Zbarsky
41c46ec098
Bug 1418085 part 6. Remove nsIDOMHTMLElement. r=mystor
...
MozReview-Commit-ID: 5QUyFeAQYZQ
2018-01-30 00:25:36 -05:00
Boris Zbarsky
a86373f271
Bug 1418076 part 11. Eliminate the nsIDOMHTMLDocument interface. r=mystor
...
MozReview-Commit-ID: 4lEcUeenbg3
2018-01-26 01:03:25 -05:00
Boris Zbarsky
912dc2d7f0
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
67ffec5671
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
de487cc7e0
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
abf95bbc4c
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
cb65f7c8bb
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
3e281aedbd
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
1fd1a65228
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
4b49594fcb
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
e558432368
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
06d6306e2a
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
09e52eb431
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
3faaf5a84b
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
1153f2c09e
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
b434804b93
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
2018-01-24 17:17:31 +01:00
Jonathan Watt
81d9b45e4b
Bug 1430619 part 3 - Remove nsIContentViewerContainer. r=smaug
...
MozReview-Commit-ID: BxpgH0DPKQw
2018-01-11 12:27:00 +00:00
Boris Zbarsky
b5b49f64bb
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
0036fe0ee0
Bug 1071816 - Add a pref to fallback to UTF-8 for files from file: URLs. r=hsivonen
...
MozReview-Commit-ID: KFjIqYmgzTl
2017-11-30 20:55:07 +09:00
Alphan Chen
f742ba195a
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
16a1261797
Merge inbound to mozilla-central r=merge a=merge
2017-11-14 00:57:47 +02:00
Ting-Yu Lin
b221c821e2
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
2017-11-13 17:54:18 +08:00
Boris Zbarsky
06cef90736
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
d24b8ac365
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
d8c117bc28
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
52ea9f8769
merge mozilla-inbound to mozilla-central. r=merge a=merge
2017-11-09 00:00:16 +02:00
Boris Zbarsky
67340e531a
Bug 1415176. Move getElementsByName from HTMLDocument to Document. r=mccr8
...
MozReview-Commit-ID: CRfrXC2x97S
2017-11-08 11:13:33 -05:00
Brad Werth
854e4b429a
Bug 1412173 Part 1: Implement the Document ignore-opens-during-unload counter required by spec. r=bz
...
MozReview-Commit-ID: IWfT5c0H3t
2017-11-02 11:47:21 -07:00
Phil Ringnalda
4a18322fed
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
1907051887
Bug 1412173 Part 1: Implement the Document ignore-opens-during-unload counter required by spec. r=bz
...
MozReview-Commit-ID: IWfT5c0H3t
2017-11-02 11:47:21 -07:00
Henri Sivonen
3618c1fd8a
Bug 1412866 - Use spec nomenclature for the ignore-destructive-writes counter. r=smaug
...
MozReview-Commit-ID: FKwbEZll95J
2017-10-30 17:45:09 +02:00
Jessica Jong
d5bb6a8632
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.
2017-10-26 14:08:35 +08:00
Nicholas Nethercote
7dbfdaf890
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
2017-10-03 09:05:19 +11:00
Olli Pettay
89a43da498
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
2017-09-14 21:56:58 +03:00
Boris Zbarsky
c2e76ccc53
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
2fcd5047d7
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
aac950f7c1
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
87466056af
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
2017-09-07 22:54:49 +09:00
Andrew McCreight
4805814a1a
Bug 1395636 - Convert code to use NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED. r=peterv
...
MozReview-Commit-ID: DivJPerL5SF
2017-08-31 16:29:22 -07:00
Sebastian Hengst
623e977a9e
Backed out changeset 9306866e8df0 (bug 1395636) for build bustage. r=backout on a CLOSED TREE
2017-09-06 19:18:06 +02:00
Andrew McCreight
b8a46fdbcd
Bug 1395636 - Convert code to use NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED. r=peterv
...
MozReview-Commit-ID: DivJPerL5SF
2017-08-31 16:29:22 -07:00
Kris Maglione
fd54e6524a
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
2017-09-03 18:51:02 -07:00
Ehsan Akhgari
83e0cc2090
Bug 1395442 - Remove nsHTMLDocument::mFormControls because it's never set; r=smaug
2017-08-31 12:41:04 -04:00
Sebastian Hengst
65fe9f5653
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: BQuBmVtsdki
2017-08-29 20:30:41 +02:00
Ehsan Akhgari
b7fc87b23b
Bug 1392891 - Part 4: Remove nsIHTMLDocument::GetFormControls(); r=smaug
2017-08-29 07:30:28 -04:00
Ehsan Akhgari
f27510b859
Bug 1392891 - Part 3: Avoid creating live nsContentList objects in nsContentUtils::GenerateStateKey(); r=smaug
2017-08-29 07:30:26 -04:00
Blake Kaplan
8fdfc9ff7f
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
26225f775d
Bug 1385836 - Remove special cases obsoleted by "replacement" becoming a label of the replacement encoding. r=emk
...
MozReview-Commit-ID: 52uO6AVRHWX
2017-08-28 12:57:17 +03:00