Граф коммитов

740 Коммитов

Автор SHA1 Сообщение Дата
Kyle Machulis 6d3b4e7492 Bug 1492648 - Move from nsDocShellLoadInfo to nsDocShellLoadState; r=bz, nika
Creates the nsDocShellLoadState object, which is basically
nsDocShellLoadInfo plus a few extra fields to make it usable as a
single argument to nsDocShell::LoadURI (and eventually
nsDocShell::InternalLoad).

Subframe history handling is a huge logic block in
nsDocShell::LoadURI, which is only used on history loads. This patch
also extracts the logic out into its own function to make the body of
LoadURI clearer.
2018-10-29 17:13:29 -07:00
Kyle Machulis ee8ccacb05 Backed out changeset fa8487b94a38 due to a=BUSTAGE on comm-central 2018-10-29 12:28:02 -07:00
Kyle Machulis ca0550b32b Bug 1492648 - Move from nsDocShellLoadInfo to nsDocShellLoadState r=bzbarsky,nika
Creates the nsDocShellLoadState object, which is basically
nsDocShellLoadInfo plus a few extra fields to make it usable as a
single argument to nsDocShell::LoadURI (and eventually
nsDocShell::InternalLoad).

Subframe history handling is a huge logic block in
nsDocShell::LoadURI, which is only used on history loads. This patch
also extracts the logic out into its own function to make the body of
LoadURI clearer.

Differential Revision: https://phabricator.services.mozilla.com/D6944

--HG--
rename : docshell/base/nsDocShellLoadInfo.cpp => docshell/base/nsDocShellLoadState.cpp
rename : docshell/base/nsDocShellLoadInfo.h => docshell/base/nsDocShellLoadState.h
extra : moz-landing-system : lando
2018-10-26 03:50:37 +00:00
Narcis Beleuzu 5d00f78a13 Backed out changeset 8dd09fad1f35 (bug 1492648) for bc failures on browser_auto_close_window.js
--HG--
rename : docshell/base/nsDocShellLoadState.cpp => docshell/base/nsDocShellLoadInfo.cpp
rename : docshell/base/nsDocShellLoadState.h => docshell/base/nsDocShellLoadInfo.h
2018-10-19 10:11:33 +03:00
Kyle Machulis 0bb3246aa5 Bug 1492648 - Move from nsDocShellLoadInfo to nsDocShellLoadState r=bzbarsky,nika
Creates the nsDocShellLoadState object, which is basically
nsDocShellLoadInfo plus a few extra fields to make it usable as a
single argument to nsDocShell::LoadURI (and eventually
nsDocShell::InternalLoad).

Subframe history handling is a huge logic block in
nsDocShell::LoadURI, which is only used on history loads. This patch
also extracts the logic out into its own function to make the body of
LoadURI clearer.

Differential Revision: https://phabricator.services.mozilla.com/D6944

--HG--
rename : docshell/base/nsDocShellLoadInfo.cpp => docshell/base/nsDocShellLoadState.cpp
rename : docshell/base/nsDocShellLoadInfo.h => docshell/base/nsDocShellLoadState.h
extra : moz-landing-system : lando
2018-10-18 22:14:54 +00:00
Mats Palmgren faeddacfac Bug 1494745 part 5 - Don't check the result from ns[Auto]TObserverArray insertions since they're infallible. r=bz 2018-10-14 18:12:23 +02:00
Nicholas Nethercote 73e2b20c61 Bug 1490858 - Reorder nsISHEntry. r=nika
nsISHEntry's attributes and methods are thoroughly mixed. This patch separates
them, making it easier to understand.

--HG--
extra : rebase_source : 8a7822b5289fbb67e74dfa3cb42aa31206ee0e16
2018-09-12 13:20:14 +10:00
Nicholas Nethercote eb5daf71af Bug 1490858 - Simplify some nsISHEntry attributes. r=nika
Both nsISHEntry.URI and nsISHEntry isSubFrame are readonly, but also have a
setter. This is silly, so this patch removes the setter and makes them
modifiable.

The patch also renames nsISHEntry.setAsHistoryLoad() as setLoadTypeAsHistory(),
which makes it clearer that it modifies the loadType attribute.

--HG--
extra : rebase_source : 7772e2c1d90d4fd9f462f20c777d6eacc65801c5
2018-09-12 12:54:11 +10:00
Nicholas Nethercote f659c0df65 Bug 1490858 - Streamline nsISHEntry a little more. r=nika
By marking some C++-only nsISHistory methods as [noscript] or [noscript,
notxpcom].

--HG--
extra : rebase_source : 1216e755a227fd13f01057afd71ea082a2a79ad7
2018-09-12 11:59:06 +10:00
Nicholas Nethercote f9b2172b05 Bug 1490858 - Make most nsISHEntry attributes infallible. r=nika
The patch also removes some NS_ENSURE_ARG_POINTER checks from these attributes'
getters. Most of these getters already lack such checks, and as long as the
infallible getters are used a non-null pointer is guaranteed. In the worst case
we'll safely null-crash anyway.

--HG--
extra : rebase_source : 87d4f7fccfa7ffb605c514cf8c2abd270a13b24a
2018-09-07 11:56:23 +10:00
Nicholas Nethercote 2d47fcde1c Bug 1490828 - Handle mPersist in the nsSHEntry copy constructor. r=nika
--HG--
extra : rebase_source : 11bc9b8881467bbf6a4cee9800bf1d13707856b6
2018-09-14 11:09:19 +10:00
Nicholas Nethercote 57abe0460a Bug 1490524 - Streamline nsISHistory a little more. r=nika
- Move VIEWER_WINDOW from nsISHistory to nsSHistory.

- Mark some C++-only nsISHistory methods as [noscript, notxpcom].

- Add gotoIndex() to nsISHistory so that LegacySHistoryImpl() can be removed.

--HG--
extra : rebase_source : c33081d527af6f9697fad095d24824fc4d451f4d
2018-09-11 16:08:39 +10:00
Nicholas Nethercote a0583f1a89 Bug 1490524 - Make some nsISHistory attributes infallible. r=nika
This also requires making nsISHistory `builtinclass`.

--HG--
extra : rebase_source : a1f2c7a60782dcd741b350f6cd3979d888008a97
2018-09-11 16:08:37 +10:00
Nicholas Nethercote 86422376e7 Bug 1490524 - Remove nsISHistory.maxLength. r=nika
It's unused.

--HG--
extra : rebase_source : d835dd5f650515740e31d9f30535ea2a13d9556b
2018-09-11 16:08:35 +10:00
Nicholas Nethercote 0935270972 Bug 1490158 - Add a clarifying comment. r=nika
--HG--
extra : rebase_source : ab987310ca62b5587f7437d91f7be4345bc5cb16
2018-09-11 15:04:16 +10:00
Nicholas Nethercote 7f2bb554d6 Bug 1490158 Remove On{Length,Index}Changed from nsISHistoryListener. r=nika
They're never used.

--HG--
extra : rebase_source : 94f94e4d198917aa5e1d9322e9ba195f641e6e45
2018-09-07 10:27:05 +10:00
Nicholas Nethercote 951d44ded0 Bug 1490158 - Minimize cancelability in nsISHistoryListener. r=nika
nsISHistoryListener can cancel several operations, but the functionality is
only ever used for OnHistoryReload(). So this patch removes it for the other
operations.

--HG--
extra : rebase_source : 433422e9160f7d645570baaaff4779c4bcc3ec04
2018-09-06 16:51:58 +10:00
Nicholas Nethercote 55657f2206 Bug 1488628 - Change nsISHEntry.title to an AString. r=nika
This patch also removes the setTitle() method and makes `title` non-readonly.

--HG--
extra : rebase_source : 87e394ec5cb0eed7a9b77fa105b6dd45111d75fd
2018-09-05 11:29:36 +10:00
Nicholas Nethercote f5d9c8867c Bug 1488321 - Remove all traces of the "transaction" terminology in SHistory. r=nika.
This patch:

- removes GetTransactionAtIndex(), because getTransactionAtIndex() can be used
  instead;

- renames a lot of things;

- updates some comments.

--HG--
extra : rebase_source : 845a1c1d5fe7f84eaa03db39a344d98fd5784afd
2018-09-05 09:03:22 +10:00
Nicholas Nethercote 13643f64e8 Bug 1488321 - Fix up nsISHEntry.{index,getEntryAtIndex()}. r=nika
nsISHEntry.index is readonly, but if you pass `true` as getEntryAtIndex()'s
second argument, nsISHEntry.index will be modified. This is pretty gross.

This patch changes `index` so it's not readonly (because it's not!) and removes
getEntryAtIndex()'s second argument.

--HG--
extra : rebase_source : c519d77fcc1c3bda2f260b5888ce9cd0f6cfdab5
2018-09-05 09:02:37 +10:00
Nicholas Nethercote 54ca088229 Bug 1488321 - Remove nsISHTransaction. r=nika
Because it's a wafer-thin wrapper around nsISHEntry that just complicates
things.

This patch leaves behind a combination of "entry" and "transaction"
terminology. I'll fix that in a subsequent patch.

--HG--
extra : rebase_source : ca15187447bf3d93c65ed3980ead5bca958471be
2018-09-05 09:02:37 +10:00
Nicholas Nethercote b546759d02 Bug 1488321 - Move the `persist` attribute from nsISHTransaction to nsISHEntry. r=nika
This requires making nsISHEntry `builtinclass`.

--HG--
extra : rebase_source : 90e792ee35c01b0d90c52315e4cb6d85667c58fa
2018-09-05 09:02:37 +10:00
Nicholas Nethercote cd3fc14877 Bug 1488321 - Improve GetTransactionAtIndex() result checking. r=nika
Specifically:

- Check the nsresult consistently, but don't check (unnecessarily) for null on
  success.

- In AddEntry(), move GetTransactionAtIndex() before all state-changing
  operations, so we don't end up with partial state updates upon failure.

- Use early returns to reduce indenting.

--HG--
extra : rebase_source : 17815f6813f024fae1cf4ec3cf1b7985ab7a2ff2
2018-09-05 08:53:28 +10:00
Nicholas Nethercote b212c4a09a Bug 1488321 - Enforce non-nullness for nsISHTransaction.sHEntry. r=nika
In practice it's always non-null, and only half the places that deal with it
have null handling code. So this simplifies things.

--HG--
extra : rebase_source : 250b286b6b2c10aeb0c4486ebe13b1e071bf6c8a
2018-09-05 08:53:28 +10:00
Nicholas Nethercote 268dd7e600 Bug 1488321 - Make nsISHTransaction builtin and its attributes infallible. r=nika
--HG--
extra : rebase_source : 2a4068b80ea20b9c25cbb8239dfada992c758821
2018-08-28 12:00:44 +10:00
Nicholas Nethercote 3062776635 Bug 1488321 - Remove `currentIndex` in nsSHistory::AddEntry(). r=nika
It was used to protect against changes in mIndex by history listeners, but the
new code structure doesn't need it, because we want to use mIndex afterwards.

--HG--
extra : rebase_source : 74f0cc7f696b101b8e9d699790f2f2c141c5f51b
2018-09-04 14:00:45 +10:00
Nicholas Nethercote 09a6eb41df Bug 1487328 - Make nsSHistory *not* implement nsIWebNavigation. r=nika
nsSHistory currently implements nsIWebNavigation, but only three of the methods
are actually used, and the rest call MOZ_CRASH. This patch removes the
inheritance and changes the implementations of those three methods (Reload(),
GetCurrentURI(), and GotoIndex()) to pure C++.

There is one test, bug662200_window.xul, that calls Reload() from JS, which is
no longer possible. Fortunately, nsSHistory::ReloadCurrentEntry() -- which *is*
available from JS -- is similar enough to Reload(0) that it can be used
instead.

(The only difference between Reload(0) and ReloadCurrentEntry() is that the
former triggers the `OnHistoryReload` notification and the latter triggers
`OnHistoryGotoIndex`, which doesn't matter for this test.)

--HG--
extra : rebase_source : 69dba04f14b1438f50f597f3d16b77225795f8a7
2018-09-03 09:27:37 +10:00
Nicholas Nethercote 70d22aa86a Bug 1487328 - Remove nsISHistoryListener.OnHistoryGo{Back,Forward}. r=nika
As per the previous commit, they are now subsumed by OnHistoryGotoIndex.

--HG--
extra : rebase_source : 627a32ed9378c7dd5364323183297933f90f9d72
2018-09-03 09:27:37 +10:00
Nicholas Nethercote 6347de0109 Bug 1487328 - Clarify which nsIWebNavigation methods in nsSHistory are unreachable. r=nika
The only ones that are reachable are GotoIndex(), GetCurrentURI(), and
Reload(). This patch makes all the others crash.

Note that the reason that Go{Back,Forward}() are unreachable is because of this
behaviour in ChildHistory::Go():

  // XXX(nika): Should we turn Go(-1) and Go(1) to call GoForward and GoBack?
  // They technically fire different change events but I couldn't find anyone
  // who cares, so I'm inclined not to.

I.e. those functions are now subsumed by GotoIndex().

As for CanGo{Back,Forward}(), a try push plus code inspection confirm that they
are unused.

--HG--
extra : rebase_source : 6509e635478f257be1271b51d352e0a9d81899ec
2018-09-03 09:27:37 +10:00
Nicholas Nethercote f369a978ca Bug 1487296 - Merge nsISHistoryInternal into nsISHistory. r=nika
With legacy add-ons gone, there is no benefit to keeping them separate.
2018-08-30 11:37:40 +10:00
Nicholas Nethercote 54524b264e Bug 1487296 - Fix nsIHistory.idl formatting. r=nika
Mostly:
- Fix indenting.
- Remove trailing whitespace.
- Use `aFoo` arguments.
2018-08-30 11:08:59 +10:00
Nicholas Nethercote 03f4d6c3ac Bug 1487541 - Keep mRequestedIndex in bounds in PurgeHistory(). r=me
--HG--
extra : rebase_source : 1488b7a2d3bab7e9a746ddd1fbf70a155cec3933
2018-08-31 16:25:32 +10:00
Nicholas Nethercote 1035277500 Bug 1486358 - Mark GetTransactionAtIndex() as NS_IMETHODIMP. r=me
Because of one this bug's earlier commits made it an XPIDL method.

--HG--
extra : rebase_source : d0e69d5c5eb1fd1caf0946872c8319029591fcc3
2018-08-31 15:32:14 +10:00
Nicholas Nethercote cfd6ca43dd Bug 1486358 - Factor out shistory entry window code. r=nika
(It's worth noting that I had to fix one of these instances in the previous
patch, by adding a -1.)

--HG--
extra : rebase_source : ea45cd7dc59b6649f1b46a2c917def79538fcbe8
2018-08-28 12:00:41 +10:00
Nicholas Nethercote beb090da4a Bug 1486358 - Change nsISHistory's transactions list to an nsTArray. r=nika
- nsISHistoryInternal loses `rootTransaction`, and gains
  GetTransactionAtIndex(). (The implementing class `nsSHistory` already
  implemented a method by that method.)

- nsSHistory loses `mListRoot` in favour of `mTransactions`. It also loses
  `mLength`, because `mTransactions` tracks the length itself.

- nsISHTransaction.{prev,next} are no longer needed.

- nsISHTransaction.create() is no longer needed, because all it does now is set
  the SHEntry, and we can use SetSHEntry() for that.

Overall this deletes about 200 lines of code.

--HG--
extra : rebase_source : eac6334b653e04634baa86a0f4e3c8f07c06e560
2018-08-27 14:28:46 +10:00
Nicholas Nethercote 814d346fbe Bug 1486358 - Fix nsISHTransaction.idl's formatting.
By replacing tabs with spaces, and cleaning up the comments slightly.

--HG--
extra : rebase_source : dd122be19197614bf3a048b235eb857647456fde
2018-08-27 14:28:44 +10:00
Nicholas Nethercote f751b544bf Bug 1486356 - Remove the XPCOM component registration for nsSHTransaction. r=nika
--HG--
extra : rebase_source : 992dfc8d0c836f3adf499ca1974a70656ee11791
2018-08-27 14:27:34 +10:00
Nicholas Nethercote a4afa80372 Bug 1486356 - Remove nsISHistory.restoreToEntryAtIndex. r=nika
It's unused.

--HG--
extra : rebase_source : b687ecd1f02f6de141fe03b06b555d742d8f8887
2018-08-27 14:27:34 +10:00
Ehsan Akhgari 888504fd4c Bug 1485870 - Remove the XPCOM registration for nsSHTransaction; r=nika 2018-08-28 08:29:33 -04:00
Kris Maglione 65c28aa0ad Bug 1484496: Part 2 - Add common base class for all nsISimpleEnumerator implementations. r=froydnj
In order to allow JS callers to use nsISimpleEnumerator instances with the JS
iteration protocol, we'll need to additional methods to every instance. Since
we currently have a large number of unrelated implementations, it would be
best if they could share the same implementation for the JS portion of the
protocol.

This patch adds a stub nsSimpleEnumerator base class, and updates all existing
implementations to inherit from it. A follow-up will add a new base interface
to this class, and implement the additional functionality required for JS
iteration.

Differential Revision: https://phabricator.services.mozilla.com/D3725

--HG--
extra : rebase_source : ad66d7b266856d5a750c772e4710679fab9434b1
extra : histedit_source : a83ebffbf2f0b191ba7de9007f73def6b9a955b8
2018-08-18 14:22:47 -07:00
Nicholas Nethercote 8cb0711355 Bug 1485279 - Merge nsISHContainer into nsISHEntry. r=qdot
nsSHEntry is the only class that instantiates those two interfaces, so the
separation is not useful. This lets us remove numerous pointless QIs.

--HG--
extra : rebase_source : 570b7ade669fb89a789184198bec9da186c5f1d3
2018-08-22 19:20:56 +10:00
Nicholas Nethercote d596237589 Bug 1485279 - Merge nsISHEntryInternal into nsISHEntry. r=qdot
nsSHEntry is the only class that instantiates those two interfaces, so the
separation is not useful. This lets us remove several pointless QIs.

The patch also removes RemoveFromBFCache{AS,S}ync, which are unused.

--HG--
extra : rebase_source : 84db7ec180c357ab8c762dc60efb5eed444ba514
2018-08-22 19:13:57 +10:00
Nicholas Nethercote 5ad84b56e2 Bug 1484944 - Remove nsSHEnumerator. r=qdot
--HG--
extra : rebase_source : 3f52fd7bf780e53631919a0f2e6925345b714517
2018-08-21 19:52:19 +10:00
Kris Maglione f84c2cf454 Bug 1480244: Part 1c - Rename TabChildGlobal to TabChildMessageManager. r=bz
MozReview-Commit-ID: ECtFjFV7dZa

--HG--
extra : rebase_source : 50e64fa4da1099ca2bd9e14c8679bb87c354015e
2018-08-10 14:04:23 -07:00
Boris Zbarsky e2aafee76f Bug 1479569 part 3. Remove nsIContentFrameMessageManager. r=kmag 2018-08-02 23:49:09 -04:00
Csoregi Natalia 08c950712e Backed out 3 changesets (bug 1479569) for devtools/client/responsive.html failures. CLOSED TREE
Backed out changeset e123d0aa911c (bug 1479569)
Backed out changeset b828a58404e5 (bug 1479569)
Backed out changeset 97041ef8f311 (bug 1479569)
2018-08-03 10:39:12 +03:00
Boris Zbarsky b318c42b9e Bug 1479569 part 3. Remove nsIContentFrameMessageManager. r=kmag 2018-08-02 23:49:09 -04:00
Kris Maglione 44f3d2e02f Bug 1473631: Part 11 - Replace pref observers with callbacks in nsSHistory. r=njn
MozReview-Commit-ID: EvwiYRg4SnC

--HG--
extra : rebase_source : af78bc15488a0c6b2916aefa5dca0611f9c2f722
2018-07-05 14:58:04 -07: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
Jan de Mooij ef58e3064f Bug 1474835 - Use implicit_jscontext for nsIWebNavigation.setOriginAttributesBeforeLoading. r=smaug 2018-07-11 15:23:54 +02: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
Boris Zbarsky 02221942ef Bug 894215 part 1. Change nsSHEntryShared to inherit from nsStubMutationObserver. r=smaug 2018-05-18 23:37:56 -04:00
Adrian Wielgosik c501e3beb0 Bug 1460940 - Clean up most remaining C++-side uses of nsIDOMDocument. r=bz
MozReview-Commit-ID: LKRnyDPNlle

--HG--
extra : rebase_source : a48b7c72a0f7ede38c91149a04d5de53987736f1
2018-05-11 19:46:15 +02:00
Jan Henning 29713de206 Bug 1335148 - Part 1: Dynamically determine content viewer count on Android, too. r=bz,snorp
The current limit of at most one bfcache entry on Android dates back to when
Fennec was built for the Nokia N810, which had a whopping 128 MB of memory.
Since a few years have passed since then and mobile device technology has
evolved considerably, it should be safe now to allow a little more than that.

Since web sites sizes might have grown somewhat as well compared to the figure
of 4MB mentioned in CalcMaxTotalViweres(), though and to be absolutely on the
safe side, we still tweak the formula when building for Android, though.

If in the worst case even those assumptions turn out too generous, we will still
be protected by the fact that
- we temporarily disable the bfcache when the OS signals memory pressure, and
- our contentViewerTimeout is set to a lower value than on Desktop, so bfcache
  entries will expire sooner

MozReview-Commit-ID: 1A6d0Q6Mdx0

--HG--
extra : rebase_source : 9cc1f7abb1aef82ffc4d7987773ae7cf35440884
2018-03-29 21:51:13 +02:00
Chris Peterson 71422dcaa9 Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent

MozReview-Commit-ID: KuUsnVe2h8L

--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Nika Layzell b286bc10d9 Bug 1443379 - Stop pretending cacheKey can be anything other than uint32_t, r=smaug 2018-04-10 17:49:46 -04:00
Nika Layzell adc5b074cd Bug 1434768 - Part 5: Add EvictLocalContentViewers to ChildSHistory, r=bz 2018-04-10 17:49:46 -04:00
Nika Layzell 11744e4b91 Bug 1434768 - Part 4: Create a ParentSHistory in nsFrameLoader, r=bz 2018-04-10 17:49:45 -04:00
Nika Layzell 8822e43271 Bug 1434768 - Part 2: Replace nsDocShell::mSessionHistory with ChildSHistory, r=bz 2018-04-10 17:49:45 -04:00
Nika Layzell c3cbd8710f Bug 1434768 - Part 1: Add Child/ParentSHistory classes which wrap nsISHistory, r=bz 2018-04-10 17:49:44 -04:00
Emilio Cobos Álvarez 2988d4e66d Bug 1442207: Remove unneeded arguments to nsIMutationObserver. r=smaug
aDocument is always content->OwnerDoc().
aContainer is always content->GetParent().

Differential Revision: https://phabricator.services.mozilla.com/D664

MozReview-Commit-ID: 4xwPCOnhyIL
2018-03-01 22:45:17 +01:00
Emilio Cobos Álvarez 9f26540cc4 Bug 1441547: Make character data change notifications use a const reference for the info parameter. r=smaug
It's not intended to be mutated.

MozReview-Commit-ID: 5nkD1YkidlV

--HG--
extra : rebase_source : 810d429208fa3eaf30e220e77a7d27107cb77346
2018-02-27 15:30:27 +01:00
Josh Matthews 19738f789f Bug 1436743 - Dispatch events via the docgroup rather than the tabgroup when possible. r=mystor 2018-02-08 15:54:00 -05:00
Emilio Cobos Álvarez d673bbdc88 Bug 1431854: Remove a bit of indirection in nsSHEntryShared::SetContentViewer. r=smaug
MozReview-Commit-ID: HRIfFJa9K2V

--HG--
extra : rebase_source : 5fe6ffea02377d7e93dbd4e2a0f8389be38bb388
2018-01-19 23:50:13 +01:00
Chris Peterson 37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Nika Layzell a0d1f16079 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
Samael Wang 112d2693c3 Bug 1406161 - Part 6: Move shistory related static functions to nsSHistory. r=smaug
MozReview-Commit-ID: 7rqo2rISCB5

--HG--
extra : rebase_source : 3de7a21b24ce526f45424a2f1aad4329a8758f78
2017-12-19 18:26:36 +08:00
Sylvestre Ledru 9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Thomas Nguyen fd883fdb12 Bug 1345433 - Bring back assertion that history entries need a valid triggeringPrincipal r=JanH,smaug
MozReview-Commit-ID: 9GfGIxkqfhM

--HG--
extra : rebase_source : 9568fb89e43400453d42980a267aee733d551e13
2017-10-23 18:14:28 +08:00
Nicholas Nethercote f553c82da0 Bug 1416638 - Add a PrefValueKind arg to Preferences::Get*(), and remove Preferences::GetDefault*(). r=glandium
MozReview-Commit-ID: LgnZAf1pAl1

--HG--
extra : rebase_source : 8ba7c4bfb331f70fd41c2ae1d428e4cb9058d069
2017-11-14 19:06:01 +11:00
Phil Ringnalda 90dde0bad4 Backed out 2 changesets (bug 1345433) for eslint bustage
Backed out changeset 7353f6f68571 (bug 1345433)
Backed out changeset 6ee966b99e7e (bug 1345433)

MozReview-Commit-ID: 47mqBLmmBpv
2017-10-31 19:35:18 -07:00
Thomas Nguyen 18b893a6f4 Bug 1345433 - Bring back assertion that history entries need a valid triggeringPrincipal r=smaug
MozReview-Commit-ID: 9GfGIxkqfhM

--HG--
extra : rebase_source : 4e5909e77cc89e43a129e81baacd8e0f8962c1a9
2017-10-23 18:14:28 +08:00
Nicholas Nethercote 7f098bdb9c Bug 1409227 (part 4) - Replace nsMemory::Clone(id, sizeof(nsID)) with nsID::Clone(id). r=mccr8.
This change requires introducing nsID::Clone(). Because it's infallible, the
patch also removes some redundant failure-handling code. (nsMemory::Clone() is
also infallible, so this code was redundant even before this change.)

--HG--
extra : rebase_source : ef22757d3fa814320490bf7e19e822b8f0c4bdc3
2017-10-18 10:39:20 +11: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
Catalin Badea f8162c4bfd Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv 2017-10-03 11:09:08 +01:00
Samael Wang f3e7ea932b Bug 1364364 - Part 3: Clear dynamic subframe entries in RemoveFromBFCacheSync/Async. r=smaug
MozReview-Commit-ID: F8OTxbWIp5O

--HG--
extra : rebase_source : 96f7574adf34ba19de31f0f8f6816108754d8c05
2017-08-24 15:17:39 +08:00
Samael Wang 6c3a30e37f Bug 1364364 - Part 2: Extract a part of EvictExpiredContentViewerForEntry to a new function FindTransactionForBFCache, and implement RemoveDynEntriesForEntry on top of it. r=smaug
MozReview-Commit-ID: EzK2U0c94v8

--HG--
extra : rebase_source : 472fae2733efae09157b8440c466a8c5ccc6b626
2017-08-24 14:32:23 +08:00
Samael Wang dde797a357 Bug 1364364 - Part 1: Why are we declaring private virtual functions? r=smaug
MozReview-Commit-ID: KQxFTrEO1aq

--HG--
extra : rebase_source : 6b56cae60b7f82f3695d57d0e3f23bd59cc06756
2017-08-24 11:27:11 +08:00
Nicholas Nethercote e3c9cbb969 Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.

--HG--
extra : rebase_source : 4e3f982e0873877174a08a25413595ff66f7d20e
2017-09-22 14:35:46 +10:00
Ryan VanderMeulen 68c8008faf Backed out 7 changesets (bug 1364364) for causing bug 1399182.
Backed out changeset c517d8071dfb (bug 1364364)
Backed out changeset 809036cfd7d9 (bug 1364364)
Backed out changeset c394b06dc30c (bug 1364364)
Backed out changeset c5a737bbfdeb (bug 1364364)
Backed out changeset 21ee8f318a47 (bug 1364364)
Backed out changeset 074475da0f2c (bug 1364364)
Backed out changeset de6c153ec533 (bug 1364364)

--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-12 13:21:17 -04:00
Samael Wang 6ecf7b4ce8 Bug 1364364 - Part 3: Clear dynamic subframe entries in RemoveFromBFCacheSync/Async. r=smaug
MozReview-Commit-ID: F8OTxbWIp5O

--HG--
extra : rebase_source : 000ac21b857f53268b6dae54ab76a44f1c7b0e3e
2017-08-24 15:17:39 +08:00
Samael Wang 1cee800a66 Bug 1364364 - Part 2: Extract a part of EvictExpiredContentViewerForEntry to a new function FindTransactionForBFCache, and implement RemoveDynEntriesForEntry on top of it. r=smaug
MozReview-Commit-ID: EzK2U0c94v8

--HG--
extra : rebase_source : 472fae2733efae09157b8440c466a8c5ccc6b626
2017-08-24 14:32:23 +08:00
Samael Wang b3523614fe Bug 1364364 - Part 1: Why are we declaring private virtual functions? r=smaug
MozReview-Commit-ID: KQxFTrEO1aq

--HG--
extra : rebase_source : 6b56cae60b7f82f3695d57d0e3f23bd59cc06756
2017-08-24 11:27:11 +08:00
Sebastian Hengst 911772b412 Backed out changeset 24edc3618b45 (bug 1364364) for failing mochitest dom/workers/test/test_multi_sharedWorker_lifetimes.html on Android. r=backout 2017-09-07 16:50:38 +02:00
Sebastian Hengst 7a9c465cf3 Backed out changeset 58fe37290a82 (bug 1364364) 2017-09-07 16:49:45 +02:00
Sebastian Hengst a8efe436cc Backed out changeset e07ddefd4a8e (bug 1364364) 2017-09-07 16:49:39 +02:00
Samael Wang 6717899b75 Bug 1364364 - Part 3: Clear dynamic subframe entries in RemoveFromBFCacheSync/Async. r=smaug
MozReview-Commit-ID: F8OTxbWIp5O

--HG--
extra : rebase_source : 000ac21b857f53268b6dae54ab76a44f1c7b0e3e
2017-08-24 15:17:39 +08:00
Samael Wang f80cfaf15b Bug 1364364 - Part 2: Extract a part of EvictExpiredContentViewerForEntry to a new function FindTransactionForBFCache, and implement RemoveDynEntriesForEntry on top of it. r=smaug
MozReview-Commit-ID: EzK2U0c94v8

--HG--
extra : rebase_source : 472fae2733efae09157b8440c466a8c5ccc6b626
2017-08-24 14:32:23 +08:00
Samael Wang 7d872b8023 Bug 1364364 - Part 1: Why are we declaring private virtual functions? r=smaug
MozReview-Commit-ID: KQxFTrEO1aq

--HG--
extra : rebase_source : 6b56cae60b7f82f3695d57d0e3f23bd59cc06756
2017-08-24 11:27:11 +08:00
Wes Kocher 2ffe3f0783 Backed out 7 changesets (bug 1364364) for failures in test_multi_sharedWorker_lifetimes.html a=backout
Backed out changeset 6298563c1a81 (bug 1364364)
Backed out changeset 285633e277cb (bug 1364364)
Backed out changeset 6abd3298188a (bug 1364364)
Backed out changeset 6a0ec9eff8c3 (bug 1364364)
Backed out changeset f23aa9861e9b (bug 1364364)
Backed out changeset 5d6bf02b495a (bug 1364364)
Backed out changeset c9420f4e27f7 (bug 1364364)

MozReview-Commit-ID: IAFeH325T14

--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-06 13:07:13 -07:00
Samael Wang 1abc251a98 Bug 1364364 - Part 3: Clear dynamic subframe entries in RemoveFromBFCacheSync/Async. r=smaug
MozReview-Commit-ID: F8OTxbWIp5O

--HG--
extra : rebase_source : 000ac21b857f53268b6dae54ab76a44f1c7b0e3e
2017-08-24 15:17:39 +08:00
Samael Wang b05c486ba5 Bug 1364364 - Part 2: Extract a part of EvictExpiredContentViewerForEntry to a new function FindTransactionForBFCache, and implement RemoveDynEntriesForEntry on top of it. r=smaug
MozReview-Commit-ID: EzK2U0c94v8

--HG--
extra : rebase_source : 472fae2733efae09157b8440c466a8c5ccc6b626
2017-08-24 14:32:23 +08:00
Samael Wang e2a185808f Bug 1364364 - Part 1: Why are we declaring private virtual functions? r=smaug
MozReview-Commit-ID: KQxFTrEO1aq

--HG--
extra : rebase_source : 6b56cae60b7f82f3695d57d0e3f23bd59cc06756
2017-08-24 11:27:11 +08:00
Nicholas Nethercote 1a6f1a62fa Bug 1387381 - Remove nsXPIDLString local variables. r=erahm.
nsXPIDLStrings are marked as VOIDED upon initialization. Most of these local
nsXPIDLString variables are immediately set via getter_Copies(), which will
either assign a string value (using Adopt()) or do SetIsVoid(). These can be
trivially converted to nsString, which will get the same treatment.

The patch suitably converts the remaining nsXPIDLString local variable as well.

--HG--
extra : rebase_source : 5fff9f2c6844559198f601853f8db08564add7d5
2017-08-08 16:07:55 +10:00
Honza Bambas 667a52f1fa Bug 1380012 - Copy nsSHEntry::mResultPrincipalURI in its copy constructor. r=bz 2017-07-29 13:04:39 -04:00
Bevis Tseng a7505864a8 Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey 6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey 4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Honza Bambas 9e38f7b8fc Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz, r=mikedeboer
--HG--
extra : rebase_source : c9690f4b8decd39a10da676bd50ec09cb2ad8892
2017-05-30 18:07:59 +02:00
Samael Wang cb393d1f72 Bug 1363036 - Part 2: Reject AddEntry / ReplaceEntry if the entry has been associated to another SHistory. Cleanup mHistoryTracker if root docshell changes. r=smaug
MozReview-Commit-ID: 9s4dQG18JUN

--HG--
extra : rebase_source : 728dcdc63c11aaf177faa4e093750a69da8175e4
2017-05-22 15:36:06 +08:00
Samael Wang ecbe18e933 Bug 1363036 - Part 1: Remove MOZ_DIAGNOSTIC_ASSERTs previously added for bug hunting. r=smaug
MozReview-Commit-ID: BAkuRlHtMcP

--HG--
extra : rebase_source : 5e708d0dacec9a673851d689d1f5274a0f1b69aa
2017-05-22 11:25:54 +08:00
Bob Owen 73b521bf6c Bug 1351358 Part 1: Add flag to nsISHEntry to indicate if it was originally loaded in this process. r=bz
This flag is for when we've loaded a URI in a remote type that is not the default
for compatibility reasons (for example related http in the file content process).
So that we can load the history entry in that same process as well.
2017-05-18 12:08:56 +01:00
Samael Wang da20faa46e Bug 1363036 - Add MOZ_DIAGNOSTIC_ASSERTs for bug hunting. r=smaug
MozReview-Commit-ID: JPnkkJlkwDY
2017-05-16 10:54:01 +08:00
Samael Wang ada8242de0 Bug 1347823 - Part 2: Move HistoryTracker to nsSHistory and bind its event target to the TabGroup. r=smaug
Convert the singleton HistoryTracker implementation to a per-nsSHistory based
implementation so that it can be bound to a TabGroup.

MozReview-Commit-ID: 7cMtArsO5lQ

--HG--
extra : rebase_source : 3711bc7f7afaa40772035e24270d4fde1d17924a
2017-04-27 18:59:11 +08:00
Samael Wang c88a3d7711 Bug 1347823 - Part 1: Reorder includes and data members. r=smaug
Re-order includes to meet gecko's coding style, and move bool data members
to the bottom for slightly better alignment (nsSHEntry down from 192->176,
nsSHEntryShared down from 208->200 on a Linux64 build).

MozReview-Commit-ID: CG1M6Hh39uI

--HG--
extra : rebase_source : 5762a8a3536805e2b15b71425a9376c191cf16cb
2017-04-27 18:16:46 +08:00
Christoph Kerschbaumer 7711007990 Bug 1359092 - Extend loadURI within nsIWebNavigation.idl by a triggeringPrincipal argument. r=bz 2017-04-25 12:22:25 +02:00
Carsten "Tomcat" Book 1fa6c5a322 Backed out changeset 3e42f84996ea (bug 1359092) for causing assertion failures 2017-04-25 10:46:31 +02:00
Christoph Kerschbaumer 10ba7f4ab5 Bug 1359092 - Extend loadURI within nsIWebNavigation.idl by a triggeringPrincipal argument. r=bz 2017-04-24 21:57:25 +02:00
Paul Bignier 27d15a14ef Bug 1356896 - Convert the shistory to use mozilla/LinkedList.h rather than prclist.h. r=erahm 2017-04-19 10:05:00 -07:00
Bevis Tseng 48348b34f0 Bug 1350177 - Part 2: Fix compiling error after ExpirationTrackerImpl is introduced. r=mystor
--HG--
extra : rebase_source : 6fcc66389037484d619ef38cbfce6b70cbb544b1
2017-03-29 15:48:47 -04:00
Jan Henning 0e575681dc Bug 1265818 - Part 2 - Add scriptable methods for getting and setting PresStates from JS. r=jst
This will allow the session store to store and restore scroll positions (and pinch zoom on Android) for past session history entries as well, whereas today only the scroll position of the current page is saved.

As a LayoutHistoryState saves its PresStates in a hash table that doesn't allow direct access to its contents if you don't already know the entry's key, we provide a function to iterate over all stored PresStates and retrieve their keys, which can then be used to get access to each individual PresState in turn. Since nsPresState is little more than a fancy struct and we don't want to have to turn it into a full-blown XPCOM-compatible interface, we just pass the scroll/zoom-related values we're interested in as in/out parameters from/to JS via the LayoutHistoryState.

We also require a helper method for initialising an SHEntry's LayoutHistoryState, since normally this doesn't happen until the PresShell wants to capture the history state in it. We on the other hand require a LayoutHistoryState to be present immediately after creation of a fresh SHEntry object, so we can feed it the session store data during history restoration.

MozReview-Commit-ID: FfZf8KDsVWl
***

--HG--
extra : rebase_source : 0b3f729bff3ac24680d6fe8a0fb796979886170b
2017-03-25 14:01:29 +01:00
Samael Wang 2c24eb7d2b Bug 1339707 - Replace NS_DispatchToCurrentThread to DocGroup / TabGroup dispatch method and set nsITimer target. r=smaug 2017-03-07 16:58:59 +08:00
Christoph Kerschbaumer 51ce795ad5 Bug 1334875 - Temporarily remove assertion that history loads pass a valid triggeringprincipal. r=jwatt 2017-03-08 13:08:59 +01:00
Xidorn Quan bb5bcf34f4 Bug 1342303 part 3 - Remove nsCOMArray::EnumerateForwards uses in docshell. r=smaug
MozReview-Commit-ID: FJen0p0c54u

--HG--
extra : rebase_source : 8e98161531189c9cf2578eb6d81835a20d707ca1
2017-02-24 21:32:20 +11:00
Wes Kocher 5bb9a497ef Backed out 6 changesets (bug 1342303) for build bustage a=backout
Backed out changeset 89137679a68c (bug 1342303)
Backed out changeset 20a1bcb47c33 (bug 1342303)
Backed out changeset bc3b2e7a383b (bug 1342303)
Backed out changeset bdc491b9ebde (bug 1342303)
Backed out changeset 5c6042dee665 (bug 1342303)
Backed out changeset b5de1dfff82f (bug 1342303)

MozReview-Commit-ID: BjlVAX480jI
2017-03-02 16:35:43 -08:00
Xidorn Quan a01dc10d87 Bug 1342303 part 3 - Remove nsCOMArray::EnumerateForwards uses in docshell. r=smaug
MozReview-Commit-ID: FJen0p0c54u

--HG--
extra : rebase_source : 8e98161531189c9cf2578eb6d81835a20d707ca1
2017-02-24 21:32:20 +11:00
Christoph Kerschbaumer 9a01e58d61 Bug 1307736 - Ensure History loads pass valid triggeringPrincipal. r=bz 2017-01-27 11:19:13 +01:00
Samael Wang 73817829d6 Bug 1326251 - Part 1: Remove dynamic entries on unloading & evicting bfcache. r=smaug
MozReview-Commit-ID: 4pBy0vO5yD9

--HG--
extra : rebase_source : 8977a9b4add96407969375c1f9c0910872771a23
2017-01-24 14:56:37 +08:00
Christoph Kerschbaumer be82c7af85 Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal. r=bz,gijs 2017-01-18 08:24:55 +01:00
Wes Kocher cb7e0bda60 Backed out 2 changesets (bug 1329032) for failures a=backout
Backed out changeset 16c4f0df527d (bug 1329032)
Backed out changeset 54f7bfe3ca11 (bug 1329032)

MozReview-Commit-ID: ChGyTdJvT8N
2017-01-17 14:08:10 -08:00
Christoph Kerschbaumer 05287d4fa8 Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal. r=bz,gijs 2017-01-17 21:52:01 +01:00
Phil Ringnalda 191c2661b5 Backed out 2 changesets (bug 1307736) for failures in browser_490040.js and test_refresh_firefox.py TestFirefoxRefresh.testReset
CLOSED TREE

Backed out changeset 338dd2c343f8 (bug 1307736)
Backed out changeset 1a71a0d9aa90 (bug 1307736)
2017-01-16 10:47:55 -08:00
Christoph Kerschbaumer 19cdb07e5c Bug 1307736 - Ensure History loads pass valid triggeringPrincipal. r=bz 2017-01-16 18:18:54 +01:00
Thomas Nguyen 0aaea58b69 Bug 1304623 - Create a pref to control the default referrer policy - part 3. r=bkelly
MozReview-Commit-ID: 1A6IHPeNYBQ
2017-01-05 11:29:56 +08:00
Samael Wang 1e9e35e6e1 Bug 1323651 - Rename Partial/GroupedSessionHistory to Partial/GroupedSHistory. r=ehsan
MozReview-Commit-ID: G2GW4ZPIfH3
2016-12-22 16:06:50 +08:00
Michael Layzell 0fa642800b Bug 1315105 - Part 2: Implement <link rel=prerender> behind a pref, r=smaug
MozReview-Commit-ID: ARET98o1FTU

--HG--
extra : rebase_source : fd549baa1a4a180db1ca6701191f081033811d0f
2016-12-19 15:05:31 +08:00
Michael Layzell 3244cf77dd Bug 1315105 - Part 1: Add support for prerendering PartialSHistories to GroupedSHistory, r=smaug
MozReview-Commit-ID: A5bwSy8NkH3

--HG--
extra : rebase_source : e87ff9754b8174f546b262f9ac7dae9157ecb130
2016-12-19 15:03:17 +08:00
Carsten "Tomcat" Book 72f817124f Backed out changeset ab6c012704b9 (bug 1315105) for failing on own test 2016-12-19 16:34:18 +01:00
Carsten "Tomcat" Book 51614d31e4 Backed out changeset 059753ec9117 (bug 1315105) for test failures in own test
--HG--
extra : rebase_source : de2846d1205d3e885c1040379f2816629a925d22
2016-12-19 15:59:14 +01:00
Michael Layzell b5fd619e72 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
Michael Layzell 64de9ea0a7 Bug 1315105 - Part 1: Add support for prerendering PartialSHistories to GroupedSHistory, r=smaug
MozReview-Commit-ID: A5bwSy8NkH3
2016-12-19 15:03:17 +08:00
Michael Layzell 1b315d2194 Bug 1320391 - Part 1: Clean up PartialSHistories which are keeping old SHEntries alive, r=ehsan
MozReview-Commit-ID: FY36NdOUM66

--HG--
extra : rebase_source : 6dea22921c7b0e27868827e78503e8a7133e9127
2016-12-15 13:28:40 +08:00
Michael Layzell 65b516822e Bug 1318767 - Part 3: Use SessionStore to recover from missing GroupedSHistory segments, r=ehsan, r=mconley
MozReview-Commit-ID: FDmQIjiHox7
2016-12-13 16:32:54 +08:00
Michael Layzell d24aef4068 Bug 1318472 - Remove inactive hidden tabs when removing the primary tab, r=ehsan
MozReview-Commit-ID: KiMsKOljNpE
2016-12-14 01:55:00 +08:00
Samael Wang cb7131182c Bug 1310768 - Use CreataAboutBlankContentViewer to stop inactive tabs. Update History API. a=ehsan
MozReview-Commit-ID: LPcaQkQ900G
2016-11-29 17:31:17 +08:00
Michael Layzell d6d2411526 Bug 944694 - Part 1: Use globally unique UUIDs for docshellID, r=smaug
MozReview-Commit-ID: DVLMijTkYKh
2016-11-17 16:50:48 -05:00
Samael Wang 966a44a7f2 Bug 1276553 - Part 1: Make nsISHistory support partial mode. r=smaug
Make nsISHistory support partial mode and create interfaces which
DOM level grouped session history should implement.

MozReview-Commit-ID: BXhBY6aJ0f7

--HG--
extra : rebase_source : bee5fd8354d2fdef8b3bac202d158c95c7e4e6e0
2016-10-14 15:18:29 +08:00
Eric Rahm a2f7bff287 Bug 1311759 - Remove unused references to nsISupportsArray. r=froydnj
This removes various references to nsISupportsArray throughtout the tree that
aren't used.

MozReview-Commit-ID: EtgD1DRwY8e
2016-10-21 16:34:42 -07:00
Bob Owen e2cf5e1e75 Bug 1309900: Fix subframe history navigation logic. r=smaug
Renamed CompareFrames to LoadDifferingEntries to make what it does more clear.
Also, use this to do the top level load for the forward / back cases as it is pretty much set up to do that already.

MozReview-Commit-ID: G8cO0jDZebR

--HG--
extra : rebase_source : 4c9f3d77ad29ad5c447efd7c702b37c5581de1ab
2016-10-20 10:33:22 +01:00
Eric Rahm f52b26bf1d Bug 1308611 - Convert nsISHEntry.refreshURIList to nsIMutableArray. r=bz
|refreshURIList| is converted to a an nsIMutableArray as nsISupportsArray is
deprecated. This attribute is only used internally and does not show up in a
textual search of the plugins repo.

nsIMutableArray is used rather than nsIArray in order to support modifying the
array as current users expect.

MozReview-Commit-ID: F0GYVFZarOQ
2016-10-10 11:36:41 -07:00
Christoph Kerschbaumer bc9a70d964 Bug 1297338 - Introduce concept of principalToInherit to docshell and scriptSecurityManager. r=bz 2016-09-20 08:36:25 +02:00
Michael Layzell e583117bfa Bug 1018486 - Part 5: Changes in docshell/ and uriloader/, r=bz
MozReview-Commit-ID: GiyHWL3aaOv
2016-09-07 10:50:41 -04:00
Nicholas Nethercote 742fc7eb48 Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:

  nsAutoCString spec;
  uri->GetSpec(spec);
  printf("uri: %s", spec.get());

to be changed to this:

  printf("uri: %s", uri->GetSpecOrDefault().get());

This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.

I will fold this into part 1 before landing.

--HG--
extra : rebase_source : ddc19a5624354ac098be019ca13cc24b99b80ddc
2016-08-26 16:02:31 +10:00
Nicholas Nethercote e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Igor 4878f6bf37 Bug 1289890 - Change nsCOMArray::ReplaceObjectAt() return type from "bool" to "void", since it always succeeds. r=froyndnj 2016-08-02 16:20:00 +02:00
Andrew McCreight fe1f4363ec Bug 1141788 - Use strong references during iteration in nsSHistory. r=smaug
MozReview-Commit-ID: DO1fJAZrYT
2016-07-29 16:08:06 -07:00
Christoph Kerschbaumer caedb13ef1 Bug 1286472: Replace owner with triggeringPrincipal within docshell. r=bz 2016-07-28 09:20:41 +02:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Carsten "Tomcat" Book c1cb5a12bd Backed out changeset 00312b136937 (bug 968273) for causing regressions 2016-06-28 10:03:25 +02:00
Nathan Froyd 150bcb573b Bug 1278925 - micro-optimize nsCOMArray appending with already_AddRefed AppendElement; r=erahm
In all of the places touched by this patch, the smart pointer we're
appending is about to become unused, so simply .forget()'ing its
reference into the appropriate nsCOMArray works just fine.
2016-06-20 18:38:10 -04:00
Jonathan Watt b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Andrea Marchesini dd6cbdac21 Bug 1271516 - Introducing nsIWebNavigation.setOriginAttributesBeforeLoading, r=smaug 2016-06-07 19:59:22 +02:00
Phil Ringnalda 035f8773be Back out 32d16086e85e (bug 1271516) for frequent ChromeUtils::IsOriginAttributesEqual assertin failures
CLOSED TREE
2016-06-06 21:07:42 -07:00
Andrea Marchesini 943c6e667c Bug 1271516 - Introducing nsIWebNavigation.setOriginAttributesBeforeLoading, r=smaug 2016-06-07 00:47:13 +02:00
Dragana Damjanovic 87fd6ae3a9 Bug 968273 - On reload load from the original uri, so that all redirects are reloader.r=mayhemer 2016-06-01 11:57:52 +02:00
Gabor Krizsanits e1127b3ff0 Bug 1262661 - part2: optimization on session storage and history messages. r=mconley 2016-05-23 12:15:15 +02:00
Chris Peterson 353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Kyle Huey 941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Carsten "Tomcat" Book ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey 48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Kyle Huey c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
sajitk 823704b8d6 Bug 1219482: Replace PRLogModuleInfo with LazyLogModule in various files.r=benjamin 2016-01-28 10:35:00 -08:00
Birunthan Mohanathas d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas 373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Wes Kocher b9d77f5943 Backed out changeset 2c56aed63687 (bug 1219482) to hopefully fix the intermittent hazard failures CLOSED TREE
--HG--
extra : commitid : 7egFNnxx2ut
2016-01-29 10:15:38 -08:00
sajitk 6fdb9b782e Bug 1219482 - Replace PRLogModuleInfo with LazyLogModule in various files. r=bsmedberg
--HG--
extra : rebase_source : 37e8f53a8aa5242058ab8fc867804cbc8940653e
2016-01-28 10:35:00 -05:00
Andrea Marchesini 8ed4c36149 Bug 1231378 - part 1 - Fix uninitialized members of classes in docshell/*, r=smaug 2016-01-12 18:16:59 +00:00
Carsten "Tomcat" Book d292fb5cca Backed out changeset 445a64a37945 (bug 1231378) for bustage on a CLOSED TREE 2016-01-12 15:49:11 +01:00
Andrea Marchesini 1d5200c92d Bug 1231378 - part 1 - Fix uninitialized members of classes in docshell/*, r=smaug 2016-01-12 13:54:52 +00:00
Olli Pettay 2b2b2cc690 Bug 1155730, implement History.scrollRestoration r=jst 2015-12-26 12:59:09 +02:00
Bogdan Postelnicu 8f0d7ea939 Bug 1231635 - give scalar mLoadReplace a default value. r=bz 2015-12-10 04:15:00 +01:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Dragana Damjanovic ba3f41bc1e Bug 1211269 - Store the information whether the channel is LOAD_REPLACE into history entry. r=bz 2015-10-05 12:33:00 +02:00
Dragana Damjanovic 5f14316a80 Bug 1185256 - Save originURI to the history. r=bz
--HG--
extra : rebase_source : 4321df591ab16127ca4cd6549fcdca7e20c2e890
2015-09-30 08:54:39 +02:00
Brian Grinstead d23fa8b95a Bug 1034110 - Provide a way to observe mutations for ::before/::after pseudo elements;r=smaug
Adds a new chrome-only MutationObserverInit option called nativeAnonymousChildList
that will cause a mutation to fire when a native anonymous root is bound or unbound
2015-09-24 08:23:32 -07:00
Chris Peterson 71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Nicholas Nethercote 6f036921dc Bug 1203427 (part 1) - Add nsExpirationTracker::mName. r=froydnj.
There are many sub-classes of nsExpirationTracker. In order to distinguish them
nicely in the logging of timer firings, it's necessary to manually name each
one. (This wouldn't be necessary if there was a way to stringify template
parameters, but there isn't.)

--HG--
extra : rebase_source : 89b99e9dbb2a806bd21145d04a5e023794643b61
2015-09-09 21:07:07 -07:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Robert O'Callahan efd3df82d6 Bug 1184842. Add aNewValue to nsIMutationObserver::AttributeWillChange. r=peterv
--HG--
extra : commitid : 8C2GnpowyCS
extra : rebase_source : 3f2948df48fe13f65425345f7b674e4e4869c861
2015-07-25 18:05:19 +12:00
Robert O'Callahan 1e49288224 Bug 1184842. Pass aOldValue to all mutation observers. r=peterv
--HG--
extra : commitid : CYjyQn3BAqb
extra : rebase_source : ef153c7cf1e08a058d8de6a76dbe7dc343a299fb
2015-07-25 18:01:19 +12:00
Eric Rahm de78cd3d8e Bug 1184284 - Remove txToRemove warning from nsSHistory::RemoveDuplicate. r=smaug 2015-07-15 13:18:57 -07:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Eric Rahm 75c4bebb79 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm f50b813989 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-03 15:22:28 -07:00
Carsten "Tomcat" Book 5471309381 Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)

--HG--
extra : rebase_source : 6fb850d063cbabe738f97f0380302153e3eae97a
2015-06-02 13:05:56 +02:00
Eric Rahm a9afd68cef Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 22:17:33 -07:00
Eric Rahm 141e0ff4a2 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 22:17:19 -07:00
Wes Kocher 4e9f80ed2e Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Eric Rahm f82c0e7caf Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 14:31:01 -07:00
Eric Rahm dc090e3fe5 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 14:31:00 -07:00
Eric Rahm 3925a960aa Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Birunthan Mohanathas e57bdf9303 Bug 1164706 - Flatten docshell/shistory/src/ directory. r=smaug
--HG--
rename : docshell/shistory/src/nsSHEntry.cpp => docshell/shistory/nsSHEntry.cpp
rename : docshell/shistory/src/nsSHEntry.h => docshell/shistory/nsSHEntry.h
rename : docshell/shistory/src/nsSHEntryShared.cpp => docshell/shistory/nsSHEntryShared.cpp
rename : docshell/shistory/src/nsSHEntryShared.h => docshell/shistory/nsSHEntryShared.h
rename : docshell/shistory/src/nsSHTransaction.cpp => docshell/shistory/nsSHTransaction.cpp
rename : docshell/shistory/src/nsSHTransaction.h => docshell/shistory/nsSHTransaction.h
rename : docshell/shistory/src/nsSHistory.cpp => docshell/shistory/nsSHistory.cpp
rename : docshell/shistory/src/nsSHistory.h => docshell/shistory/nsSHistory.h
2015-05-15 15:25:39 -07:00
Birunthan Mohanathas 81f8d4a63b Bug 1164706 - Flatten docshell/shistory/public/ directory. r=smaug
--HG--
rename : docshell/shistory/public/nsIBFCacheEntry.idl => docshell/shistory/nsIBFCacheEntry.idl
rename : docshell/shistory/public/nsISHContainer.idl => docshell/shistory/nsISHContainer.idl
rename : docshell/shistory/public/nsISHEntry.idl => docshell/shistory/nsISHEntry.idl
rename : docshell/shistory/public/nsISHTransaction.idl => docshell/shistory/nsISHTransaction.idl
rename : docshell/shistory/public/nsISHistory.idl => docshell/shistory/nsISHistory.idl
rename : docshell/shistory/public/nsISHistoryInternal.idl => docshell/shistory/nsISHistoryInternal.idl
rename : docshell/shistory/public/nsISHistoryListener.idl => docshell/shistory/nsISHistoryListener.idl
2015-05-14 20:52:05 -07:00
Andrew McCreight 597c36a9dc Bug 1163153 - Fix mode lines in docshell/. r=smaug 2015-05-08 13:37:00 +02:00
Eric Rahm 0531f32644 Bug 1162309 - Part 2: Remove instances of #ifdef PR_LOGGING in docshell. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-07 10:17:45 -07:00
Birunthan Mohanathas e174a94605 Bug 1129795 - Convert rest of docshell/ to Gecko style. r=mccr8 2015-05-06 10:57:23 -07:00
David Major ebde6b9f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -04:00
Nicolas Silva cfff5e52c5 Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
Andrew McCreight e13f897b77 Bug 1155759 - Part 2 - Use a static ref ptr for gObserver in nsSHistory. r=smaug
--HG--
extra : rebase_source : c30dfc9b5f3b771e1fc5ba0c76bf87e058c7538a
2015-04-17 15:19:00 +02:00
Andrew McCreight cc8e505792 Bug 1155759 - Part 1 - Remove some manual refcounting from docshell. r=smaug
--HG--
extra : rebase_source : 50e4e20b704dc9cf8081f6137df801d6ec0e4533
2015-04-17 15:19:00 +02:00
Nathan Froyd 4c7234747e Bug 1143651 - don't use CallQueryInterface when the compiler can do the cast for us; r=ehsan 2015-03-12 13:20:29 -04:00
Andrea Marchesini e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Alex Verstak d0c9d91dc1 Bug 1113431 - Expose referrer policy to UI code via Document and nsIWebNavigation. r=jst, sr=bz 2015-01-05 09:42:31 -08:00
Daniel Holbert 082fd9cd7f Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
This patch was generated by a script.  Here's the source of the script for
future reference:

find . \( -iname "*.cpp" -o -iname "*.h" \) | \
  xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Mike Conley 59ccb9a810 Bug 1141797. r=smaug.
--HG--
extra : rebase_source : 9f8cae40311617b1e201650c79ec96e8826f4b43
2015-03-10 18:17:24 -04:00
Ehsan Akhgari 550e972d13 Bug 1109694 - Fix more bad implicit constructors in DOM; r=baku 2014-12-10 17:49:09 -05:00
Olli Pettay 3324f67238 Bug 1102975 - Add a pref to control the content viewer expiration time in bfcache, r=khuey
--HG--
extra : rebase_source : 6fb403cdb1b73fa8e1f61945ddfd3bfe8e75a92d
2014-12-04 11:04:36 -08:00
Owen Chu 50259ae67d Bug 704320 - Parse and implement meta tag-based referrer policies for documents and nsHttpChannels. (r=bz,mcmanus) 2014-11-18 08:46:29 -05:00
Olli Pettay 65ad793583 Bug 1090918 - Multiple History items when visiting links and using 'Back', r=bz
--HG--
extra : rebase_source : ce5b34fff505a4dc0d98b8cc384e84d33bc0aed1
2014-11-13 20:19:20 +02:00
Olli Pettay 2749a2b6be Bug 1089438, reduce sanitizer warning spew, r=jst
--HG--
extra : rebase_source : d081dc4d4560b24dfa6b67464070dcb6559a4852
2014-10-27 23:23:06 +02:00
Trevor Saunders fd5e9d1fcc bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj 2014-08-05 13:33:55 -04:00
Ehsan Akhgari f37662af0a Bug 1048242 - Fix more bad implicit constructors in docshell; r=smaug 2014-08-05 09:19:03 -04:00
Benoit Jacob 5023541089 Bug 1028588 - Fix dangerous public destructors in docshell/ - r=smaug 2014-06-23 14:49:08 -04:00
Honza Bambas 4b98e16e4c Bug 999577 - disable addon access to cache v1 IDLs, r=michal+jduell 2014-06-05 20:14:07 +02:00
Ryan VanderMeulen 006487470f Backed out changeset d405928cb934 (bug 999577) and changeset 940d041073c7 (bug 938186) for xpcshell failures.
CLOSED TREE
2014-06-05 13:32:04 -04:00
Honza Bambas 995070a4f7 Bug 999577 - disable addon access to cache v1 IDLs, r=michal+jduell 2014-06-05 18:27:38 +02:00
Birunthan Mohanathas 5f1fde8824 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Steven MacLeod 68cd3b0f84 Bug 981900 - Add OnHistoryReplaceEntry to nsISHistoryListener to handle history.replaceState. r=smaug 2014-04-24 15:12:15 -04:00
James Kitchener 9cd328df03 Bug 464222 - Allow URI loads with a base URI argument. r=bz 2014-02-20 08:43:53 -05:00
Carsten "Tomcat" Book 57ac46f7cc merge fx-team to mozilla-central 2014-02-07 09:52:32 +01:00
Emanuel Hoogeveen 72194ae795 Bug 943339 - Part 1: Only store a subset of session history entries to file. r=Yoric 2014-02-06 20:15:59 -05:00
James Kitchener 1165641363 Bug 964239 - Docshell and session history changes to add baseURI information to srcdoc loads. r=bz 2014-02-06 09:46:29 -05:00
Trevor Saunders ff0491aef6 bug 331376 - merge nsIDocShellTreeNode into nsIDocShellTreeItem r=smaug 2014-01-06 17:34:15 -05:00
Ehsan Akhgari 1b83407ce9 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Trevor Saunders c5ae45823c bug 939049 - staticly type nsIDocument::mDocumentContainer and nsDocumentViewerContainer::mContainer r=smaug 2013-11-15 02:12:43 -05:00
Chris Peterson 4084af6e4b Bug 940225 - Build docshell in unified mode. r=bz 2013-11-18 21:39:08 -08:00
Phil Ringnalda bcebbd2882 Back out babac1cc0741:ad287f78608a (bug 939049) for OS X build bustage
CLOSED TREE
2013-11-19 07:35:17 -08:00
Trevor Saunders 59fa7cd72f bug 939049 - staticly type nsIDocument::mDocumentContainer and nsDocumentViewerContainer::mContainer r=smaug 2013-11-15 02:12:43 -05:00
Mike Hommey 2812d11fce Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey e06d795c71 Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps 2013-11-19 11:48:10 +09:00
Mike Hommey 26bc04d200 Bug 939044 - Rename remaining MODULE definitions to XPIDL_MODULE. r=mshal 2013-11-19 11:47:43 +09:00
Mike Hommey e80e877ab7 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey ffe0380912 Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Christoph Kerschbaumer e63ecad6f4 Bug 906190 - Persist 'disable protection' option for Mixed Content Blocker in child tabs - update load-reload inconsistency. r=tanvi, r=smaug 2013-09-05 10:59:13 -07:00
Mike Hommey b000a846c2 Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
Mike Hommey 59a17d0f20 Bug 921492 - Make StrictOrderingOnAppendList use actual alphabetical sorting. r=mshal,r=gps 2013-10-24 08:05:43 +09:00
Bill McCloskey 8ce7e1b22b Bug 920881 - Fix assertion in nsSHistory::EvictOutOfRangeWindowContentViewers (r=smaug) 2013-09-30 12:24:33 -07:00
Ehsan Akhgari b5889f412e Bug 919330 - Minimize the #includes in docshell/ IDL files; r=bzbarsky
--HG--
extra : rebase_source : ddae0c7f915c086fcd98bda168ab127764d4f7fc
2013-09-22 19:25:21 -04:00
Trevor Saunders fd75268a64 bug 915566 - rm some makefiles in docshell/ r=ted 2013-09-12 03:50:04 -04:00
Mike Hommey f8bc7fa754 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Ehsan Akhgari f2299a7d0e Bug 912195 - Minimize the #includes in docshell/shistory; r=bzbarsky 2013-09-04 11:26:20 -04:00
Tim Taubert 001962a236 Bug 910161 - Remove nsIHistoryEntry and replace it with nsISHEntry; r=bz 2013-08-30 06:14:59 +02:00
Ms2ger bdfaa84f5b Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps 2013-08-22 08:56:01 +02:00
Ms2ger 4fb1aa6786 Bug 883284 - Part c: Move LIBXUL_LIBRARY into moz.build (d-e); r=mshal 2013-08-22 08:56:00 +02:00