Bogdan Tara
48993ddce1
Backed out 2 changesets (bug 1497301
) for /url/failure.html failures CLOSED TREE
...
Backed out changeset 45ba0943d666 (bug 1497301
)
Backed out changeset 0bd7470927d2 (bug 1497301
)
2018-10-16 00:30:00 +03:00
Boris Zbarsky
6071f7bc07
Bug 1497301
part 4. Simplify Location::CheckURL. r=bholley
...
The main change is to just use the principal bindings pass us to do our
CheckLoadURI check. If we do that, we don't have to care about the current
JSContext.
2018-10-12 11:07:18 -04:00
Boris Zbarsky
25cfd38b8f
Bug 1497301
part 3. Change a bunch of Location function signatures to take an ErrorResult. r=bholley
...
This way we can propagate errors out usefully.
2018-10-15 14:17:48 -04:00
Gurzau Raul
78c877e315
Backed out changeset 5d0df5f74170 (bug 1497301
) for failing at caps/tests/ and js/xpconnect/tests on a CLOSED TREE
...
--HG--
extra : histedit_source : aafaf8b8f819ba4251040943d904b7ff16bf7f52
2018-10-12 19:28:29 +03:00
Boris Zbarsky
433fcf3ff2
Bug 1497301
part 3. Simplify Location::CheckURL. r=bholley
...
The main change is to just use the principal bindings pass us to do our
CheckLoadURI check. If we do that, we don't have to care about the current
JSContext.
2018-10-12 11:07:18 -04:00
Boris Zbarsky
0eeb236967
Bug 1497301
part 2. Remove some dead code in Location methods. r=farre
...
The JSContext arg of SetHrefWithContext is unused, and the function should have
a different name.
All the current callers of SetHrefWithContext are always called from bindings,
so we can't hit the "no jscontext" cases.
2018-10-12 11:07:17 -04:00
Boris Zbarsky
a074d0da17
Bug 1497301
part 1. Remove the JSContext arg of Location::GetSourceBaseURL. r=farre
...
It's unused. Also, this function never fails, so there's no reason to have the
nsresult return type.
2018-10-12 11:07:17 -04:00
Dragana Damjanovic
b56b387123
Bug 1493248 - Check for docShell instread on mDocShell, a typo. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D6526
--HG--
extra : moz-landing-system : lando
2018-09-26 10:25:39 +00:00
Sylvestre Ledru
aa37bde79b
Bug 1489454 - Remove all trailing whitespaces (again) r=Ehsan
...
This also includes moving some files to the regular format.
Differential Revision: https://phabricator.services.mozilla.com/D5249
--HG--
extra : moz-landing-system : lando
2018-09-07 14:47:51 +00:00
Valentin Gosu
7937c7c4cc
Bug 1476928
- Remove nsIURI.CloneIgnoringRef and nsIURI.CloneWithNewRef r=JuniorHsu
...
The patch introduces NS_GetURIWithNewRef and NS_GetURIWithNewRef which perform the same function.
Differential Revision: https://phabricator.services.mozilla.com/D2239
--HG--
extra : moz-landing-system : lando
2018-07-23 11:28:47 +00:00
Andrea Marchesini
a053cf1c15
Bug 1476306 - Moving NullPrincipal/ContentPrincipal/SystemPrincipal under mozilla namespace - part 1 - NullPrincipal, r=ckerschb
2018-07-17 21:37:48 +02:00
Kyle Machulis
5e51176ffa
Bug 1472087 - Remove nsDocShellLoadInfo::LoadTypes; r=nika
...
We have 2 different LoadType enums with two different values, which
have to be converted between depending on whether we're going to/from
LoadInfo/nsISHEntry/etc. We should be able to just use the same enum
everywhere and not have to deal with conversion, especially since we
don't have any type safety around the enum.
MozReview-Commit-ID: 2t9vVGLpOte
2018-07-11 20:19:18 -07:00
Kyle Machulis
17f492c9c1
Bug 1472087 - deCOMtaminate nsIDocShellLoadInfo; r=nika
...
Change all references from nsIDocShellLoadInfo to nsDocShellLoadInfo
MozReview-Commit-ID: AyKlZUtSEDD
2018-07-11 20:19:14 -07:00
Jeff Gilbert
5b753da289
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
...
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Valentin Gosu
a8e3a8c349
Bug 1448330 - Make nsIURI.clone a private method r=mayhemer
...
MozReview-Commit-ID: 1efpeaEPaXP
--HG--
extra : rebase_source : e660f1e5bcae9b7119bc5b37713691069272b375
2018-06-14 13:05:43 +02:00
Boris Zbarsky
df6c05a122
Bug 1442039 part 14. Remove nsDOMClassInfoID.h. r=peterv
...
MozReview-Commit-ID: 6pZs1XI1oSd
2018-03-21 23:13:30 -04:00
Valentin Gosu
ed218f0a19
Bug 1433958 - Change code that sets nsIURI.scheme to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: GgyIkZSG2y3
--HG--
extra : rebase_source : 5398a29d8cb910c909ed88e1a6cbd9fd63e6b745
2018-02-26 20:43:47 +01:00
Valentin Gosu
27e9e0be9f
Bug 1433958 - Change code that sets nsIURI.host to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: 7T5gCu8WOfa
--HG--
extra : rebase_source : 752c34e5f9dde2e16fc9243c11860b987acbcb93
2018-02-26 20:43:47 +01:00
Valentin Gosu
7f3b09b694
Bug 1433958 - Change code that sets nsIURI.port to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: 7Lu7JJvDUGF
--HG--
extra : rebase_source : 8d5a9bb1c4a5a525f7c5bc8d07c1e7029d2029a3
2018-02-26 20:43:46 +01:00
Valentin Gosu
910fb72867
Bug 1433958 - Change code that calls nsIURI.setQueryWithEncoding to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: crYLGLcsk6
--HG--
extra : rebase_source : db2165ae51a39b852c640d677771109df6d1e579
2018-02-26 20:43:45 +01:00
Valentin Gosu
710c2e2fc9
Bug 1433958 - Change code that sets nsIURI.filePath to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: GYHpakKPEbe
--HG--
extra : rebase_source : 521966b446284fbe215dfc8518acafc5de9ded5c
2018-02-26 20:43:45 +01:00
Valentin Gosu
b563071323
Bug 1433958 - Change code that uses nsIURI.hostPort to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: IuUurzUP5Rw
--HG--
extra : rebase_source : 5c1fd0938613247b6bb24ef11b57307f3bf24fae
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
887ce3941a
Bug 1419270 part 2. Use getter or setter specific NeedsSubjectPrincipal annotations more. r=qdot
...
MozReview-Commit-ID: KBwjFh3TMUg
2017-12-05 16:03:18 -05:00
Nika Layzell
f1ac9bf744
Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug
...
MozReview-Commit-ID: DAAm6tLubhJ
2017-11-23 13:12:13 -05: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
Samael Wang
fbc657f448
Bug 1368327 - Do not assert aDocShell in Location, since it's actually possible to be nullptr. r=smaug
...
MozReview-Commit-ID: ArqkI8TUf8r
--HG--
extra : rebase_source : 9d6850bb6f27293a8e68ecc5c521e4ae769da455
2017-08-28 17:12:47 +08:00
Masatoshi Kimura
8ed4a80a4e
Bug 1322874 - Get rid of nsIURI.originCharset. r=valentin.gosu
...
nsIURI.originCharset had two use cases:
1) Dealing with the spec-incompliant feature of escapes in the hash
(reference) part of the URL.
2) For UI display of non-UTF-8 URLs.
For hash part handling, we use the document charset instead. For pretty
display of query strings on legacy-encoded pages, we no longer care to them
(see bug 817374 comment 18).
Also, the URL Standard has no concept of "origin charset". This patch
removes nsIURI.originCharset for reducing complexity and spec compliance.
MozReview-Commit-ID: 3tHd0VCWSqF
--HG--
extra : rebase_source : b2caa01f75e5dd26078a7679fd7caa319a65af14
2017-08-02 20:43:30 +09:00
Masatoshi Kimura
b515c9c804
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
--HG--
extra : rebase_source : fdae0046f882d47fb539a7f882364e5c5caafdcd
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Sebastian Hengst
dfc1ad2562
Backed out changeset 7235d05662b0 (bug 1373984) for Android bustage. r=backout on a CLOSED TREE
2017-06-25 18:30:13 +02:00
Masatoshi Kimura
2e04751921
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
--HG--
extra : rebase_source : a84ab644f52e68676b45f112ff69f868d89f6177
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Wes Kocher
e02435a31e
Backed out changeset 77af189b5c49 (bug 1373984) for build bustage in nsHtml5Parser.cpp a=backout CLOSED TREE
...
MozReview-Commit-ID: 6kBmU71j2To
2017-06-25 05:10:14 -07:00
Masatoshi Kimura
241039fd97
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
--HG--
extra : rebase_source : 09da1685795583513bf019d61c58230c2c4d298d
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Andrea Marchesini
83c815ee45
Bug 1363429 - Get rid of nsIDOMLocation, r=bz, r=honza, f=ochameau
2017-05-11 07:26:08 +02:00
Iris Hsiao
3f0892a7f5
Backed out changeset c56bd0d1e7c9 (bug 1363429) for build bustage, using-declaration causes a multiple declaration of 'nsIDocument::GetLocation'
2017-05-11 13:55:40 +08:00
Andrea Marchesini
e78b251ef5
Bug 1363429 - Get rid of nsIDOMLocation, r=bz, r=honza, f=ochameau
2017-05-11 07:26:08 +02:00
Andrea Marchesini
f6bf81c5ca
Bug 1363057 - Fixing tests for nsIDOMLocation removal, r=me
2017-05-08 20:51:54 +02:00
Andrea Marchesini
b2a60fa8f2
Bug 1363057 - Make nsIDOMLocation an empty interface, r=mystor
2017-05-08 20:24:13 +02:00
Wes Kocher
b4f8e99036
Backed out changeset 267ad90533e8 (bug 1363057) for Windows build bustage in nsNativeAppSupportWin.cpp a=backout CLOSED TREE
...
MozReview-Commit-ID: EFB4DatkNB3
2017-05-08 11:14:21 -07:00
Andrea Marchesini
e3a7dcd168
Bug 1363057 - Make nsIDOMLocation an empty interface, r=mystor
2017-05-08 19:43:55 +02:00
Andrea Marchesini
28cfe0edb3
Bug 1361975 window.location is not nullable, r=bz
...
This patch adds a check on mDocShell in order to do not throw exceptions when
Location is used with a null mDocShell. This is needed because the location
object is not nullable anymore and it can be used also when the window is not
connected to a docshell.
2017-05-08 15:49:08 +02:00
Andrea Marchesini
1981f67eb3
Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan
...
This patch does these things:
1. it moves nsScriptElement, nsScriptLoader, ScriptSettings, nsIScriptElement
and nsIScriptLoaderObserver in dom/script
2. it renames nsScriptElement to mozilla::dom::ScriptElement
3. it renames nsScriptLaoder to mozilla::dom::ScriptLoader
--HG--
rename : dom/base/nsScriptElement.cpp => dom/script/ScriptElement.cpp
rename : dom/base/nsScriptElement.h => dom/script/ScriptElement.h
rename : dom/base/nsScriptLoader.cpp => dom/script/ScriptLoader.cpp
rename : dom/base/nsScriptLoader.h => dom/script/ScriptLoader.h
rename : dom/base/ScriptSettings.cpp => dom/script/ScriptSettings.cpp
rename : dom/base/ScriptSettings.h => dom/script/ScriptSettings.h
rename : dom/base/nsIScriptElement.h => dom/script/nsIScriptElement.h
rename : dom/base/nsIScriptLoaderObserver.idl => dom/script/nsIScriptLoaderObserver.idl
2017-05-08 08:24:22 +02:00
Carsten "Tomcat" Book
f0d6de60d7
Backed out changeset 5d77f6b14633 (bug 1362119) for android bustage in nsCCUncollectableMarker.cpp:500:7: error: 'TraceScriptHolder' is not a member of 'mozilla'
...
--HG--
rename : dom/script/ScriptSettings.cpp => dom/base/ScriptSettings.cpp
rename : dom/script/ScriptSettings.h => dom/base/ScriptSettings.h
rename : dom/script/nsIScriptElement.h => dom/base/nsIScriptElement.h
rename : dom/script/nsIScriptLoaderObserver.idl => dom/base/nsIScriptLoaderObserver.idl
rename : dom/script/ScriptElement.cpp => dom/base/nsScriptElement.cpp
rename : dom/script/ScriptElement.h => dom/base/nsScriptElement.h
rename : dom/script/ScriptLoader.cpp => dom/base/nsScriptLoader.cpp
rename : dom/script/ScriptLoader.h => dom/base/nsScriptLoader.h
2017-05-08 09:54:38 +02:00
Andrea Marchesini
7a4ef797cb
Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan
...
This patch does these things:
1. it moves nsScriptElement, nsScriptLoader, ScriptSettings, nsIScriptElement
and nsIScriptLoaderObserver in dom/script
2. it renames nsScriptElement to mozilla::dom::ScriptElement
3. it renames nsScriptLaoder to mozilla::dom::ScriptLoader
--HG--
rename : dom/base/nsScriptElement.cpp => dom/script/ScriptElement.cpp
rename : dom/base/nsScriptElement.h => dom/script/ScriptElement.h
rename : dom/base/nsScriptLoader.cpp => dom/script/ScriptLoader.cpp
rename : dom/base/nsScriptLoader.h => dom/script/ScriptLoader.h
rename : dom/base/ScriptSettings.cpp => dom/script/ScriptSettings.cpp
rename : dom/base/ScriptSettings.h => dom/script/ScriptSettings.h
rename : dom/base/nsIScriptElement.h => dom/script/nsIScriptElement.h
rename : dom/base/nsIScriptLoaderObserver.idl => dom/script/nsIScriptLoaderObserver.idl
2017-05-08 08:24:22 +02:00
Andrea Marchesini
1fd1bc3935
Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot
...
--HG--
rename : caps/nsNullPrincipal.cpp => caps/NullPrincipal.cpp
rename : caps/nsNullPrincipal.h => caps/NullPrincipal.h
rename : caps/nsNullPrincipalURI.cpp => caps/NullPrincipalURI.cpp
rename : caps/nsNullPrincipalURI.h => caps/NullPrincipalURI.h
2017-03-22 11:38:40 +01:00
Valentin Gosu
1c5fbd8c6e
Bug 1342438 - Remove url .hash encoding/decoding prefs r=bagder
...
These prefs have been added close to two years ago:
dom.url.encode_decode_hash and dom.url.getters_decode_hash
The main reason for their existence was in case we encounter any web-compat issues. At this point the extra code is mostly useless, and flipping the pref may lead to crashes.
MozReview-Commit-ID: LhAHkYmv0TR
--HG--
extra : rebase_source : 8f2d50d5633496cf165b3925d952bb6475bce3e0
2017-03-08 22:19:34 +01:00
Boris Zbarsky
3db8f8c6f6
Bug 1328894 part 3. Throw SyntaxError from Location::SetProtocol on URI parse failures. r=bkelly
2017-02-08 18:19:02 -05:00
Boris Zbarsky
329288dab5
Bug 1328894 part 2. Strip ':' and anything following it from the string passed to the location.protocol setter. r=bkelly
2017-02-08 18:19:02 -05:00
Boris Zbarsky
95bcab0af6
Bug 1328894 part 1. Don't navigate when location.protocol is set to anything other than http or https. r=bkelly
2017-02-08 18:19:01 -05:00
Masatoshi Kimura
ae77a86895
Bug 1329570 - Restore missing error check in mozilla::dom::Location::GetPathname. r=valentin.gosu
...
MozReview-Commit-ID: 1g5Skn2R38c
--HG--
extra : rebase_source : fa19a17caf247472dfce77181917bbe97f70e3cd
2017-01-09 15:53:01 +09:00