Commit Graph

473357 Commits

Author SHA1 Message Date
DimiL
6032ace43b Bug 1311935 - P1. Make ActiveTables() work for safebrowsing v4. r=francois
This patch fixes that Classifier::ActiveTables doesn't return v4 tables.

Classifier::mActiveTablesCache is generated by scanning safebrowsing directory.
We use Classifier::ScanStoreDir to do the work, but it will ignore subdirectory.
Since v4 tables are stored in subdirectory 'google4', mActiveTablesCache doesn't
include v4 tables.

Fix this issue by checking subdirectory recursively in ScanStoreDir.

MozReview-Commit-ID: I6pa6e4bFND
2017-04-07 14:30:11 +08:00
Emilio Cobos Álvarez
a77afbc3a0 Bug 1341102: Update expectations for servo/servo#16300. r=me
MozReview-Commit-ID: ErduNdgJ2CW
2017-04-07 14:25:56 +02:00
Emilio Cobos Álvarez
e9eeeaa215 servo: Merge #16301 - Update string-cache (from emilio:atoms-up); r=Wafflespeanut
Source-Repo: https://github.com/servo/servo
Source-Revision: e0731215c0e712d792ea64a709c5178cb2cab165
2017-04-07 06:40:45 -05:00
Sebastian Hengst
eaef7bbaa5 Backed out changeset c001a2501875 (bug 1343774) for failing talos damp. r=backout 2017-04-07 13:48:53 +02:00
Marco Bonardo
2ac33d24f7 Bug 1353708 - Avoid autocomplete call to richlistbox's ensureElementIsVisible when there can't be a scrollbar. r=florian
EnsureElementIsVisible can cause a Layout flush, so we should try to avoid it when possible.

MozReview-Commit-ID: Dr0D8vPl9rd
2017-04-05 18:45:16 +02:00
Anthony Ramine
b7ae6ba202 servo: Merge #16288 - Kill ResourceGroup (from nox:net); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8f2ceb41dd1a039f1d0150dcb1c4e2ba6b22afa2
2017-04-07 05:53:31 -05:00
Pyfisch
77f104b5cf servo: Merge #16300 - Make transform perspective reject negative lengths (from pyfisch:transform-perspective); r=emilio
<!-- Please describe your changes on the following line: -->
`transform: perspective(-10px)` is invalid per spec. This patch prevents negative values from being parsed. There is an issue if zero should be allowed: https://github.com/w3c/fxtf-drafts/issues/126
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix https://github.com/servo/servo/pull/16242#issuecomment-291639340

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: e97b186f34a12441002e1a5d48ea8e20bc44d1eb
2017-04-07 05:13:47 -05:00
JW Wang
ee4737601a Bug 1354444 - use shorter names for logging macros in FileBlockCache. r=kaku
MozReview-Commit-ID: 4uyYRjBupfN
2017-04-07 15:05:30 +08:00
Henry Chang
7141f6bb42 Bug 1343425 - Supports nsIURIClassifier.asyncClassifyLocalWithTables. r=baku
We add a new "on-off" protocol PURLClassifierLocal which calls
nsIURIClassifier.asyncClassifyLocalWithTables on construction and
calls back on destruction. Pretty much the same design as PURLClassifier.

In order to avoid code duplication, the actor implementation is templatized
and |MaybeInfo| in PURLClassifier.ipdl is moved around.

Test case is included and the custom event target is not in place for labelling.
The custom event target will be done in Bug 1353701.

MozReview-Commit-ID: IdHYgdnBV7S
2017-04-07 14:15:16 +08:00
Servo VCS Sync
15a13c7f0d No bug - Revendor rust dependencies 2017-04-07 10:11:24 +00:00
Xidorn Quan
db3cfc0fac servo: Merge #16297 - Remove servo_url dependency for geckolib (from upsuper:stylo-servo-url); r=SimonSapin
It seems mod attr is not used for geckolib at all, and that is the only place where servo_url is still referenced for geckolib, so we can just remove it.

Source-Repo: https://github.com/servo/servo
Source-Revision: 12a4cc875d44a1a516412dc4c6044e897c0c6e47
2017-04-07 04:34:47 -05:00
Chris Pearce
247a2adfe1 Bug 1349746 - Ensure we close media cache's temporary file if the cache shuts down while we're waiting for the FD to arrive. r=jwwang
MozReview-Commit-ID: HNXt3pYb1Iv
2017-04-07 17:51:47 +12:00
Johan Lorenzo
b8a8b5689d Bug 1353333 - [push-apk] release: activate rollout percentage r=aki
MozReview-Commit-ID: 6SXbfREPBVS
2017-04-07 10:49:32 +02:00
Fred Lin
7690ebce08 Bug 1343774 - remove unused functions;r=Honza
MozReview-Commit-ID: CCB8o7mXOPR
2017-04-07 11:55:13 +08:00
JW Wang
121311236c Bug 1353607. P12 - replace |TimeUnit::ToMicroseconds()*double| with |TimeUnit::MultDouble()|. r=kikuo
MozReview-Commit-ID: 3QIBCCNf5G0
2017-03-29 15:00:46 +08:00
JW Wang
acf3547403 Bug 1353607. P11 - use TimeUnit in RecomputeDuration(). r=kikuo
MozReview-Commit-ID: F16erI0580V
2017-03-29 14:52:08 +08:00
JW Wang
218f131478 Bug 1353607. P10 - use TimeUnit in DropAudioUpToSeekTarget(). r=kikuo
MozReview-Commit-ID: 42HtGkCUsYI
2017-03-29 14:46:15 +08:00
JW Wang
d8efb886ee Bug 1353607. P9 - change the underlying type of mCurrentPosition to TimeUnit. r=kikuo
MozReview-Commit-ID: ffquOIFlp3
2017-03-28 18:13:22 +08:00
JW Wang
bcfe2a159b Bug 1353607. P8 - use TimeUnit in DispatchSetFragmentEndTime(). r=kikuo
MozReview-Commit-ID: IBLT0j7yMLK
2017-03-28 18:01:23 +08:00
JW Wang
955f28dc02 Bug 1353607. P7 - remove the unused function. r=kikuo
MozReview-Commit-ID: AWf7ritkbJ5
2017-03-28 17:29:24 +08:00
JW Wang
58b3101e9b Bug 1353607. P6 - use TimeUnit in CheckSlowDecoding(). r=kikuo
MozReview-Commit-ID: 524aRA1uUaQ
2017-03-28 17:27:56 +08:00
JW Wang
b3d4c8b3af Bug 1353607. P5 - change the type of mDecodedAudioEndTime/mDecodedVideoEndTime to TimeUnit. r=kikuo
MozReview-Commit-ID: 2bVQD5BViU4
2017-03-28 17:20:17 +08:00
JW Wang
1ab2ec60d3 Bug 1353607. P4 - change the type of mFragmentEndTime to TimeUnit. r=kikuo
MozReview-Commit-ID: FhUZMpXokSt
2017-03-28 17:14:01 +08:00
JW Wang
c89dafdd13 Bug 1353607. P3 - use TimeUnit in ScheduleStateMachineIn(). r=kikuo
MozReview-Commit-ID: 5mfquK9TiDa
2017-03-28 17:10:59 +08:00
JW Wang
fd7e768385 Bug 1353607. P2 - let GetDecodedAudioDuration() return a TimeUnit. r=kikuo
MozReview-Commit-ID: 5pLyACshP3e
2017-03-28 16:54:39 +08:00
JW Wang
2e47575870 Bug 1353607. P1 - remove the dead code. r=kikuo
MozReview-Commit-ID: 6FPq2ucZde5
2017-03-28 16:49:31 +08:00
Carsten "Tomcat" Book
5523991c7a Backed out changeset e22c18d39a92 (bug 1352699) for talos failures 2017-04-07 10:49:21 +02:00
Carsten "Tomcat" Book
4a1697a1ff Backed out changeset a822f74d410e (bug 1352699) 2017-04-07 10:48:10 +02:00
Carsten "Tomcat" Book
c4ba8ded0f Backed out changeset afbfe3a5cdb6 (bug 1352699) 2017-04-07 10:48:08 +02:00
Carsten "Tomcat" Book
33f548b31b Backed out changeset 48d3321e3474 (bug 1352699) 2017-04-07 10:48:06 +02:00
Carsten "Tomcat" Book
f2ccb1b98e Backed out changeset 2b6c014551e0 (bug 1352699) 2017-04-07 10:48:04 +02:00
Sebastian Hengst
be11eb3ebf Backed out changeset ba97ba73f72d (bug 1353333) for failing flake8. r=backout 2017-04-07 10:34:05 +02:00
Marco Bonardo
f46796e1b0 Bug 1353783 - updatePlaces doesn't correctly notify and count embed visits. r=Gijs
Additionally, move some history tests to the history folder, split insertMany tests into their own test file.
Also, remove some no more needed android annotations, Firefox for Android doesn't use nor build Places anymore.

MozReview-Commit-ID: 6p4mazeUjsw
2017-04-06 14:24:25 +02:00
Johan Lorenzo
2f78c45201 Bug 1353333 - [push-apk] release: activate rollout percentage r=aki
MozReview-Commit-ID: 6SXbfREPBVS
2017-04-06 10:30:59 +02:00
Johann Hofmann
6f157e5a1c Bug 1337772 - Part 2 - Explicitly trigger a mousedown event before opening the context menu in browser_context_menu.js. r=MattN
MozReview-Commit-ID: ADTskzMoK9t
2017-04-06 11:00:11 +02:00
Johann Hofmann
2852b063d7 Bug 1337772 - Part 1 - Use mousedown instead of contextmenu to avoid showing the password autocomplete. r=MattN
MozReview-Commit-ID: EUZ1f6Qdm0c
2017-04-07 00:01:31 +02:00
Zibi Braniecki
12d23db100 Bug 1354055 - Don't cache wrong result in OSPreferences::ReadSystemLocales on Android. r=rnewman
MozReview-Commit-ID: Li7wUQnC9Gz
2017-04-06 13:00:02 +02:00
Servo VCS Sync
3760e2fd51 No bug - Revendor rust dependencies 2017-04-07 06:46:39 +00:00
Xidorn Quan
a84fb3e9c8 servo: Merge #16296 - Update cssparser in Cargo.toml (from upsuper:cssparser); r=heycam
This helps Stylo builds to actually use the new cssparser.

Source-Repo: https://github.com/servo/servo
Source-Revision: 535d0e421a3188473fc0c3cefca569c1276c4804
2017-04-07 01:10:25 -05:00
Mark Banner
7945b07153 Bug 1342459 - Enable no-undef on browser/base, and clean up unnecessary no-undef references. r=mossop
MozReview-Commit-ID: KVrAnAjMD1E
2017-04-03 11:46:56 +01:00
Mark Banner
25c75db032 Bug 1342459 - Add a rule to automatically detect ContentTask.spawn and inject the relevant globals. r=mossop
This reduces the amount of places where we need to specify the mozilla/frame-script environment. It does have
the side effect of allowing those globals in the whole file, but that is what specifying the environment would
do, and this is also for mochitest test files only.

MozReview-Commit-ID: 1LLFbn6fFJR
2017-04-05 10:00:25 +01:00
Mark Banner
d150a4fcd6 Bug 1342459 - Fix various no-undef issues in browser/base. r=mossop
MozReview-Commit-ID: CRYxu7copKb
2017-04-04 13:42:33 +01:00
Tom Klein
c91d7f17d7 Bug 1350718 - Post: Name the special value -1 used to indicate a new tab should be appended. r=maliu
MozReview-Commit-ID: 7r8cHItW4wG
2017-04-06 11:27:42 -05:00
Tom Klein
0eb8a7cadd Bug 1350718 - 2. Remove the add animation for the TabsLayout list. r=maliu
Based on what I'm seeing, if you call scrollToPosition and that causes you to
"scroll into view" (remember, scrollToPosition doesn't actually scroll, it just
redraws the new position) one or more positions, then RecyclerView runs the add
animation on all those views "scrolled onto screen", which, for the list view's
slide-in-from-the-right add animation, looks silly (I think).  [Caveat:
RecyclerView sometimes keeps one offscreen view ready to go, which doesn't seem
to get the add animation.]

In non open-tab-from-another-app-with-the-tabs-tray-already-open operations this
was never an issue because either those animations are hidden by the panel being
animated into view when the panel opens and we scroll to the selected position
[at least that's my guess], or we only scroll by at most one, as in the case of
a tab close or undo close.  But in the
open-a-tab-and-scroll-to-it-while-the-tabs-tray-is-already-open case that we can
get with opening a tab from another app, the add animation runs for however many
tabs "need to be added" between the current position and the new tab; sometimes
the animation still gets hidden if the new tabs get added quickly enough when
fennec reloads [again, my guess], but on my device I always see the animations
if I open a tab in tab queue and then reopen Fennec by hand, whereas on an
emulator I see the animations in additional external-app-open cases as well.

MozReview-Commit-ID: J3x0bBLPNyz
2017-03-30 23:16:19 -05:00
Tom Klein
e3324c3945 Bug 1350718 - 1. Scroll to a tab added to the tabs tray by an external app. r=maliu
If another app opens a link in Fennec, and Fennec restores itself in a state
where the tabs tray is already open, we need to scroll to the newly added tab
since it gets added offscreen (not to mention the scroll position restored when
we open is unconstrained (it's whatever the user left it at before they switched
apps)).

This introduces one small change in behavior:
1) Use a gridded tabs tray;
2) Fill more tabs than will fit in the tray;
3) Put more than one tab on the last row;
4) Scroll so that the last row is partially, but not fully, hidden;
5) Close the last tab and then undo the close.
In that case we now scroll the last row fully into view, whereas previously we
maintained the old (partially hidden) scroll position.  (If you undo close any
tab other than the last on the final row then you still get the old behavior.)

Note that this fixes the case where the other app adds a *new* tab in Fennec
with the tabs tray open; it's (currently) also possible to open a link in an
already existing tab with the tabs tray open - that's bug 1353226.

MozReview-Commit-ID: BazXFwT0B8v
2017-03-28 11:29:52 -05:00
Ricky Chien
43755ae1cb Bug 1352699 - Fix mochitest failures r=Honza
MozReview-Commit-ID: 8rhAQw5oflC
2017-04-05 22:59:57 +08:00
Ricky Chien
5022822384 Bug 1352699 - Remove cyclic dependency in devtools loader r=Honza
MozReview-Commit-ID: GrtNP7WD8ys
2017-04-02 08:28:29 +08:00
Ricky Chien
cc080ff798 Bug 1352699 - Make netmonitor run on devtools-launchpad r=Honza
MozReview-Commit-ID: 4khCXm2lfzG
2017-04-01 23:01:06 +08:00
Ricky Chien
3a8e78b300 Bug 1352699 - Fix gStore instance issue in NetMonitorController r=Honza
MozReview-Commit-ID: CWAnmdEtJwc
2017-04-01 16:39:41 +08:00
Ricky Chien
28eca284fc Bug 1352699 - Access single Services.prefs instance r=Honza
MozReview-Commit-ID: GS77TZqwFc
2017-04-01 12:32:27 +08:00