Commit Graph

2329 Commits

Author SHA1 Message Date
Dave Townsend
eda6b245a0 Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong
The GMP manager uses a copy of the update service's url formatting code and has
since fallen out of sync. We'll also want to use the same formatting code for
the system add-on update checks so this just exposes it in a shared API.

I've moved the contents of UpdateChannel.jsm to UpdateUtils.jsm and exposed
formatUpdateURL there as well as a few properties that the update service still
needs access to.

UpdateUtils.UpdateChannel is intended to be a lazy getter but isn't for now
since tests expect to be able to change the update channel at runtime.
2015-09-14 11:04:19 -07:00
Carsten "Tomcat" Book
f8abba90f1 merge mozilla-inbound to mozilla-central a=merge 2015-09-22 12:35:13 +02:00
J. Ryan Stinnett
79ff031964 Bug 912121 - Update misc. DevTools paths and comments. rs=devtools 2015-09-21 12:07:31 -05:00
J. Ryan Stinnett
1fcbd86174 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
dominique vincent
36ac892eac Bug 1200181 - Zoomed view and Form Assistant should not be displayed at the same time. r=mcomella 2015-09-14 14:10:16 +02:00
Phil Ringnalda
d9222b9a18 Merge f-t to m-c, a=merge 2015-09-18 21:46:16 -07:00
Jim Chen
677eff8d88 Bug 1197974 - Force Gecko to exit when explicitly quitting; r=mfinkle
Currently we "quit" by closing the last window, but this bug makes us
not quit Gecko automatically when the last window closes. Therefore we
should force Gecko to quit. This patch also makes our quit code
consistent with the addon restart code at [1], i.e. using
nsIAppShell::Quit to quit and sending the "quit-application-requested"
notification. The previous notification,
"browser-lastwindow-close-requested", appears to only be used on
desktop.

[1] mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js?rev=f61c3cc0eb8b#6287
2015-09-18 09:17:11 -04:00
Randall Barker
d6a39687fb Bug 1166961 - Show click to play button on Fennec when autoplay is blocked. r=mfinkle 2015-09-16 16:22:00 +02:00
Sebastian Kaspari
ddee26d2c6 Bug 1199177 - Restricted profiles: Reset add-on preferences if restriction is not enabled. r=margaret 2015-09-16 13:23:30 +02:00
Richard Barnes
e062e8aebf Bug 1204616 - Control Center should show full host name (w/ subdomains) in security block. r=MattN,liuche 2015-09-16 18:01:27 -07:00
Wes Kocher
7b3f9b8da9 Merge m-c to inbound, a=merge 2015-09-15 17:20:16 -07:00
Nick Alexander
2b665818ed Bug 1191064 - Part 1: Add Fennec version of FxAccountsWebChannel. r=markh
This ticket does the following things:

* register early.  If the first page that Gecko loads is
  about:accounts, the channel needs to be in place.  If we delay this,
  we can and do miss content server messages.

* listen to the following messages:

  CAN_LINK_ACCOUNT: 'fxaccounts:can_link_account'
  CHANGE_PASSWORD: 'fxaccounts:change_password'
  DELETE_ACCOUNT: 'fxaccounts:delete_account'
  LOADED: 'fxaccounts:loaded'
  LOGIN: 'fxaccounts:login'

The list of messages is from
2a78a14daf/app/scripts/models/auth_brokers/fx-desktop-v2.js (L24)
via
2a78a14daf/app/scripts/models/auth_brokers/fx-fennec-v1.js

This patch implements only LOADED, LOGIN, and CHANGE_PASSWORD.  The
messages have the following behaviour:

A LOADED message is ferried to the individual XUL <browser> element it
originated from.  In general, WebChannel is a global listener: it does
not matter where a message originates.  We want to have fine-grained
control over when an embedding <iframe> is displayed (as opposed to
loaded, in the Gecko sense of loaded).  The fxa-content-server
participates in this exchange via the LOADED message; we complete the
loop by specially handling LOADED.

A LOGIN or CHANGE_PASSWORD message either creates a new Android
Account in the Engaged state, or moves an existing Android Account to
the Engaged state.  An Android sync is not yet requested -- we'll
arrange that from the Java side.
2015-09-15 15:54:29 -04:00
Anirudh S
3a035f1436 Bug 1197874 - Remove MatchstickApp.jsm from the build. r=mfinkle 2015-09-10 20:04:50 +05:30
Kartikaya Gupta
6fe7e505bd Bug 1204508 - Remove calls to function that was removed. r=mfinkle 2015-09-14 13:08:47 -04:00
Kartikaya Gupta
fa52a25d8c Bug 1201529 - Prevent calls to set the resolution or displayport from browser.js when APZ is enabled. r=rbarker 2015-09-11 21:58:16 -04:00
Shu-yu Guo
45211869c8 Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Nick Alexander
5297645b72 Bug 1205334 - Part 2: Show an error message in about:accounts when restricted. r=antlam,sebastian 2015-09-17 14:51:54 -04:00
Nick Alexander
f1feb634f8 Bug 1205334 - Part 1: Don't register FxA WebChannel or listen for Accounts:* messages when restricted. r=sebastian 2015-09-17 13:53:05 -04:00
Nick Alexander
a0b02c1dc0 Bug 1191067 - Add Fennec version of about:accounts. r=antlam,margaret
This is a Fennec version of about:accounts, cribbed largely from
Desktop's implementation.  This implementation serves two purposes:

One, it allows all fxa-content-server pref handling to remain in
Gecko.  Java-side consumers redirect to about:accounts?action=... and
have pref munging and parameter addition (like context=fx_fennec_v1,
etc) handled by about:accounts itself.

Two, it handles network connectivity display and error handling.  When
a request is started, we display an animated spinner.  We transition
smoothly from the spinner to the iframe display if we can, and if not
we hide any network error and offer to retry.  This is more important
in Fennec than it is on Desktop.  This approach agrees with Firefox
for iOS.

Some additional notes:

The spinner to iframe transition uses the WebChannel listener to send
LOADED messages to the appropriate XUL <browser> element.  It's worth
remembering that Fennec's Gecko is single process, so the <browser> in
question is in the same process.  None-the-less, we are close to e10s
safe.

There are four actions: signup/signin/force_reauth, and manage.  The
first three try to produce a LOGIN message.  The last uses the
fxa-content-server to manage the Account settings.  *This is not how
this is arranged on Desktop: Desktop redirects to a new tab, not
wrapped in about:accounts.*
2015-09-18 16:28:14 -04:00
Nick Alexander
6014e14cac Bug 1204510 - Replace animated SVG spinner with non-SVG equivalent. r=ally
The spinner itself is 60px square, colored like fennec_ui_orange.

The HTML and CSS was hacked out of
https://github.com/lightningtgc/material-refresh, tree
6b1be0046d.
The original code is licensed MIT.  I pruned things we don't use,
adjusted the box model for our use, changed the spinner color, and
simplified the CSS.
2015-09-18 16:07:38 -04:00
Jim Chen
88ddbd39df Bug 1197957 - Let GeckoView open the nsWindow instead of CLH; r=snorp
Currently, BrowserCLH opens a single new window on startup. Now that
GeckoView is able to open windows through GeckoView.Window, we should
make GeckoView open its own window, which we can do earlier in startup,
and will make it possible to support multiple GeckoView's down the road.
2015-09-21 10:13:32 -04:00
Kartikaya Gupta
d9051e0e5d Bug 1151102 - Add some diagnostic logging. r=snorp 2015-09-09 23:22:19 -04:00
Kartikaya Gupta
61e2dbec5c Bug 1201416 - Remove incorrect call to setResolution. r=snorp
The call to setResolution has (I believe) not been needed since bug 732971. Prior
to that resolutions used to be applied on the root document in Fennec, and so
browser.js would have to reapply the desired resolution on every tabswitch.
After that bug, the resolution was saved on the content documents for each tab
and so browser.js no longer needed to reapply the resolution. Until recently
doing this was redundant but harmless.

With bug 1180267 though the browser.js code that tracks the resolution may have
the wrong resolution initially, because that is determined in C++ code. Only
after the Java-side code process the setFirstPaintViewport message and sends
that information to browser.js does everything have the correct resolution. In
the case where a tab loaded in the background is brought into the foreground, the
tab-selected code runs before the setFirstPaintViewport code, and therefore uses
an incorrect resolution. This then screws up the viewport clamping code and causes
the page to get scrolled.
2015-09-08 14:04:54 -04:00
Kartikaya Gupta
e53c26755a Bug 1202652 - Remove redundant and incorrect check when setting displayport margins. r=snorp
The intent of this check is to avoid setting the same margins more than once.
However this is redundant because the code in nsLayoutUtils::SetDisplayPortMargins
already has an equivalent check. Further, this code is wrong because it stores
the old margins per-tab, and so once a new document is loaded the margins may be
the same as "before" but they apply to a different element. In order to be correct
the check would have to track the target element as well as the margin values,
but it's easier to just get rid of this and let nsLayoutUtils handle it.
2015-09-08 14:04:48 -04:00
Kartikaya Gupta
f6fec4cdc7 Bug 1201569 - Remove unused fields. r=snorp 2015-09-08 14:04:42 -04:00
Kartikaya Gupta
f90caaab5c Bug 1201539 - Remove Fennec front-end code to deal with reflow-on-zoom. r=mfinkle 2015-09-04 11:49:48 -04:00
Kartikaya Gupta
67033a6721 Bug 1197824 - Remove/simplify more code in browser.js dealing with viewport metadata. r=snorp 2015-09-03 10:30:41 -04:00
Kartikaya Gupta
41b98b3a21 Bug 1197824 - Switch Fennec over to using the zoom constraints from Gecko. r=snorp
Now Fennec can use the message from Gecko with the zoom constraints and we can
delete a bunch of code that did the equivalent job in browser.js
2015-09-03 10:30:41 -04:00
Kartikaya Gupta
1f4c6a816d Bug 1197824 - Stop propagating the default zoom around unnecessarily. r=snorp
The default zoom value is only used on the Java side to clamp the min/max zoom
values in the case where zooming is disabled. We can do this much earlier in
the flow, when we are computing the metadata, and reduce the amount of
redundant information being passed around.
2015-09-03 10:30:40 -04:00
Carsten "Tomcat" Book
a6ff6a0c61 merge mozilla-inbound to mozilla-central a=merge 2015-09-03 13:14:37 +02:00
Kartikaya Gupta
cb3b122036 Bug 1201217 - Don't fiddle with the resolution on tab switch when using APZ in fennec. r=rbarker 2015-09-02 16:31:06 -04:00
dominique vincent
1dc9e98f9f Bug 1200177 - Form Assistant is not always correctly closed. r=mcomella 2015-08-31 14:28:58 +02:00
Sebastian Kaspari
56a9bf3fa2 Bug 1199596 - Only install "Parental Controls Theme" for restricted profiles and not guest profiles. r=ally
From browser.js's point of view there's no difference between restricted and guest profiles. Both use the
parental controls API. So there are only two "simple" solutions here:

* 1) Add a method to nsIParentalControlsService to determine whether the current profiles is a restricted or
  a guest profile (Something like isGuest()). But then every platform using this interface would require
  to at least implement a stub for this method.

* 2) Add a new restriction that controls installing the theme.

This patch implements option 2. While this restriction is not of much use besides deciding whether we need
to install a specialized theme (DISALLOW_DEFAULT_THEME), it still offers the most flexibility. In a
follow-up bug we could decide to make the restriction configurable by the device admin (requires localized
strings).
2015-08-31 18:09:42 +02:00
Margaret Leibovic
f3ec535d50 Bug 1190301 - Remove mute button functionality from tab audio indicator. r=mcomella 2015-08-24 08:55:43 -06:00
Kartikaya Gupta
680f5210da Bug 1149000. r=mfinkle 2015-09-01 13:17:25 -04:00
Mark Finkle
f1d30d1a2f Bug 1078432 - Use Android print service to enable cloud printing r=sebastian 2015-08-31 17:54:23 -04:00
Michael Comella
9c3725332d Bug 1198955 - Remove FENNEC_TITLE_IN_TITLEBAR_ENABLED probe. r=ally 2015-08-26 14:11:11 -07:00
Mantaroh Yoshinaga
2f6b701db9 Bug 1177510 - Add max/min mechanism to DateTimePicker.java in order to prevent inputting invalid Date values. r=wesj 2015-07-22 03:26:00 -04:00
Yury Delendik
74294b6bce Bug 1192831 - Remove PlayPreview API. r=jet, r=peterv 2015-08-20 15:15:18 -05:00
Mike Taylor
da9dd52a4e Bug 976616 - Part 2: Update mobile viewport on DOMMetaChanged event. r=kats 2015-08-24 15:35:00 -04:00
Sebastian Kaspari
17fe38677b Bug 1182514 - Add Lightweight theme for restricted profiles. r=margaret 2015-08-07 13:23:18 +02:00
Margaret Leibovic
eb78c70bcf Bug 1185927 - Don't show extra dialog when user cancels add-on download. r=sebastian 2015-08-20 13:15:35 -07:00
Kartikaya Gupta
3ba111921f Bug 1180267 - Switch Fennec over to using the MobileViewportManager for computing the CSS viewport. r=snorp 2015-08-24 13:45:45 -04:00
Wes Kocher
76933589ec Merge inbound to central, a=merge 2015-08-20 12:42:21 -07:00
Ehsan Akhgari
559da3d613 Bug 1196361 - Remove the media.useAudioChannelService pref; r=baku
We need to rely on the audio channel service for all products now,
so supporting running without it seems pointless at this point.
2015-08-19 21:00:18 -04:00
Dylan Roeh
f7521795e5 Bug 1163937 - Added forceSave function to DownloadIntegration and ensured that downloads removed in Sanitizer do not persist. r=margaret 2015-08-11 15:33:57 -05:00
Kartikaya Gupta
9b35fc55ac Bug 1180295 - Implement seamless snapping to the stable state. r=rbarker 2015-08-18 14:27:20 -04:00
Kartikaya Gupta
7d25074ea7 Bug 1180295 - Rip out call to setContentDocumentFixedPositionMargins. r=rbarker 2015-08-18 14:27:18 -04:00
Kartikaya Gupta
ccf8f454cb Bug 1180295 - Rip out the FixedMarginsChanged message and all the code that depends on it. r=rbarker 2015-08-18 14:27:17 -04:00
Allison Naaktgeboren
2a33e76188 Bug 1114821 - Remove nightly-only flag for about logins.r=liuche 2015-08-17 23:22:24 -07:00