Commit graph

1835 commits

Author SHA1 Message Date
Jared Wein
a54eda04ca Bug 1348068 - Enable the key-spacing rule for eslint and fix the related issues. r=standard8
Running eslint with --fix didn't fix many of the issues. The majority here had to be fixed by hand but a significant majority of the issues were related to a few files that I was able to use find-and-replace with. I regret not making this in to separate commits of the hand-fixes and the fixes from --fix but I don't recall --fix fixing any of the issues.

MozReview-Commit-ID: ANyg2qfo3Qx

--HG--
extra : rebase_source : 61d2aa91bf9474af3d72a5dea41b25dca442c1b7
2017-03-21 14:29:43 -04:00
Mark Banner
bd625e4e9f Bug 1347712 - Change the testing configurations into ESLint configurations within eslint-plugin-mozilla - automatically update .eslintrc.js test config files for new config locations. r=jaws
MozReview-Commit-ID: LH0CQOPfoe6

--HG--
extra : rebase_source : 83eaf40c5cbb5e25cfb3f3b5afadf4fbf0422c92
2017-03-20 12:36:37 +01:00
Mike Conley
5d82a3b36c Bug 1256472 - When restoring a window, initialize each browser tab as remote if possible. r=mikedeboer
Originally, we were forcing these restored background tabs to be non-remote by default.
This was because we didn't want them to show the crashed tab favicon nor show about:tabcrashed
if the user hadn't restored them before.

Bug 1241459 added infrastructure that makes it possible to put crashed background tabs into
the "restore on demand" state again, without showing about:tabcrashed or showing the crashed
tab favicon.

This means we should be able to restore tabs in the content process again which should take
some load off of the parent process during session restore, which is good for perceived
performance.

Note that if the content process does crash, the background tabs are then loaded in the parent
process. Restoring them on demand will then do the remoteness flip.

MozReview-Commit-ID: 1mWe0td6geB

--HG--
extra : rebase_source : ea872b615ebe3d8639b214bfafc5e358ba6e65fd
2017-03-14 10:01:38 -04:00
Mike Conley
6b9cc68a36 Bug 1256472 - Add a reason to the restoreTabContent function and message. r=Gijs,mikedeboer
This helps differentiate restorations that were caused by navigateAndRestore, as opposed
to SessionStore having set state via setBrowserState, setWindowState, or setTabState.

MozReview-Commit-ID: DEEbKLh7f7p

--HG--
extra : rebase_source : c48ab225d17128041ccbde4e5cc8c87899166b9e
2017-03-14 09:55:54 -04:00
Joel Maher
e3484be3f7 Bug 1167933 - Intermittent e10s browser_async_flushes.js- disable on debug. r=mikedeboer
MozReview-Commit-ID: 357NSaMFLqc
2017-03-17 16:39:23 -04:00
Sebastian Hengst
fa3375c4ed Backed out changeset ba60dcd190ad (bug 1256472) for leaks in browser_windowStateContainer.js. r=backout 2017-03-16 17:24:01 +01:00
Sebastian Hengst
7345d89cab Backed out changeset 27f5fcaca7fa (bug 1256472) 2017-03-16 17:22:23 +01:00
Blake Kaplan
2782e4e4b4 Bug 1346286 - Remove CPOWs from browser_history_persist.js r=Felipe
MozReview-Commit-ID: 22fQbSgMzQM

--HG--
extra : rebase_source : 440fde61df0a652f0e045068d12ab6ef7ecf281a
2017-03-09 14:30:30 -08:00
Blake Kaplan
66ff3b755f Bug 1346286 - Remove CPOWs from browser_911547.js. r=Felipe
MozReview-Commit-ID: 3Y5K84X2EIe

--HG--
extra : rebase_source : 3ef4c073a92ab580d0baa1caa0a1cd14e5bec160
2017-03-09 11:36:28 -08:00
Blake Kaplan
1a97f71604 Bug 1346286 - Remove CPOWs from browser_500328.js. r=Felipe
MozReview-Commit-ID: 2Ok956Ec2ub

--HG--
extra : rebase_source : 19bc7673818ac49ceb47958bcf7e654a02fabbdb
2017-03-08 17:07:57 -08:00
Blake Kaplan
2a88902832 Bug 1346286 - Remove CPOWs from browser_687710_2.js. r=Felipe
MozReview-Commit-ID: Au09j3DGveY

--HG--
extra : rebase_source : 73eb360b97af7e7175446f1790c562427d48f6ad
2017-03-07 18:09:42 -08:00
Blake Kaplan
928a1b69e2 Bug 1346286 - Remove CPOWs from browser_739805.js. r=Felipe
MozReview-Commit-ID: I2wWOxSbdsD

--HG--
extra : rebase_source : 5563ca8f20ae229ce6191e9a149046a0be7da268
2017-03-07 16:38:13 -08:00
Mike Conley
a04621c4a8 Bug 1256472 - When restoring a window, initialize each browser tab as remote if possible. r=mikedeboer
Originally, we were forcing these restored background tabs to be non-remote by default.
This was because we didn't want them to show the crashed tab favicon nor show about:tabcrashed
if the user hadn't restored them before.

Bug 1241459 added infrastructure that makes it possible to put crashed background tabs into
the "restore on demand" state again, without showing about:tabcrashed or showing the crashed
tab favicon.

This means we should be able to restore tabs in the content process again which should take
some load off of the parent process during session restore, which is good for perceived
performance.

Note that if the content process does crash, the background tabs are then loaded in the parent
process. Restoring them on demand will then do the remoteness flip.

MozReview-Commit-ID: 1mWe0td6geB

--HG--
extra : rebase_source : 5e1dbbaf0e1fb641bd43f821980ab5dff7272b04
2017-03-14 10:01:38 -04:00
Mike Conley
9ce53ecd28 Bug 1256472 - Add a reason to the restoreTabContent function and message. r=Gijs,mikedeboer
This helps differentiate restorations that were caused by navigateAndRestore, as opposed
to SessionStore having set state via setBrowserState, setWindowState, or setTabState.

MozReview-Commit-ID: DEEbKLh7f7p

--HG--
extra : rebase_source : 7fa68acf1ffd85f28af2be9c00f2ef65b21375f6
2017-03-14 09:55:54 -04:00
Carsten "Tomcat" Book
8fd069a1f2 Merge mozilla-central to autoland 2017-03-14 14:27:38 +01:00
Mark Banner
c26710ebe4 Bug 1311347 - Enable eslint of browser/components/sessionstore/. Manual fixes. r=jaws
MozReview-Commit-ID: AupJNLZJ2Ye

--HG--
extra : rebase_source : b9113d1ca913d399ca4e831f3c381e8fa45847bd
2017-03-13 10:32:03 +00:00
Mark Banner
4acba13973 Bug 1311347 - Enable eslint of browser/components/sessionstore/. Autofix changes. r=jaws
MozReview-Commit-ID: 5LKHbcmjSy

--HG--
extra : rebase_source : d7e4571dae5c5770c7908579d7634419382d78e2
2017-03-10 19:51:20 +00:00
Michael Layzell
f083c8ec83 Bug 1345857 - Clone TabData entries when restoring tabs, r=mikedeboer
MozReview-Commit-ID: BhAbhSHgXWt
2017-03-13 18:57:07 -04:00
Sebastian Hengst
5a87040be3 Backed out changeset 5e4c135cb424 (bug 1345857) for failing at least marionette (test_refresh_firefox.py TestFirefoxRefresh.testReset), functional-ui and browser-chrome. r=backout on a CLOSED TREE 2017-03-13 19:21:03 +01:00
Michael Layzell
f838a81893 Bug 1345857 - Clone TabData entries when restoring tabs, r=mikedeboer
MozReview-Commit-ID: BhAbhSHgXWt
2017-03-13 13:25:01 -04:00
Carsten "Tomcat" Book
087da3f0d9 merge mozilla-inbound to mozilla-central a=merge 2017-03-07 15:13:31 +01:00
Jan Henning
5e22220b1b Bug 1340828 - Part 1 - Move SessionHistory.jsm to toolkit. r=mikedeboer
We want to use this for Android, too. Once again, moving the file necessitates fixing a few ESLint errors that weren't yet checked for under the old directory.

MozReview-Commit-ID: IPxcizKwzAX

--HG--
rename : browser/components/sessionstore/SessionHistory.jsm => toolkit/modules/sessionstore/SessionHistory.jsm
extra : rebase_source : 77a85942443026620c77508d6ccb405e0a9864ff
2017-02-18 20:54:09 +01:00
Matheus Longaray
63f7e2e323 Bug 1343056 - Take userTypedValue into account when saving tabs to disk. r=mikedeboer
This patch adds userTypedValue data validation when saving tabs to disk

MozReview-Commit-ID: EltANtbDfqe

--HG--
extra : rebase_source : f1e6b9a3afecfbdacd66716b335695a3bcad255e
2017-03-02 21:24:13 +01:00
Ehsan Akhgari
7eca7fc164 Bug 1344595 - Protect against nsIPrincipal.origin throwing for about:blank iframes; r=ttaubert 2017-03-06 09:42:55 -05:00
jordan9769
5761e9b0d1 Bug 1311347 - Enable eslint of browser/components/sessionstore/. Initial changes by Sourav, updated by Standard8. r=jaws
MozReview-Commit-ID: 4RFxoV8SkIa

--HG--
extra : rebase_source : 96b24b172cfa957489df37943171ddae07145e84
2016-10-28 02:48:50 +05:30
Masatoshi Kimura
7be7b11a1c Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg

--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09:00
Matheus Longaray
4e111ff76c Bug 1323987 - Keep saving about:blank and about:newtab to disk. r=mikedeboer
This patch creates a new method that verifies if the tab state we're passed is
something we should keep to be reopened at session restore. This is used when
we are saving the current session state to disk. This method is very similar to
_shouldSaveTabState, however, "about:blank" and "about:newtab" tabs will still
be saved to disk.

MozReview-Commit-ID: 70zKFeUG9uQ

--HG--
extra : rebase_source : 994412066334f7a1e85707a011225d7c5b65c319
2017-01-09 19:35:31 +01:00
Sebastian Hengst
35f441b13c Backed out changeset 3f7bb57e5440 (bug 1340450) for frequently failing own test browser_disable_containers.js. r=backout 2017-02-21 17:52:23 +01:00
Andrea Marchesini
d11876b2bb Bug 1340450 - When containers are disabled, it should not be possible to reopen container tabs, r=mdeboer 2017-02-21 15:11:42 +01:00
Gabor Krizsanits
f9bc8c7133 Bug 1289723 - Fixing crashedTabs test for e10s-multi. r=mrbkap r=felipc 2017-02-21 13:30:17 +01:00
Carsten "Tomcat" Book
70d5eceb33 Backed out changeset 59d4978e8726 (bug 1289723) for eslint failure 2017-02-21 12:11:04 +01:00
Gabor Krizsanits
a498797697 Bug 1289723 - Fixing crashedTabs test for e10s-multi. r=mrbkap 2017-02-21 11:27:19 +01:00
Himanshi Jain
a67ba0a237 Bug 1289785 - Remove entry.owner_b64 from SessionStore.js and SessionHistory.jsm. r=ckerschb, r=mdeboer 2016-10-17 14:38:13 +05:30
Sebastian Hengst
d64fe0ec59 Backed out changeset 6b22d70e15f5 (bug 1340450) for frequent failure of own test browser_disable_containers.js. r=backout 2017-02-20 21:13:33 +01:00
Andrea Marchesini
b4c474e3d2 Bug 1340450 - When containers are disabled, it should not be possible to reopen container tabs, r=mdeboer 2017-02-20 15:55:05 +01:00
Christoph Kerschbaumer
1cc7d653f7 Bug 1338009 - Utils#deserializePrincipal should return NullPrincipal if deserialization fails. r=mikedeboer 2017-02-12 11:50:25 +01:00
Tooru Fujisawa
1e407b8ed0 Bug 1338248 - Remove remaining legacy generator from browser/components/sessionstore/test/. r=mikedeboer 2017-02-11 01:53:23 +09:00
Mike Conley
170479eb55 Bug 1336230 - Rename macsuppressanimation and CHROME_MAC_SUPPRESS_ANIMATION to be platform agnostic. r=jimm
MozReview-Commit-ID: HWyrm1lVwdY

--HG--
extra : rebase_source : ed8d71d9187a8afff0d3ca65641b335337e20f9d
2017-02-03 16:04:33 -05:00
Jan Henning
a3d15d9ae4 Bug 1335008 - Part 1 - Move PrivacyLevel.jsm to toolkit. r=mikedeboer
... so we can use it on Android, too. Also fix ESLint errors that are appearing at the new file location.

MozReview-Commit-ID: 3A3aoHm00RJ

--HG--
rename : browser/components/sessionstore/PrivacyLevel.jsm => toolkit/modules/sessionstore/PrivacyLevel.jsm
extra : rebase_source : 3c43dbe46d3f5b0ac567eb67a003f772bb907b06
2017-01-31 23:05:31 +01:00
Florian Quèze
bdc1ffa608 Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
Christoph Kerschbaumer
af33c277b4 Bug 1307736 - Ensure tests performing a history load pass valid triggeringPrincipal. r=bz,mdeboer 2017-01-27 11:19:45 +01:00
Christoph Kerschbaumer
5049be70f6 Bug 1307736 - Store triggeringPrincipal with all history entries. r=mdeboer 2017-01-27 11:19:27 +01:00
Florian Quèze
15bab6d46b Bug 1334250 - adapt the no-useless-removeEventListener rule to handle the listener being added and removed with the same variable + some hand fixes, r=jaws. 2017-01-27 10:47:57 +01:00
Florian Quèze
0e0865f4fc Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Tooru Fujisawa
82e73ed5ac Bug 1321215 - Remove legacy generator from browser/. r=Paolo 2017-01-21 22:52:44 +09:00
Ehsan Akhgari
43c1d4a481 Bug 1319951 - Partially revert the changes from bug 1283281 to handle the case where DOM Storage is accessed with the system principal exactly like before; r=baku 2017-01-20 10:57:07 -05:00
Mark Banner
16e6d381ac Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ

--HG--
extra : rebase_source : daa8efb3409031fea553f4fd0c9d0746e38dc308
extra : histedit_source : b4c23aacf678ba0d0ac9c09191a7c494ead11a08
2017-01-18 10:30:39 +00:00
Christoph Kerschbaumer
be82c7af85 Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal. r=bz,gijs 2017-01-18 08:24:55 +01:00
Wes Kocher
cb7e0bda60 Backed out 2 changesets (bug 1329032) for failures a=backout
Backed out changeset 16c4f0df527d (bug 1329032)
Backed out changeset 54f7bfe3ca11 (bug 1329032)

MozReview-Commit-ID: ChGyTdJvT8N
2017-01-17 14:08:10 -08:00
Christoph Kerschbaumer
05287d4fa8 Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal. r=bz,gijs 2017-01-17 21:52:01 +01:00