Commit Graph

541894 Commits

Author SHA1 Message Date
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
DimiL
0f52e93b04 Bug 1373121 - about:url-classifier: Support get back-off time. r=francois
MozReview-Commit-ID: 6Q83TOo7jHK

--HG--
extra : rebase_source : b2cf6e8952cde7097caf6054946c86308f8d2c31
2017-06-15 11:41:13 +08:00
Emilio Cobos Álvarez
152083b709 Bug 1368236: Implement the "hints handled for descendants" optimization. r=heycam
MozReview-Commit-ID: D6CCmWbEXTs
2017-06-16 09:37:45 +02:00
gasolin
7d7c7502a9 Bug 1370459 - Polish the onboarding overlay UI to align with new visual spec;r=Fischer,mossop,rexboy
MozReview-Commit-ID: 9c1Aup8hhv5

--HG--
extra : rebase_source : aca8ae15b5ccb2fd5e4f26914fc0fcb72cc34061
2017-06-12 15:48:55 +08:00
Sebastian Hengst
fe67a32efc Backed out changeset 12db2d364b64 (bug 1364361) for heap write hazard. r=backout 2017-06-16 09:27:42 +02:00
Sebastian Hengst
43a1d3b898 Backed out changeset cffde1d0ebb4 (bug 1364361) 2017-06-16 09:27:14 +02:00
Sebastian Hengst
2647eaf65c Backed out changeset 0952bb52c59f (bug 1364361) 2017-06-16 09:27:10 +02:00
Sebastian Hengst
8f8ae2a3b8 Backed out changeset 9cff9f4e2ef2 (bug 1364361) 2017-06-16 09:27:05 +02:00
James Cheng
0c63c8612d Bug 1373500 - [Fennec][HLS] Set DEBUG flag based on AppConstants.NIGHTLY_BUILD || AppConstants.DEBUG_BUILD. r=kikuo
MozReview-Commit-ID: 3mjalG7Kc7w

--HG--
extra : rebase_source : 02abde05e9cca635cc734c80cbcfdd136041b809
2017-06-16 15:11:16 +08:00
gasolin
8014d11ad9 Bug 1357052 - Should add one button setting Firefox as the default browser in the Default Browser tour;r=Fischer,mossop,rexboy
MozReview-Commit-ID: JplxEDBIwGT

--HG--
extra : rebase_source : d00b8584f05f3589dc6b794965b19bd85cf428bc
2017-06-15 15:40:20 +08:00
Cameron McCormack
0d10d88134 servo: Merge #17351 - style: Tweak an import (from heycam:nit); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 4d54f2c9bbc700f06cfef7d85df5f43bdbcf085d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : a69a806c6044e0f60cba1c08ab446dcf42230471
2017-06-15 22:50:53 -07:00
Mark Banner
1cd004d181 Bug 1369829 - Make eslint-plugin-mozilla more flexible with finding the root directory of the repository. r=mossop
MozReview-Commit-ID: KmQS9RKwf3K

--HG--
extra : rebase_source : 6ca245d8acbd1f68b74126f216a4266e9f157ab5
2017-06-15 15:57:04 +01:00
Phil Ringnalda
31f11c7ae3 Backed out changeset d598bbacfa4b (bug 1373500) for Fennec build bustage
MozReview-Commit-ID: 16xfBr8sfWw
2017-06-15 22:54:37 -07:00
Connor Brewster
e1ae5b07a2 servo: Merge #17224 - WebIDL HTMLConstructor support (from cbrewster:html_constructor); r=jdm
<!-- Please describe your changes on the following line: -->
spec: https://html.spec.whatwg.org/multipage/#htmlconstructor

---
<!-- 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 #17194 (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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: c58bcc23ea5c4b5f83944e111ce9a2d0ec2b5400

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2ee613be5c136e0376b935ff4d5de918731cb44b
2017-06-15 21:47:16 -07:00
Manish Goregaokar
3125497283 Bug 1373018 - Part 11: stylo: Move cached style structs to GeckoStyleContext; r=bholley
MozReview-Commit-ID: 1LA8AJ3oNwF

--HG--
extra : rebase_source : e318c7c92973eb6daf9b9fb9b1dcd776e6788a95
2017-06-10 22:27:45 -07:00