Commit Graph
150 Commits
Author SHA1 Message Date
Jim Mathies 5fc9700de6 Bug 1096804 - Add support to PageThumbs for requesting non-downsampled content screenshots. r=dao 2016-01-12 11:08:33 -06:00
Carsten "Tomcat" Book ef75c405fd merge mozilla-inbound to mozilla-central a=merge 2016-01-05 11:58:56 +01:00
Dave Townsend 8dc7f59eb3 Bug 1229142: Link browser and toolkit test directory to the shared eslintrc files. r=Standard8 2015-11-30 13:05:00 -08:00
Mason Chang a9e6ee79a9 Bug 1231518. Load about:blank if thumbnail service fails. r=adw 2016-01-04 16:24:58 -08:00
Andrea Marchesini 97f1b0d683 Bug 1231100 - Get rid of nsIDOMFileReader - patch 2, r=sicking 2015-12-09 15:52:38 -05:00
Andrea Marchesini 74abde342e Bug 1231100 - Get rid of nsIDOMFileReader - patch 1, r=sicking 2015-12-09 15:52:15 -05:00
Dave Townsend ca0061ea0a Bug 1229519: Fix toolkit/components/thumbnails to pass eslint checks. r=rhelmer 2015-12-03 09:59:44 -08:00
Oliver Henshaw f3ae4d2011 Bug 1192394 - Force an image load whenever the thumbnail file changes. r=adw
Add a revision tag to moz-page-thumb URLs. Change it whenever a new
thumbnail is captured and stored to disk. This prevents new loads from
re-using the old cached value even if the document context matches the
stored loadId of the cache entry.

Also drop no-longer needed wait in browser_thumbnails_update.js test.

Restores behaviour of test/head.js:retrieveImageDataForURL to that of
before bug 897880 - i.e. load the thumbnail image in the context of the
top level chrome document (rather than a new tab every time). It's
likely that bug 1192394 is the reason for the test failures observed in
bug 897880 comment #11.
2015-10-29 16:03:00 +01:00
Mason Chang 1c276d46bd Bug 1215659. Use destination canvas for thumbnail size if provided one. r=adw 2015-10-30 12:26:30 -07:00
Oliver Henshaw be94614774 Bug 1180715 (3/4) - Drop parseURI from newChannel2. review=ttaubert
Extract the nsIFile from aURI instead.
2015-10-20 10:45:46 +05:30
Oliver Henshaw 7b85ab126c Bug 1180715 (4/4) - Use nsIURL methods instead of RegExp. review=ttaubert
Also move host check from the parseURI caller to parseURI itself.
2015-10-20 10:45:40 +05:30
Oliver Henshaw d871d11e13 Bug 1180715 (2/4) - Provide a nsIFileURL interface for thumbnails. review=ttaubert
Use nsISubstitutingProtocolHandler to return a SubstitutingURL and to
resolve the thumbnail URL to the backing nsIFile.

Now the image loader code will realise that moz-page-thumb:// URLs are
backed by a file and will be able to use the file mtime to evaluate
whether the cached imgRequest has expired.

* Implement the nsISubstitutingProtocolHandler methods in the thumbnail
protocol handler. The resolveURI method does all the work, the other
methods are just stubs.

* moz-page-thumb:// is now an URL rather than an URI, so update the
signature accordingly.

* Add xpcshell-test to affirm that SubstitutingURL::EnsureFile()
resolves the backing file correctly.

* Adjust the mochitest to account for the one second granularity of the
mtime tracking.
2015-10-20 10:45:32 +05:30
Marcos Caceres 55921c6d1a Bug 1210944 - Return a promise in BackgroundPageThumbs.captureIfMissing. r=adw 2015-10-07 15:44:30 -04:00
Carsten "Tomcat" Book 036e6d2fa3 Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Sebastian Hengst 190bccea7d Backed out changeset c6b267589d0d (bug 1202902) for Mulet Reftest, W3C Platform Test and other failures. r=backout a=backout on a CLOSED TREE 2015-10-07 13:36:26 +02:00
Carsten "Tomcat" Book 12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo 474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Shu-yu Guo a021cebc10 Bug 1202902 - Fix the world. (r=ato for marionette, rs=Mossop for rest) 2015-10-06 14:00:30 -07:00
Tooru Fujisawa 33909699d9 Bug 1207498 - Part 2: Remove use of expression closure from tests in toolkit/components/. r=Gijs 2015-09-24 20:36:01 +09:00
Tooru Fujisawa afbd2956bc Bug 1207498 - Part 1: Remove use of expression closure from toolkit/components/, except tests. r=Gijs 2015-09-24 20:32:23 +09:00
Tooru Fujisawa 3d13712ac2 Backed out changeset 036615ba3257 (bug 1207498) for Linux pgo M(oth) failure 2015-09-27 23:42:50 +09:00
Tooru Fujisawa 8624800172 Backed out changeset 55b45f61cfd2 (bug 1207498) for Linux pgo M(oth) failure 2015-09-27 23:42:27 +09:00
Tooru Fujisawa c8e217312c Bug 1207498 - Part 2: Remove use of expression closure from tests in toolkit/components/. r=Gijs 2015-09-24 20:36:01 +09:00
Tooru Fujisawa f2efd2a948 Bug 1207498 - Part 1: Remove use of expression closure from toolkit/components/, except tests. r=Gijs 2015-09-24 20:32:23 +09:00
Mason Chang aebc25375e Followup for bug 1197361, fix typo in mochitest. r=me 2015-09-25 11:51:40 -07:00
Mason Chang 6bc63c25ba Bug 1197361. Optimize page thumbnails based on screen size. r=ttaubert 2015-09-25 11:27:16 -07:00
Shu-yu Guo 37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Christoph Kerschbaumer 6e5fcd4b19 Bug 1180273 - Adding missing 'this' pointer when forwarding newChannel2 calls (r=gijs,sicking) 2015-08-06 11:11:32 -07:00
Carsten "Tomcat" Book 24bab71afa Backed out 2 changesets (bug 1191107, bug 1180273) for causing xpcshell and m-oth testfailures on a CLOSED TREEi IGNORE IDL
Backed out changeset c5f710ed8718 (bug 1191107)
Backed out changeset d98d82f9981b (bug 1180273)
2015-08-06 08:39:05 +02:00
Christoph Kerschbaumer 65acc2a8ec Bug 1180273 - Adding missing 'this' pointer when forwarding newChannel2 calls (r=gijs,sicking) 2015-08-05 12:55:14 -07:00
David Rajchenbach-Teller 530ad877b1 Bug 1043863 - Use AsyncShutdown to shutdown Places. r=mak 2015-05-05 12:44:16 +02:00
Ryan VanderMeulen 6e8ebcf333 Backed out changesets ddad4d54c31e and ef85fdfd2fc7 (bug 1043863) for making browser_thumbnails_storage.js permafail on WinXP opt. 2015-05-26 14:05:18 -04:00
David Rajchenbach-Teller fe8f4d68b5 Bug 1043863 - Use AsyncShutdown to shutdown Places. r=mak 2015-05-05 12:44:16 +02:00
Seth Fowler 375f6d817b Bug 1163866 - Set originalURI correctly for moz-page-thumb:// channels. r=adw 2015-05-12 18:45:49 -07:00
Christoph Kerschbaumer e57b36cb13 Bug 1147562 - Update remaining callsites of newChannel before landing the shim in toolkit/ (r=gijs) 2015-04-09 10:10:45 -07:00
Bill McCloskey 0c959e674c Bug 1148961 - Add missing QI in thumbnail code (r=markh) 2015-03-30 20:13:05 -07:00
Bill McCloskey f932cd6e3b Bug 1084637 - Enable thumbnail test in e10s (r=jimm) 2015-03-05 22:03:22 -08:00
Christoph Kerschbaumer 2bb13c0b9b Bug 1087744: Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/ (r=gijs) 2014-10-24 15:25:34 -07:00
Tim Taubert a9070b8209 Bug 1129978 - Replace custom addVisits() implementations with the one in PlacesTestUtils r=mak 2015-02-05 21:58:58 +01:00
Jim Mathies ac600d7244 Bug 1088203 - e10sify PageThumbs support for checking page security and error state. r=Dao 2015-01-22 07:07:56 -06:00
abdelrhman 64233c145f Bug 1111276 - Replace gBrowser.selectedTab.linkedBrowser with gBrowser.selectedBrowser. r=dao 2014-12-15 22:05:46 +01:00
Jim Mathies 1cf0a642a1 Bug 698371 - Fixup front-end callers and enable some thumbnail tests for e10s. r=dao 2014-10-18 09:09:32 -05:00
Jim Mathies 6b17037c85 Bug 698371 - Move determineCropSize calls to the child for remote browsers. r=dao 2014-10-18 09:09:32 -05:00
Jim Mathies 351ff8b60a Bug 698371 - Add async thumbnail support for remote browsers. r=dao 2014-10-18 09:09:32 -05:00
Jim Mathies 5c50867980 Bug 698371 - Move common PageThumbs code to PageThumbUtils. r=dao 2014-10-18 09:09:31 -05:00
Wes Kocher 6790c99984 Backed out 4 changesets (bug 698371) for e10s bc3 bustage
Backed out changeset 6c6d420a3acc (bug 698371)
Backed out changeset 81378dee5a62 (bug 698371)
Backed out changeset d004bfd7f706 (bug 698371)
Backed out changeset 17bbdeffa8a6 (bug 698371)
2014-10-17 18:33:34 -07:00
Jim Mathies 06afcb44ee Bug 698371 - Fixup front-end callers and enable some thumbnail tests for e10s. r=dao 2014-10-17 18:13:58 -05:00
Jim Mathies 66a58f0007 Bug 698371 - Move determineCropSize calls to the child for remote browsers. r=dao 2014-10-17 18:13:58 -05:00
Jim Mathies e8c6627bb4 Bug 698371 - Add async thumbnail support for remote browsers. r=dao 2014-10-17 18:13:57 -05:00
Jim Mathies 4d20e074e7 Bug 698371 - Move common PageThumbs code to PageThumbUtils. r=dao 2014-10-17 18:13:57 -05:00