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

541908 Коммитов

Автор SHA1 Сообщение Дата
Tim Huang 928deef050 Bug 1369303 - Part 4: Add a test case for workers to check whether performance API has been correctly spoofed when 'privacy.resistFingerprinting' is true. r=arthuredelstein,baku
This patch adds a test case in the same file of part 3 that to check that does
fingerprinting resistance work correctly for workers when 'privacy.resistFingerprinting'
is true.

MozReview-Commit-ID: FoceQTGg127

--HG--
extra : rebase_source : ead0979a5b7d2f34804ceecf004155a0100fa064
2017-06-15 16:48:29 +08:00
Tim Huang 46fc5b47a0 Bug 1369303 - Part 3: Add a test case for making sure that performance APIs have been correctly spoofed. r=arthuredelstein,baku
This test case will open a content tab and access performance API in that
tab to check whether or not performance APIs are correctly spoofed.

MozReview-Commit-ID: KdG6xzQFmv6

--HG--
extra : rebase_source : d064d5a90d525190402107c22bac9ed2dfd4c085
2017-06-15 16:48:28 +08:00
Tim Huang 7d1c0f2d14 Bug 1369303 - Part 2: Marking the performance timing API always reports 0 and the access of resource timing and user timing becomes NOP when 'privacy.resistFingerprinting' is true. r=arthuredelstein,baku
This patch is going to neutralize the threat of fingerprinting of performance API
by spoofing the value of performance timing into 0, making getEntries* functions
always returns an empty list and making mark() and measure() into NOP methods.

In addition, this patch changes nsContentUtils::ShouldResistFingerprinting() to
allow it can be called in both main thread and worker threads.

MozReview-Commit-ID: C8Jt7KEMe5e

--HG--
extra : rebase_source : 85cbf66881c868ca5109022ffd4af81e3ab0a049
2017-06-15 16:48:27 +08:00
Tim Huang 64bc6e5f1f Bug 1369303 - Part 1: Adding 'privacy.resistFingerprinting' into worker prefs. r=arthuredelstein,baku
MozReview-Commit-ID: 5AwFjoeRY2a

--HG--
extra : rebase_source : 45cae6779fb70b58d20a493f89fb7b98e4956275
2017-06-15 16:48:26 +08:00
Rex Lee 8054139b8e Bug 1357026 - Open about:accounts with pre-filled email account from UITour. r=Gijs,MattN
MozReview-Commit-ID: JWFuEufGRYB

--HG--
extra : rebase_source : bf030da006a89269e6bca246a0d24fa0f3d6458b
2017-06-16 15:20:34 +08:00
Servo VCS Sync a8908675de No bug - Revendor rust dependencies
--HG--
rename : third_party/rust/serde/src/bytes.rs => third_party/rust/serde-0.9.9/src/bytes.rs
rename : third_party/rust/serde/src/de/content.rs => third_party/rust/serde-0.9.9/src/de/content.rs
rename : third_party/rust/serde/src/de/private.rs => third_party/rust/serde-0.9.9/src/de/private.rs
rename : third_party/rust/serde/src/error.rs => third_party/rust/serde-0.9.9/src/error.rs
rename : third_party/rust/serde/src/iter.rs => third_party/rust/serde-0.9.9/src/iter.rs
rename : third_party/rust/serde/src/ser/content.rs => third_party/rust/serde-0.9.9/src/ser/content.rs
rename : third_party/rust/serde/src/ser/private.rs => third_party/rust/serde-0.9.9/src/ser/private.rs
rename : third_party/rust/serde/src/utils.rs => third_party/rust/serde-0.9.9/src/utils.rs
2017-06-16 13:03:23 +00:00
Simon Sapin 817c7746be servo: Merge #17355 - Bump serde to 1.0 (from servo:serdeup); r=nox
This is a rebase of #17325 with `[replace]` entries removed, a bunch more dependencies updated, and some more compile fixes. Original work by @Eijebong, thanks a lot!

Source-Repo: https://github.com/servo/servo
Source-Revision: 66c130d55aa0d7af1104c00e93a5bf950f23a383

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 323361580a540d8b296f6f7d77f20d46cbdc5c73
2017-06-16 05:03:18 -07:00
Mark Banner 58d6c1fe85 Bug 1095426 - Convert JSON backups code to the new async Bookmarks.jsm API. r=mak
MozReview-Commit-ID: FNZZGwWVSI2

--HG--
extra : rebase_source : d7f378ad2e5a589b859da7c7e3f21d9b6a985d95
2017-05-12 08:04:51 +01:00
Mark Banner 5c7b657d3c Bug 1095426 - Make the bookmarks.json test file prettified so it can be read easily. r=mak
MozReview-Commit-ID: 2owsEkNEHgi

--HG--
extra : rebase_source : f853a2766bd583c0e2684fd36302091f1ad5bdf9
2017-06-07 11:43:40 +01:00
James Graham da37bf2cf8 Bug 1370936 - Skip directories when updating metdata, r=ato
MozReview-Commit-ID: HLFo9vhYS8p

--HG--
extra : rebase_source : 91cf679c342f1478c718e2a41a853bd0db02d4cd
2017-06-16 10:45:55 +01:00
James Graham d7aa932ed3 Bug 1370936 - Default to not creating a commit when updating wpt metadata, r=ato
MozReview-Commit-ID: FaYNn0hkXkD

--HG--
extra : rebase_source : 437a01155a3d406d8cecf46abda3f91f986ff050
2017-06-16 10:43:16 +01:00
James Graham 0b90b4bef9 Bug 1370936 - Use platform agnostic check for an absolute path, r=ato
MozReview-Commit-ID: 9G4yzsSBciD

--HG--
extra : rebase_source : acba7e02dd0b42516e2d01b728353614b90dc70e
2017-06-16 10:32:37 +01:00
James Graham de0d012f00 Bug 1370936 - Ensure manifest directory exists before writing it, r=ato
MozReview-Commit-ID: H2o2CYAig1j

--HG--
extra : rebase_source : 47489dad4907d2583422e39ae8b30ca940b92b55
2017-06-16 10:32:02 +01:00
James Graham 5c84a5f0ed Bug 1370936 - Update the module path for wpt update, r=ato
This is needed following the harness move.

MozReview-Commit-ID: RvRI9GuvLZ

--HG--
extra : rebase_source : f21f27d6036ae01d6da59c99aeaf4b94e77e7fcd
2017-06-16 10:28:28 +01:00
Sebastian Hengst 11cc901d93 Backed out changeset 5fa6bbe236e0 (bug 1370459) for failing browser_parsable_css.js: icons_tour-complete.svg missing. r=backout 2017-06-16 12:48:41 +02:00
Liang-Heng Chen c9d17686c1 Bug 624837 - use calculated string length instead of magic number; r=bagder
The original magic number is incorrect.

MozReview-Commit-ID: LtdnINTONHq

--HG--
extra : rebase_source : 8fadacad270268f2cda97642ca294918a0749065
2017-06-14 18:47:58 +08:00
Andreas Tolfsen 3aa20dc029 Bug 1364319 - Throttle setWindowRect with requestAnmationFrame; r=maja_zf
We need to delay the response from the setWindowRect command until the
window has had time to properly resize.  But because the DOM resize
event is not synchronous, we cannot rely on it alone to tell us when the
widget toolkit has actually completed the resizing.

To overcome this problem we throttle the event using
ChromeWindow.requestAnimationFrame to force the event loop to flush
before resolving the promise.

The setWindowRect command previously relied on a 15 FPS setTimeout delay
because requestAnimationFrame did not work with ChromeWindow, but this
seems to have since been fixed.  Local tests show that this approach is
more stable and produces less intermittent results.

MozReview-Commit-ID: D1ICb3F6vX3

--HG--
extra : rebase_source : ef5ef15db80ce78284672551581ce5d9cdde9189
2017-06-12 13:52:53 +01:00
Henrik Skupin ec03b442b1 Bug 1373564 - Force enable update staging mode to prevent perma failures for update tests. r=automatedtester
Bug 1370576 disabled staging of application updates, which is not yet
supported in our firefox-ui update tests. As result there is a hang and
the restart button is never clicked on.

This is just a wallpaper fix and full support might still have to
be integrated if wanted.

MozReview-Commit-ID: 8LF1RKxnMEb

--HG--
extra : rebase_source : 5a268cd891a6577eda163c86fe6ef94fe767fbff
2017-06-16 11:39:23 +02:00
Glenn Watson 2865a9e008 servo: Merge #17352 - Update WR (CPU text optimizations, image format renames) (from glennw:update-wr-faster-text); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: e1bce241291683ee61abab042d0c808ae5396e91

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 38f0d8ec39b0377ce568d0877e0939fafe27d0d1
2017-06-16 01:21:05 -07:00
Dão Gottwald 6ba979dd3f Bug 1372535 - On Mac, remove the window drag space when sizemode!=fullscreen rather than sizemode==maximized. r=johannh
macOS doesn't really have a maximized mode; it has a "zoomed" mode which we treat as "maximized" sizemode, and it has a fullscreen mode. When you zoom a window, it's supposed to resize to its "natural" or "best" size, which is for most apps the smallest size that does not require scrolling. In Firefox we just say that filling the whole screen is our "best" size. But if a window is zoomed, you can still move it by dragging its title bar. For example, you may want to do that if you want to move it to a different screen.

Mac apps usually don't change their appearance at all if they enter the "zoomed" size. They only do that if you make the window fullscreen. The native full screen mode on Mac is much closer to the maximized mode on Windows than the zoomed mode is.

Recent versions of macOS have changed the default action of the green window button to be fullscreen instead of zoom. You can now only zoom windows by double clicking the title bar or clicking the green button while holding Alt.

MozReview-Commit-ID: IBu2fBNeuil

--HG--
extra : rebase_source : 1e2fa2af658edaf19a8cb6e6da39a1187c09b833
2017-06-14 12:51:40 +02:00
Cameron McCormack c24e9eb9e7 Bug 1364361 - Part 4: Add crashtest for a scrollable, multicol <details> element. r=bz
MozReview-Commit-ID: LtMSemTadR0

--HG--
extra : rebase_source : 18295cd6c125e3d30ad8aa0351e5a449a905aac7
2017-06-16 17:22:34 +08:00
Cameron McCormack fdf5336fc8 Bug 1364361 - Part 3: Remove now-unnecessary clearing of ServoElementData from anonymous content destroyer callback. r=bz
MozReview-Commit-ID: 4nCQYU9lzKD

--HG--
extra : rebase_source : 0fa4962efe97f03f311c18692acf99d3913ea347
2017-06-16 17:22:34 +08:00
Cameron McCormack 3f6d354226 Bug 1364361 - Part 2: Make AllChildIterator find NAC created by all of an element's anon boxes. r=bz,janx
MozReview-Commit-ID: IfTLBhhG1Ya

--HG--
extra : rebase_source : aa5c7136f3425def8efa221c7f3e63240ac6ad8e
2017-06-16 17:22:34 +08:00
Cameron McCormack 139e81fb2f Bug 1364361 - Part 1: Refactor frame anon box restyling machinery so it can return a list of anon boxes. r=bholley,bz
MozReview-Commit-ID: 3InVAUw8djN
* * *
Bug 1364361 - Followup to address review comment. r=me

MozReview-Commit-ID: IpdoSon9MAj

--HG--
extra : rebase_source : 086c49319d3847099614d65c8bb9d924f4e9be38
2017-06-16 17:22:33 +08:00
Sebastian Hengst 9365133d05 Backed out changeset e7ec499159f7 (bug 1364361) for bustage at nsIFrame.h:3348: bad implicit conversion constructor for 'OwnedAnonBox'. r=backout 2017-06-16 11:19:03 +02:00
Sebastian Hengst c21843350e Backed out changeset e9f7c901e132 (bug 1364361) 2017-06-16 11:18:27 +02:00
Sebastian Hengst 3ed689e8af Backed out changeset 65c77754d49c (bug 1364361) 2017-06-16 11:18:23 +02:00
Sebastian Hengst 18f74a4448 Backed out changeset a05d5d6c04dc (bug 1364361) 2017-06-16 11:18:18 +02:00
Cameron McCormack 52a081595f Bug 1364361 - Part 4: Add crashtest for a scrollable, multicol <details> element. r=bz
MozReview-Commit-ID: LtMSemTadR0

--HG--
extra : rebase_source : cb3f8c082e34a90226aa6bbd050a5423776dbf83
2017-06-16 15:37:10 +08:00
Cameron McCormack 671a338aa9 Bug 1364361 - Part 3: Remove now-unnecessary clearing of ServoElementData from anonymous content destroyer callback. r=bz
MozReview-Commit-ID: 4nCQYU9lzKD

--HG--
extra : rebase_source : e2d33d980af1516daebbdc78022f29480ac426ad
2017-06-16 15:37:08 +08:00
Cameron McCormack 68b572fafa Bug 1364361 - Part 2: Make AllChildIterator find NAC created by all of an element's anon boxes. r=bz,janx
MozReview-Commit-ID: IfTLBhhG1Ya

--HG--
extra : rebase_source : d9b7a4c6e0a7893dc1cd7b3337c32a4fd3bd0bff
2017-06-16 15:37:06 +08:00
Cameron McCormack b76836a0c6 Bug 1364361 - Part 1: Refactor frame anon box restyling machinery so it can return a list of anon boxes. r=bholley,bz
MozReview-Commit-ID: 3InVAUw8djN
* * *
Bug 1364361 - Followup to address review comment. r=me

MozReview-Commit-ID: IpdoSon9MAj

--HG--
extra : rebase_source : 8a6a9b88d678c52be8fa6f64b2664a08634a4a98
2017-06-16 15:32:40 +08:00
Alessio Placitelli 2e479399ce Bug 1367029 - Defer gathering isDefaultBrowser until session restore completes. r=gfritzsche
Gathering this data point takes up to 100ms on reference hardware and might impact
startup performance.

MozReview-Commit-ID: 32sd5uUF08N

--HG--
extra : rebase_source : a80da25b384b47995cc25db9a711ef02ca5842cd
2017-06-14 11:57:14 +02:00
Xidorn Quan 8213987f36 Bug 1372488 - Make counter style 'disc' not overridable. r=dbaron
MozReview-Commit-ID: 11ZpZtRQSUF

--HG--
extra : rebase_source : 25f95280f530d786ec8dbc30a5f5228e96000d99
2017-06-13 16:00:37 +10:00
Sebastian Hengst a2b77a58e3 merge mozilla-central to autoland. r=merge a=merge 2017-06-16 09:51:07 +02:00
Sebastian Hengst 265affc002 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5wTyHWufcCh
2017-06-16 09:50:00 +02:00
Xidorn Quan 2a93f79eda servo: Merge #17353 - Make counter style 'disc' not overridable (from upsuper:counter-style-disc); r=dbaron
This is the Servo side change for [bug 1372488](https://bugzilla.mozilla.org/show_bug.cgi?id=1372488).

Source-Repo: https://github.com/servo/servo
Source-Revision: 32f82959f89ccd0d6f92058f22f11f2cc7d21d52

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 64ef1f0cba8d44b9451874cd5aec2a851fb1fdfd
2017-06-15 23:51:16 -07:00
Phil Ringnalda 8f1db3dfce Backed out 3 changesets (bug 1373154) for Windows devtools timeouts
Backed out changeset ca4e62117e6a (bug 1373154)
Backed out changeset 0e89b1564ea4 (bug 1373154)
Backed out changeset 48767f3f315f (bug 1373154)

MozReview-Commit-ID: 3DhUjEjXVmn
2017-06-15 21:22:57 -07:00
Phil Ringnalda 2eb8aebb84 Backed out changeset ac1520300fc7 (bug 1356474) for failures in browser_grids_grid-outline-cannot-show-outline.js
MozReview-Commit-ID: 78R9AGsRIY5
2017-06-15 20:29:40 -07:00
Bill McCloskey 0767e31489 Bug 1372736 - Avoid using AbstractThread for non-media MozPromises (r=bkelly)
MozReview-Commit-ID: BBi0pK4DXxf
2017-06-15 20:16:25 -07:00
Bill McCloskey 1158c7c282 Bug 1372733 - EventTargetFor should return an nsISerialEventTarget (r=bkelly)
MozReview-Commit-ID: Kchg4kqBERt
2017-06-15 20:16:25 -07:00
Yoshi Huang 6c761bcc02 Bug 1368897 - rewrite dom/base/test/test_x-frame-options.html. r=smaug
We test the expected behavior base on the pref,
"security.data_uri.unique_opaque_origin".

We run the legacy test when the pref is off, however if the pref is on,
we run the new behavior, loading an iframe with X-FRAME-OPTIONS in a
data: URI should be blocked.
2017-06-16 10:54:10 +08:00
Yoshi Huang 68f70ea183 Bug 1368896 - rewrite dom/base/test/test_viewport_scroll.html. r=smaug 2017-06-16 10:53:04 +08:00
Yoshi Huang 7364f7009f Bug 1368893 - rewrite dom/html/test/test_iframe_sandbox_inheritance.html. r=smaug
Move the data URI in 'if_no_scripts' and 'if_scripts' to seperate files.

Also remove the test 'if_19', as it seems redundant, it tests the same
thing with the iframe 'if_scripts', and it also lacks of 'allow-scripts'
in its sandbox flag.
2017-06-16 10:52:25 +08:00
Yoshi Huang 8ddf2451de Bug 1267075 - Part 6: test state pseudo class for image blocking. r=bz
Verify when image is blocked, the style of the following state pseudo class will
apply:
:-moz-suppressed
:-moz-broken
:-moz-user-disabled
2017-06-16 10:12:10 +08:00
Yoshi Huang 0bb598eed9 Bug 1267075 - Part 5: test for blocking image. r=bz
A mochitest browser test for image blocking.
We query the blocking status by reading imageBlockingStatus.

See nsImageLoadingContent.cpp for the logic of blocking image.
In this test we verified the following behavior:
1. image is loaded.
2. image is blocked.
3. mCurrentRequest doesn't have size yet, so it should be replaced.
4. mCurrentRequest already got size, the following request should be a
pendingRequest.
2017-06-16 10:12:10 +08:00
Yoshi Huang 8af20dccc4 Bug 1267075 - Part 4: add a boolean to prevent calling asynchronously. r=bz
Use a boolean to prevent calling SetBlockedRequest asynchronously.
Also use the same boolean to prevent some evil code reenters LoadImage.

Then we should redesign the correct bahavior in those follow-up bugs,
Bug 1353685 - Should ServiceWorker call SetBlockedRequest
Bug 1353683 - consider calling SetBlockedRequest in nsCORSListenerProxy::UpdateChannel
Bug 1371237 - consider calling SetBlockedRequest in nsContentSecurityManager::CheckChannel
2017-06-16 10:12:09 +08:00
Yoshi Huang 0da35daccc Bug 1267075 - Part 3: cancel imgRequestProxy if asyncOpen2 failed. r=tnikkel
The problem is if we found a cache hit, then we could go through
ValidateRequestWithNewChannel to validate the cache.
Then if the CSP check fail(asyncOpen2() will fail), then the
imgRequestProxy will remain there, and cause the timeout.

I run into problem when running mochitest
browser/base/content/test/general/browser_aboutHome.js in non-e10s mode.
In the beginning, browser.xul will load defaultFavicon.png, will create
an image cache there.
Next time when the test starts to run, when it loads about:home, then it
will try to load defaultFavicon.png, it will found an image cache hit
(loaded previously by browser.xul), and call
ValidateRequestWithNewChannel there, however the asyncOpen2 call failed,
and the imgRequestProxy is added to the loadGroup of about:home, and
never be notified until timeout.
2017-06-16 10:12:09 +08:00
Yoshi Huang 83ef929df9 Bug 1267075 - Part 2: bail out early if it's for data document. r=bz
Check the document earlier before calling into imageLoader, this could
save us tons of time if in the end the document isn't allowed to load images.
2017-06-16 10:12:09 +08:00
Yoshi Huang 5dcdd16255 Bug 1267075 - Part 1: call SetBlockedRequest when CSP check failed. r=bz
As a follow-up from bug 1206961, we will remove calling CanLoadImage in
this bug. Also in the case of CSP check failed, we will call
SetBlockedRequest in those cases.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1267075#c30 for the
analysis between the old and new setup.
2017-06-16 10:12:08 +08:00