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

433 Коммитов

Автор SHA1 Сообщение Дата
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