Commit Graph

551160 Commits

Author SHA1 Message Date
JW Wang
cf112f4b88 Bug 1388228. P6 - following P5, we are now able to move some methods that are related to nsIChannel to BaseMediaResource. r=gerald
So we reduce the number of unimplemented methods in the sub-classes of MediaResource.

MozReview-Commit-ID: EAmUEv9WQk8

--HG--
extra : rebase_source : deed5fd089e8c42a5a6ab0546e0781d0061591e5
2017-08-07 18:09:56 +08:00
JW Wang
6ab3fdad07 Bug 1388228. P5 - move some more members to ChannelMediaDecoder. r=gerald
Those members only make sense for ChannelMediaResource.

MozReview-Commit-ID: 2z6WPQeJnIT

--HG--
extra : rebase_source : 7f43635ee91c8fad1d6ad6f56788e880d54beab2
2017-08-07 13:23:43 +08:00
JW Wang
e5f016de87 Bug 1388228. P4 - move the implementation of MediaDecoder::CanPlayThroughImpl() down to ChannelMediaDecoder. r=gerald
Because GetStatistics() only makes sense for ChannelMediaResource.

MozReview-Commit-ID: HkEpb4frUx1

--HG--
extra : rebase_source : 7086721f47b381b692a165302ff3bdc13caa8b41
2017-08-07 11:48:43 +08:00
JW Wang
303f74001a Bug 1388228. P3 - following P2, we can now remove unused code and canonicals. r=gerald
Note we remove the log in BufferingState::Enter() which prevents us from
removing ChannelMediaResource related code from MDSM. We can add it back
in the future after the refactoring.

MozReview-Commit-ID: B94iOI0bTXC

--HG--
extra : rebase_source : 857b7420ab9b52c07dc8a917c1f9344096ed20e6
extra : source : 2c350a4f3cbdf6f446b5e1cc8d6e0892722866d0
2017-08-04 17:56:28 +08:00
JW Wang
b4e54281c9 Bug 1388228. P2 - cache the result of CanPlayThrough() and mirror it to MDSM. r=gerald
So we don't duplicate the code of calculating CanPlayThrough from
download rate and playback rate in MediaDecoder.

MozReview-Commit-ID: 7M5JAuUxFFc

--HG--
extra : rebase_source : cb216a1af59b9d8207e3056a5d3ae05e93d85e74
extra : source : a183c089760e329508fac44239fee42c1f047b80
2017-08-04 17:38:20 +08:00
JW Wang
4eb2d7a53b Bug 1388228. P1 - move some members to ChannelMediaDecoder. r=gerald
These members are used only by ChannelMediaDecoder.

MozReview-Commit-ID: 10CHV1sjY9k

--HG--
extra : rebase_source : 2a9817a433cd098d818399e718a5c08d6b88df4c
extra : source : 5d606d67b79543adde8580d96f5aa7055fe0286c
2017-08-04 16:02:40 +08:00
Rex Lee
3da1348733 Bug 1384841 - Match the style of the UITour highlights with Photon style guide. r=Gijs
MozReview-Commit-ID: BT1o8O2A1Al

--HG--
extra : rebase_source : 099e6ba3d2cb941075ad8772825040b78e7757a0
2017-08-01 11:56:28 +08:00
Fischer Liu
3a0f05a4ca Bug 1382579 - Part 3: Tests, r=Gijs
This commit
- adds 2 utility functions to the uitour's head.js

- adds the browser_UITour4.js

- moves the tests in the browser_showMenu_controlCenter.js into the newly added the browser_showMenu.js

- deletes the browser_showMenu_urlbar.js because it's test has been modified and moved into the browser_showMenu.js

- adds one test case for the page action panel in the browser_showMenu.js

- updates the browser_UITour_availableTargets.js test because we have more targets right now.

MozReview-Commit-ID: CydEAkqAl3V

--HG--
rename : browser/components/uitour/test/browser_showMenu_controlCenter.js => browser/components/uitour/test/browser_showMenu.js
extra : rebase_source : 3b4d124ccfc12e577ce509241d19795d87fa3206
2017-08-02 13:53:05 +08:00
Fischer.json
39b51b3ffc Bug 1382579 - Part 2: UITour should support showMenu, showInfo, showHighlight on the Page Action Panel, r=Gijs
This commit
- makes UITour support showMenu, showInfo, showHighlight on the Page Action Panel

- makes UITour support showInfo, showHighlight on the Page Action buttons and on the urlbar's bookmark #star-button button btw

- fixes Bug 1382700 - "UITour lacks the `hideMenu` api support for the single search bar (urlbar) dropdown menu" together

- fixes Bug 1386201 - "UITour wouldn't close the appMenu if running the tracking-protection's ui tour" together

MozReview-Commit-ID: Fou1sD4gAs4

--HG--
extra : rebase_source : 90a08d1b4d58ddd6c3f49730d254a0f3c6c446c1
2017-08-08 11:19:09 +08:00
Fischer.json
d6ba3d20ff Bug 1382579 - Part 1: Update the BrowserPageActions API for the UITour's usage, r=adw,Gijs
- adds `showPanel` so UITour could call it to open the page action panel

- makes clicking page action button on the urlbar would toggle the panel. This is for the case, when UITour opens the page action panel to highlight a button it would set "noautohide" to let the panel persistently opened. But we still need a way to let user able to close the panel so made this change. The PanelUI is doing the same thing [1]. UITour wuold remove "noautohide" on the panelHidden event [2].

[1] https://dxr.mozilla.org/mozilla-central/rev/1b065ffd8a535a0ad4c39a912af18e948e6a42c1/browser/components/customizableui/content/panelUI.js#246
[2] https://dxr.mozilla.org/mozilla-central/rev/1b065ffd8a535a0ad4c39a912af18e948e6a42c1/browser/components/uitour/UITour.jsm#1483

MozReview-Commit-ID: FtJZZ0bfy61

--HG--
extra : rebase_source : e986dc4cb50a4a72fdebb69a5182f029d7f327bb
2017-08-01 12:09:25 +08:00
Evan Tseng
4697753e00 Bug 1382135 - Remove all colon signs on sub-dialogs because we already removed them all on each category pane and we should make same thing for sub-dialogs. r=jaws
MozReview-Commit-ID: 8md6CFBSM3B

--HG--
extra : rebase_source : 80bff2dec6a20d7710aa3252c3e2fb295286b294
2017-08-01 11:54:54 +08:00
Mark Banner
0b94d0fe3e Bug 1385733 - Improve the performance of async transactions when bookmarking all tabs. r=adw
Optimise adding a folder with child bookmarks for transactions by allowing PlacesTransactions.NewFolder to take children details and use insertTree rather than needing separate NewFolder and then multiple NewBookmark transactions.

MozReview-Commit-ID: 6s9j0pbsiUB

--HG--
extra : rebase_source : 0b4029905dc76a0ca49d16a7e71c85f1f07b8e2d
2017-08-03 18:32:42 +01:00
Henry Chang
0038962d8f Bug 1387983 - Fix test case for data:stylesheet same origin check. r=heycam
MozReview-Commit-ID: 1U7Aw9X13uF

--HG--
extra : rebase_source : 5cb424d70567a42df0d6521961474a89fd9d87d2
extra : source : 540b354d289a34c48b0fd2e43da3e3f6ae1aae2e
2017-08-07 16:36:35 +08:00
Kan-Ru Chen
87a450cad1 Bug 1386495 - Add timeStamp to DOMEventMarkerPayload. r=mstange,smaug
MozReview-Commit-ID: B3b4laxMqQM

--HG--
extra : rebase_source : 80e41c2f9d921ddd93d41c348594895046c7af8f
2017-08-03 15:42:42 +08:00
Jan Varga
c186d54bb2 Bug 1350637 - Part 2: Core changes for LocalStorage on PBackground; r=asuth
- stop inheriting StorageDBBridge in StorageDBThread and StorageDBChild
- move StorageDBThread and StorageDBChild initialization out of LocalStorageCache
- use IPC even for the intra-process communication in main process
- rationalize a bit storage observer code
- make StorageDBParent to always be created and destroyed on the background thread
2017-07-26 12:19:13 +02:00
Jan Varga
ceff0f7d8f Bug 1350637 - Part 1: Move PStorage stubs from PContent to PBackground; r=asuth r=billm
--HG--
rename : dom/storage/PStorage.ipdl => dom/storage/PBackgroundStorage.ipdl
2017-08-08 22:56:49 +02:00
Jason Laster
425ec06f61 Bug 1383576 - Extend timeout browser_dbg-breakpoints-reloading. r=jmaher 2017-08-08 13:01:00 -04:00
Christoph Kerschbaumer
a1341ccf6d Bug 1387811 - Follow up for Test within Bug 1381761: CSP JSON is never null, hence it's better to check actual contents of JSON for testing. r=dveditz 2017-08-06 11:37:09 +02:00
Eric Rahm
a5f2311154 Bug 1380154 - Part 3: Cache most recently used eTLD entries. r=njn, r=jduell
This adds a most recently used (MRU) cache for the most common base domain
requests (aAddtionalParts == 1). With a table size of 31 I saw 8777 hits and
22 misses when loading twitter, youtube, and techcrunch. In stress testing
this provided a 75% reduction in run time.


MozReview-Commit-ID: 3JgCwIZagMs
2017-08-08 12:21:10 -07:00
Steve Fink
5b7d75f096 Bug 1385364 - gdb JSString prettyprinter string length limit and invalid char handling, r=jimb
--HG--
extra : rebase_source : 3a41c07c2ef76bef2fd7477b1fa7187a498facf5
2017-07-25 17:32:12 -07:00
Liang-Heng Chen
798faa8403 Bug 1382178 - check null pointer before using; r=bagder
MozReview-Commit-ID: CjfWL39mYSP

--HG--
extra : rebase_source : 7a5d7d4d6fade97e7a37cf65cc7ae0f58d9b486f
2017-07-21 13:23:23 +08:00
Shih-Chiang Chien
a53028f46a Bug 1387285 - release more member variable in HttpChannelChild on main thread. r=mayhemer
After bug 1338493 landed, HttpChannelChild might be released on STS thread.
Redirected channel, intercept stream listener and context might not always be able to
release off-main-thread. Therefore, we need to proxy release these members on main thread.

MozReview-Commit-ID: 6mcja7WY1fK

--HG--
extra : rebase_source : 55999dfa63b81347e426d90a59e211fabddba6d1
2017-08-04 18:40:00 +08:00
Ricky Chien
7ebc576138 Bug 1382514 - Remove MOZ_PHOTON_PREFERENCES build flag r=jaws
--HG--
extra : rebase_source : e3df3a8ebbecbecfecb561f748a8c3b5f162bf99
2017-08-08 11:44:02 +08:00
Steve Fink
e6a5df33d4 Bug 1385359 - Add env var JIT_SPEW_FILENAME, r=nbp
--HG--
extra : rebase_source : 3b5bef62aa7b69dab12a52e38268405de95e651c
2017-07-20 17:38:45 -07:00
David Anderson
dbe6ce6a3f Bug 1385101 Part 2 Hold TextureClients alive during async painting. r=mattwoodrow,mchang 2017-08-05 11:54:11 -07:00
David Anderson
8ac742dba7 Bug 1385101 Part 1 - Create CapturedPaintState in ContentClient rather than ClientPaintedLayer. r=mchang 2017-08-05 11:25:45 -07:00
Eugen Sawin
14c89f86b5 Bug 1386240 - [1.3] Check success status when enabling or disabling geolocation events. r=jchen 2017-08-08 18:15:54 +02:00
Paul Adenot
09ca1b1297 Bug 1384655 - Remove obsolete latency measuring macros in downstream code we don't use anymore. r=jesup
MozReview-Commit-ID: ARAWGe7yFM4

--HG--
extra : amend_source : b1b3f4f33c9c2b15465ac5670a3639b8527a16a3
2017-08-08 10:00:37 +02:00
Geoff Brown
4fc548a698 Bug 1385629 - Use correct tooltool cache directory for Marionette and Firefox-UI tests on osx; r=whimboo 2017-08-08 09:31:57 -06:00
Dyex
db4f4de93a Bug 1369710 - [mozlint] Ensure that a valid path is entered. r=ahal
MozReview-Commit-ID: 6HOE9hmOkCx

--HG--
extra : rebase_source : 584a4391b832e794dc084254e9203b3a65c89419
2017-08-08 19:20:31 +05:30
Eric Rahm
a750d8eb22 Bug 1380154 - Part 2: Generate a DAFSA and use it for eTLDs. r=jduell
This replaces our giant sorted array of eTLD names with a more compact DAFSA.

MozReview-Commit-ID: 3zMBzUM9QUg
2017-07-17 16:10:18 -07:00
Eric Rahm
65313fd340 Bug 1380154 - Part 1: Add the Chromium DAFSA generator. r=njn
This imports Chromium's `make_dafsa.py` script [1]. It takes in a gperf
formatted file (note: gperf is *not* required) and converts that to a compact
binary representation of the string data in the form of a deterministic
acyclic finite state automaton (DAFSA) [2].

The only change made to the script was to make it handle the arguments our
file generation script passes in to the `main` function.

It also imports the logic for traversing the DAFSA [3] almost verbatim in
`Dafsa.cpp`. A thin wrapper was added so that we can reuse the DAFSA structure
for multiple tables.

The only change made to the original logic was to swap in mozilla style
assertions and rename the not found constant from `kNotFound` to
`Dafsa::kKeyNotFound` in order to avoid a collision with `kNotFound` defined in
our nsString code.

[1] 6ba04a9056/tools/dafsa/make_dafsa.py
[2] https://en.wikipedia.org/wiki/Deterministic_acyclic_finite_state_automaton
[3] a2a90a35aa/net/base/registry_controlled_domains/registry_controlled_domain.cc (72)

MozReview-Commit-ID: Eion9POHZm5
2017-07-17 16:09:42 -07:00
Joel Maher
0003b91c8f Bug 1388356 - add pref apz.test.fails_with_native_injection for windows to allow touch based events to work in windows 10 tests. r=kats
MozReview-Commit-ID: 3QJ1aFpxGxY
2017-08-08 15:08:04 -04:00
Aaron Klotz
19b37af0ff Bug 1386798: Add profiler markers for a11y events; r=surkov
MozReview-Commit-ID: EGvmB9qbKKx
2017-08-02 15:31:08 -06:00
Blake Kaplan
a79a7ad8b5 Bug 1374460 - Remove internal code that used to be used for showModalDialog. r=smaug
MozReview-Commit-ID: 4QuUpvbOiOA

--HG--
extra : rebase_source : dca2eac96b057d4ecb3908d5d19f2c7bf9ca33bb
2017-07-13 17:20:10 -07:00
Blake Kaplan
263a31a811 Bug 1374460 - Remove all code related to showModalDialog. r=smaug
MozReview-Commit-ID: GCGwBfIx2SJ

--HG--
extra : rebase_source : 44108de8ebbd9c0d8ed9ab69d50ad973c4883b6e
2017-07-13 16:42:03 -07:00
Tristan Bourvon
3bd6c5f20a Bug 1374024 - add static-analysis annotation for class functions that return dangling pointers. r=mystor
MozReview-Commit-ID: 44Ltj5FZAZD
2017-07-13 12:00:06 +02:00
Tristan Bourvon
cdc988e24a Bug 1374024 - apply clang-format on some files from static analysis. r=mystor
MozReview-Commit-ID: COh2u6PIeY
2017-07-13 12:00:06 +02:00
Henry Chang
8ab6a91cb0 Bug 1355746 - Part 4. Fix intermittent full screen test failures. r=smaug,xidorn
We found that a window will not get focus immediately after exiting full screen
mode on Linux. This seems to be a long-standing issue which surfaces due to the
change of background HTML parsing timing. So, we try to get focus everytime
before requesting full screen mode to ensure the request will not fail because
of the focus issue.

MozReview-Commit-ID: 2pOShFZcq8A

--HG--
extra : rebase_source : 47a9431e02549b483874ddfba804bed0d1c6a534
extra : intermediate-source : 64f74f99771510bc06aaf4e9fc875e61b4c67a75
extra : source : 57f259680880504181191c5fe5fa9688c0692703
2017-07-12 10:49:11 +08:00
Henry Chang
31e6f23f84 Bug 1355746 - Part 3. Test cases for IdleTaskRunner. r=smaug
MozReview-Commit-ID: 3RsC1pT9Fzc

--HG--
extra : rebase_source : 0e809780c75c9b8115e7242822ba1d44a1a0fe5d
extra : intermediate-source : 0a7daa942672d158b160b3e1af3ddbb88b36c953
extra : source : 08210ea8446bd222cda5c19ee326f8ffdbb65b3f
2017-07-12 14:13:44 +08:00
Henry Chang
55356f4f83 Bug 1355746 - Part 2. Polish IdleTaskRunner and reuse it for background parsing. r=smaug
This patch is mainly to make IdleTaskRunner reusable by nsHtml5TreeOpExecutor.
The only necessary work to that purpose is to remove the dependency of
sShuttingDown, which was a static variable in nsJSEnvironment.cpp.
The idea is to have a "MayStopProcessing" as a callback for the consumer to
return sShuttingDown.

In addition to sShuttingDown, we use std::function<bool()> as the runner
main callback type.

MozReview-Commit-ID: FT2X1unSvPS

--HG--
extra : rebase_source : 3fe2d4f597f53e9a90f3dc8d5009df04240534ba
extra : intermediate-source : 41f6715c344ce26f7820cecb2544db8c50dca796
extra : source : 042f10937305e34245bdaf75dcb816db7738254e
2017-07-12 09:23:15 +08:00
Henry Chang
fab3d4644c Bug 1355746 - Part 1. Rename CollectRunner to IdleTaskRunner and move to xpcom/threads/IdleTaskRunner.h/cpp r=smaug
Nothing is changed in this patch except for renaming and code move around.
The strategy is to have the final file setup in this patch without any
detail change. The actual code change will be in the next patch so that
we can focus on reviewing the diff in the next patch regarding IdleTaskRunner.

MozReview-Commit-ID: 4Bul9mZ7z1n

--HG--
extra : rebase_source : b978da3a3c68da58f9fd93502bcc4295acd699ce
extra : source : 833d4b69accbf7d1d60f9f11d807ee37d608b6fe
2017-08-07 13:50:47 +08:00
André Bargull
419b26dee6 Bug 1377349 - Remove support for nested destructuring in object rest properties. r=shu 2017-07-10 07:53:10 -07:00
André Bargull
0865d1a536 Bug 1382209 - Part 2: Use correct YieldHandling for module contexts. r=shu 2017-08-09 11:37:23 +02:00
André Bargull
c838e0d0aa Bug 1382209 - Part 1: Add new restrictions for "yield" and "await" as binding identifiers per ES2018 draft spec. r=shu 2017-08-09 11:37:01 +02:00
André Bargull
a1ebd80a83 Bug 1387400 - Part 2: Pass the original regexp flags to the specializer replacer functions. r=till 2017-08-09 11:36:34 +02:00
André Bargull
e80a99ac14 Bug 1387400 - Part 1: Only call GetElemBaseForLambda for large strings. r=till 2017-08-09 11:32:31 +02:00
André Bargull
532414f472 Bug 1387968 - Part 3: Remove unnecessary or duplicate rooting in RegExp code. r=till
--HG--
extra : rebase_source : c1a38b5cd8184ac75075c8c062c52466644eaeb6
2017-08-09 11:31:47 +02:00
André Bargull
c70f65a1f9 Bug 1387968 - Part 2: Optimize array accesses and allocations in RegExpGetSubstitution. r=till
--HG--
extra : rebase_source : 06bba8286960b5f805b152aeaceb52c62b275913
2017-08-09 11:31:29 +02:00
André Bargull
1618ce2e73 Bug 1387968 - Part 1: Reduce array copies for RegExpGetSubstitution with captures. r=till
--HG--
extra : rebase_source : d7af86e7dae8453c7bd8446934544653bce52481
2017-08-09 11:31:04 +02:00