Commit Graph

532018 Commits

Author SHA1 Message Date
Tom Ritter
d44ebbd80e Bug 1378552 - Reduce the liklihood of inadvertently misusing NullPrincipal::Create(). r=ckerschb
NullPrincipal::Create() (will null OA) may cause an OriginAttributes bypass.
We change Create() so OriginAttributes is no longer optional, and rename
Create() with no arguments to make it more explicit about what the caller is doing.

MozReview-Commit-ID: 7DQGlgh1tgJ
2018-03-22 13:36:20 -05:00
Honza Bambas
6aa880fd21 Bug 1433088 - Make the HTTP cache entry age based validation calculation work with the internal one-second only round-down resolution to make max-age=0 force immediate expiration. r=michal 2018-03-28 08:35:00 -04:00
Andrew Osmond
7537c73d36 Bug 1433351 - Add nsBaseHashtable::EntryPtr::OrRemove method to abort nsBaseHashtable::LookupForAdd on miss. r=froydnj
In SourceSurfaceImage::GetTextureClient, we use LookupForAdd. This is
because we typically will create a new TextureClient if there isn't
already one created. This creation can fail because the size is too big,
or we don't have the memory available for it. Unfortunately LookupForAdd
is an infallible operation; it is expected we will always add something
to the hashtable if we don't find an entry. This patch adds an OrRemove
method to cover the corner case where we are unable to complete the
insertion.
2018-03-28 12:58:49 -04:00
Olli Pettay
ff39409418 Bug 1441277 - nsINode needs better documentation on GetComposedDoc vs GetUncomposedDoc, r=annevk 2018-03-28 19:51:14 +03:00
David Major
7b972cb5c6 Bug 1439988: Use a full progress meter to avoid flakiness from animation. r=enndeakin 2018-03-28 12:32:10 -04:00
ui.manish
efa6a9118c Bug 1429396 - Remove toolkit/content/global/XPCNativeWrapper.js r=mconley 2018-03-28 09:53:33 +02:00
Cosmin Sabou
0aeb0e5651 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-28 18:56:37 +03:00
Jon Coppeard
dba0092af5 Bug 1449541 - Don't hold script data lock while calcuating hash r=jandem 2018-03-28 16:41:16 +01:00
Jon Coppeard
0be86c2223 Bug 1449153 - Handle errored module in GetModuleNamespace() r=anba 2018-03-28 16:40:17 +01:00
Cosmin Sabou
bc201526a4 Backed out 3 changesets (bug 1449321, bug 1449566, bug 1449565) as per developer request.
Backed out changeset c31de7e26809 (bug 1449565)
Backed out changeset 72f9188800af (bug 1449566)
Backed out changeset 763277b299e4 (bug 1449321)
2018-03-28 18:10:11 +03:00
Bob Owen
647659721f Bug 1449480: Don't crash in opt builds when scoped_handle.cc CloseHandleWrapper fails. r=jimm
I'm not adding a patch to security/sandbox/chromium-shim/patches for this,
because we need to get this fixed ASAP, certainly before we take another update.
2018-03-28 16:07:15 +01:00
Cosmin Sabou
c56c86b994 Backed out changeset d345b546edce (bug 1440789) for Android nightly build bustages. a=backout 2018-03-28 16:59:28 +03:00
Cosmin Sabou
60829caa7f Merge inbound to mozilla-central. a=merge 2018-03-28 12:49:56 +03:00
Cosmin Sabou
0924ee14d9 Backed out changeset ca46aca41fec (bug 1449072) for xpcshell failures on xpcshell/test_install.js. CLOSED TREE 2018-03-28 09:15:52 +03:00
Cosmin Sabou
4bb86da166 Backed out changeset 3a8afc1650db (bug 1311145) for mochitest browser chrome failures on browser_all_files_referenced.js. 2018-03-28 08:33:41 +03:00
Ryan Hunt
0a3a7ccac0 Bug 1448485 - Remove assert in APZCallbackHelper and add comment about case it was triggered by. r=kats
MozReview-Commit-ID: IbXNISatv3Q
2018-03-27 16:16:26 -05:00
Ryan Hunt
0a76ae73b7 Check if FilterNodeCapture was able to successfully validate (bug 1447428, r=bas) 2018-03-26 12:48:57 -05:00
Henri Sivonen
8cb93a3316 Bug 1448588 - Assume contiguous XPCOM strings in txDouble. r=peterv.
MozReview-Commit-ID: 9gDx13PNFWr
2018-03-24 21:24:25 +02:00
Xidorn Quan
b051b9aa8a Bug 1449103 part 3 - Merge ServoGroupRuleRules into GroupRule. r=emilio
MozReview-Commit-ID: 83rI7gydEUd
2018-03-28 12:25:36 +11:00
Xidorn Quan
26a9861563 Bug 1449103 part 2 - Make CSSKeyframesRule inherit from Rule directly. r=emilio
The spec doesn't say CSSKeyframesRule needs to inherit CSSGroupingRule.
It inherited GroupRule because Gecko's keyframes rule implementation
relies on that to manage its children.

MozReview-Commit-ID: CnVP2tozwQU
2018-03-28 12:23:58 +11:00
Xidorn Quan
564a437ce3 Bug 1449103 part 1 - Make Rule::mParentRule not necessarily a GroupRule. r=emilio
For part 2, where CSSKeyframesRule will inherit directly from Rule while
it is parent rule for its CSSKeyframeRules.

It seems there is nothing relying on mParentRule being a GroupRule so we
can just change it.

MozReview-Commit-ID: Cyte6h3Q2LB
2018-03-28 12:20:41 +11:00
Yusuf Simonson
5b272b2734 servo: Merge #20450 - Properly rethrow any exceptions from parsing JSON in Body mixin's Json() (from ysimonson:fix-13464); r=jdm
This fixes #13464 by rethrowing exceptions from parsing JSON.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #__ (github issue number if applicable).
- [X] There are tests for these changes

Source-Repo: https://github.com/servo/servo
Source-Revision: 25dcd0ecfd4cb7a844f00696730cb0d3ab4b198c
2018-03-27 22:44:32 -04:00
Anthony Weston
2c6a92d613 servo: Merge #20430 - Pass new method in CollectServoSizes to get size of ObjectPrivateVisitor (from aeweston98:aew-issue7084); r=jdm
<!-- Please describe your changes on the following line: -->
These changes are the servo changes to allow the measurement of DOM objects with the ObjectPrivateVisitor API. Two new functions have been added MemoryReporter and get_size, which are passed as function pointers to two updated mozjs functions. Currently these changes rely on a branch version of mozjs, which has an [open pull request](https://github.com/servo/rust-mozjs/pull/409).

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] 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: 339146ae1566fc35e47ccc4fba1471a9123d039d
2018-03-27 21:21:56 -04:00
Emilio Cobos Álvarez
ec1cfb007d No bug - remove duplicated condition likely due to merge mess. r=me
MozReview-Commit-ID: AO7nmkUIs82
2018-03-28 03:17:59 +02:00
Jonathan Watt
aae693d34f Bug 1449565 - Remove the aGeckoParentRule parameter from css::Loader's InsertChildSheet and LoadChildSheet. r=emilio 2018-03-23 17:02:35 +00:00
Jonathan Watt
e016051ac9 Bug 1449566 - Remove GenericSpecifiedValues::ShouldIgnoreColors. r=emilio 2018-03-23 16:40:12 +00:00
Jonathan Watt
0d59536e73 Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio 2018-03-23 16:01:34 +00:00
Jan de Mooij
9b92328cf3 Bug 1445235 followup - Add some blank lines to appease masm style checker. r=red 2018-03-28 16:27:27 +02:00
Jan de Mooij
e6748d5cf3 Bug 1445235 part 6 - Use spectreBoundsCheck32 for more stores in JIT code. r=nbp 2018-03-28 16:09:04 +02:00
Jan de Mooij
b663706cd9 Bug 1445235 part 5 - Refactor spectreBoundsCheck32 to work without a scratch register. r=nbp 2018-03-28 16:07:11 +02:00
Jan de Mooij
267736d572 Bug 1445235 part 4 - Remove RegisterOrInt32Constant. r=nbp 2018-03-28 16:07:10 +02:00
Jan de Mooij
4bc64adbcb Bug 1445235 part 3 - Use Spectre-safe bounds check for LStoreTypedArrayElementHole. r=nbp 2018-03-28 16:07:10 +02:00
David Major
d23c0a2c41 Bug 1298383: Add default cases to appease clang-cl's -Wswitch. r=Bas 2018-03-28 09:56:30 -04:00
Nicolas Silva
08e4b23cb3 Bug 1449242 - Don't delay image key deletions by an extra transaction. r=sotaro 2018-03-28 15:33:21 +02:00
André Bargull
3170dd6d77 Bug 1448839: Remove unused native version of Object.defineProperty. r=till 2018-03-26 05:40:17 -07:00
André Bargull
39860d32e7 Bug 1448837: Remove code to handle already set name now that parse nodes can no longer be emitted twice. r=arai 2018-03-28 05:45:21 -07:00
Jason Laster
cdad5a3d38 Bug 1449362 - Update Debugger Frontend v29. r=jdescottes 2018-03-28 08:58:35 -04:00
André Bargull
816a5008e4 Bug 1448838: Add native version for CopyDataProperties. r=jandem 2018-03-27 13:56:20 -07:00
André Bargull
d3ffce2a35 Bug 1448582: Don't assert when overwriting the atom of cloned singleton functions. r=jorendorff 2018-03-27 09:20:58 -07:00
André Bargull
77bc89a144 Bug 1448836: Call NumberToAtom when argument is double value. r=jorendorff 2018-03-26 05:39:04 -07:00
André Bargull
a0c7c55291 Bug 1448835: Remove scope chain walk unused since object parents removal. r=Waldo 2018-03-26 05:38:39 -07:00
Jonathan Kingston
f9bd99dff4 Bug 1311145 - Removal of about extension modal in about:addons r=aswan
MozReview-Commit-ID: 4eMicumvQph
2018-03-16 17:08:33 +00:00
Hiroyuki Ikezoe
d6feb6a2c2 Bug 1446993 - Observe restyling count in fixed 20 frames instead of tweaked count. r=birtles
In bug 1444177, I did accidentally replace the frame count with the tweaked
count.  The tweaked count represents that animation restyling should happen
the tweaked count times during *not-yet-tweaked* frame count.

MozReview-Commit-ID: 1QmH5xaYexL
2018-03-28 08:24:38 +09:00
Xidorn Quan
d3ef7674f0 Bug 1449089 part 5 - Remove nsCSSPseudoClasses.{h,cpp} and nsCSSPseudoClassList.h. r=emilio
MozReview-Commit-ID: 7KYFiQ5vUxg
2018-03-28 09:41:04 +11:00
Xidorn Quan
f5233979e3 Bug 1449089 part 4 - Move logic of nsCSSPseudoClasses::LangPseudoMatches into Gecko_MatchLang. r=emilio
MozReview-Commit-ID: 6c6TooaU6dQ
2018-03-28 09:41:04 +11:00
Xidorn Quan
1881ec7533 Bug 1449089 part 3 - Remove pref layout.css.scope-pseudo.enabled. r=emilio
It was never effective in Stylo anyway.

MozReview-Commit-ID: EF7NnS6uxOO
2018-03-28 09:41:04 +11:00
Xidorn Quan
f0a2a355af Bug 1449089 part 2 - Move matching logic of :-moz-table-border-nonzero and :-moz-browser-frame into individual binding functions. r=emilio
MozReview-Commit-ID: Ic3EjtwSve0
2018-03-28 09:41:04 +11:00
Xidorn Quan
dd27d73700 Bug 1449089 part 1 - Make :-moz-native-anonymous and :-moz-use-shadow-tree-root matches in Rust code. r=emilio
:-moz-native-anonymous can just use is_in_native_anonymous_subtree()
which is an existing function duplicating IsInNativeAnonymousSubtree().

IsRootOfUseElementShadowTree() in C++ code only has a single reference
from nsCSSPseudoClasses::MatchesElement() so we can just move it to the
Rust side. And actually Rust code has existing duplicate logic for
blocks_ancestor_combinators().

MozReview-Commit-ID: 8M1hHrYJT6Y
2018-03-28 09:41:04 +11:00
Xidorn Quan
356ae9f4ee Bug 1449097 - Use Servo to implement GetStatesForPseudoClass function in InspectorUtils. r=emilio
MozReview-Commit-ID: 2tL5otfqCiw
2018-03-28 09:41:04 +11:00
Xidorn Quan
fff3672580 servo: Merge #20456 - Remove nsCSSPseudoClasses and friends (from upsuper:remove-nscsspseudoclasses); r=emilio
This is the Servo side change of [bug 1449097](https://bugzilla.mozilla.org/show_bug.cgi?id=1449097) and [bug 1449089](https://bugzilla.mozilla.org/show_bug.cgi?id=1449089).

Source-Repo: https://github.com/servo/servo
Source-Revision: 97c12bd3927c057d5610b0295f0e8320b64af5e5
2018-03-27 18:51:48 -04:00