Commit Graph

258 Commits

Author SHA1 Message Date
Dan Banner
5af4450327 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Ursula Sarracini
2531f8001d Bug 1400562 - BackgroundPageThumbs.captureIfMissing leaks when hidden capturing_disabled pref is true r=Mardak
MozReview-Commit-ID: 6zb3uBCYTk5
2017-10-10 13:22:54 -04:00
Andrea Marchesini
792189dd57 Bug 1120178 - Migrate DOMError to DOMExtension in FileReader, IndexedDB, DOMRequest and so on, r=smaug 2017-08-06 20:47:00 +03:00
Kris Maglione
1ac293476d Bug 1399646: Part 1 - Destroy BackgroundPageThumbs instance at shutdown. r=Gijs
During extremely short sessions (such as the ones triggered by many tests),
the code run by BackgroundPageThumbs during shutdown can trigger
hard-to-diagnose issues, among the most serious being a deadlock in the
service worker registrar.

Calling the (currently unused) _destroy() method at the start of shutdown
seems to prevent the majority of these problems.

MozReview-Commit-ID: Go7OLzVM24G
2017-09-13 13:34:57 -07:00
ahillier
471446b851 Bug 1399200 - Don't stop loading thumbnail when image redirects r=Mardak
MozReview-Commit-ID: 1sADsZM6uYj
2017-09-12 14:07:33 -04:00
ahillier
6a467105bd Bug 1397390 - Support better thumbnails for image urls r=k88hudson,Mardak
MozReview-Commit-ID: Ksxo6Gj2rIO
2017-09-07 21:18:45 -04:00
Sebastian Hengst
6a22986845 Backed out changeset 4a955a640a52 (bug 1397390) for eslint failure at toolkit/components/thumbnails/PageThumbUtils.jsm:142: 'error' is not defined. r=backout 2017-09-07 23:59:05 +02:00
ahillier
651fd02ea7 Bug 1397390 - Support better thumbnails for image urls r=k88hudson,Mardak
MozReview-Commit-ID: Ksxo6Gj2rIO
2017-09-07 15:12:54 -04:00
Kirk Steuber
d9a2fae508 Bug 1348280 - Try to ensure thumbnail creation happens when the thread is idle r=markh
MozReview-Commit-ID: HoEb5J0QCyw
2017-08-16 13:24:22 -07:00
Masatoshi Kimura
747aea1659 Bug 938704 - Make OS.File support modern iterators. r=florian,Yoric
MozReview-Commit-ID: 8F1DtgakxM3
2017-08-19 15:04:13 +09:00
Perry Jiang
d391dd7ff6 Bug 1353584 - replace setTimeout with requestIdleCallback in _delayedCapture and return early on about: page in _shouldCapture. r=mconley
MozReview-Commit-ID: DaAcOTFBY6Q
2017-07-28 10:46:55 -07:00
Kris Maglione
0fb6b2e73c Bug 1388215: Part 3 - Use JIT-friendly defineLazy*Getters methods when defining many lazy imports. r=florian
MozReview-Commit-ID: APoFwUhDFdj
2017-08-09 13:03:36 -07:00
Ed Lee
1fe77cc83c Bug 1387682 - Screenshots missing when thumbnailer Promise is garbage collected. r=ursula
Properly clean up on unload from newTab.js to release strong references in the background thumbnailer.
MozReview-Commit-ID: IJNSYjwKUW3
2017-08-04 20:38:00 -07:00
Ed Lee
fe7df208a3 Bug 1387580 - Some top sites never get screenshots of redirected pages. r=adw
MozReview-Commit-ID: IzmzXhGnPcH
2017-08-05 00:34:25 -07:00
Masatoshi Kimura
0af76969af Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.

MozReview-Commit-ID: 4ecl3RZhOwC
2017-08-04 17:49:22 +09:00
Geoff Brown
d1a55e2fed Bug 1314039 - Fix incorrect skip-if for browser_thumbnails_capture.js; r=me,test-only 2017-07-10 17:06:17 -06:00
Joel Maher
e86b104933 Bug 1314039 - Intermittent toolkit/components/thumbnails/test/browser_thumbnails_capture.js. temporarily disable on osx. r=gbrown
MozReview-Commit-ID: HJXMo89pJGd
2017-06-29 08:36:28 -04:00
Florian Quèze
b622c2b081 Bug 1368456 - Remove imports of Promise.jsm from Firefox, r=mconley. 2017-06-23 11:25:18 +02:00
Paolo Amadini
7afba17088 Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P
2017-06-19 11:32:37 +01:00
Gabriele Svelto
eb6099646c Bug 1359326 - Run the minidump analyzer directly from the CrashService code; r=bsmedberg
This patch removes the C++ code used to run the minidump analyzer when a
content process crashes, and replaces it with JS code within the CrashService
object. This removes the need for a separate shutdown blocker in C++ code and
allows end-to-end testing of the crash service functionality. Additionally
the exception handler code can be simplified since it's now only used to run
the crash reporter client.

The test added to test_crash_service.js covers computing the minidump SHA256
hash (bug 1322611) and of the minidump analyzer itself (bug 1280477).

MozReview-Commit-ID: LO5w839NHev
2017-05-11 14:03:50 +02:00
Christoph Kerschbaumer
5452a95b49 Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
Honza Bambas
f3b5a77a73 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-13 13:55:11 +02:00
Wes Kocher
7b49a483cc Backed out changeset 95ff98f1c2e5 (bug 1319111) for talos failures a=backout
MozReview-Commit-ID: Gs09moFm5rQ
2017-05-12 18:24:42 -07: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
e5a39cc4f8 Bug 1353542 - Add an eslint rule deprecating usage of Task.jsm in browser/ and toolkit/, r=Mossop. 2017-05-12 14:54:42 +02:00
Florian Quèze
38c24463e4 Bug 1353542 - Cleanup the script output and fix tests, r=Mossop. 2017-05-12 14:54:05 +02:00
Florian Quèze
50b8c6608d Bug 1353542 - script-generated patch to remove .bind(this) calls we no longer need now that generator functions have been replaced with async functions, r=Mossop. 2017-05-12 14:47:41 +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
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
Florian Queze
6cc0b6e992 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Florian Queze
ddf0cda8da Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +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
Masatoshi Kimura
d79bff15ab Bug 1356023 - Remove nsIScreenManager.systemDefaultScale. r=jfkthame
MozReview-Commit-ID: 6Ha8XrJBSiU
2017-04-13 07:20:35 +09:00
Ehsan Akhgari
6f80de5d9a Bug 1350781 - Avoid recomputing gBrowserThumbnails._topSiteURLs for 1 minute after computing it to speed up session restore; r=markh 2017-04-10 10:00:38 -04:00
Joel Maher
d2be399571 Bug 1351067 - add BUG_COMPONENT to toolkit/* files. r=myk,enndeakin,mossop
MozReview-Commit-ID: 8mv5Oed68JL
2017-04-09 05:43:43 -04:00
Phil Ringnalda
16779227d3 Backed out changeset 228a6487d0c1 (bug 1350781) for eslint failures
CLOSED TREE
2017-04-06 21:16:03 -07:00
Ehsan Akhgari
6cdfd26990 Bug 1350781 - Avoid recomputing gBrowserThumbnails._topSiteURLs for 1 minute after computing it to speed up session restore; r=markh 2017-04-06 23:26:08 -04:00
Jared Wein
5a181760cc 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
2017-03-21 14:29:43 -04:00
Mark Banner
ec9074e132 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
2017-03-20 12:36:37 +01:00
Gijs Kruitbosch
44f2ba8d7f Bug 1314855 - keep a strong reference to the listener for background thumbnail pages, r=markh
MozReview-Commit-ID: 1mWv4kpmqwE
2017-03-02 16:05:49 +00:00
Geoff Brown
1caa184929 Bug 1318696 - Increase timeout in browser_thumbnails_bg_destroy_browser.js; r=adw 2017-03-01 12:11:47 -07:00
Gijs Kruitbosch
cda1b34be2 Bug 1338215 - use a windowless browser for thumbnail hosting, r=markh
MozReview-Commit-ID: LWzMDHu0N8H
2017-02-27 19:58:55 +00:00
Mark Banner
0172a32b29 Bug 1338195 - Define a frame-script environment for eslint and use it to clear no-undef issues for known frame script globals. r=mossop
MozReview-Commit-ID: Fcin4InbLK2
2017-02-07 10:52:06 +00:00
Mark Banner
3d5cf8ade7 Bug 1338249 - Improve eslint-plugin-mozilla's handling of workers when dealing with globals and imports. r=mossop
MozReview-Commit-ID: 7UdgstbYNlB
2017-02-07 11:14:49 +00:00
Carsten "Tomcat" Book
e03a98e408 Backed out changeset 03bfb1ccd33f (bug 1338249) for test failures in test_loading.xul 2017-02-15 15:24:32 +01:00
Mark Banner
fcc130aa4e Bug 1338249 - Improve eslint-plugin-mozilla's handling of workers when dealing with globals and imports. r=mossop
MozReview-Commit-ID: 7UdgstbYNlB
2017-02-07 11:14:49 +00:00
Marco Bonardo
2ea06bb808 Bug 1320481 - thumbnails cache not cleared with clear history on shutdown. r=Felipe
The "places-shutdown" notification is not a good time to remove observers, since
history notifications (and in particular onClearHistory) may happen at the same
time (The sanitizer runs at "profile-change-teardown" that is basically the same
as "places-shutdown").
We can't ensure proper order of these calls, the safest/simplest thing is just
to keep a weak reference and continue observing.

MozReview-Commit-ID: 9zHkDqozXup
2017-01-26 17:54:32 +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
Mark Banner
55868dde7c Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ
2017-01-18 10:30:39 +00:00