Commit Graph

53 Commits

Author SHA1 Message Date
Dave Townsend
0f2c3bd648 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
Differential Revision: https://phabricator.services.mozilla.com/D1850
Differential Revision: https://phabricator.services.mozilla.com/D1869
2018-06-28 16:06:09 -07:00
Brindusan Cristian
d94fd86e60 Backed out changeset b11aa832c41a (bug 1453751) for Mochitest-15 failures in toolkit/components/extensions/test/mochitest/test_ext_webrequest_filter.html. CLOSED TREE 2018-06-28 23:15:49 +03:00
Dave Townsend
ebc2c6ff75 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
Differential Revision: https://phabricator.services.mozilla.com/D1850
2018-06-04 12:53:55 -07:00
Cosmin Sabou
42e854deed Backed out changeset 638eb8a41245 (bug 1453751) for frequent linux debug e-10s failures on test_ext_webrequest_filter.html 2018-06-26 07:29:35 +03:00
Dave Townsend
e6cce6de21 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
2018-06-04 12:53:55 -07:00
Christoph Kerschbaumer
8cd6de289c Bug 1436808: Apply Meta CSP to content privileged about: pages. r=gijs,freddyb 2018-02-09 11:42:21 +01:00
Cameron McCormack
114cf0dbf2 Bug 1417837 - Part 3: Replace all IDs in about:reader documents with class names. r=Gijs
Since the readerized article content will have its class names stripped
but will retain its original IDs, and we don't want our aboutReader.css
rules targetting UI elements to match anything in the article.

MozReview-Commit-ID: JuXTo8Nth5Q
2017-11-30 11:55:32 +08:00
Cameron McCormack
7872ff1664 Bug 1417837 - Part 1: De-scope about:reader style sheets. r=Gijs
MozReview-Commit-ID: 8C65ljtFDrh
2017-11-16 17:58:37 +08:00
Dorel Luca
29ccf2be4c Backed out 3 changesets (bug 1417837) for failing browser/chrome/test_media_playback.html r=backout on a CLOSED TREE
Backed out changeset 9556f12b4058 (bug 1417837)
Backed out changeset 49a463e85e42 (bug 1417837)
Backed out changeset 7a76f2363663 (bug 1417837)
2017-12-04 14:59:31 +02:00
Cameron McCormack
ffe8413f56 Bug 1417837 - Part 3: Replace all IDs in about:reader documents with class names. r=Gijs
Since the readerized article content will have its class names stripped
but will retain its original IDs, and we don't want our aboutReader.css
rules targetting UI elements to match anything in the article.

MozReview-Commit-ID: JuXTo8Nth5Q
2017-11-30 11:55:32 +08:00
Cameron McCormack
f7959cb8bb Bug 1417837 - Part 1: De-scope about:reader style sheets. r=Gijs
MozReview-Commit-ID: 8C65ljtFDrh
2017-11-16 17:58:37 +08:00
Coroiu Cristina
20dd07106d Backed out 3 changesets (bug 1417837) for ESlint failures at /builds/worker/checkouts/gecko/toolkit/components/narrate/NarrateControls.jsm r=backout on a CLOSED TREE
Backed out changeset 0d6b56293cbf (bug 1417837)
Backed out changeset 1c341a427a7a (bug 1417837)
Backed out changeset fa4f488ea88f (bug 1417837)
2017-12-04 12:34:37 +02:00
Cameron McCormack
3a07eef118 Bug 1417837 - Part 3: Replace all IDs in about:reader documents with class names. r=Gijs
Since the readerized article content will have its class names stripped
but will retain its original IDs, and we don't want our aboutReader.css
rules targetting UI elements to match anything in the article.

MozReview-Commit-ID: JuXTo8Nth5Q
2017-11-30 11:55:32 +08:00
Cameron McCormack
90802066f7 Bug 1417837 - Part 1: De-scope about:reader style sheets. r=Gijs
MozReview-Commit-ID: 8C65ljtFDrh
2017-11-16 17:58:37 +08:00
Masatoshi Kimura
4f2e64ad3d 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
2017-02-23 06:10:07 +09:00
fiveNinePlusR
dc7b67c54e Bug 1265304 - Add an estimated time range to reader mode, r=gijs,ui-r=emanuela
Uses an upper and lower bound found from this study: http://iovs.arvojournals.org/article.aspx?articleid=2166061
2016-12-11 21:35:00 +00:00
Dave Townsend
e7b1b3284f Bug 1316882: Turn on space-before-function-paren eslint rule (toolkit). r=jaws
MozReview-Commit-ID: FGFwg6TYkvm
2016-11-11 15:22:34 -08:00
danhuang1202
83d0f1d213 Bug 1269521 - Add line height contral in reader mode. r=jaws
MozReview-Commit-ID: HLFxqXdBhrD
2016-05-09 19:17:00 +02:00
danhuang1202
72e5cc0cfb Bug 1151200 - Add content width control in reader mode. r=shorlander, r=jaws 2016-05-02 04:50:00 +02:00
Margaret Leibovic
67b8d331fa Bug 1226238 - (Part 4) Remove reading list toggle button from reader view. r=ahunt,Gijs
MozReview-Commit-ID: 3pwOV5BjwC9
2016-02-22 10:35:32 -05:00
Margaret Leibovic
48d5b8852e Bug 1226238 - (Part 3) Remove reading list button from reader view. r=Gijs
MozReview-Commit-ID: 4QmGlGH8ELA
2016-02-22 10:29:48 -05:00
Margaret Leibovic
35f8776807 Bug 1226238 - (Part 2) Remove reader view footer. r=Gijs
MozReview-Commit-ID: B474joTtVwa
2016-02-22 10:16:24 -05:00
Margaret Leibovic
36d1c35aec Bug 1226238 - (Part 1) Remove share button from reader view. r=ahunt,Gijs
MozReview-Commit-ID: 3TFzz809KcM
2016-02-22 10:09:07 -05:00
Shane Caraveo
3d87f487dc Bug 1215694 move pocket to a system addon, r=Gijs, r=glandium
part 1: reorganize file locations, r=Gijs
  part 2: remove built-in pocket code, r=Gijs
  part 3: l10n support, r=glandium
  part 4: move code/functionality from part 2 into the addon, r=Gijs
  part 5: remove dead code, r=Gijs
  part 6: create a simple api for addons to add to reader mode, r=Gijs
  part 7: various test fixes related to cui behaviour and pocket, r=me
2015-12-29 15:40:52 -08:00
Margaret Leibovic
b124996e9c Bug 1160577 - Set styles on #reader-message div instead of wrapper div. r=MattN 2015-05-01 16:10:38 -07:00
Jared Wein
7cf654c3e7 Bug 1155523 - Implement Pocket toolbarbutton and subview. r=gijs 2015-04-24 14:29:05 -04:00
Margaret Leibovic
f6cdb70dbc Bug 1154028 - Move reader controls styles to scoped style sheet. r=Gijs 2015-04-23 10:59:03 -07:00
Margaret Leibovic
e9056e139b Bug 1154028 - Move reader content styles to scoped style sheet. r=Gijs 2015-04-23 10:42:31 -07:00
Blake Winton
684ac9f657 Bug 1149520 - Move the font-size change to the container, so as not to repaint the toolbar. r=jaws, r=margaret 2015-04-07 13:43:57 -04:00
Blake Winton
6ba39a6fc8 Bug 1137211 - Move the click handler to the document so we can click on the margins. ui-r=phlsa, r=margaret, r=jaws 2015-04-01 16:40:08 -04:00
Blake Winton
94e910ab10 Bug 1145809 - Add the reading mode footer. ui-r=mmaslaney, r=Unfocused 2015-03-30 12:50:01 -04:00
Margaret Leibovic
f383ea9c4e Bug 998031 - Reader Mode toolbar should scroll in and out instead of fading. r=bnicholson 2015-03-05 11:23:27 -08:00
Margaret Leibovic
d8948f3115 Bug 1141317 - Account for new #container div in about:reader CSS. r=bnicholson 2015-03-09 19:15:39 -07:00
Margaret Leibovic
f2469cee14 Bug 1140172 - Use a single reader worker instead of spawning infinite workers. r=bnicholson f=Yoric 2015-03-05 17:31:05 -08:00
Margaret Leibovic
2af12e6bfa Bug 1120004 - Update styles of Reader View controls on mobile. r=bnicholson 2015-02-27 16:52:03 -08:00
Margaret Leibovic
d31d834c70 Bug 1124011 - Hide reader view buttons related to reading list if reading list is disabled, and enable reader view by default on Nightly. r=Unfocused 2015-02-19 11:47:20 -08:00
Margaret Leibovic
aff3f99941 Bug 1134441 - Replace font size controls with +/- buttons. r=bnicholson 2015-02-24 17:15:03 -08:00
Boris Kudryavtsev
764dfa5536 Bug 1135364 - Close <meta> tag in aboutReader.html. r=bnicholson 2015-02-23 20:41:00 -08:00
Margaret Leibovic
d7da992518 Bug 1134443 - Update Readability.js from shared library on github. r=bnicholson 2015-02-22 16:18:16 -08:00
Phil Ringnalda
c22ed5a125 Back out 66cf24f275b7 (bug 1124011) for frequent ASan crashes in test_memoryReporters.xul 2015-02-22 22:00:56 -08:00
Margaret Leibovic
e6bf915bb0 Bug 1124011 - Hide reader view buttons related to reading list if reading list is disabled, and enable reader view by default on Nightly. r=Unfocused 2015-02-19 11:47:20 -08:00
Margaret Leibovic
723281be3f Bug 1132307 - Use <button> elements instead of <a> elements in reader mode toolbar. r=bnicholson 2015-02-13 14:09:44 -08:00
Margaret Leibovic
fd97005924 Bug 1120735 - Implement desktop reader mode controls. r=jaws,bnicholson 2015-01-21 17:21:11 -08:00
Margaret Leibovic
8e949e0d4b Bug 907079 - Simplify reader mode style popup logic, including removing the use of the window.history API. r=mfinkle 2015-01-28 17:43:07 +01:00
Mark Capella
f1a5f47245 Bug 1081742 - Reader mode doesn't support RTL, r=bnicholson 2015-02-03 21:49:38 -05:00
Margaret Leibovic
f2af06f352 Bug 1111142 - (Part 2) Load AboutReader in a frame script on Fennec. r=mfinkle,bnicholson 2014-12-23 15:32:15 -05:00
Margaret Leibovic
2fec8b9dd1 Bug 1111142 - (Part 1) Turn aboutReader.js into an AboutReader module. r=mfinkle,bnicholson 2014-12-19 13:51:24 -08:00
Margaret Leibovic
447e6e89ec Bug 1093172 - Add status when adding reading list item from Reader.js. r=rnewman 2014-12-08 10:44:26 -08:00
Ryan VanderMeulen
565774cac8 Backed out 3 changesets (bug 1093172) for robocop failures.
Backed out changeset 8d1c3083f7e6 (bug 1093172)
Backed out changeset 4fa27d0105df (bug 1093172)
Backed out changeset c85c0a37dcb9 (bug 1093172)
2014-12-19 23:51:18 -05:00
Margaret Leibovic
d720079fb4 Bug 1093172 - Add status when adding reading list item from Reader.js. r=rnewman 2014-12-08 10:44:26 -08:00