Brian Grinstead
3097f96e03
Bug 1476333 - Refer to AppConstants.BROWSER_CHROME_URL to get the browser URL from the frontend;r=Gijs
...
Before this change, we accessed the browser URL in the following ways:
- "chrome://browser/content/browser.xul"
- "chrome://browser/content/" (which redirects to chrome://browser/content/browser.xul)
- Services.prefs.getCharPref("browser.chromeURL") which returns "chrome://browser/content/"
- getBrowserURL() from utilityOverlay.js
MozReview-Commit-ID: I5vtRke1x9t
2018-07-24 08:12:50 -07:00
Mike de Boer
84755893e0
Bug 1034036 - Part 6: Tests that use ss.setBrowserState() or ss.setWindowState() should wait until the window is restored to continue. r=dao
...
MozReview-Commit-ID: 5d1E5TjKnIR
2018-04-11 12:06:12 +02:00
Mike de Boer
28713f6c1d
Bug 1034036 - Part 4: move away from keeping state on the living objects, like windows, tabs and browsers, but keep it truly privately stored in WeakMaps. r=dao
...
NOTE: The '__SSi' and '__SS_lastSessionWindowID' properties on windows are kept,
because they are expected to stick around longer during application shutdown.
The benefits is are:
1. Cleaner code - Sessionstore implementation details are not leaked outside its
module.
2. Observing the lifetime of objects becomes unnecessary, because the WeakMaps are
cleaned up when objects are GC'd, making leakage of their references impossible
and Sessionstore can't hold objects hostage anymore.
3. Simplification - all state is now maintained in SessionStore.jsm, which allows
for additional refactoring later on to simplify the implementation further.
MozReview-Commit-ID: C1II8qHkQ6F
2018-04-11 12:06:06 +02:00
Dão Gottwald
81e69d1b32
Bug 1450559 - Remove nsISessionStore in favor of SessionStore.jsm. r=mikedeboer
...
MozReview-Commit-ID: 8spvIOus9ai
2018-04-05 16:30:48 +02:00
Peter Van der Beken
75d03ab497
Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
2018-03-01 20:19:56 +01:00
Tooru Fujisawa
12d7012b4a
Bug 1442465 - Part 3: Use BrowserTestUtils.{waitForTabClosing,waitForSessionStoreUpdate} instead of BrowserTestUtils.removeTab. r=dao
2018-03-19 11:12:13 +09:00
Sebastian Hengst
500c4f7ad2
Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
...
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)
2018-03-01 11:51:09 +02:00
Peter Van der Beken
972562411b
Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
2018-02-22 20:22:29 +01:00
Kris Maglione
0bb74efdf1
Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
...
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d
Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
...
Backed out changeset a1eca62826a1 (bug 1431533 )
Backed out changeset 34c999fa006b (bug 1431533 )
Backed out changeset e2674287e57f (bug 1431533 )
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2
Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
...
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb
Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
...
Backed out changeset 6e56f4c8843e (bug 1431533 )
Backed out changeset 12fc4dee861c (bug 1431533 )
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172
Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
...
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Tooru Fujisawa
e518689e4c
Bug 1418184 - Use BrowserTestUtils.waitForEvent in browser/components/sessionstore/test/. r=felipe
2017-12-09 06:08:43 +09:00
Dorel Luca
2d555bbda5
Backed out changeset 935dcd1ea40c (bug 1418184) for failing browser-chrome's browser/base/content/test/permissions/browser_temporary_permissions_expiry.js on Windows 7 debug without e10s r=backout on a CLOSED TREE
2017-12-09 18:59:23 +02:00
Tooru Fujisawa
105c8f43d1
Bug 1424090 - Use dedicated observer notification instead of domwindowclosed to catch onClosed in testcases for SessionStore.jsm. r=billm
2017-12-09 09:52:33 -06:00
Tooru Fujisawa
cc59e2b235
Bug 1418184 - Use BrowserTestUtils.waitForEvent in browser/components/sessionstore/test/. r=felipe
2017-12-09 06:08:43 +09:00
Sebastian Hengst
20affb951b
Backed out changeset 39a94e16a369 (bug 1034036)
...
MozReview-Commit-ID: IcSi7Zbp96e
2017-09-09 12:58:33 +02:00
Beekill95
40f49ffa4b
Bug 1034036 - Part 3: Tests that use set state should wait until window is restored to continue. r=mikedeboer
...
MozReview-Commit-ID: 5SZ9ePGMKF1
2017-08-15 14:45:08 +07:00
Carsten "Tomcat" Book
911b7bbf48
merge mozilla-inbound to mozilla-central a=merge
2017-06-26 13:25:51 +02:00
Florian Quèze
c0468168f5
Bug 1368456 - remove Promise.jsm imports in tests, r=mconley.
2017-06-23 11:25:52 +02:00
Beekill95
5040b59b5b
Bug 934967 - Part 2: Make test cases read lz4 compressed version of session store files and create a frequently use function in head.js. r=mikedeboer
...
MozReview-Commit-ID: A7X7TwOwvxC
2017-06-14 15:38:30 +07: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
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
Florian Queze
d3c36892fa
Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws.
2017-04-14 21:51:38 +02:00
Sebastian Hengst
42670ceca0
Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout
2017-04-14 23:39:22 +02:00
Florian Queze
9b4f73599f
Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws.
2017-04-14 21:51:38 +02:00
Will Wang
47ba1b0c55
Bug 1305950 - Don't collect/save the session when the user is idle. r=mdeboer
...
This patch includes:
- (By Yoric) Don't collect/save the session when the user is idle;r=mdeboer
- Add a test for the behavior of state writing in idle/active mode
When the user is not actively using the computer, webpages may still
perform changes that require (re)writing to sessionstore, e.g. updating
Session Cookies or DOM Session Storage, or refreshing, etc. Before
this patch, a single active page can require us to
recollect/serialize/write the entire Session Restore file every 15
seconds even when the user is not in front of the computer.
We expect that, when the user is not in front of the computer, changes
are not critical and don't need to be saved as often. We now adopt the
following strategy:
- when the user has been away for (by default) 15 seconds, finish any
pending collect/write, then increase the collect/write buffering
delay to (by default) 1h
- when the user returns, reschedule any pending 1h collect/write as a
(by default) 15 seconds collect/write, then proceed with (by
default) 15 seconds collect/write delays.
2017-03-31 11:38:01 +08:00
Mark Banner
e20b9ee0f3
Bug 1311347 - Enable eslint of browser/components/sessionstore/. Manual fixes. r=jaws
...
MozReview-Commit-ID: AupJNLZJ2Ye
2017-03-13 10:32:03 +00:00
Mark Banner
03b4896b94
Bug 1311347 - Enable eslint of browser/components/sessionstore/. Autofix changes. r=jaws
...
MozReview-Commit-ID: 5LKHbcmjSy
2017-03-10 19:51:20 +00:00
Christoph Kerschbaumer
5bd46231f4
Bug 1307736 - Ensure tests performing a history load pass valid triggeringPrincipal. r=bz,mdeboer
2017-01-27 11:19:45 +01:00
Florian Quèze
aac9c05258
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
91f7a2ef3a
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
Florian Quèze
63de711857
Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
2017-01-17 11:50:25 +01:00
Phil Ringnalda
eb6266ba41
Backed out 2 changesets (bug 1307736) for failures in browser_490040.js and test_refresh_firefox.py TestFirefoxRefresh.testReset
...
CLOSED TREE
Backed out changeset 338dd2c343f8 (bug 1307736)
Backed out changeset 1a71a0d9aa90 (bug 1307736)
2017-01-16 10:47:55 -08:00
Christoph Kerschbaumer
a42b05841f
Bug 1307736 - Ensure tests performing a history load pass valid triggeringPrincipal. r=bz,mdeboer
2017-01-16 18:30:32 +01:00
Mike de Boer
68d8d6203a
Backed out changeset ba2692e1cbcf (bug 1252376) due to intermittent leaks.
...
MozReview-Commit-ID: IPFyfMhhLhv
2016-11-30 11:31:44 +01:00
Mike de Boer
b6bb4b0d21
Bug 1252376 - refactor browser_privatetabs.js to use BrowserTestUtils instead of using less deterministic methods and make sure to garbage collect, forcibly, after each sessionstore mochitest ended. r=Gijs
...
MozReview-Commit-ID: BgYllazwzLp
2016-11-25 16:53:33 +01:00
Andrea Marchesini
2f852682f9
Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 2, r=qdot
2016-11-18 09:33:50 +01:00
Andrea Marchesini
a0f9b83d87
Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 1, r=qdot
2016-11-18 09:33:33 +01:00
Sebastian Hengst
85e0c09e58
Backed out changeset d43b778d95c6 (bug 1318273) for failing mochitest fetch/test_formdataparsing.html. r=backout on a CLOSED TREE
2016-11-17 20:58:38 +01:00
Sebastian Hengst
716c8a83f3
Backed out changeset 2560659cda95 (bug 1318273)
2016-11-17 20:57:59 +01:00
Andrea Marchesini
5895fbf767
Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 2, r=qdot
2016-11-17 19:36:21 +01:00
Andrea Marchesini
8b521463f7
Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 1, r=qdot
2016-11-17 19:36:01 +01: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
Mark Banner
299f236684
Bug 1309842 - Fix eslint/espree parsing errors for ignored directories in browser/. r=jaws
...
Change functions definitions to generators where yield is used, and drop of non-standards if statement in catch.
List translation/cld2/cld-worker.js as ignored now, as it is a generated file.
MozReview-Commit-ID: wbkjx67fox
2016-10-13 11:48:35 +01:00
Timothy Guan-tin Chien
648c7f27c3
Bug 1153393 - Make session restore restores the scroll position of an about:reader page, r=gijs
...
MozReview-Commit-ID: 6smuca3vx5O
2016-05-07 12:31:21 +08:00
AJ Kerrigan
9981c05a18
Bug 1132556 - Replace runInContent() with ContentTask.spawn(). r=smacleod
2016-01-07 03:26:31 -05:00
Mike Conley
609756c32b
Bug 1209689 - Regression test. r=Mossop
2015-10-28 15:25:04 -04:00