Commit Graph

83518 Commits

Author SHA1 Message Date
alwu
119f85db3a Bug 1536762 - part2 : use first line box's size as positioning basic unit. r=heycam,baku
According to the spec [1] 7.2.10.2, we should use the first line box's height or width as positioning unit to adjust box's position.

We will also use this value to adjust box when `snap-to-line` is false.

There, we implement a new chrome-only API to acquire this information, which would return the first line box's size in the `block` frame.

[1] https://www.w3.org/TR/webvtt1/#ref-for-webvtt-cue-snap-to-lines-flag-12

Differential Revision: https://phabricator.services.mozilla.com/D29745

--HG--
extra : moz-landing-system : lando
2019-05-09 19:22:33 +00:00
alwu
9ea9ba3929 Bug 1536762 - part1 : use unscaled bounding box'size as a cue box's size. r=baku,heycam
When adjusting cue's position, the goal is to place cue boxes fully inside the rendering area, and place in the right place.

In order to check whether the box is correctly inside the rendering area, we have to know the correct size of the cue box.

Therefore, we implement the new chrome-only APIs to acquire this information (box's height and width), and this returned value won't be affected by CSS transformation, which is good for positioning.

Differential Revision: https://phabricator.services.mozilla.com/D27178

--HG--
extra : moz-landing-system : lando
2019-05-09 18:26:17 +00:00
Narcis Beleuzu
b5a129f8e7 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-05-10 01:17:29 +03:00
Brindusan Cristian
ba4f64421f Backed out changeset 7fa8e33635fc (bug 1534012) for wpt failures at promise-rejection-events.html. CLOSED TREE 2019-05-10 01:10:40 +03:00
Narcis Beleuzu
f533451f22 Merge inbound to mozilla-central. a=merge 2019-05-10 00:42:34 +03:00
shindli
a52116e98d Backed out changeset d1615ffd338f (bug 1548475) for xpcshell failures CLOSED TREE 2019-05-09 23:23:34 +03:00
Martin Stransky
085c43df90 Bug 1548475 - [Wayland] Disable Flash on Wayland backend, r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D30020

--HG--
extra : moz-landing-system : lando
2019-05-09 15:03:13 +00:00
Boris Zbarsky
e26cc00e3e Bug 1550364 part 6. Stop using [array] in nsIUDPSocketInternal. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30449

--HG--
extra : moz-landing-system : lando
2019-05-09 06:55:07 +00:00
Boris Zbarsky
5ae4d7046a Bug 1550364 part 5. Get rid of nsIUDPSocketChild. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30448

--HG--
extra : moz-landing-system : lando
2019-05-09 06:55:06 +00:00
Boris Zbarsky
941d39f649 Bug 1550364 part 4. Move various methods from nsIUDPSocketChild to dom::UDPSocketChild, and simplify their signatures where possible. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30447

--HG--
extra : moz-landing-system : lando
2019-05-09 06:55:06 +00:00
Boris Zbarsky
7299b02992 Bug 1550364 part 3. Remove unused nsIUDPSocketChild methods. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30446

--HG--
extra : moz-landing-system : lando
2019-05-09 06:55:06 +00:00
Boris Zbarsky
86aa098b68 Bug 1550364 part 2. Use dom::UDPSocketChild, not nsIUDPSocketChild, in C++ code. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30445

--HG--
extra : moz-landing-system : lando
2019-05-09 06:55:05 +00:00
Boris Zbarsky
70b91760d9 Bug 1550364 part 1. Stop claiming nsIUDPSocketChild is scriptable, since we never use it from script. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30444

--HG--
extra : moz-landing-system : lando
2019-05-09 06:55:05 +00:00
Sean Feng
87884c39a6 Bug 1534012 - Use a low priority ThrottledEventQueue for postMessages during page load r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D27386

--HG--
extra : moz-landing-system : lando
2019-05-09 14:43:40 +00:00
Brindusan Cristian
7f7d7f6a70 Backed out changeset e925cef1cadf (bug 1549326) for mochitest assertion failures at nsContentSecurityManager.cpp:205. CLOSED TREE 2019-05-09 21:05:40 +03:00
Byron Campen [:bwc]
6a25453cbf Bug 1529612 - Part 3: Update a mochitest to expect bufferedamountlow events even when the threshold is 0 (Part 2 fixed this bug). r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D28528

--HG--
extra : moz-landing-system : lando
2019-05-09 15:37:55 +00:00
Byron Campen [:bwc]
fd69aa4690 Bug 1529612 - Part 1: Refactor nsDOMDataChannel so DataChannel will be able to tell how large a blob is without needing to stream the whole thing. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D28525

--HG--
extra : moz-landing-system : lando
2019-05-09 14:48:13 +00:00
Byron Campen [:bwc]
7589cea682 Bug 1531908 - Part 0: Re-enable a test-case, and check length of label based on UTF-8 encoding. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D28557

--HG--
extra : moz-landing-system : lando
2019-05-09 17:29:20 +00:00
Alex Chronopoulos
396962e5a5 Bug 1545416 - Make the remote decoder shutdown async. r=mjf
Create a new IPDL message `ShutdownComplete`, direction from parent (RDD) to child (content), to inform the child when the decoder shutdown has been completed. The remote decoder child uses that message to resolve the shutdown promise.

Differential Revision: https://phabricator.services.mozilla.com/D28340

--HG--
extra : moz-landing-system : lando
2019-05-09 16:38:54 +00:00
alwu
4be0d5b867 Bug 1548923 - part5 : run TimeMarchesOn in correct order r=jya
To run `TimeMarchesOn` in correct spec's steps order.

Differential Revision: https://phabricator.services.mozilla.com/D30391

--HG--
extra : moz-landing-system : lando
2019-05-09 01:34:57 +00:00
alwu
2b345c4263 Bug 1548923 - part4 : prevent run TimeMarchesOn before media has any data. r=jya
In patch2, whenever the media element's readyState is changed back to HAVE_NOTHING, we would reset all cues' active flag and update cue display in order to hide them.

It also means that we should not set any cue's flag when media element's readyState is `HAVE_NOTHING`, so we should abort the `TimeMarchesOn` in this situation.

Differential Revision: https://phabricator.services.mozilla.com/D30390

--HG--
extra : moz-landing-system : lando
2019-05-09 01:33:36 +00:00
Noemi Erli
1c65279044 Backed out changeset 38ce182f68ea (bug 1402530) for build bustages in nsMixedContentBlocker.cpp CLOSED TREE 2019-05-09 17:29:38 +03:00
alwu
12021ef9f6 Bug 1548923 - part3 : add test 'test_webvtt_update_display_after_adding_or_removing_cue.html'. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D29883

--HG--
extra : moz-landing-system : lando
2019-05-08 17:46:39 +00:00
alwu
dfb849b238 Bug 1548923 - part2 : reset cues' active flag when media element's ready state becomes 'HAVE_NOTHING' r=jya
According to the spec [1], whenever the media element's readyState is changed back to `HAVE_NOTHING`, we have to reset all cues' active flag and update cue display in order to hide them.

[1] https://html.spec.whatwg.org/multipage/media.html#text-track-cue-active-flag

Differential Revision: https://phabricator.services.mozilla.com/D30110

--HG--
extra : moz-landing-system : lando
2019-05-08 17:46:39 +00:00
alwu
70e585dd96 Bug 1548923 - part1 : abort 'TimeMarchesOn' algorithm during seeking. r=jya
In the spec [1], it doesn't mention that we should only run `TimeMarchesOn` after media has started. Therefore, we should remove this return condition in order to update cue's state correctly no matter the media starts or not.

In addition, according to the spec [2], `TimeMarchesOn` should be executed after seeking completed, we shouldn't not run it during seeking.

[1] https://html.spec.whatwg.org/multipage/media.html#time-marches-on
[2] https://html.spec.whatwg.org/multipage/media.html#seeking:time-marches-on

Differential Revision: https://phabricator.services.mozilla.com/D29882

--HG--
extra : moz-landing-system : lando
2019-05-08 17:33:36 +00:00
Noemi Erli
6430d23336 Backed out 12 changesets (bug 1547813) for failures in browser_partitionedIndexedDB.js CLOSED TREE
Backed out changeset 98989127264b (bug 1547813)
Backed out changeset f9d790139a26 (bug 1547813)
Backed out changeset a29f58cef022 (bug 1547813)
Backed out changeset c1288949de1c (bug 1547813)
Backed out changeset 8cad4fd197b1 (bug 1547813)
Backed out changeset 807ce59e7e6e (bug 1547813)
Backed out changeset 06943593738c (bug 1547813)
Backed out changeset 4ced8d49ddc3 (bug 1547813)
Backed out changeset 77a040f527e9 (bug 1547813)
Backed out changeset b4651cfaff30 (bug 1547813)
Backed out changeset 279c140a4d71 (bug 1547813)
Backed out changeset 0e0241f3d366 (bug 1547813)
2019-05-09 20:04:16 +03:00
Jonas Allmann
4b72fd9bba Bug 1549326 - Remove simpletest.js from eval()-whitelist, r=ckerschb
Amend several test files for triggering eval() assertion through simpletest.js

Differential Revision: https://phabricator.services.mozilla.com/D30474

--HG--
extra : moz-landing-system : lando
2019-05-09 16:02:49 +00:00
Ehsan Akhgari
c7cb5521d1 Bug 1547813 - Part 8: Introduce a CookieSettings API to query whether cookies from third-party trackers must be rejected and use it in Gecko; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30117

--HG--
extra : moz-landing-system : lando
2019-05-08 20:22:18 +00:00
Ehsan Akhgari
f33f21e80b Bug 1547813 - Part 7: Introduce a storage partitioning API; r=baku
This API abstracts away the details of the decision on what context should be
partitioned away from the consumers and centralizes the decision making into
the same location in the code base.

Differential Revision: https://phabricator.services.mozilla.com/D29742

--HG--
extra : moz-landing-system : lando
2019-05-08 20:15:13 +00:00
Ehsan Akhgari
7889bc2edd Bug 1547813 - Part 6: Return StorageAccess::ePartitionForeignOrDeny from storage access APIs when the antitracking backend mandates that; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29741

--HG--
extra : moz-landing-system : lando
2019-05-08 20:13:23 +00:00
Ehsan Akhgari
2560dad048 Bug 1547813 - Part 5: Introduce StorageAccess::ePartitionForeignOrDeny; r=baku
This StorageAccess code tells callers that they must partition third-party
storage, or deny storage access if that is not possible.

Differential Revision: https://phabricator.services.mozilla.com/D29740

--HG--
extra : moz-landing-system : lando
2019-05-09 07:14:34 +00:00
Ehsan Akhgari
1b4236b4ee Bug 1547813 - Part 4: Rename StorageAccess::ePartitionedOrDeny to ePartitionTrackersOrDeny; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D29739

--HG--
extra : moz-landing-system : lando
2019-05-08 19:37:52 +00:00
Sebastian Streich
db1660661f Bug 1402530 - Use IsOriginPotentiallyTrustworthy in ShouldLoad r=ckerschb,jkt
Differential Revision: https://phabricator.services.mozilla.com/D28870

--HG--
extra : moz-landing-system : lando
2019-05-07 18:08:19 +00:00
Jon Coppeard
75bfdb344c Bug 1549853 - Ignore associations of zero bytes of malloc memory with a GC thing r=sfink?
Differential Revision: https://phabricator.services.mozilla.com/D30355

--HG--
extra : moz-landing-system : lando
2019-05-08 17:46:02 +00:00
Emilio Cobos Álvarez
f65bcfba56 Bug 1549559 - Add bindings for ArcSlice and ThinArc, and use them to reduce copies of SVG path data. r=heycam
As I said over bug 1549593, the eventual goal is to use ArcSlice in all
inherited properties. But this seemed like a good first candidate that doesn't
require me to move around a lot more code, since we were already using cbindgen
for the path commands.

Differential Revision: https://phabricator.services.mozilla.com/D30134

--HG--
extra : moz-landing-system : lando
2019-05-09 12:43:19 +00:00
Emilio Cobos Álvarez
23b7a280bf Bug 1545823 - Implement non-standard CSSStyleSheet.rules, CSSStyleSheet.addRule and CSSStyleSheet.removeRule. r=bzbarsky
It's not worth dying on this hill. Both Blink and WebKit pass the tests.

(Well, WebKit actually fails one of the latest ones I wrote, cssRules and rules
are not the same JS object, WebKit returns a new rule list. I'll file)

Spec PR in https://github.com/w3c/csswg-drafts/pull/3900.

Differential Revision: https://phabricator.services.mozilla.com/D30348

--HG--
extra : moz-landing-system : lando
2019-05-09 12:32:52 +00:00
Ryan Hunt
116a9d80ed Bug 1549753 - Add windowGlobalParents getter to nsIRemoteTab. r=afarre
Differential Revision: https://phabricator.services.mozilla.com/D30218

--HG--
extra : rebase_source : 3b6c785b12d49c7d9f8d155ba28ae66327c6b7e9
extra : histedit_source : 4931c8bf3b631ea86132aa1f35ed4e7dcd7ce3e0
2019-05-07 11:09:15 -05:00
Ryan Hunt
84608be0bd Bug 1549753 - Use Visit method in BrowserParent::SetOwnerElement. r=afarre
Differential Revision: https://phabricator.services.mozilla.com/D30216

--HG--
extra : rebase_source : 2001a03ca53c2506a264fa81dbb6b743f0831da7
extra : histedit_source : 2c36a4146e850b980bdff4b9561ce03b004d4099
2019-05-07 11:08:48 -05:00
Ryan Hunt
7df4ba7bbf Bug 1549753 - Add Visit methods for visiting the tree of BrowserParent and BrowserBridgeParent. r=afarre
Differential Revision: https://phabricator.services.mozilla.com/D30215

--HG--
extra : rebase_source : f885c62dc8a24974d67b2c65e19ab42576e8640e
extra : histedit_source : f884a8ed29c99bd0e71f78d6adaf61a9f19ce21e
2019-05-07 11:08:22 -05:00
Ryan Hunt
a1f98beaf1 Bug 1549753 - Don't include BrowserParent.h from BrowserBridgeParent.h. r=afarre
Differential Revision: https://phabricator.services.mozilla.com/D30214

--HG--
extra : rebase_source : d646fffd4397809ff5082e5a0098427f620288d7
extra : histedit_source : fec5ebacbf77c06ed9dba9e35f54474d0cf38194
2019-05-07 11:07:47 -05:00
Noemi Erli
34f9686f88 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-05-09 18:37:16 +03:00
Cameron McCormack
d4d63edb8f Bug 1133175 - Remove SVGTests.hasExtension. r=bz,longsonr 2019-05-09 14:39:28 +10:00
Oana Pop Rus
b9da45f63c Merge inbound to mozilla-central. a=merge 2019-05-09 06:34:15 +03:00
Boris Chiou
f97f4fc49a Bug 1545239 - Unobserve the target if using a different observed box. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D30129

--HG--
extra : moz-landing-system : lando
2019-05-08 20:54:43 +00:00
Boris Chiou
7ab6e6d017 Bug 1545239 - Update ResizeObserver and ResizeObserverEntry. r=smaug,dholbert
In this patch, we support
1. content-box (default)
2. border-box

And let ResizeObserverEntry expose these box sizes.

Besides, we store the mLastReportedSize as the logical size.

Differential Revision: https://phabricator.services.mozilla.com/D28737

--HG--
extra : moz-landing-system : lando
2019-05-08 20:54:36 +00:00
Boris Chiou
6521583602 Bug 1545239 - Move GetNodeDepth into ResizeObserver.cpp r=dholbert
GetNodeDepth() is a special version for ResizeObserver to get the depth
of node (across Shadow DOM). Based on the comment in D27615, it's better
to move it into ResizeObserver.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D28736

--HG--
extra : moz-landing-system : lando
2019-05-08 20:52:51 +00:00
Oana Pop Rus
3d78756bdb Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-05-09 01:01:06 +03:00
Mirko Brodesser
05691b5529 Bug 1549696: factor out functionality to determine fixup node in nsDocumentEncoder. r=hsivonen
In order to reduce code duplication and make the code more legible.

Differential Revision: https://phabricator.services.mozilla.com/D30199

--HG--
extra : moz-landing-system : lando
2019-05-08 11:09:51 +00:00
Edgar Chen
f551bbe0a8 Bug 1548848 - Moving assigned nodes caused by slot removal should properly invalidate layout; r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D30194

--HG--
extra : moz-landing-system : lando
2019-05-08 10:39:40 +00:00
Jim Porter
679c9bfc7e Bug 1549177 - Fix a race condition when cancelling content JS during navigation; r=smaug
This patch fixes a race condition where we could request that a content page's
JS be cancelled during navigation in `HangMonitorChild::InterruptCallback`,
but the new page has already started loading by the time the JS is cancelled in
`XPCJSContext::InterruptCallback`, thus cancelling the JS of the new page. To
fix this, we now handle everything in `HangMonitorChild::InterruptCallback`,
making sure to only do anything for *content* scripts (to avoid inadvertently
cancelling the browser's JS).

Differential Revision: https://phabricator.services.mozilla.com/D30272

--HG--
extra : moz-landing-system : lando
2019-05-07 21:56:58 +00:00