Commit Graph

142 Commits

Author SHA1 Message Date
Gijs Kruitbosch
83d5307a65 Bug 1241085 - fix issues with about:newtab and other initial pages whose URIs now persist after session restore, r=mconley
MozReview-Commit-ID: BbzOSwFucf6
2016-05-06 09:11:33 +01:00
Gijs Kruitbosch
d06478992a Bug 1241085 - part 3: actually fix about:privatebrowsing clearing the URL bar, r=mconley
MozReview-Commit-ID: JB3GPKsfmTs
2016-04-28 20:03:38 +01:00
Gijs Kruitbosch
bb3cc1f15c Bug 1241085 - part 2: rip out userTypedClear and replace it with more self-documenting stuff, r=mconley
userTypedClear was used for two cases:
1) to keep track of whether we were in the middle of a loadURI call. This use is replaced by inLoadURI, which is
more sane when using e10s (though it's hard to be precise there because we're sending all web navigation calls to
the content process and this introduces a degree of asynchronousness that we just have to live with...).
2) to keep track of whether we were between a network start and a corresponding network stop, and whether the user
typed since the load properly started. This is now tracked on a small object on the browser binding, which has
appropriately named method so we're not just incrementing some magic number but actually understand what
we're saying, and so the information we get out (did the user type since this load started or not?) makes sense.

Note that we're keeping userTypedClear in session store information in order to remain backwards compatible.
It becomes a simple boolean-stored-as-int (1 or 0) that indicates whether we quit/crashed/stopped while a load
was pending, or not.

MozReview-Commit-ID: 5NbmVueocC7
2016-04-28 19:51:36 +01:00
Gijs Kruitbosch
a4845b609f Backed out changesets b386e97721cf, 386b9c750bd2, 3c86861912bb (bug 1241085) because the about:newtab URI is now kept across sessions, a=backout-with-approval-from-ryanvm
MozReview-Commit-ID: EVv6M6x9F44
2016-05-05 17:45:58 +01:00
Gijs Kruitbosch
9912012213 Bug 1241085 - part 3: actually fix about:privatebrowsing clearing the URL bar, r=mconley
MozReview-Commit-ID: JB3GPKsfmTs
2016-04-28 20:03:38 +01:00
Gijs Kruitbosch
3e97b45a10 Bug 1241085 - part 2: rip out userTypedClear and replace it with more self-documenting stuff, r=mconley
userTypedClear was used for two cases:
1) to keep track of whether we were in the middle of a loadURI call. This use is replaced by inLoadURI, which is
more sane when using e10s (though it's hard to be precise there because we're sending all web navigation calls to
the content process and this introduces a degree of asynchronousness that we just have to live with...).
2) to keep track of whether we were between a network start and a corresponding network stop, and whether the user
typed since the load properly started. This is now tracked on a small object on the browser binding, which has
appropriately named method so we're not just incrementing some magic number but actually understand what
we're saying, and so the information we get out (did the user type since this load started or not?) makes sense.

Note that we're keeping userTypedClear in session store information in order to remain backwards compatible.
It becomes a simple boolean-stored-as-int (1 or 0) that indicates whether we quit/crashed/stopped while a load
was pending, or not.

MozReview-Commit-ID: 5NbmVueocC7
2016-04-28 19:51:36 +01:00
Gijs Kruitbosch
1f48f5aa92 Bug 1267289 - add more URL bar tests and fix issue with error pages, r=mikedeboer,mconley
This adds tests for issues brought up in bug 231393, bug 264610, bug 302575 and bug 1129564,
all of which fed into the current implementation of userTypedClear/userTypedValue. I intend
to move us away from userTypedClear, but I'm keen not to regress any of these issues, so
I'm adding automated tests to ensure that doesn't happen.

MozReview-Commit-ID: 1up2MIXzkzG
2016-04-25 17:27:35 +01:00
Mike Conley
9b7c02c972 Bug 1260461 - Don't flush windows when shutting down due to a Windows log-out. r=jimm
MozReview-Commit-ID: 3WWgPTxzdcz
2016-04-01 17:15:37 -04:00
Mike Conley
2b0d366f57 Bug 1261657 - Don't record SSTabRestored events in StartupPerformance that are the result of a remoteness flip. r=Yoric
MozReview-Commit-ID: 2pnT2DdKPHV
2016-04-03 00:30:14 -04:00
Jonathan Kew
e9da3d12b0 Bug 1259707 - Fix confusion between desktop and CSS pixels when session-restore is constraining window to the available screen space. r=emk 2016-03-26 13:12:47 +00:00
Mike Conley
f9e835a3d6 Bug 1228652 - Check for window.closed after flushing messages in navigateAndRestore. r=mossop
MozReview-Commit-ID: 9Cgxg9A61O7
2016-02-28 20:36:47 -05:00
Mike Conley
78f75eb1ea Bug 1195295 - Remove SessionStore's SyncHandler since all tab and window flushing is now async. r=ttaubert
MozReview-Commit-ID: 5UrQj1UUKDE
2015-12-01 14:34:25 -05:00
Dão Gottwald
0debf7316f Bug 1014185 - Remove about:customizing and use about:blank for customize mode instead. r=jaws 2016-02-20 14:03:25 +01:00
Carsten "Tomcat" Book
6a9ce8a5af Backed out changeset c34fe673bb97 (bug 1014185) for perma failures in browser_bug1163570.js 2016-02-19 17:19:19 +01:00
Dão Gottwald
b454fc92a1 Bug 1014185 - Remove about:customizing and use about:blank for customize mode instead. r=jaws 2016-02-19 00:50:17 +01:00
Allasso Travesser
cc2e15b09c Bug 1241837 - Use proxy for browsers property in tabbrowser instead of explicit array. r=dao 2016-02-16 16:34:38 +01:00
Kris Maglione
bb24c75487 Bug 1244496: Add more detail to TabOpen/TabClose events for tabs moved between windows. r=Gijs
MozReview-Commit-ID: 9YHaVlMW0T6
2016-02-10 17:52:53 -08:00
Kris Maglione
0eedc58ba7 Bug 1238311: Part 2 - Persist tab mutedInfo in sessionstore. r=ehsan 2016-01-26 17:05:42 -08:00
Jonathan Kew
657b233fdc Bug 890156 - patch 6 - Update window placement code to work with desktop pixels, for per-monitor DPI support on Windows. r=emk 2015-12-03 13:19:50 +00:00
Till Schneidereit
2be2015088 Bug 1101817 - Part 1: Remove usages of WeakMap.prototype.clear from Gecko. r=yzen,mak,yoric,gijs,jlongster 2016-01-04 13:06:50 +01:00
David Rajchenbach-Teller
3a85c6bc9f Bug 1214158 - New module StartupPerformance to monitor the duration of restoration of initial tabs;r=mconley 2015-11-26 18:01:56 +01:00
Shu-yu Guo
90b93e6d5b Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Andrea Marchesini
58de5f5e42 Bug 1193854 - Restoring userContextIds with the browser session - part 2 - restore the UI, r=ttaubert 2016-01-05 21:01:13 +00:00
Andrew McCreight
720e278561 Backed out changeset 18eec0849a1f (Bug 1195295) for leaking.
This changeset is causing shutdown leaks (bug 1234697 and bug 1220517).
2015-12-23 15:59:15 -05:00
Mike Conley
415e22c19d Bug 1195295 - Remove SessionStore's SyncHandler since all tab and window flushing is now async. r=ttaubert 2015-12-01 14:34:25 -05:00
Mike Conley
33ccbee547 Bug 1225921 - Have SessionStore keep a list of window data that might be saved during a flush. r=billm
This helps us keep track of what windows we've chosen to forget, and helps
us avoid the problem of accidentally saving a window we've chosen to forget.
2015-12-02 13:48:19 -05:00
Mike Conley
c8bbf9627b Bug 1177310 - Don't flush windows synchronously on application shutdown. r=billm,feedback=ttaubert
Instead of synchronously flushing the windows, we use AsyncShutdown to
wait for all window flushes to finish.
2015-11-13 14:46:37 -05:00
Mike Conley
bd1629f0e1 Bug 1177310 - TabStateFlusher Promises should always resolve. r=Yoric
They'll always resolve, but might receive a negative success state
and a message. We're doing this so that we can maintain a Set of
in-flight flushes that we can call Promise.all on (which will
fast-fail if any Promise rejects, or will just never resolve if
one or more of the Promises never resolve).
2015-11-24 18:41:32 -05:00
Gijs Kruitbosch
cde9701b62 Bug 1222490 - part 2: remove traces of tabview from XUL/XBL/JS in other parts of browser/, r=ttaubert 2015-12-01 10:48:11 +00:00
Mike Conley
d86272cd93 Bug 1227444 - Remove a closed window from _windows right away without waiting for a flush to complete. r=billm 2015-11-24 18:11:33 -05:00
Christoph Kerschbaumer
3d6bec528f Bug 1119386 - Part 3: Use document's principal for favicons in browser (r=billm) 2015-11-24 13:32:10 -08:00
Mike Conley
40f5e88d5b Bug 1209689 - Force tab restoration on demand when crashed tabs are revived. r=felipe 2015-11-10 21:48:06 -05:00
Mike Conley
9f57c0f6b5 Bug 1209689 - Ensure browsers are properly removed from SessionStore's crashedBrowser set. r=Mossop 2015-11-03 12:21:43 -05:00
Mike Conley
b17b352424 Bug 1209689 - Tabs that haven't yet been restored should not crash. r=Mossop 2015-10-28 15:25:03 -04:00
Mike Conley
0945bbbc2e Bug 1220929 - Remove crashed tab / browser count from SessionStore. r=Mossop 2015-11-02 20:30:54 -05:00
Mike Conley
b72e19ba7a Bug 1213650 - Stash the last value of lastArguments to navigateAndRestore to restore with. r=Mossop 2015-11-16 16:58:12 -05:00
Mike Conley
dffbc77f29 Bug 1171708 - Fix SessionStore tests to account for async window flushing. r=billm 2015-11-16 16:17:29 -05:00
Mike Conley
7e679e2f0f Bug 1171708 - Have SessionStore asynchronous collect window information on close. r=billm 2015-11-12 14:21:21 -05:00
Mike Conley
0da8f672ce Bug 1171708 - Use localName when detecting <xul:browsers> for XULFrameLoaderCreated. r=billm
We were using tagName before, which is fine for the dynamically created browsers
in new tabs, but not fine for the initial browser tab, which has a tagName of
"xul:browser" instead of "browser". Using localName makes sure that we don't
get the XML namespace included with the node name. We check the XUL namespace
separately be checking the namespaceURI.
2015-11-06 13:59:47 -05:00
Nigel Babu
a10291ab70 Backed out 8 changesets (bug 1171708) for bustage in it's own tests ON A CLOSED TREE
Backed out changeset cae56980cbec (bug 1171708)
Backed out changeset c60c33f9b573 (bug 1171708)
Backed out changeset 96830bc690b6 (bug 1171708)
Backed out changeset e1fcd236bdd3 (bug 1171708)
Backed out changeset 9a48c1d22248 (bug 1171708)
Backed out changeset 020345f46fbd (bug 1171708)
Backed out changeset 6098e098d9eb (bug 1171708)
Backed out changeset c67eefd6cf4d (bug 1171708)
2015-11-19 17:49:38 +05:30
Mike Conley
0b48b019c1 Bug 1171708 - Add tests for async window flushing. r=billm 2015-11-17 12:26:33 -05:00
Mike Conley
a6d558f918 Bug 1171708 - Fix SessionStore tests to account for async window flushing. r=billm 2015-11-16 16:17:29 -05:00
Mike Conley
22a7cce60e Bug 1171708 - Have SessionStore asynchronous collect window information on close. r=billm 2015-11-12 14:21:21 -05:00
Mike Conley
a882f71882 Bug 1171708 - Use localName when detecting <xul:browsers> for XULFrameLoaderCreated. r=billm
We were using tagName before, which is fine for the dynamically created browsers
in new tabs, but not fine for the initial browser tab, which has a tagName of
"xul:browser" instead of "browser". Using localName makes sure that we don't
get the XML namespace included with the node name. We check the XUL namespace
separately be checking the namespaceURI.
2015-11-06 13:59:47 -05:00
Wes Kocher
32279efc3e Backed out 8 changesets (bug 1171708) for browser_354894_perwindowpb.js failures CLOSED TREE
Backed out changeset a1ac4564029c (bug 1171708)
Backed out changeset 9f55b32f4440 (bug 1171708)
Backed out changeset 7031b88f0200 (bug 1171708)
Backed out changeset c4b23403e71f (bug 1171708)
Backed out changeset 32196b22b454 (bug 1171708)
Backed out changeset 4778fe17087a (bug 1171708)
Backed out changeset 451741a8b932 (bug 1171708)
Backed out changeset 82c9750d88e2 (bug 1171708)
2015-11-18 16:32:24 -08:00
Mike Conley
99c0c8414c Bug 1171708 - Add tests for async window flushing. r=billm 2015-11-17 12:26:33 -05:00
Mike Conley
38b2a421ef Bug 1171708 - Fix SessionStore tests to account for async window flushing. r=billm 2015-11-16 16:17:29 -05:00
Mike Conley
b0abd90599 Bug 1171708 - Have SessionStore asynchronous collect window information on close. r=billm 2015-11-12 14:21:21 -05:00
Mike Conley
b4f5c0e60a Bug 1171708 - Use localName when detecting <xul:browsers> for XULFrameLoaderCreated. r=billm
We were using tagName before, which is fine for the dynamically created browsers
in new tabs, but not fine for the initial browser tab, which has a tagName of
"xul:browser" instead of "browser". Using localName makes sure that we don't
get the XML namespace included with the node name. We check the XUL namespace
separately be checking the namespaceURI.
2015-11-06 13:59:47 -05:00
Jason Orendorff
e51d446148 Bug 1216623 - Part 1: Rename some loop variables to avoid conflicts with ES6 scoping rules. r=fitzgen, r=ttaubert, r=MattN, r=gps. 2015-10-26 16:33:59 -05:00