Commit Graph
72 Commits
Author SHA1 Message Date
Jing-wei Wu d486f62174 Bug 1390735 - Support tint color for page action button. r=nechen,sebastian,walkingice
Use tint to provide two colors for page action icon in normal/private mode.

We would not tint icons that already have their own colors(for example: ic_readermode_on.png or casting_active.png)
or are came from 3-party addons.

MozReview-Commit-ID: 8uuMucKGLw5
2017-08-25 16:24:18 +08:00
Dan Banner 775694ef61 Bug 1385815 - Enable more whitespace related ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: FuM6Neob0mC
2017-08-01 16:36:00 +01:00
Julian_Chu 3f41949293 Bug 1379066 - 4. Readermode icon use new resource r=jwu
In Photon, the reader-mode icon should support private mode. Therefore
we rename resource in Australis to *ic_readermode* for consistent.

MozReview-Commit-ID: 1ejwk3OfUex
2017-07-06 12:26:05 +08:00
Sebastian Hengst 06ba9ed462 Backed out changeset b0ba143fba67 (bug 1379066) 2017-07-10 15:52:48 +02:00
Julian_Chu caa539b312 Bug 1379066 - 4. Readermode icon use new resource r=jwu
In Photon, the reader-mode icon should support private mode. Therefore
we rename resource in Australis to *ic_readermode* for consistent.

MozReview-Commit-ID: 1ejwk3OfUex
2017-07-06 12:26:05 +08:00
Nevin Chen a110ffbac7 Bug 1361664 - Part2. Create MVP Triggers and Deeplinks for Mobile Marketing Automatin. r=maliu
This patch do 6 things. They are related so I put them in the same patch.
1. Extract MmaEvent Name
2. If MMA is diabled, don't send event.
3. Add check before sending 'Set Default Borwser' deep link
4. Add user attribute for delay messaging focus install status.
5. If the user pref off at runtime, we ask Leanplum to stop and prevent our app sending event to Leanplum.
6. Fix proguard. Only keep necceary files.

MozReview-Commit-ID: APEmr1JXBLH
2017-05-17 01:25:45 +08:00
Sebastian Hengst 3b4b03d8fb Backed out changeset d289ee2c794d (bug 1361664)
MozReview-Commit-ID: gNRtEiyg7W
2017-05-27 14:00:27 +02:00
Nevin Chen 912e74135b Bug 1361664 - Part2. Create MVP Triggers and Deeplinks for Mobile Marketing Automatin. r=maliu
This patch do 5 things. They are related so I put them is the same patch.
1. Extract MmaEvent Name
2. If MMA is diabled, don't send event.
3. Add check before sending 'Set Default Borwser' deep link
4. Add user attribute for delay messaging focus install status.
5. If the user pref off at runtime, we ask Leanplum to stop and prevent our app sending event to Leanplum.

MozReview-Commit-ID: APEmr1JXBLH
2017-05-17 01:25:45 +08:00
Sebastian Hengst 4f36d5e85b Backed out changeset 59dc8710d768 (bug 1361664) 2017-05-26 13:40:51 +02:00
Nevin Chen 592593a928 Bug 1361664 - Part2. Create MVP Triggers and Deeplinks for Mobile Marketing Automatin. r=maliu
This patch do 5 things. They are related so I put them is the same patch.
1. Extract MmaEvent Name
2. If MMA is diabled, don't send event.
3. Add check before sending 'Set Default Borwser' deep link
4. Add user attribute for delay messaging focus install status.
5. If the user pref off at runtime, we ask Leanplum to stop and prevent our app sending event to Leanplum.

MozReview-Commit-ID: APEmr1JXBLH
2017-05-17 01:25:45 +08:00
Jim Chen 78ccd0611f Bug 1337467 - Convert observers to bundle events; r=rbarker r=sebastian
Bug 1337467 - 1. Convert "Window:Resize" observer to event; r=rbarker

Bug 1337467 - 2. Convert "ScrollTo:FocusedInput" observer to event; r=rbarker

Bug 1337467 - 3. Convert "Update:CheckResult" observer to event; r=sebastian

Also remove notifyCheckUpdateResult from GeckoInterface.

Bug 1337467 - 4. Convert "GeckoView:ImportScript" observer to event; r=sebastian

Bug 1337467 - 5. Convert accessibility observers to events; r=sebastian

Bug 1337467 - 6. Convert media/casting observers to events; r=sebastian

Bug 1337467 - 7. Convert "Sanitize:ClearData" observer to event; r=sebastian

Bug 1337467 - 8. Convert "Notification:Event" observer to event; r=sebastian

Bug 1337467 - 9. Convert BrowserApp observers to events; r=sebastian

Bug 1337467 - 10. Convert Tab observers to events; r=sebastian

Bug 1337467 - 11. Convert "Passwords:Init" and "FormHistory:Init" observers to events; r=sebastian

Bug 1337467 - 12. Convert Reader observers to events; r=sebastian

Bug 1337467 - 13. Convert Distribution observers to events; r=sebastian

Bug 1337467 - 14. Convert "Fonts:Reload" observer to event; r=sebastian

Bug 1337467 - 15. Convert RecentTabsAdapter observers to events; r=sebastian

Bug 1337467 - 16. Convert "Session:Prefetch" observer to event; r=sebastian

Bug 1337467 - 17. Convert "Browser:Quit" and "FullScreen:Exit" observers to events; r=sebastian

Bug 1337467 - 18. Convert SessionStore observers to events; r=sebastian

The "Session:NotifyLocationChange" observer is sent by browser.js and
requires passing a browser reference, so it's left as an observer.

Bug 1337467 - 19. Remove unused "Tab:Screenshot:Cancel" notifyObserver call; r=me

Bug 1337467 - 20. Convert "Session:Navigate" observer to event; r=sebastian

Bug 1337467 - 21. Convert "Locale:*" observers to events; r=sebastian

Bug 1337467 - Add log for unhandled events; r=me

Add back the log indicating no listener for an event, which can be
useful when reading logcat. r=me for trivial change.

Bug 1337467 - Don't return error from EventDispatcher when OnEvent fails; r=me

When a listener's OnEvent method returns an error, continue to dispatch
to other listeners and don't return an error from the dispatch function.
This avoids unexpected errors when dispatching events. r=me for trivial
patch.
2017-03-07 12:34:04 -05:00
Jim Chen a55ec92358 Bug 1328683 - Convert ReadingListHelper events to bundle events; r=sebastian 2017-01-10 23:01:27 -05:00
Julian_Chu e7a96e9970 Bug 1320898: To make notification bar only dimmed in Reader Mode r=sebastian
The notification bar will be dimmed if in Reader Mode and user scroll
down the page. If not in Reader Mode, make sure the notification bar is
not dimmed.

MozReview-Commit-ID: 87LisdS3nRO
2016-12-27 17:42:47 +08:00
Jim Chen 5a3f21320a Bug 1321418 - Use GekcoBundle events in GeckoApp/BrowserApp; r=snorp r=sebastian r=gbrown
Bug 1321418 - 1. Use GekcoBundle events in GeckoApp; r=snorp r=sebastian

Switch GeckoApp to using GeckoBundle events everywhere. UI or Gecko
events are used if the event requires the UI or Gecko thread,
respectively, and background events are used for all other events.

There are changes to some other Java classes, such as SnackbarBuilder
and GeckoAccessibility, due to the switch to GeckoBundle.

For "Snackbar:Show", we need the global EventDispatcher because the
event can be sent to both GeckoApp and GeckoPreferences. Howveer, we
only want one listener registered at the same time, so we register and
unregister in GeckoApp's and GeckoPreferences's onPause and onResume
methods.

Bug 1321418 - 2. Use appropriate JS EventDispatcher to send GeckoApp events; r=snorp r=sebastian

Change JS code that sends events to GeckoApp to use either the global
EventDispatcher or the per-window EventDispatcher.

"Session:StatePurged" is not used so it's removed. "Gecko:Ready" in
geckoview.js is not necessary because it's only used for GeckoApp, so
it's removed from geckoview.js.

Bug 1321418 - 3. Use GeckoBundle events in BrowserApp; r=snorp r=sebastian

Switch BrowserApp to using GeckoBundle events, in a similar vein as
GeckoApp. UI or Gecko events are used if the event handlers required UI
or Gecko thread, respectively, and background events are used for all
other events.

Some other Java classes also have to be modified as a result of
switching to GeckoBundle.

Bug 1321418 - 4. Use global EventDispatcher to send BrowserApp events; r=snorp r=sebastian

Change JS code that sends events to BrowserApp to use the global
EventDispatcher instead of "Messaging".

Bug 1321418 - 5. Update usages of events in tests; r=gbrown

Update cases where we use or wait for events in tests.
2016-12-09 12:32:45 -05:00
Margaret Leibovic bd0395891e Bug 1273173 - Fix reader button telemetry events. r=mcomella
MozReview-Commit-ID: ED2MFgQnh0z
2016-05-16 21:03:15 -07:00
Margaret Leibovic deaed15b37 Bug 1266163 - Replace FENNEC_READER_VIEW_BUTTON histogram with UI telemetry. r=mfinkle,barbara
MozReview-Commit-ID: 1guxvXp6loC
2016-04-20 15:22:46 -04:00
Andrzej Hunt 61462180ae Bug 1270198 - Remove unused Reader:FetchContent and associated logic r=margaret
MozReview-Commit-ID: FcXN3x5hRhE
2016-05-04 10:47:43 -07:00
Andrzej Hunt e1ddbca9b4 Bug 1265004 - Try to save in-memory reader view article instead of downloading r=margaret
This should guarantee that any reader view page will also be successfully saved offline.

MozReview-Commit-ID: 4J8cY6hYeyU
2016-05-02 15:47:46 -07:00
Timothy Guan-tin Chien 7abbc5015a Bug 1264805 - [Fennec] Use goBack to leave the reader view when possible. r=margaret
MozReview-Commit-ID: 79wpix8njxT
2016-04-20 12:11:44 +08:00
Andrzej Hunt e3eb6d005a Bug 1234331 - Remove from readercache when unbookmarking page r=margaret
MozReview-Commit-ID: EaJarGuccBE
2016-03-29 20:11:38 -07:00
Andrzej Hunt 55e235263f Bug 1234331 - Push article into readercache when bookmarking readerview page r=margaret
MozReview-Commit-ID: D7Yy45xkFd8
2016-03-29 20:08:09 -07:00
Gijs Kruitbosch 2b8faefaba Bug 1252855 - make reader mode use AsyncPrefs, r=margaret
MozReview-Commit-ID: U6ZTyQQSHG
2016-03-15 20:40:14 +00: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 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
Sebastian Kaspari 3b1dc00aa7 Bug 1246707 - Set all Snackbar durations to LONG. r=ahunt
MozReview-Commit-ID: EuSc6movOlX
2016-02-17 14:14:20 +00:00
Margaret Leibovic 10dc193364 Bug 1234335 - Remove shortcut to add an item to your reading list from long tapping on reader view icon. r=ahunt 2016-01-18 18:37:30 -05:00
Alex Johnson 1fe9e839a9 Bug 1234148 - Replaced toasts in JS modules with snackbars. r=sebastian 2015-12-21 11:52:12 -05:00
Mark Finkle 96ad7d8774 Bug 1234449 - Cleanup reader telemetry r=margaret 2015-12-22 09:32:10 -05:00
Margaret Leibovic a4622813e0 Bug 1219240 - Telemetry probe to measure user interaction with reader view button. r=mfinkle,vladan 2015-10-28 17:07:24 -04:00
Mark Capella f2c065c3fb Bug 1130646 - Find non-hacky way to make back button dismiss reader mode popup, r=bnicholson 2015-10-07 19:55:33 -04: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
Gijs Kruitbosch 412038a00a Bug 1182778, r=margaret,f=bz 2015-07-17 13:30:42 +01:00
Michael Comella 83f695ae10 Bug 1170804 - Set non-final eslintrc for chrome/content. r=margaret
Still a lot of errors but it's progress.
2015-06-25 10:27:38 -07:00
Margaret Leibovic 08dbcbfa67 Bug 1150174 - Update Android reader button logic to avoid doing full readability parse on every page load. r=mcomella 2015-04-10 17:09:21 -07:00
Clayton Bodendein f813bfe15f Bug 1159904 - Fix syntax error in Reader.js. r=margaret 2015-05-10 13:12:37 -05:00
Margaret Leibovic 3cf9e323ea Bug 1152121 - Factor out logic to get original URL from reader URL into shared place, and handle malformed URI excpetions. r=Gijs, mcomella 2015-04-06 16:07:03 -07:00
Margaret Leibovic 58c6ccce24 Bug 1152412 - Handle errors downloading and parsing documents for reader view. r=bnicholson 2015-04-10 14:41:14 -07:00
Michael Comella d4ddf7e462 Bug 1142196 - Match about:reader add/remove button state with the toolbar's on press. r=margaret 2015-03-17 14:23:49 -07:00
Margaret Leibovic 98ac137728 Bug 1128757 - Do not trim fragments from URLs loaded in reader view. r=bnicholson 2015-02-26 14:08:29 -08:00
Margaret Leibovic 92c26dadbd Bug 1118487 - Remove double-tap-to-scroll behavior in reader view. r=bnicholson 2015-02-27 11:46:55 -08:00
Margaret Leibovic 0861006880 Bug 1136716 - Consolidate reader view strings in one .properties file, and make the strings to close reader view consistent. r=bnicholson,Unfocused 2015-02-27 11:29:18 -08:00
Abdelrhman Ahmed 35f2c86ed4 Bug 1132925 - Pass messages to the parent process to set reader mode prefs. r=margaret 2015-02-20 15:56:00 -05:00
Margaret Leibovic eafea2658a Bug 1131303 - Update strings for reader view/reading list UI, and add title text to reader view toolbar buttons. r=Unfocused,rnewman 2015-02-12 09:15:45 -08:00
Margaret Leibovic 136ee6bd51 Bug 1132547 - Move reader.has_used_toolbar logic to Android's Reader.js. r=bnicholson 2015-02-12 15:23:26 -08:00
Margaret Leibovic 5a21c98952 Bug 1113454 - Download and cache reader mode content in the background. r=rnewman 2015-01-26 19:03:41 +01:00
Margaret Leibovic fcf1e2ed0d Bug 1117226 - Use sendRequestForResult for reader mode favicon and add-to-list requests. r=rnewman 2015-01-27 15:47:26 +01:00
Margaret Leibovic df94635170 Bug 795981 - (Part 2) Add reader mode button to toolbar. r=jaws,mfinkle 2015-01-02 17:20:12 -08:00
Margaret Leibovic 08534862ae Bug 1117228 - Lazy load Reader.js. r=mfinkle 2015-01-06 14:06:38 -08:00
Margaret Leibovic 9be03af6a8 Bug 1111142 - (Part 3) Replace fennec-specific logic in AboutReader.jsm with messages. r=mfinkle,bnicholson 2014-12-23 10:10:34 -05:00
Phil Ringnalda 63134cbd4a Back out 3 changesets (bug 1111142) for having a startling perf impact
CLOSED TREE

Backed out changeset 9b62d0e8b412 (bug 1111142)
Backed out changeset e66b9aa4b22c (bug 1111142)
Backed out changeset 6b480b80299a (bug 1111142)
2015-01-02 22:34:15 -08:00