Commit Graph

2080 Commits

Author SHA1 Message Date
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
Joel Maher
1f7cc5e133 Bug 1348583 - Intermittent browser/components/sessionstore/test/browser_625016.js. temporarily disable on linux/debug. r=gbrown
MozReview-Commit-ID: 3gWsdhJ167A
2017-05-12 16:19:41 -04:00
Honza Bambas
b05b600614 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-12 22:13:49 +02:00
Florian Quèze
15feaa278a Bug 1362882 - script-generated patch to switch from Promise.defer() to new Promise() where it's straightforward, rs=Mossop. 2017-05-12 14:55:27 +02:00
Florian Quèze
b2499a4c57 Bug 1353542 - smaller script-generated patch converting remaining generators that are likely tasks (actual generators were identified by hand and whitelisted), r=Mossop. 2017-05-12 14:45:01 +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
Wes Kocher
f0c747f144 Merge m-c to inbound, a=merge
MozReview-Commit-ID: ADbja7mAY4s
2017-05-11 17:41:11 -07:00
Ryan VanderMeulen
5d2035f8e0 Merge m-c to autoland. a=merge 2017-05-11 11:30:47 -04:00
Sebastian Hengst
222cb519da merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: HWYxZeNWish
2017-05-11 16:50:12 +02:00
Christoph Kerschbaumer
0fba568af6 Bug 1363689 - Have gBrowser.loadTabs() provide a valid triggeringPrincipal. r=gijs 2017-05-11 08:44:13 +02:00
Christoph Kerschbaumer
0c199ca7ae Bug 1363687 - Have gBrowser.loadOneTab() provide a valid triggeringPrincipal. r=gijs 2017-05-11 08:43:54 +02:00
Kevin Jones
9fbaef1ab2 Bug 1363078 - Refuse to insert lazy browsers in closed windows. r=dao
MozReview-Commit-ID: Gc783ESwXjv
2017-05-11 22:31:15 +02:00
Dão Gottwald
5fec27cae2 Bug 1363902 - Simplify some browser chrome tests by utilizing TestUtils.topicObserved. r=mikedeboer
MozReview-Commit-ID: Flc8iE19Gkt
2017-05-11 00:24:37 +02:00
Mark Banner
44d0568f41 Bug 1362947 - Upgrade eslint-plugin-html to 2.0.3 to pick up --fix support. r=jaws
MozReview-Commit-ID: 5fVG7akPnGM
2017-05-08 10:29:47 +01:00
Sebastian Hengst
c8bd0b3620 Backed out changeset e0f9c56c15f0 (bug 1362947) for linting failures, e.g. at accessible/tests/mochitest/jsat/doc_content_text.html:15. r=backout 2017-05-11 10:15:55 +02:00
Mark Banner
dae8146427 Bug 1362947 - Upgrade eslint-plugin-html to 2.0.3 to pick up --fix support. r=jaws
MozReview-Commit-ID: 5fVG7akPnGM
2017-05-08 10:29:47 +01: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
Carsten "Tomcat" Book
cf58f6b4c2 Merge mozilla-central to mozilla-inbound 2017-05-11 12:53:41 +02: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
Frederik Braun
fda653356c Bug 1359350: Add no-eval rule to eslint config (and whitelist failures in tests) r=standard8
MozReview-Commit-ID: 4nYlX4sSdbF
2017-05-08 14:50:50 +02:00
Wes Kocher
21b23ebf9d Merge inbound to m-c a=merge
MozReview-Commit-ID: KSYtdX2VPce
2017-05-05 14:03:31 -07:00
Tim Taubert
9a647dd9b7 Bug 1362058 - Further limit the amount of sessionStorage data we store and serialize r=mikedeboer 2017-05-05 12:17:09 +02:00
Carsten "Tomcat" Book
4e415a660d Merge mozilla-central to autoland 2017-05-05 15:27:55 +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
Honza Bambas
e8227e774f Bug 1319111 - Expose URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Tim Taubert
92228631e0 Bug 1360916 - Fix timeouts in browser_sessionStorage_size.js r=bustage 2017-05-03 17:22:07 +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
Christoph Kerschbaumer
1acdc61a26 Bug 1361387 - Update callsites of loadURI() within browser/ to pass a triggeringPrincipal. r=gijs 2017-05-03 10:23:59 +02:00
Wes Kocher
e8ad3cabdb Merge m-c to autoland, a=merge
MozReview-Commit-ID: 1peTFbNMVnU
2017-05-02 17:38:11 -07:00
Dão Gottwald
e7a2bf745c Bug 1361428 - Split up browser_615394-SSWindowState_events.js. r=mikedeboer
MozReview-Commit-ID: 53FZf1xXd1K
2017-05-02 19:41:12 +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
Sebastian Hengst
6d4b7656d3 Backed out changeset 88c2a0b2dde5 (bug 1319111) for crashing Talos. r=backout 2017-04-28 00:16:39 +02:00
Honza Bambas
b8b338133e Bug 1319111 - Exposing URI to make security check against on LoadInfo (no LOAD_REPLACE flag). r=bz 2017-01-27 19:10:01 +01:00
Kevin Jones
342732dec8 Bug 1358735 - Ensure userContextId is always set in TabStateCache. r=mikedeboer 2017-04-25 04:54:00 -04: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
Wes Kocher
5965dfb921 Merge m-c to inbound, a=merge
MozReview-Commit-ID: DimBmdgo95e
2017-04-26 17:35:26 -07:00
Christoph Kerschbaumer
bcf80cb593 Bug 1359545 - Update tests to pass triggeringPrincipal to loadURI. r=bz, r=gijs 2017-04-26 21:45:30 +02: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
Gabor Krizsanits
57873c6622 Bug 1352961 - P2: Measure for the delay before a new tab starts processing the first URL. r=mconley, data-r=bsmedberg
Opening pages in a new tab might suffer an extra delay from e10s-multi because
the new process has to start up and then run all the process / frame scripts
before it can react on the request from the parent to load the first page.

There are two code paths. Either we start the tab with a remote browser and
then the RemoteWebNavigation will send the request. Or we start with a non-remote
browser and have to change the remoteness flag on it, and then the SessionStore
will send the request.

In each cases we start the timer on the parent side, send it with the message,
and when the child receives it it stops the timer and reports the measured delay.
2017-04-25 17:11:12 +02:00
Tim Taubert
55be5ff70c Bug 1359344 - Properly clear cookies on clean shutdown if requested by the user r=mikedeboer
Since bug 912717 the cookies moved from state.windows[x].cookies (i.e. stored
per-window) to state.cookies (i.e. one global list of cookies). We forgot to
update the code in SessionSaver._saveState() that purges cookies upon clean
shutdown if requested by the user's preferences.
2017-04-25 12:59:16 +02:00
Florian Queze
c9a0637249 Bug 1359111 - stop using BrowserUtils.makeURI, r=jaws. 2017-04-25 09:21:49 +02: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
Kevin Jones
8593e2602b Bug 1345090 - Modify SessionStore to restore tabs with lazy browsers. r=mikedeboer,dao
MozReview-Commit-ID: 5J5UqlWMxKX
2017-04-20 11:01:09 +02:00