Commit Graph

289 Commits

Author SHA1 Message Date
Beekill95
56f93ea8c0 Bug 1383073 - Move speculativeConnectOnTabHover to tabbrowser.xml so we don't have to worry about clearing mouseover listeners from tabs. r=dao.
MozReview-Commit-ID: 6Q0EvtJGEIg
2017-07-28 15:03:30 +07:00
Ryan VanderMeulen
af0aa4cb17 Merge m-c to inbound. a=merge 2017-07-21 09:40:28 -04:00
Beekill95
be4e60944f Bug 874533 - Part 1: Speculative connect when users hover mouse on a tab or when restoring tabs automatically. r=mikedeboer
MozReview-Commit-ID: aJUyM4z3Nh
2017-06-23 10:27:32 +07:00
Tim Taubert
ebe9275441 Bug 1348816 - Remove PageStyle collection/restoration from SessionStore r=mikedeboer 2017-07-21 10:35:20 +02:00
Sebastian Hengst
fd630d5ad3 Backed out changeset 36fe0b0b3b4c (bug 874533) for eslint failures, e.g. in browser/components/sessionstore/SessionStore.jsm:3437. r=backout 2017-07-18 18:22:24 +02:00
Beekill95
e1df6753f7 Bug 874533 - Part 1: Speculative connect when users hover mouse on a tab or when restoring tabs automatically. r=mikedeboer
MozReview-Commit-ID: aJUyM4z3Nh
2017-06-23 10:27:32 +07:00
Dão Gottwald
1262916843 Bug 1367630 - part 4: Don't claim that the stored title is a content title when it's really the page's URL. r=mikedeboer
MozReview-Commit-ID: 6VKZFmEv8WN
2017-07-14 09:50:41 +02:00
Beekill95
d6972c29f0 Bug 1331932 - Suppress window animations while we're restoring window dimension. r=mikedeboer,jimm,mstange 2017-06-22 14:27:05 +07:00
Carsten "Tomcat" Book
5d237abf55 Backed out changeset ad0560789e1e (bug 1331932) 2017-07-04 09:53:11 +02:00
Beekill95
1401857ea2 Bug 1331932 - Suppress window animations while we're restoring window dimension. r=mikedeboer,jimm,mstange 2017-06-22 14:27:05 +07:00
Alastor Wu
044f0cd4cb Bug 1351925 - remove blockMedia() and related tests. r=baku
The intermittent failure is caused by the innate drawback of the present test,
it doesn't be consistent with the behavior how we actually block the media.

Since we always block media implicit, it would be set in nsGlobalWindow's ctor.
We would never call blockMedia directly, so we can remove the function.

MozReview-Commit-ID: IjYJi5OHQ3X
2017-06-30 12:16:43 -07:00
Alastor Wu
88eba98907 Bug 1347791 - part4 : keep tab's block state consistent after session restore. r=dao,mikedeboer
If the tab was resumed before, it could start playing any autoplay media without user's
permission after session restore.

MozReview-Commit-ID: C3DHIIsLtJA
2017-06-29 05:46:28 -07:00
Florian Quèze
b622c2b081 Bug 1368456 - Remove imports of Promise.jsm from Firefox, r=mconley. 2017-06-23 11:25:18 +02:00
Dão Gottwald
be10d10d8a Bug 1365541 - Re-implement reusing the selected tab when restoring a window to fix FX_SESSION_RESTORE_RESTORE_WINDOW_MS regression. r=mikedeboer
MozReview-Commit-ID: CFxrJ8NjlER
2017-06-19 12:57:09 +02:00
Mike Conley
af2825f947 Bug 1370035 - Remove pending tab optimization now that tabs are injected lazily. r=dao
MozReview-Commit-ID: HTWVmFHtFv0
2017-06-13 16:48:08 -04:00
Paolo Amadini
8531ce563a Bug 1370652 - Handle more rejections in code exercised by browser-chrome tests. r=Mossop
These fixes are in preparation of making browser-chrome tests fail when there are unhandled Promise rejections.

MozReview-Commit-ID: JTMgC2XwzX2
2017-06-06 21:15:42 +01:00
Joel Maher
d1f0b3328d Bug 1368364 - backout bug 1242505 as it causes browser/modules/ intermittent failures. r=paolo 2017-06-03 10:34:14 +02:00
Julian Descottes
9ffe201f77 Bug 1366823 - Use DevToolsShim to call Scratchpad APIs from SessionStore.jsm;r=mikedeboer
DevTools are moving out of mozilla-central and m-c code should only rely on the
DevToolsShim that will remain available in m-c after the migration.
This changeset updates SessionStore.jsm to call the DevToolsShim instead of the
scratchpadmanager.

The actual underlying implementation is the same when devtools are installed and
no-ops when they are not.

MozReview-Commit-ID: Fv22TtjJiDw
2017-05-24 20:50:23 +02:00
Paolo Amadini
255a25f454 Bug 1242505 - Part 1 - Handle more rejections in code exercised by browser-chrome tests. r=Mossop
MozReview-Commit-ID: JTMgC2XwzX2
2017-05-25 15:00:22 +01:00
Sebastian Hengst
4f5a64e5c8 Backed out changeset b59573695517 (bug 1242505) 2017-05-28 11:31:22 +02:00
Paolo Amadini
48197ac0f0 Bug 1242505 - Part 1 - Handle more rejections in code exercised by browser-chrome tests. r=Mossop
MozReview-Commit-ID: JTMgC2XwzX2
2017-05-25 15:00:22 +01:00
Kevin Jones
4bc95d4f20 Bug 1365933 - Don't attempt to access tabData.entries value when tabData.entries is nonexistent or empty. r=mikedeboer 2017-05-22 08:33:29 -06:00
Dão Gottwald
5c61bddd6d Bug 1365780 - Consistently dispatch the TabAttrModified event and update the title bar when setting tab labels. r=mikedeboer
MozReview-Commit-ID: 1SNHtyw5hQ8
2017-05-19 14:19:06 +02:00
Bob Owen
bbbe1ef6e3 Bug 1351358 Part 2.5: Move logic in the parent for switching in and out of Large Allocation process into browser.js RedirectLoad. r=mystor
This fixes a bug where we swap out of the Large Allocation process, when reloaded via the UI.
2017-05-18 12:08:56 +01:00
Bob Owen
fb46714a11 Bug 1351358 Part 2: Limit the http pages that will load in the file content process with allowLinkedWebInFileUriProcess pref. r=Gijs, r=mystor
This change means that any related http pages driven through content (window.open, links, etc.) will continue to be loaded in the file content process.
Same-origin loads via the UI will also remain in the file content process.
Cross-origin loads via the UI will cause a process switch.
History navigation will stay in the process, if it was originally loaded in that process.
2017-05-18 12:08:56 +01:00
Matheus Longaray
28eed73af0 Bug 1364483 - Take customizemode attribute into account when saving tabs to disk. r=mikedeboer
This patch adds customizemode attribute data validation when saving tabs to disk.

MozReview-Commit-ID: 2GFXpApi0iQ
2017-05-15 13:21:54 -03:00
Carsten "Tomcat" Book
a27ec0c73b Backed out changeset 888dc371081a (bug 1347791) 2017-05-17 08:11:05 +02:00
Alastor Wu
61389f5625 Bug 1347791 - part4 : keep tab's block state consistent after session restore. r=mikedeboer
If the tab was resumed before, it could start playing any autoplay media without user's
permission after session restore.

MozReview-Commit-ID: C3DHIIsLtJA
2017-05-17 11:56:10 +08:00
Dão Gottwald
8a03219f50 Bug 1364516 - Move gCustomizeMode.setTab call out of updateTabLabelAndIcon. r=mikedeboer
While setTab does end up setting the label and icon, it also does completely different and more crucial things. This call really doesn't belong in updateTabLabelAndIcon.

MozReview-Commit-ID: 1ZSY17ThNx
2017-05-15 18:52:34 +02:00
Sebastian Hengst
aca09143b3 Backed out changeset b96483ca2c27 (bug 1364516) for failing mochitest browser/components/customizableui/test/browser_exit_background_customize_mode.js and eslint failure at SessionStore.jsm:3696:7 | 'win' is not defined. r=backout 2017-05-15 15:19:07 +02:00
Dão Gottwald
84b2e5be4d Bug 1364516 - Move gCustomizeMode.setTab call out of updateTabLabelAndIcon. r=mikedeboer
While setTab does end up setting the label and icon, it also does completely different and more crucial things. This call really doesn't belong in updateTabLabelAndIcon.

MozReview-Commit-ID: 9HXYS0fXgRN
2017-05-12 19:52:04 +02:00
Dão Gottwald
a4982b4878 Bug 1364127 - Set the initial tab label to the URL for new tabs and to the saved title for restored tabs, and make sure that label doesn't subsequently get clobbered with a placeholder r=past
MozReview-Commit-ID: 9t07uAVE13H
2017-05-12 13:35:44 +02:00
Florian Quèze
ff53eb9a63 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Kevin Jones
2028999eac Bug 1360932 - Registered lazy tabs as switch-to-tab candidates. r=dao
MozReview-Commit-ID: 323l6pHQQAT
2017-05-12 05:34:43 +02:00
Panos Astithas
8845d63ca0 Don't show 'Connecting' and 'Loading' labels in tab while loading pages (bug 1359352). r=dao
MozReview-Commit-ID: HMs0ri5kLw3
2017-05-05 16:52:03 +03:00
Dão Gottwald
f957bb9a4f Bug 1362595 - Clean up handling of hidden tabs in restoreWindow. r=mikedeboer
restoreWindow only opens new tabs rather than re-use pre-existing tabs, so
there's no point in calling showTab anymore. hideTab also will not hide the
selected tab, so the "all tabs to be restored are hidden" case can't happen.

MozReview-Commit-ID: FzmRcjprkuN
2017-05-06 01:20:29 +02:00
Dão Gottwald
79b9e1a0c0 Bug 1054740 - Stop reusing tabs when restoring windows since at this point it's counterproductive rather than a useful optimization. r=mikedeboer
MozReview-Commit-ID: EuM08mEhDqZ
2017-05-04 14:26:32 +02:00
Sebastian Hengst
fcd4b2c6f9 Backed out changeset db9f3b377504 (bug 1054740) for failing Marionette's test_prefs.py TestPreferences.test_clear_pref, at least on Linux in non-e10s mode. r=backout on a CLOSED TREE 2017-05-03 23:15:56 +02:00
Wes Kocher
2d4208ef39 Merge m-c to autoland, a=merge
MozReview-Commit-ID: F7qkNALe0WT
2017-05-03 13:52:24 -07:00
Dão Gottwald
41b5761852 Bug 1054740 - Stop reusing tabs when restoring windows since at this point it's counterproductive rather than a useful optimization. r=mikedeboer
MozReview-Commit-ID: LhJDs9GSxuK
2017-05-03 21:57:06 +02:00
Sebastian Hengst
7f6430e0b4 Backed out changeset 43f195f28f6a (bug 1054740) for failing test_quit_restart.py TestQuitRestart.test_in_app_restart_with_callback in Mn-e10s on OSX 10.10 opt. r=backout 2017-05-03 18:50:18 +02:00
Dão Gottwald
1e2b6e9834 Bug 1054740 - Stop reusing tabs when restoring windows since at this point it's counterproductive rather than a useful optimization. r=mikedeboer
MozReview-Commit-ID: EgninUdUHir
2017-05-03 11:19:31 +02:00
Tim Taubert
d4d952e6ac Bug 1360916 - Update telemetry code in sessionstore content script r=mikedeboer data-r=bsmedberg
This patch replaces FX_SESSION_RESTORE_CONTENT_COLLECT_DATA_LONGEST_OP_MS with
a more fine-grained data collection via a keyed histogram so that we can
determine which type of data collection we spend a lot of time on.

Additionally, it abandons sending telemetry data from the content to the parent
via custom messages and instead uses the Telemetry service directly. Thus it
also gets rid of a bug that currently overrides measurements for the same
histogram done quickly in succession
2017-05-03 12:06:34 +02:00
Sebastian Hengst
9dbd5e934b Backed out changeset ec64ea9b1249 (bug 1360916) for failing browser_sessionStorage_size.js. r=backout 2017-05-03 00:25:07 +02:00
Tim Taubert
f76a7326b9 Bug 1360916 - Update telemetry code in sessionstore content script r=mikedeboer data-r=bsmedberg
This patch replaces FX_SESSION_RESTORE_CONTENT_COLLECT_DATA_LONGEST_OP_MS with
a more fine-grained data collection via a keyed histogram so that we can
determine which type of data collection we spend a lot of time on.

Additionally, it abandons sending telemetry data from the content to the parent
via custom messages and instead uses the Telemetry service directly. Thus it
also gets rid of a bug that currently overrides measurements for the same
histogram done quickly in succession.
2017-05-02 23:22:45 +02:00
Tim Taubert
5f5a52febb Bug 1360810 - Add telemetry for session restore privacy levels chosen by users r=mikedeboer data-r=bsmedberg 2017-05-02 11:10:41 +02:00
Kevin Jones
0d6fe141b4 Bug 1360239 - Explicitly make pinned tabs nonlazy. r=dao
MozReview-Commit-ID: 7fOboqJamqE
2017-04-28 09:08:38 +02:00
Kevin Jones
342732dec8 Bug 1358735 - Ensure userContextId is always set in TabStateCache. r=mikedeboer 2017-04-25 04:54:00 -04:00
Mike Conley
edbfb32649 Bug 1357098 - Fix off-by-one error in SessionStore when preparing deferred restore data. r=mikedeboer
Bug 588482 made it possible to restore pinned tabs in windows before restoring the rest of the
tabs. Part of this involves extracting the pinned tab data from the last session, and make it
the default state to restore. The rest can be restored later.

If one of the pinned tabs in a window were selected, the code that was preparing the default
state for that window set the selection value by calculating the length of the tabs array
(before adding the selected one), and adding 2. Presumably, 1 count is because of the tab
we're about to add, and another count is due to how the "selected" value in SessionStore
is 1-indexed (where "0" means, "don't change the selection").

This is an off-by-one error though, since the tabs array length already cancels out the
need for the extra "1-index" difference. It is sufficient to just add 1 to the length of
the tabs array to calculate the selected value.

This appears to have been a bug for a while, but was covered up by the fact that the old
tab selection code exited early if the 0-indexed value of the selected tab was not within
the length of the tabs array. Bug 1351677 uncovered this bug by removing that second check.

This patch fixes the off-by-one error, and also puts a check back in to ensure that the tab
we're going to select is at a valid index.

MozReview-Commit-ID: 9WbbU0vUJHG
2017-04-25 18:03:12 -04:00
Tim Taubert
747ba454cd Bug 1359429 - Remove superfluous telemetry probes r=mikedeboer f=bsmedberg
FX_SESSION_RESTORE_COLLECT_DATA_LONGEST_OP_MS can go because that's exactly the same as FX_SESSION_RESTORE_COLLECT_DATA_MS now.

We can remove FX_SESSION_RESTORE_COLLECT_COOKIES_MS because that's just a flat line since bug 912717 landed.
2017-04-25 21:48:22 +02:00