Commit Graph

198 Commits

Author SHA1 Message Date
Vedant Sareen
a029df9f98 Bug 1323134 - Stop setting the crop attribute on tabs. r=dao 2016-12-18 19:09:27 +01:00
Matheus Longaray
55f42e68bd Bug 1306294 - Filters out not worth-saving tabs from session state. r=mikedeboer 2016-12-06 03:30:00 -05:00
Michael Layzell
0bfea928aa Bug 1318767 - Part 1: When performing SessionRestore on a GroupedSHistory tab, ensure that it reverts to a complete SHistory state before restoring, r=mikedeboer
MozReview-Commit-ID: 2zNXDtkx3bs
2016-11-24 10:45:00 +08:00
Bob Silverberg
172148a513 Bug 1308061 - Implement sessionstore-closed-objects-changed event, r=mikedeboer
MozReview-Commit-ID: 7pBrvAhVQHP
2016-11-25 10:32:08 -05:00
Bob Owen
432572b6f3 Bug 1147911 Part 2: Add a remote type property and use it to drive the process switching in frontend code. r=gijs, r=jryans, r=mikedeboer 2016-11-24 15:08:30 +00:00
Sebastian Hengst
d9dbaf74fb Backed out changeset 5b26ae9afaea (bug 1147911) 2016-11-23 18:33:10 +01:00
Bob Owen
a7d454bdcc Bug 1147911 Part 2: Add a remote type property and use it to drive the process switching in frontend code. r=gijs, r=jryans, r=mikedeboer 2016-11-23 13:36:57 +00:00
Carsten "Tomcat" Book
0976216719 Backed out changeset 4b75d4672954 (bug 1306294) for bc5 test failures 2016-11-23 12:44:02 +01:00
Matheus Longaray
fad0a44074 Bug 1306294 - "Restarting browser while Simplify Page mode on, restores 2 new empty tabs". r=mdeboer 2016-11-22 06:30:00 +08:00
Michael Layzell
05a0daefad Bug 1310771 - Part 3: Add support to SessionStore for recording history for GroupedSHistories, r=mikedeboer
MozReview-Commit-ID: Ffq7h3zRUm3
2016-11-18 16:00:43 -05:00
Sebastian Hengst
16ad987153 Backed out changeset 5cffb4645bc0 (bug 1147911) 2016-11-18 00:58:52 +01:00
Bob Owen
6dc9342a41 Bug 1147911 Part 2: Add a remote type property and use it to drive the process switching in frontend code. r=gijs, r=jryans, r=mikedeboer 2016-11-17 15:48:52 +00:00
Michael Layzell
f01bca82f1 Bug 1317705 - Pass aRestoreImmediately through to SessionStoreInternal, r=Yoric a=kwierso CLOSED TREE
MozReview-Commit-ID: ENRssR9Wmun
2016-11-15 12:02:23 -08:00
Wes Kocher
94aee368b6 Backed out changeset 100920157ed0 (bug 1317705) for bc4 failures a=backout 2016-11-15 11:33:15 -08:00
Michael Layzell
3403986f35 Bug 1317705 - Pass aRestoreImmediately through to SessionStoreInternal, r=Yoric
MozReview-Commit-ID: ENRssR9Wmun
2016-11-15 11:32:42 -05:00
Kevin Jones
f67992c0fc Bug 1315222 - Rename the TabBrowserCreated event to TabBrowserInserted. r=dao 2016-11-05 09:01:11 +01:00
Wes Kocher
5fe2107617 Merge central to inbound a=merge 2016-11-02 17:31:08 -07:00
Geoff Brown
131dda1304 Bug 1313397 - Move browser/components/sessionstore/Utils.jsm to toolkit/modules; r=mikedeboer 2016-11-02 10:56:20 -06:00
Bob Silverberg
cb45147847 Bug 1309880 - Support undoing closeTab and closeWindow by ID, r=mikedeboer
MozReview-Commit-ID: 6CoJPyjUpHH
2016-10-28 08:15:11 -04:00
Michael Layzell
cb46a4fd67 Bug 1304140 - Part 1: Implement support for the Large-Allocation header behind the dom.largeAllocationHeader.enabled pref, r=smaug
MozReview-Commit-ID: 5KBIu6Fc3Ea
2016-10-31 16:38:54 -04:00
Will Wang
d431127978 Bug 1255977 - Resolve promise once flushing timeout or crash observed. r=yoric
MozReview-Commit-ID: Bjd59RPzcw2
2016-10-21 18:23:32 +08:00
Bob Silverberg
5f251b831f Bug 1309702 - Update getClosedTabData and getClosedWindowData in SessionStore.jsm to not return JSON, r=mikedeboer
MozReview-Commit-ID: 9SevLkTp0G7
2016-10-14 07:12:18 -04:00
Mike Conley
bf28a85b69 Bug 1241459 - Background tab crashes should only show about:tabcrashed for first selected tab. r=Felipe,mikedeboer
When a content process crashes for a tab that is not currently visible to the user (which
can occur if the user is looking at only non-remote tabs, or tabs in other content processes),
then we will only show the tab crash page for the first crashed tab that is selected
by the user. The rest of the tabs will restore on demand.

MozReview-Commit-ID: 1JBAp8diHXp
2016-09-30 15:06:49 -04:00
Steven Englehardt
0f14c6f982 Bug 1294866 - Part 2: Storing the loadingPrincipal used to load favicons in SessionStore. r=mikedeboer 2016-09-13 21:18:37 +08:00
Sebastian Hengst
2e47f0965a Backed out changeset 865501b808e3 (bug 1287330) for frequent timeouts in browser_async_remove_tab.js with e10s on Linux debug. r=backout 2016-08-21 16:45:16 +02:00
Allasso Travesser
5a023ca6cd Bug 1287330 - Insert tabs' linkedBrowser lazily into the document. r=dao 2016-08-19 17:46:04 +02:00
Dão Gottwald
fb5382fbfb Bug 1292542 - Remove unused 'window' variable in SessionStoreInternal._resetLocalTabRestoringState. r=dao 2016-08-16 20:36:31 +02:00
Wes Kocher
5b870e1886 Merge m-c to inbound, a=merge 2016-08-15 14:53:49 -07:00
Mike Conley
ec8ee45995 Bug 1290280 - Improve the logic for flipping the remoteness of the initial browser back to non-remote. r=mikedeboer
The code that checks to see whether or not we should flip the remoteness of a browser
before loading the session state into it wasn't accounting for the fact that oftentimes,
restoreImmediately isn't included, so it's undefined, which coerces to "false-y".

This caused us to very quickly destroy a TabParent, very soon after creating it. In
some cases, the IPC layer seems to not like that, and throws an OnChannelError,
which causes the TabParent ActorDestroy method to be called with an abnormal
shutdown reason, which causes the tab crash observer to fire, which bubbles the
tab crash event.

We should probably make the IPC layer more resilient to this sort of thing, but
we should also probably not flip remoteness when we really don't need to.

Now instead, when restoring a tab, we detect whether or not it's going to
be restored automatically in the near future. If it's not going to be
restored automatically, and the browser is remote, we flip its remoteness -
otherwise we leave it alone.

MozReview-Commit-ID: 5AmPHvzDZlX
2016-08-09 13:32:21 -04:00
Sebastian Hengst
6064ec1e6c Backed out changeset 1e57110913fc (bug 1290280) for timeouts of added test and remoteness issues e.g. in cookie tests like browser_423132.js. r=backout 2016-08-13 15:27:48 +02:00
Mike Conley
83fa1cfc69 Bug 1290280 - Improve the logic for flipping the remoteness of the initial browser back to non-remote. r=mikedeboer
The code that checks to see whether or not we should flip the remoteness of a browser
before loading the session state into it wasn't accounting for the fact that oftentimes,
restoreImmediately isn't included, so it's undefined, which coerces to "false-y".

This caused us to very quickly destroy a TabParent, very soon after creating it. In
some cases, the IPC layer seems to not like that, and throws an OnChannelError,
which causes the TabParent ActorDestroy method to be called with an abnormal
shutdown reason, which causes the tab crash observer to fire, which bubbles the
tab crash event.

We should probably make the IPC layer more resilient to this sort of thing, but
we should also probably not flip remoteness when we really don't need to.

Now instead, when restoring a tab, we detect whether or not it's going to
be restored automatically in the near future. If it's not going to be
restored automatically, and the browser is remote, we flip its remoteness -
otherwise we leave it alone.

MozReview-Commit-ID: 5AmPHvzDZlX
2016-08-09 13:32:21 -04:00
fiveNinePlusR
26cec6a132 Bug 1289213 - Part 1: Add ability to duplicate tabs lazily from the session store. r=kmag 2016-08-01 16:35:52 -07:00
Wes Kocher
f687037ad0 Backed out changeset 1c7f1b07be44 (bug 1290280) for failures in browser_remoteness_flip_on_restore.js a=backout 2016-08-11 14:43:09 -07:00
Mike Conley
924ab0a955 Bug 1290280 - Improve the logic for flipping the remoteness of the initial browser back to non-remote. r=mikedeboer
The code that checks to see whether or not we should flip the remoteness of a browser
before loading the session state into it wasn't accounting for the fact that oftentimes,
restoreImmediately isn't included, so it's undefined, which coerces to "false-y".

This caused us to very quickly destroy a TabParent, very soon after creating it. In
some cases, the IPC layer seems to not like that, and throws an OnChannelError,
which causes the TabParent ActorDestroy method to be called with an abnormal
shutdown reason, which causes the tab crash observer to fire, which bubbles the
tab crash event.

We should probably make the IPC layer more resilient to this sort of thing, but
we should also probably not flip remoteness when we really don't need to.

Now instead, when restoring a tab, we detect whether or not it's going to
be restored automatically in the near future. If it's not going to be
restored automatically, and the browser is remote, we flip its remoteness -
otherwise we leave it alone.

MozReview-Commit-ID: 5AmPHvzDZlX
2016-08-09 13:32:21 -04:00
Carsten "Tomcat" Book
d2f14b0140 merge fx-team to mozilla-central a=merge 2016-08-05 12:00:16 +02:00
Dão Gottwald
b32713f125 Bug 1292095 - Implement SSWindowRestored event and use it instead of SSWindowStateReady for the Ctrl+Tab panel. r=mdeboer 2016-08-04 18:58:00 +02:00
Mike Conley
4a22f22c55 Bug 1291860 - Don't flip remoteness of pinned tabs on session restore. r=mikedeboer
The initial browser of new windows starts remote now. When restoring a session,
if we're restoring content into the initial tab and it's going to be loaded
on demand, then we would flip it to non-remote so that it can't background crash.

We'd do this for pinned tabs too, which is silly, since pinned tabs load ASAP.

This patch causes us to skip the remoteness flip if the tab we're restoring
is pinned.

MozReview-Commit-ID: 9eQzfLADzlQ
2016-08-03 16:34:20 -04:00
Dão Gottwald
9ddd0e915e Bug 1292049 - Prevent tab.lastAccessed from being set to a discrete value when the tab is selected. r=mdeboer 2016-08-04 14:41:15 +02:00
Dão Gottwald
abc7ceae3a Backed out changeset 510f0b4792de 2016-08-04 14:21:56 +02:00
Dão Gottwald
e37e7e2e5e Bug 1292049 - Prevent tab.lastAccessed from being set to a discrete value when the tab is selected. r=mdeboer 2016-08-04 11:33:15 +02:00
Jonathan Hao
3e43192e96 Bug 1289571 - Set browser's userContextId before updateRemoteness in restoreTabContent. r=mikedeboer 2016-07-28 23:54:00 +02:00
Mike Conley
3573171604 Bug 1261842 - When putting the initial tab into the restored background state, flip it to non-remote. r=mikedeboer
MozReview-Commit-ID: BX8XbYjJHGf
2016-06-03 14:12:21 -04:00
Pushpankar
77a14e357c Bug 1286854 - Replace ownerDocument.defaultView with ownerGlobal in browser/. r=dao 2016-07-16 10:20:04 +02:00
Allasso Travesser
145ed7dab5 Bug 1285789 - Implement TabBrowserCreated event. r=dao 2016-07-15 16:10:27 +02:00
Mike Conley
9f9f65c5e6 Bug 1284687 - Hide windows on shutdown while persisting session instead of closing them. r=billm
We were closing the windows before to improve perceived shutdown
performance, but we end up in a state where we're likely to miss
out on the last ~2 seconds of session activity for most tabs per
window. This is because we were removing the session update
message listeners and resolving the flush Promises once the
domwindowclosed notification fired for the window.

Hiding the window allows us to wait for the messages properly.

What's more, we weren't even collecting the window state after
we had flushed, so we have _always_ been missing (in the worst
case) about 2 seconds of session state per window. This addresses
that.

MozReview-Commit-ID: BEOIHV4EErf
2016-07-07 15:04:52 -04:00
Mike Conley
8ff25826bd Bug 1271607 - Pinned tabs should not restore as non-remote. r=mikedeboer
App tabs load immediately, and so there's no point in causing the remoteness
flipping machinery to kick off by making the pinned tabs non-remote by default.

MozReview-Commit-ID: 48O2mJSHurr
2016-06-29 13:49:57 -04:00
Jonathan Kew
01cccabd3f Bug 1276516 - When restoring window positions from a saved session, allow the window bounds to extend a few pixels beyond the screen edges before deciding to override the saved position and force the window entirely within the screen's visible area. r=mikedeboer 2016-06-02 12:35:56 +01:00
Yoshi Huang
b690c760e7 Bug 1274461 - Part 2: restore tabs should preserve userContextId. r=mikedeboer 2016-06-03 15:01:03 +08:00
Yoshi Huang
40afbc460a Bug 1274461 - Part 1: undoCloseTab should preserve userContextId. r=mikedeboer 2016-06-03 15:01:03 +08:00
Carsten "Tomcat" Book
d72f08e97e Merge mozilla-central to fx-team 2016-06-01 15:09:07 +02:00