Граф коммитов

529864 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst 3e76c1c967 Backed out changeset 87912394d7d7 (bug 1342178)
MozReview-Commit-ID: FyZbX7H2TFu

--HG--
rename : devtools/shared/webconsole/test/test_network_security.html => devtools/shared/webconsole/test/test_network_security-hpkp.html
2017-04-11 11:28:15 +02:00
Sebastian Hengst d2836098c4 Backed out changeset db96edf786de (bug 1342178)
MozReview-Commit-ID: 2tMaP9n3ug5
2017-04-11 11:28:10 +02:00
Sebastian Hengst 51beeffdec Backed out changeset bc87945ba833 (bug 1342178)
MozReview-Commit-ID: 2TLlzk8hOZY
2017-04-11 11:28:05 +02:00
L10n Bumper Bot 4f49916ca1 no bug - Bumping Fennec l10n changesets r=release a=l10n-bump
bg -> ['android', 'android-api-15', 'android-multilocale']
kab -> ['android', 'android-api-15', 'android-multilocale']
2017-04-11 02:00:36 -07:00
Carsten "Tomcat" Book ee9da45454 merge mozilla-inbound to mozilla-central a=merge 2017-04-11 10:17:24 +02:00
David Anderson fc959f3460 Add a fixed-width font for the compositor's debug overlay. (bug 1352151 part 9, r=bas)
--HG--
extra : rebase_source : dc65a2bfb0bb166b5f116f04e2b5ecc395578ba5
2017-04-10 19:44:47 -07:00
David Anderson 3ffc9da44f Allow TextRenderer to render multiple fonts. (bug 1352151 part 8, r=bas)
--HG--
extra : rebase_source : a3e588eaae57326654b945c2711276b6d71c442e
2017-04-10 19:44:47 -07:00
David Anderson 70f688f03e Add GPU draw time to the compositor diagnostic overlay. (bug 1352151 part 7, r=bas)
--HG--
extra : rebase_source : fce64dde2a8632a374e40a5687852b147ebd8747
2017-04-10 19:44:46 -07:00
David Anderson ce7cc32129 Improve pixel fill statistics in the D3D11 compositor overlay. (bug 1352151 part 6, r=bas)
This introduces two new statistics to the overlay. The first is the ratio of
pixel shader invocations (as determined by the GPU) to the number of pixels we
determined need to be redrawn. The ideal ratio is 1.0, indicating that we
filled every pixel exactly once. Anything over 1.0 indicates overdraw.

We also add the ratio of shaded pixels to window size. This indicates how well
we computed the invalid region, and whether or not we overfilled that
region.

Note that the OpenGL and Basic compositors do not yet query the GPU for
this statistic, so they will estimate shader invocations by the area of
DrawQuad calls.

Finally, we remove the feature where layout can request the most
recent overdraw statistic. It was not implemented on all compositors, and the
only test that used it was disabled.

--HG--
extra : rebase_source : 448a162998921974575a1a988bcfde52c959d3ed
2017-04-10 19:44:46 -07:00
David Anderson 2f41377215 Refactor CompositorD3D11::EndFrame. (bug 1352151 part 5, r=bas)
This factors out ID3D11Query handling, and makes EndFrame() shorter by
moving out presentation code.

--HG--
extra : rebase_source : c23547a16f9496caa2b83fca8e41d2b4e14bea3a
2017-04-10 19:44:46 -07:00
David Anderson ac38010856 Remove the TextureRender dependency on Compositor. (bug 1352151 part 4, r=mattwoodrow)
--HG--
extra : rebase_source : 8664ae8130917a6efa972a9ea8fa109330f03217
2017-04-10 19:44:45 -07:00
David Anderson dd464dcc40 Remove FPSState. (bug 1352151 part 3, r=mattwoodrow)
--HG--
extra : rebase_source : 27454cb163e79a26842963d0cf468aec617254d3
2017-04-10 19:44:45 -07:00
David Anderson 432eda07ae Switch the compositor to a new debug overlay. (bug 1352151 part 2, r=mattwoodrow)
--HG--
extra : rebase_source : 61f5ead93af89bf3b878a785b662769b6d9ad9fc
2017-04-10 19:44:45 -07:00
David Anderson a8433cef6b Collect diagnostics on paint times for the compositor overlay. (bug 1352151 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : f30dc11079add3f1019777b1c85cc5c5a5f0596b
2017-04-10 19:44:45 -07:00
Ehsan Akhgari 1d72f5911e Bug 1347461 - Part 2: Always initialize all DataStorage classes in the content process at initialization time; r=keeler 2017-04-10 22:44:36 -04:00
Ehsan Akhgari c0b6db9d07 Bug 1347461 - Part 1: Add a C++ API for the list of DataStorage classes; r=keeler 2017-04-10 22:44:32 -04:00
Phil Ringnalda d25edd4d4f Bug 1351188 - Disable test262 String.prototype.normalize tests when normalize isn't available, r=shu 2017-04-10 18:53:24 -07:00
Ben Kelly 8c5a1e0c95 Bug 1351935 P2 Fix client.navigate() WPT test to support cross-origin navigations. r=smaug 2017-04-10 21:30:26 -04:00
Ben Kelly d7c4e788f6 Bug 1351935 P1 Make Client.navigate() support cross-origin loads. r=smaug 2017-04-10 21:30:24 -04:00
Chris Manchester 197ea5dc12 Bug 1349180 - Don't attempt an artifact build for stylo builds with --artifact in try syntax. r=nalexander
Our configs as well as the artifact code are not equipped to do this.

MozReview-Commit-ID: BDkI3Peo8Md

--HG--
extra : rebase_source : 66a68737e080decd0f53c265553eacb1237e3194
2017-04-10 17:53:55 -07:00
Chris Manchester 952dce8637 Bug 1355027 - Don't attempt an artifact build for an asan build with --artifact in try syntax. r=nalexander
Our configs and the artifact machinery aren't equipped to handle this.

MozReview-Commit-ID: 68DYmWEdGnA

--HG--
extra : rebase_source : fa79eeab616412acab773b6d6bd46a58399699dd
2017-04-10 16:11:44 -07:00
Jonathan Hao e5a3b0c533 Bug 1342178 - Pass origin attributes to isSecureURI in devtools and browser. r=keeler,past
MozReview-Commit-ID: HIOYH8iUUkO

--HG--
extra : rebase_source : 2512cb3e403093e0f18b3b979d7b4a10e3d7c42b
2017-04-11 10:14:10 +08:00
Jonathan Hao 982f32390b Bug 1342178 - Regression tests for HSTS/HPKP information in private browsing window. r=Honza,keeler
MozReview-Commit-ID: FqRj6RL7noP

--HG--
extra : rebase_source : d1e3fa960be5821bfb3aa4a5faebe5031c88939d
2017-04-11 10:14:09 +08:00
Jonathan Hao 51a55f3e01 Bug 1342178 - Rename test_network_security-hpkp.html. r=Honza,keeler
MozReview-Commit-ID: I82vZXxJgTI

--HG--
rename : devtools/shared/webconsole/test/test_network_security-hpkp.html => devtools/shared/webconsole/test/test_network_security.html
extra : rebase_source : 6f85d6e8727a98c3dd851948860e6694aa964442
2017-04-11 10:14:08 +08:00
Jonathan Hao b3c9a8ce3d Bug 1342178 - Combine test_network_security-{hsts/hpkp}.html. r=Honza,keeler
MozReview-Commit-ID: 3xXdOa1j7hm

--HG--
extra : rebase_source : 9e496b0cb1d38e6292b8540a6023f7f2c83451e2
2017-04-11 10:14:08 +08:00
Delphine Lebédel f57449f813 Bug 1355190 - Add "bg" and "kab" in Fennec maemo-locale for multi-locale builds. r=flod 2017-04-10 12:51:00 -04:00
David Parks a0e2aece6f Bug 1354900 - Remove ASSERT when plugin incorrectly finalizes async surface. r=dvander
Flash currently has a bug that trips an ASSERT in debug builds when async painting incorrectly finalizes the currently active surface.  This is related to their fix for bug 1306698.  We are removing this assertion so that plugin work can proceed with debug builds.
2017-04-10 13:50:55 -07:00
DimiL 83e6d8500c Bug 1311935 - P4. GTest for safebrowsing v4 caching. r=francois
MozReview-Commit-ID: ExR5NJUvzNg

--HG--
extra : rebase_source : 868f508256c06724e24f8a7c91171aaae72200d2
2017-04-07 14:31:04 +08:00
dimi 7842472dad Bug 1311935 - P3. Implement safebrowsing v4 caching logic. r=francois
LookupCacheV4::Has implements safebrowsing v4 caching logic.
1. Check if fullhash match any prefix in local database:
  - If not, the URL is safe.
2. Check if prefix is in the cache(prefix is always the first 4-byte of
   the fullhash, Bug 1323953):
  - If not, send fullhash request
3. Check if fullhash is in the positive cache:
  - If fullhash is found and it is not expired, the URL is not safe.
  - If fullhash is found and it is expired, send fullhash request.
4. If fullhash is not found, check negative cache expired time:
  - If negative cache time is not expired, the URL is safe.
  - If negative cache time is expired, send fullhash request.

MozReview-Commit-ID: GRX7CP8ig49

--HG--
extra : rebase_source : 6d3ae8929b11731584810c44d46a1526f7d83e12
2017-04-10 14:21:08 +08:00
dimi 127351f6ef Bug 1311935 - P2. Process fullHashes.find response. r=francois
This patch includes following changes:

1. nsUrlClassifierHashCompleter.js
   nsUrlClassifierHashCompleter.idl
   - Add completionV4 interface for hashCompleter to pass response data to
     DB service.
   - Process response data includes negative cache duration, matched full
     hashes and cache duration for each match. Full matches are passed through
     nsIFullHashMatch interface.
   - Change _requests.responses from array contains matched fullhashes to
     dictionary so that it can store additional information likes negative cache
     duration.
2. nsUrlClassifierDBService.cpp
   - Implement CompletionV4 interface, store response data to CacheResultV4
     object. Expired duration to expired time is handled here.
   - Add CacheResultToTableUpdate function to convert V2 & V4 cache result
     to TableUpdate object.
3. LookupCache.h
   - Extend CacheResult to CacheResultV2 and CacheResultV4 so we can store
     response data in CompletionV2 and CompletionV4.
4. HashStore.h
   - Add API and member variable in TableUpdateV4 to store response data.
     TableUpdate object is used by DB service to pass update data or gethash
     response to Classifier, so we need to extend TableUpdateV4 to be able
     to store fullHashes.find response.
6. Entry.h
   - Define the structure about how we cache fullHashes.find response.

MozReview-Commit-ID: FV4yAl2SAc6

--HG--
extra : rebase_source : 02676ded9bc0580c24b4c906199a4abaf004e296
2017-04-11 11:50:48 +08:00
DimiL b4f6db923f 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

--HG--
extra : rebase_source : 49d19101bec780e21db668b2daff3c46bbdb3fd2
2017-04-07 14:30:11 +08:00
Tim Huang 8f6d9f30c3 Bug 1351084 - Making the TabState.jsm collecting 'iconLoadingPrincipal' from browser.mIconLoadingPrincipal. r=mikedeboer
The browser.contentPrincpal will report a null prinicpal instead of the actual
content principal if the tab is not loaded. So the SessionStore will collect a
wrong principal for the 'iconLoadingPrincipal', and it will use this wrong
principal to load favicon when session restoring.

To fix this problem, this patch makes the TabState.jsm to collect
'iconLoadingPrincipal' from browser.mIconLoadingPrincipal which will be the
correct principal for loading favicon.

MozReview-Commit-ID: AYUbHFKaG8v

--HG--
extra : rebase_source : 3e2333f18c221d415bd0e26bc416a841344cef2c
2017-03-29 10:46:01 +08:00
Kearwood Gilbert 043d85c921 Bug 1351048 - Do not load VR libraries until necessary, Oculus cleanup r=daoshengmu
- I have refactored the Oculus and OpenVR interfaces in gfx/vr
  so that initialization of the VR libraries only happens once
  a WebVR site is detected.
- The Oculus interface has been cleaned up and updated to unload the Oculus
  runtime library when not in use.
- The browser can now re-connect to Oculus home if it was restarted, without
  restarting the browser.
- We no longer submit a black frame at the end of VR presentation, as this
  appears to be handled by the latest Oculus runtime automatically.
- As we only hold on to the Oculus runtime when needed, this should
  reduce the likelihood of the GPU process being killed by the Oculus
  software updater.

MozReview-Commit-ID: AyWeD4CxXLD

--HG--
extra : rebase_source : 9eae07ef30b1a7559b5fe80e6698c248a55b970e
2017-03-30 09:35:49 -04:00
Daosheng Mu d8ee3acbe9 Bug 1336002 - Part 4: Add gamepad button touched tests; r=Lenzak,qdot
MozReview-Commit-ID: 5OoR2vf0zZn

--HG--
extra : rebase_source : 7f1089f5e50a68dc64e7b1615a6d28de167a7ae4
2017-04-10 11:48:30 +08:00
Daosheng Mu 639e273a82 Bug 1336002 - Part 3: Support button touched in OpenVR and Puppet; r=kip
MozReview-Commit-ID: CMacSyuK3mv

--HG--
extra : rebase_source : 202edb4a20fdabf38ac9edda7b2dbe336f4ebc3b
2017-04-06 19:00:20 +08:00
Daosheng Mu d834dfb544 Bug 1336002 - Part 2: Support button touched in GamepadManager; r=Lenzak
MozReview-Commit-ID: DcX988Obthp

--HG--
extra : rebase_source : 590704bc0e5edc0ed446da19267ad16a8f728ee6
2017-04-07 09:35:13 +08:00
Daosheng Mu 66e6df1d73 Bug 1336002 - Part 1: Support button touched in the Gamepad API; r=qdot
MozReview-Commit-ID: FVWo5bpuSkS

--HG--
extra : rebase_source : 5bf9742409ac4466c3fa289c9a7a2596c4983de7
2017-04-06 18:36:46 +08:00
Iris Hsiao 3d85c0330d Backed out 4 changesets (bug 1311935) for causing assertion crash by developer's request
Backed out changeset 27e624cd9479 (bug 1311935)
Backed out changeset 4c0381ab0990 (bug 1311935)
Backed out changeset 73587838ef16 (bug 1311935)
Backed out changeset a5a6c0f79733 (bug 1311935)
2017-04-11 11:04:54 +08:00
JW Wang f75dd3437a Bug 1353644 - change the type of EXHAUSTED_DATA_MARGIN_USECS to TimeUnit. r=kaku
MozReview-Commit-ID: CXc9DjoUc4m

--HG--
extra : rebase_source : 17a6eadd1e873a24aea2b1b8c2bbd2edfa04f9d7
extra : intermediate-source : 36a9db5c9107bdefafa2090b3cfb4dfcafb6bcea
extra : source : 5b9f12c027fc2363041363ea26bf4b9df3787cc1
2017-03-29 15:04:50 +08:00
Kaku Kuo a9ee9f11cc Bug 1354465 P2 - use mozvideoonlyseekbegin event to start throbber timer; r=jaws,jwwang
MozReview-Commit-ID: 4zwcoB8M3xI

--HG--
extra : rebase_source : 8bf50d1bc7e5532de0c7b70c0c20ff6f74fe8c19
2017-04-07 18:06:20 +08:00
Kaku Kuo 172d429303 Bug 1354465 P1 - dispatch a mozvideoonlyseekbegin event while starting a video-only seek; r=jwwang
MozReview-Commit-ID: 6PjQs88vUV2

--HG--
extra : rebase_source : b0d06e8bd5b5a3e84adaade0ea8f2fa98a2af0c3
2017-04-07 16:11:34 +08:00
Daosheng Mu 3ab8ee7fa3 Bug 1354977 - Update timestamp when gamepadpose is changed; r=qdot
MozReview-Commit-ID: 2glmvw5xUCH

--HG--
extra : rebase_source : afea8296041574fb182b278b588a1e3282c68c3d
2017-04-06 18:37:29 +08:00
Alex Gaynor 54bd982c43 Bug 1355083 - Switch from using a #define to alter a sandbox policy to a normal param r=haik
r=haik

MozReview-Commit-ID: KqmRra6NqPa

--HG--
extra : rebase_source : 02bf4390738f8a43ecc07c0a236a2553781df223
2017-04-10 09:53:47 -04:00
Matthew Wein ae5e5e016c Bug 1345491 - Fix intermittent caused by closing window before extension is unloaded r=gbrown
MozReview-Commit-ID: KGk1YGrhX9X

--HG--
extra : rebase_source : 4a61cafec1dff5b1660b7fcac022511a4e96f291
2017-04-10 02:21:01 -04:00
Andy McKay a51c96851d bug 1323311 make tabs.move on multiple tabs more reliable r=kmag
MozReview-Commit-ID: 9o4huF1f60g

--HG--
extra : rebase_source : 392718783a20d59860cf8315b1687985799f076e
2017-04-10 11:18:04 -07:00
DimiL 1acdaf206b Bug 1311935 - P4. GTest for safebrowsing v4 caching. r=francois
MozReview-Commit-ID: ExR5NJUvzNg

--HG--
extra : rebase_source : ec16b8b1e976753a013d27c197ac54c98b1d5501
2017-04-07 14:31:04 +08:00
dimi a58847dca1 Bug 1311935 - P3. Implement safebrowsing v4 caching logic. r=francois
LookupCacheV4::Has implements safebrowsing v4 caching logic.
1. Check if fullhash match any prefix in local database:
  - If not, the URL is safe.
2. Check if prefix is in the cache(prefix is always the first 4-byte of
   the fullhash, Bug 1323953):
  - If not, send fullhash request
3. Check if fullhash is in the positive cache:
  - If fullhash is found and it is not expired, the URL is not safe.
  - If fullhash is found and it is expired, send fullhash request.
4. If fullhash is not found, check negative cache expired time:
  - If negative cache time is not expired, the URL is safe.
  - If negative cache time is expired, send fullhash request.

MozReview-Commit-ID: GRX7CP8ig49

--HG--
extra : rebase_source : bcb5fa7aa2b7b116d862e3382447611424603c2d
2017-04-10 14:21:08 +08:00
dimi 5112db082c Bug 1311935 - P2. Process fullHashes.find response. r=francois
This patch includes following changes:

1. nsUrlClassifierHashCompleter.js
   nsUrlClassifierHashCompleter.idl
   - Add completionV4 interface for hashCompleter to pass response data to
     DB service.
   - Process response data includes negative cache duration, matched full
     hashes and cache duration for each match. Full matches are passed through
     nsIFullHashMatch interface.
   - Change _requests.responses from array contains matched fullhashes to
     dictionary so that it can store additional information likes negative cache
     duration.
2. nsUrlClassifierDBService.cpp
   - Implement CompletionV4 interface, store response data to CacheResultV4
     object. Expired duration to expired time is handled here.
   - Add CacheResultToTableUpdate function to convert V2 & V4 cache result
     to TableUpdate object.
3. LookupCache.h
   - Extend CacheResult to CacheResultV2 and CacheResultV4 so we can store
     response data in CompletionV2 and CompletionV4.
4. HashStore.h
   - Add API and member variable in TableUpdateV4 to store response data.
     TableUpdate object is used by DB service to pass update data or gethash
     response to Classifier, so we need to extend TableUpdateV4 to be able
     to store fullHashes.find response.
6. Entry.h
   - Define the structure about how we cache fullHashes.find response.

MozReview-Commit-ID: KgR1NASl7GC

--HG--
extra : rebase_source : 424db14e4af2ffd691c384414d50f64083d5d20b
2017-04-10 16:20:09 +08:00
DimiL 516a287f2b 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

--HG--
extra : rebase_source : 49d19101bec780e21db668b2daff3c46bbdb3fd2
2017-04-07 14:30:11 +08:00
Wes Kocher 5eabc03c18 Merge m-c to autoland a=merge 2017-04-10 16:55:21 -07:00