Граф коммитов

22 Коммитов

Автор SHA1 Сообщение Дата
Honza Bambas d6d727a69e backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-13 13:55:11 +02:00
Wes Kocher 0a1e1fe23b 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 70f62bdec1 backout of f9abb9c83452 (bug 1319111) for crashes, r=bz 2017-05-12 22:13:49 +02:00
Honza Bambas a1b64b4694 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
Dave Townsend c5bb304fd9 Bug 1316882: Turn on space-before-function-paren eslint rule (toolkit). r=jaws
MozReview-Commit-ID: FGFwg6TYkvm

--HG--
extra : rebase_source : 4073cebbef1694393efe312aaafbdb803adbd304
2016-11-11 15:22:34 -08:00
Oliver Henshaw 52ec170eae 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
Oliver Henshaw a24bd6393b 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 b8653b6cd5 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 7e5727b51a 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
Tooru Fujisawa accd89d4fd Bug 1207498 - Part 1: Remove use of expression closure from toolkit/components/, except tests. r=Gijs
--HG--
extra : commitid : 5yrVqfOUmEG
extra : rebase_source : e2ec30261bd76c1966b0e61fd7e08c2924f270b0
2015-09-24 20:32:23 +09:00
Tooru Fujisawa e5f587574b Backed out changeset 036615ba3257 (bug 1207498) for Linux pgo M(oth) failure
--HG--
extra : commitid : 4RedbQZ6Rzu
2015-09-27 23:42:50 +09:00
Tooru Fujisawa b92d75e47c Bug 1207498 - Part 1: Remove use of expression closure from toolkit/components/, except tests. r=Gijs
--HG--
extra : commitid : 2Gx1wpjvr9w
extra : rebase_source : 0a378fd51f45d3fe71430ad8a37a79a8862bfa76
2015-09-24 20:32:23 +09:00
Christoph Kerschbaumer e42fb810bc Bug 1180273 - Adding missing 'this' pointer when forwarding newChannel2 calls (r=gijs,sicking) 2015-08-06 11:11:32 -07:00
Carsten "Tomcat" Book 7d6f90f702 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 253e851464 Bug 1180273 - Adding missing 'this' pointer when forwarding newChannel2 calls (r=gijs,sicking) 2015-08-05 12:55:14 -07:00
Seth Fowler e57e4a952e Bug 1163866 - Set originalURI correctly for moz-page-thumb:// channels. r=adw
--HG--
extra : rebase_source : c04711d3cb753e4ddb799673e6423878a3c17a83
2015-05-12 18:45:49 -07:00
Christoph Kerschbaumer 94d55409cf Bug 1147562 - Update remaining callsites of newChannel before landing the shim in toolkit/ (r=gijs) 2015-04-09 10:10:45 -07:00
Christoph Kerschbaumer fe39ce0539 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 5242c5a28a Bug 1046645 - Revert part of the first patch and remove URI_IS_LOCAL_FILE from PageThumbsProtocolHandler again 2014-09-02 12:23:39 -04:00
Tim Taubert d312e85b38 Bug 1046645 - Mark moz-page-thumb:// as local resources to prevent mixed content warnings f=Mardak r=gavin
Mixed content warnings on valid https pages may sometimes occur when a thumbnail on about:newtab is refreshed while we're already transitioning to the new web page. The "insecure" request is counted as a subresource request towards the newly started load. If the new target is a https page this may result in a mixed content warning because nsSecureBrowserUI is dumb and can't tell the requests of the current and previous page loads apart.
2014-08-28 11:26:35 +02:00
David Rajchenbach-Teller eec7ada17b Bug 753768 - Moving Page Thumbs I/O fully off the main thread;r=ttaubert 2013-03-27 16:35:56 +01:00
Matt Brubeck 555449bc6a Bug 811548 - Move PageThumbs.jsm from /browser to /toolkit
--HG--
rename : browser/components/thumbnails/BrowserPageThumbs.manifest => toolkit/components/thumbnails/BrowserPageThumbs.manifest
rename : browser/components/thumbnails/Makefile.in => toolkit/components/thumbnails/Makefile.in
rename : browser/components/thumbnails/PageThumbs.jsm => toolkit/components/thumbnails/PageThumbs.jsm
rename : browser/components/thumbnails/PageThumbsProtocol.js => toolkit/components/thumbnails/PageThumbsProtocol.js
rename : browser/components/thumbnails/PageThumbsWorker.js => toolkit/components/thumbnails/PageThumbsWorker.js
rename : browser/components/thumbnails/test/Makefile.in => toolkit/components/thumbnails/test/Makefile.in
rename : browser/components/thumbnails/test/background_red.html => toolkit/components/thumbnails/test/background_red.html
rename : browser/components/thumbnails/test/background_red_redirect.sjs => toolkit/components/thumbnails/test/background_red_redirect.sjs
rename : browser/components/thumbnails/test/browser_thumbnails_bug726727.js => toolkit/components/thumbnails/test/browser_thumbnails_bug726727.js
rename : browser/components/thumbnails/test/browser_thumbnails_capture.js => toolkit/components/thumbnails/test/browser_thumbnails_capture.js
rename : browser/components/thumbnails/test/browser_thumbnails_expiration.js => toolkit/components/thumbnails/test/browser_thumbnails_expiration.js
rename : browser/components/thumbnails/test/browser_thumbnails_privacy.js => toolkit/components/thumbnails/test/browser_thumbnails_privacy.js
rename : browser/components/thumbnails/test/browser_thumbnails_redirect.js => toolkit/components/thumbnails/test/browser_thumbnails_redirect.js
rename : browser/components/thumbnails/test/browser_thumbnails_storage.js => toolkit/components/thumbnails/test/browser_thumbnails_storage.js
rename : browser/components/thumbnails/test/browser_thumbnails_storage_migrate3.js => toolkit/components/thumbnails/test/browser_thumbnails_storage_migrate3.js
rename : browser/components/thumbnails/test/head.js => toolkit/components/thumbnails/test/head.js
rename : browser/components/thumbnails/test/privacy_cache_control.sjs => toolkit/components/thumbnails/test/privacy_cache_control.sjs
2013-02-16 20:15:41 -08:00