Commit Graph

67 Commits

Author SHA1 Message Date
Valentin Gosu
273bb1a24d Bug 1448330 - Make nsIURI.clone a private method r=mayhemer
MozReview-Commit-ID: 1efpeaEPaXP
2018-06-14 13:05:43 +02:00
Boris Zbarsky
6589126df4 Bug 1455676 part 4. Remove nsIDOMNode usage from uriloader/. r=qdot 2018-05-29 22:58:48 -04:00
Dragana Damjanovic
90bbd43b23 Bug 1441246 - Move preload cod from nsStyleLinkElement to HTMLLinkElement. r=smaug 2018-04-20 12:47:00 +03:00
Catalin Badea
98fcc30c78 Bug 1402892 - Implement Request.destination. r=asuth,baku 2018-04-11 13:23:11 +01:00
Margareta Eliza Balazs
8345f1be3b Backed out 3 changesets (bug 1402892) for wpt failures in /fetch/api/request/request-idl.html on a CLOSED TREE
Backed out changeset 7218641c9b12 (bug 1402892)
Backed out changeset 2fce477733f0 (bug 1402892)
Backed out changeset 34e219813b64 (bug 1402892)
2018-04-09 20:01:12 +03:00
Catalin Badea
b3d7c7a827 Bug 1402892 - Implement Request.destination. r=asuth,baku 2018-04-09 16:29:15 +01:00
Henri Sivonen
c448c3c960 Bug 1448586 - Avoid useless use of NS_LITERAL_CSTRING when prefixing query string with question mark. r=smaug.
MozReview-Commit-ID: Cy8zkNWjsXM
2018-03-24 21:16:51 +02:00
Sylvestre Ledru
055d8432e6 Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
MozReview-Commit-ID: JwHh4bzxuTR
2018-03-16 14:29:15 +01:00
Coroiu Cristina
8c03201dcc Backed out 2 changesets (bug 1443080) for spidermonkey build bustage at build/src/js/src/jit/BaselineCacheIRCompiler.cpp
Backed out changeset 7d509bb8a35d (bug 1443080)
Backed out changeset 53bdcd5937cd (bug 1443080)
2018-03-14 11:13:21 +02:00
Sylvestre Ledru
4a52aab337 Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
MozReview-Commit-ID: JwHh4bzxuTR
2018-03-05 13:43:54 +01:00
Valentin Gosu
3a4f98a41d Bug 1434163 - Make all nsIURI attributes readonly r=mayhemer
MozReview-Commit-ID: KtjO8VWjPF5
2018-02-27 00:07:48 +01:00
Valentin Gosu
da41e347f1 Bug 1433958 - Change code that sets nsIURI.scheme to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: GgyIkZSG2y3
2018-02-26 20:43:47 +01:00
Valentin Gosu
4c423bbfee Bug 1433958 - Change code that sets nsIURI.host to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: 7T5gCu8WOfa
2018-02-26 20:43:47 +01:00
Valentin Gosu
a440c73890 Bug 1433958 - Change code that sets nsIURI.port to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: 7Lu7JJvDUGF
2018-02-26 20:43:46 +01:00
Valentin Gosu
f2bb2cf231 Bug 1433958 - Change code that sets nsIURI.ref to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: 4caicZFBkcQ
2018-02-26 20:43:46 +01:00
Valentin Gosu
9f7d026a1a Bug 1433958 - Change code that sets nsIURI.password to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: I8igxClMM5L
2018-02-26 20:43:46 +01:00
Valentin Gosu
6b35cff78e Bug 1433958 - Change code that sets nsIURI.username to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: 7E63pAIOZCs
2018-02-26 20:43:46 +01:00
Valentin Gosu
d4f4bcfafd Bug 1433958 - Change code that calls nsIURI.setQueryWithEncoding to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: crYLGLcsk6
2018-02-26 20:43:45 +01:00
Valentin Gosu
4cf154a8b5 Bug 1433958 - Change code that sets nsIURI.filePath to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: GYHpakKPEbe
2018-02-26 20:43:45 +01:00
Valentin Gosu
370e4e7af3 Bug 1433958 - Change code that uses nsIURI.hostPort to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: IuUurzUP5Rw
2018-02-26 20:43:45 +01:00
Nika Layzell
e5cd184550 Bug 1383876 - Part 1: Remove GroupedSHistory and Prerendering logic from C++ code, r=freesamael, r=smaug
MozReview-Commit-ID: 2aHA6NcQPGk
2018-01-12 17:52:52 -05: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
Ehsan Akhgari
1a344417e2 Bug 1382923 - Avoid AddRef()ing the History service in the Link constructor; r=smaug 2017-08-28 00:51:26 -04:00
Masatoshi Kimura
a9e30eaec8 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
2017-08-02 20:43:30 +09:00
Nicholas Nethercote
59cb8e2717 Bug 1383982 (attempt 2) - Introduce a general mechanism for measuring memory usage of graph-like structures. r=erahm. 2017-07-28 20:10:04 +10:00
Sebastian Hengst
e2be9a629c Backed out changeset a57d8f30d1bf (bug 1383982) for build bustage at nsGlobalWindow.cpp:13826: 'class nsWindowSizes' has no member named 'mMallocSizeOf'. r=backout 2017-07-28 09:50:48 +02:00
Nicholas Nethercote
d50718f5d2 Bug 1383982 - Introduce a general mechanism for measuring memory usage of graph-like structures. r=erahm.
All the SizeOf{In,Ex}cludingThis() functions take a MallocSizeOf function
which measures memory blocks. This patch introduces a new type, SizeOfState,
which includes a MallocSizeOf function *and* a table of already-measured
pointers, called SeenPtrs. This gives us a general mechanism to measure
graph-like data structures, by recording which nodes have already been
measured. (This approach is used in a number of existing reporters, but not in
a uniform fashion.)

The patch also converts the window memory reporting to use SizeOfState in a lot
of places, all the way through to the measurement of Elements. This is a
precursor for bug 1383977 which will measure Stylo elements, which involve
Arcs.

The patch also converts the existing mAlreadyMeasuredOrphanTrees table in the
OrphanReporter to use the new mechanism.
2017-07-28 15:03:44 +10:00
fbc54f3210 Bug 1222633 - Add rel=preload - dom part. r=smaug 2017-07-10 15:05:56 +02:00
Olli Pettay
359b1ea2ee Bug 1378218 - Don't register visited callback if we have pending link update, r=ehsan,baku 2017-07-07 13:06:52 +03:00
Olli Pettay
b3c3e79334 Bug 1378218, back out the wrong patch, r=me 2017-07-06 22:41:22 +03:00
Olli Pettay
410c3eb65b Bug 1378218 - Don't register visited callback if we have pending link update, r=ehsan 2017-07-06 22:34:25 +03:00
Wes Kocher
ff44dae02e Backed out changeset 8eb0c588a43e (bug 1378218) for frequent win debug xpcshell failures in test_sanitizer.js a=backout
MozReview-Commit-ID: EsfsviyLVbw
2017-07-05 15:08:13 -07:00
Olli Pettay
f6e17311fc Bug 1378218 - Don't register visited callback if we have pending link update, r=ehsan 2017-07-05 18:28:50 +03:00
Wes Kocher
479844b4bf Backed out 3 changesets (bug 1372433) for stylo assertions in ServoRestyleManager.cpp a=backout
Backed out changeset 3abe2b5f8b24 (bug 1372433)
Backed out changeset cbb550def80d (bug 1372433)
Backed out changeset 78b5ca196c54 (bug 1372433)

MozReview-Commit-ID: H6t8LpY3FHX
2017-07-04 22:32:54 -07:00
Michael Layzell
5a19a8c245 Bug 1372433 - Label the PContent::Msg_NotifyVisited runnable, r=billm
I don't bother to label the runnables in the parent process being fired by
VisitedQuery, as we are not planning to perform scheduling in the parent process
if I remember correctly. It would be possible to label those runnables as well.

This also adds a mSeen boolean to the mObservers array, to fix a race caused
when a link is being registered as an observer between NotifyVisited and
NotifyVisitedForDocument being run.

MozReview-Commit-ID: EosNOu62fEV
2017-07-04 15:16:19 -04:00
Ben Kelly
d7552a9f9d Bug 1197401 Remove the disabled HTML imports implementation. r=wchen 2017-06-12 07:36:02 -07:00
Olli Pettay
1dc4c7156c Bug 1356556, use of weak references in nsHTMLDNSPrefetch is malloc heavy, so instead use raw pointers and a flag to tell that Link's destructor needs to clear the raw pointer, r=bz 2017-04-19 13:06:36 +03:00
Olli Pettay
1a7d96f92a Bug 1355540, use SegmentedVector for pending links to avoid slow hashtable lookups in hot codepaths, r=bz 2017-04-15 18:55:05 +03:00
Valentin Gosu
029e26bc91 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
2017-03-08 22:19:34 +01:00
Michael Layzell
c6453a3b88 Bug 1315105 - Part 2: Implement <link rel=prerender> behind a pref, r=smaug
MozReview-Commit-ID: ARET98o1FTU
2016-12-19 15:05:31 +08:00
Carsten "Tomcat" Book
d417824862 Backed out changeset 059753ec9117 (bug 1315105) for test failures in own test 2016-12-19 15:59:14 +01:00
Michael Layzell
f898aa0d8b Bug 1315105 - Part 2: Implement <link rel=prerender> behind a pref, r=smaug
MozReview-Commit-ID: ARET98o1FTU
2016-12-19 15:05:31 +08:00
Nicholas Nethercote
6d0bee9f8e Bug 1316792 - gtestify toolkit/components/places/tests/cpp/test_IHistory.cpp. r=mak.
This is a most minimal gtest conversion possible. It leaves in place
significant amounts of non-typical-for-gtest code.

Notable changes:

- All the mock Link and URLSearchParams method definitions are no longer
  needed.

- The changes adds a new constructor for Link that doesn't set mHistory.
  Without that, leaked URLs occur at shutdown.

- The output printed by the test is slightly streamlined, mostly by omitting
  the test filename.

- It disables TestMediaFormatReader.cpp, which was causing problems. That test
  is slated for removal in bug 1318225 anyway.
2016-11-12 06:22:01 +11:00
Boris Chiou
dc53e46902 Bug 1245751 - Part 1: Allow href without xlink on SVG <a> elements. r=dholbert,jwatt
MozReview-Commit-ID: 6HwWv2Uxx5j
2016-06-28 17:22:30 +08:00
622ac8c473 Bug 1279440 - Fix prefetch for rel=next. r=smaug 2016-06-23 08:52:00 +02:00
Andrea Marchesini
b4f9d92db0 Bug 1278799 - Moving Console API into dom/console, r=smaug 2016-06-08 14:46:50 +02:00
Dragana Damjanovic
869b7efcd8 Bug 580313 - New resource hints for link. r=smaug 2016-02-26 02:41:00 +01:00
Olli Pettay
2679c220b2 Bug 1134648, handle dynamic changes to rel=dns-prefetch, r=bz 2015-12-01 19:22:20 +02:00
Andrea Marchesini
ee289b83f4 Bug 1213815 - dom/webidl/HTMLHyperlinkElementUtils and URL don't need to throw exceptions as we did before, r=bz 2015-11-23 20:05:26 +00:00
Andrea Marchesini
6fc87f3f57 Bug 1213815 - Update URLSearchParams and URLUtils in webidl files, r=bz 2015-11-23 20:05:26 +00:00