fune/browser/base/content
Mike Conley ec416a2990 Bug 1353013 - Be less aggressive about preloading about:newtab. r=florian
Based on a patch that Dão Gottwald <dao+bmo@mozilla.com> wrote.

We used to preload about:newtab as soon as a tab had finished being opened,
which meant that the first opened tab was _never_ preloaded, and that we
risked janking the browser immediately after the user opened a new tab
(which is, arguably, the worst time to do it, since the user is probably
about to navigate that tab somewhere).

This patch makes it so that about:newtab is preloaded after:

1) 1 second of user inactivity, and
2) When we have at least 40ms of idle time to spend in an idle callback.

The 1s and 40ms thresholds were chosen arbitrarily, and we might tune them
over time.

MozReview-Commit-ID: J5xkPQvCdW6

--HG--
extra : rebase_source : 51aed2f47ee5c6a68d04036d0bdc9e6357a5fc8d
2017-08-24 15:23:18 -07:00
..
aboutaccounts Bug 1391110: Part 4 - Remove unnecessary nsIFrameLoaderOwner QIs. r=smaug 2017-08-19 13:32:58 -07:00
abouthealthreport Bug 1387805 - Remove [deprecated] nsIScriptSecurityManager.getCodebasePrincipal(). r=bz 2017-08-06 15:31:31 +09:00
abouthome Bug 1384212 - about:home mozilla logo shifts on hover, r=dao 2017-07-26 21:26:39 +01:00
defaultthemes
docs/sslerrorreport
newtab
overrides
pageinfo Bug 1392989 (part 2) - Remove unused atom-service references. r=jaws. 2017-08-24 11:46:02 +10:00
test Bug 1396624 - Hide URL bar elements and the stop button with display:none instead of visibility:collapse to prevent the icons from being loaded needlessly. r=johannh 2017-09-04 18:14:20 +02:00
aboutDialog-appUpdater.js Bug 1392119 - Enable the ESLint no-caller rule across mozilla-central r=standard8 2017-08-23 13:38:24 +01:00
aboutDialog.css
aboutDialog.js Bug 1390561 - Add a new param "buttonAutoFocus" for appUpdater object to focus the button automatically because we need auto focus in about dialog but do not need it in preferences page. r=jaws 2017-08-18 16:11:34 +08:00
aboutDialog.xul
aboutNetError.xhtml Bug 1389798 - Load browser version of netError.dtd from browser aboutNetError.xhtml. r=gandalf 2017-08-12 16:53:04 -07:00
aboutRobots-icon.png
aboutRobots-widget-left.png
aboutRobots.xhtml
aboutTabCrashed.css
aboutTabCrashed.js
aboutTabCrashed.xhtml
baseMenuOverlay.xul
blockedSite.xhtml Bug 1388233 - Use &brandShortName; instead of hard-coded 'Firefox'. r=flod,francois 2017-08-17 10:18:37 +08:00
browser-addons.js Bug 1357517 - Remove or delay Preferences.jsm usage from some browser/base/content/* files. r=Gijs 2017-07-31 12:51:35 +02:00
browser-captivePortal.js Bug 1357517 - Remove or delay Preferences.jsm usage from some browser/base/content/* files. r=Gijs 2017-07-31 12:51:35 +02:00
browser-charsetmenu.inc
browser-compacttheme.js Bug 1389744 - Stop repositioning pinned tabs when (un)selecting the Dark/Light theme. r=florian 2017-08-12 12:50:26 +02:00
browser-context.inc Bug 1388902 remove socialapi share, r=florian 2017-08-16 08:54:21 -07:00
browser-ctrlTab.js Bug 1392119 - Enable the ESLint no-caller rule across mozilla-central r=standard8 2017-08-23 13:38:24 +01:00
browser-customization.js Bug 1391146 - Don't run uninit/init on CombinedStopReload when entering/exiting customize mode since we don't have the joined stop/reload and location bar anymore. r=Felipe 2017-08-17 15:14:12 -04:00
browser-data-submission-info-bar.js Backed out changeset df8215261c7e (bug 1349689) on request from rchien. r=backout 2017-08-31 16:58:32 +02:00
browser-development-helpers.js
browser-doctype.inc
browser-feeds.js Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj 2017-08-04 17:49:22 +09:00
browser-fullScreenAndPointerLock.js Bug 1381853 - lazy load browser-fullScreenAndPointerLock.js into the browser window, r=mconley. 2017-07-23 00:17:57 +02:00
browser-fullZoom.js Bug 1381853 - load viewZoomOverlay.js and browser-fullZoom.js into the browser window lazily, r=mconley. 2017-07-23 00:17:55 +02:00
browser-gestureSupport.js Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8 2017-07-25 23:45:41 +05:30
browser-media.js Backed out changeset df8215261c7e (bug 1349689) on request from rchien. r=backout 2017-08-31 16:58:32 +02:00
browser-menubar.inc
browser-pageActions.js Bug 1396053 - Page action urlbar button ordering can get messed up for new windows. r=Gijs 2017-09-04 23:58:27 -07:00
browser-places.js Bug 1392081 - Reset the Places toolbar view when the toolbar is collapsed. r=Gijs 2017-08-29 23:26:24 +02:00
browser-plugins.js
browser-safebrowsing.js Bug 1381853 - lazy load browser-safebrowsing.js into the browser window, r=mconley. 2017-07-23 00:17:58 +02:00
browser-sets.inc Bug 1388902 remove socialapi share, r=florian 2017-08-16 08:54:21 -07:00
browser-sidebar.js Bug 1387356 - Remove deprecated sidebar functions. r=dao 2017-09-04 19:53:35 +02:00
browser-sync.js Bug 1395154 - If Send Page to Device pageAction is Pinned, it should dismiss when a user sends a tab. r=jaws 2017-08-31 15:27:22 -07:00
browser-tabPreviews.xml
browser-tabsintitlebar-stub.js
browser-tabsintitlebar.js Bug 1390448 - Restore vertical margin calculation in browser-tabsintitlebar.js, add 1px to window control margin on Windows 10. r=dao 2017-08-15 14:18:22 +02:00
browser-thumbnails.js Bug 1353584 - replace setTimeout with requestIdleCallback in _delayedCapture and return early on about: page in _shouldCapture. r=mconley 2017-07-28 10:46:55 -07:00
browser-trackingprotection.js
browser.css Bug 1396624 - Hide URL bar elements and the stop button with display:none instead of visibility:collapse to prevent the icons from being loaded needlessly. r=johannh 2017-09-04 18:14:20 +02:00
browser.js Bug 1353013 - Be less aggressive about preloading about:newtab. r=florian 2017-08-24 15:23:18 -07:00
browser.xul Merge m-c to autoland, a=merge 2017-09-01 16:34:14 -07:00
browserMountPoints.inc
content.js Bug 1388902 remove socialapi share, r=florian 2017-08-16 08:54:21 -07:00
contentSearchUI.css
contentSearchUI.js Bug 1381659 - Send a message from ContentSearch.jsm to blur the suggestions UI after a search instead of a beforeunload listener. r=florian 2017-07-19 02:37:40 +05:30
default-theme-icon.svg
global-scripts.inc Bug 1384714: Use subscript loader to load browser.xul scripts. r=Mossop 2017-07-25 20:56:37 -07:00
hiddenWindow.xul
macBrowserOverlay.xul
moz.build Bug 1355088 - add BUG_COMPONENT to browser/* files. r=mossop 2017-08-25 13:08:45 -04:00
nsContextMenu.js Bug 1388902 remove socialapi share, r=florian 2017-08-16 08:54:21 -07:00
popup-notifications.inc
report-phishing-overlay.xul
robot.ico
safeMode.css
safeMode.js
safeMode.xul
sanitize.js Bug 1388215: Part 3 - Use JIT-friendly defineLazy*Getters methods when defining many lazy imports. r=florian 2017-08-09 13:03:36 -07:00
sanitize.xul
sanitizeDialog.css
sanitizeDialog.js
softwareUpdateOverlay.xul
static-robot.png
tab-content.js Bug 1322874 - Get rid of nsIURI.originCharset. r=valentin.gosu 2017-08-02 20:43:30 +09:00
tabbrowser.css Bug 1394975 - Remove the tabbrowser-tabbox xbl binding;r=mossop 2017-08-31 09:31:36 -07:00
tabbrowser.xml Bug 1353013 - Be less aggressive about preloading about:newtab. r=florian 2017-08-24 15:23:18 -07:00
theme-vars.inc.css Bug 1391017 - Use a .bookmark-item placeholder for the bookmarks toolbar items in the toolbar while customizing. r=Gijs 2017-08-23 13:01:06 +02:00
urlbarBindings.xml merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-05 11:40:49 +02:00
utilityOverlay.js Bug 1393802 - Make about:home's identity block consistent with about:newtab's. r=florian 2017-08-30 17:23:26 +02:00
viewSourceOverlay.xul
web-panels.js
web-panels.xul Bug 1381853 - lazy load nsContextMenu.js into the browser window, r=mconley. 2017-07-23 00:17:59 +02:00
webext-panels.js Bug 1389495 support select in OOP sidebar, r=kmag 2017-08-14 10:20:08 -07:00
webext-panels.xul Bug 1389495 support select in OOP sidebar, r=kmag 2017-08-14 10:20:08 -07:00
webrtcIndicator.js
webrtcIndicator.xul