Commit Graph

653218 Commits

Author SHA1 Message Date
Masayuki Nakano
4fe540db19 Bug 1547897 - Make WSRunObject stop scanning outside of editing host r=m_kato
`WSRunObject` scans previous and next node of given point/range **without**
checking editing host boundary.  Therefore, its methods may return non-editable
nodes or editable nodes in another editing host.  In such cases, `HTMLEditRules`
is confused.

This patch makes it store editing host at initialization and it check the
boundary.  However, the former cost may appear in score of some benchmark
tests, but we shouldn't allow attackers to use this entrance.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 12:10:23 +00:00
Emilio Cobos Álvarez
c2d1e98f4c Bug 1552708 - Tweak rust tests to account for more compact URL representation. r=bustage
CLOSED TREE
2019-05-27 14:21:17 +02:00
Emilio Cobos Álvarez
f2190857bb Bug 1552708 - Use cbindgen for URIs. r=heycam
This doesn't clean up as much as a whole, but it's a step in the right
direction. In particular, it allows us to start using simple bindings for:

 * Filters
 * Shapes and images, almost. Need to:
   * Get rid of the complex -moz- gradient parsing (let
     layout.css.simple-moz-gradient.enabled get to release).
 * Counters, almost. Need to:
   * Share the Attr representation with Gecko, by not using Option<>.
     * Just another variant should be enough (ContentItem::{Attr,Prefixedattr},
       maybe).

Which in turn allows us to remove a whole lot of bindings in followups to this.

The setup changes a bit. This also removes the double pointer I complained about
while reviewing the shared UA sheet patches. The old setup is:

```
SpecifiedUrl
 * CssUrl
   * Arc<CssUrlData>
     * String
     * UrlExtraData
 * UrlValueSource
   * Arc<CssUrlData>
   * load id
   * resolved uri
   * CORS mode.
   * ...
```

The new one removes the double reference to the url data via URLValue, and looks
like:

```
SpecifiedUrl
 * CssUrl
   * Arc<CssUrlData>
     * String
     * UrlExtraData
     * CorsMode
     * LoadData
       * load id
       * resolved URI
```

The LoadData is the only mutable bit that C++ can change, and is not used from
Rust. Ideally, in the future, we could just use rust-url to resolve the URL
after parsing or something, and make it all immutable. Maybe.

I've verified that this approach still works with the UA sheet patches (via the
LoadDataSource::Lazy).

The reordering of mWillChange is to avoid nsStyleDisplay from going over the
size limit. We want to split it up anyway in bug 1552587, but mBinding gains a
tag member, which means that we were having a bit of extra padding.

One thing I want to explore is to see if we can abuse rustc's non-zero
optimizations to predict the layout from C++, but that's something to explore at
some other point in time and with a lot of care and help from Michael (who sits
next to me and works on rustc ;)).

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

--HG--
extra : moz-landing-system : lando
2019-05-27 11:45:12 +00:00
Andreas Tolfsen
26201b29a2 bug 1553317: remote: improve error message on missing method; r=remote-protocol-reviewers,ochameau
We return with this rather omnious message when we are missing the
implementation of a CDP method:

	Error: Protocol error (Target.createBrowserContext): TypeError: inst[command] is not a function:

This patch improves the error message so that debugging is not
necessary to find out which domain or command is missing.

Ideally Session.jsm and ContentProcessSession.jsm would share the
same execute() function (there's really not reason they don't),
but that involves more work.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 11:39:16 +00:00
Emilio Cobos Álvarez
998419a429 Bug 1554433 - Hide -moz-gtk-buttonactivetext from content. r=stransky
This prevents exposing the value to web content.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 11:25:02 +00:00
Nicolas Silva
2f30052cd5 Bug 1546894 - Fix PathBuilderSkia::CurrentPoint. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D32456

--HG--
extra : moz-landing-system : lando
2019-05-27 10:41:40 +00:00
Nicolas Silva
75c8a4d940 Bug 1546894 - Fix PathBuilderCapture::CurrentPoint when closing a path. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D32459

--HG--
extra : moz-landing-system : lando
2019-05-27 10:41:40 +00:00
Brindusan Cristian
58d68b812b Backed out changeset 3b6338393cc7 (bug 1546041) for mochitest failures at test_request.html. CLOSED TREE 2019-05-27 12:56:32 +03:00
Sebastian Hengst
f101c52cca Bug 1554542 - Fix browser.urlbar.doubleClickSelectsAll handling: remove unused variable assignment 2019-05-27 11:28:23 +02:00
Kestrel
4b5cc7c176 Bug 1539379 - Ensure light/dark theme uses correct tab text color for Windows 7 classic theme r=dao
Differential Revision: https://phabricator.services.mozilla.com/D32673

--HG--
extra : moz-landing-system : lando
2019-05-27 09:17:15 +00:00
Kershaw Chang
5d000eeb62 Bug 1544619 - Ignore response body if method is HEAD or CONNECT r=mayhemer
According to the spec, we should ignore the response body for the HEAD and CONNECT requests.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 09:08:50 +00:00
Dão Gottwald
9db3815943 Bug 1554542 - Fix browser.urlbar.doubleClickSelectsAll handling. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D32669

--HG--
extra : moz-landing-system : lando
2019-05-27 09:00:00 +00:00
Gijs Kruitbosch
bd641f5fa6 Bug 1196094 - use e10s when doing PGO profiling, r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D32329

--HG--
extra : moz-landing-system : lando
2019-05-27 09:05:21 +00:00
Andrei Oprea
f745bd685c Bug 1552896 - Cleanup the different platform specific styles for the search input r=dao
MozReview-Commit-ID: D626LKOYsAu

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

--HG--
extra : moz-landing-system : lando
2019-05-27 09:01:20 +00:00
Mihai Alexandru Michis
1dd6cb6ee5 Backed out 6 changesets (bug 1543077) for causing bc failures at docshell/test/browser/browser_bug1543077.js
Backed out changeset f593045cc48f (bug 1543077)
Backed out changeset 25449ba8aceb (bug 1543077)
Backed out changeset ccc438262e29 (bug 1543077)
Backed out changeset 4573c25b1ce0 (bug 1543077)
Backed out changeset 1cbaafb9373a (bug 1543077)
Backed out changeset 1a0e7ced8e47 (bug 1543077)

--HG--
extra : rebase_source : f04bf405303fe03776f0e70b03db076c0a41ae45
2019-05-27 12:00:21 +03:00
violet
5519af913c Bug 1554457 - Obtain style from frame rather than GetComputedStyleNoFlush r=emilio,longsonr,birtles
These usecases are almost the same as the geometry property stuff. It'd
be better to use `GetPrimaryFrame()->Style()` consistently rather than
using `GetComputedStyleNoFlush()` here.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 05:06:47 +00:00
violet
d246402be3 Bug 1554568 - Should resolve font-size of inner svg from itself r=longsonr
Resolving length for inner <svg> is exactly the same as other ordinary
element. We should not pass the context to `GetAnimValue()`, otherwise
font-size will be obtained from the enclosing viewport of the inner
<svg> rather than the inner <svg> itself.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 06:46:53 +00:00
John Dai
3c7a906413 Bug 1552554 - Move JSWindowActor config dictionaries into JSWindowActor.webidl; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D32325

--HG--
extra : moz-landing-system : lando
2019-05-24 18:44:43 +00:00
Julian Descottes
12d5dff1f5 Bug 1535102 - Extract shared helper to setup remote CDP mochitests r=ato
Depends on D32538.
Not mandatory, but we have some duplicated code shared by several mochitests, maybe we could have a shared helper?

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

--HG--
extra : moz-landing-system : lando
2019-05-27 08:04:11 +00:00
Julian Descottes
2456aa785c Bug 1535102 - Implement Page.bringToFront and introduce parent Page domain r=ato
Differential Revision: https://phabricator.services.mozilla.com/D32538

--HG--
extra : moz-landing-system : lando
2019-05-27 08:52:03 +00:00
Kershaw Chang
b53ba78d32 Bug 1546041 - Throw TypeError if mode is Navigate r=baku
According to spec, we should throw TypeError if the mode is Navigate.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 20:36:09 +00:00
Mirko Brodesser
899bfb263a Bug 1554222: delegate serializing in nsDocumentEncoder depending on encoding scope to separate methods. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D32486

--HG--
extra : moz-landing-system : lando
2019-05-27 07:50:19 +00:00
Mirko Brodesser
f191dd8a13 Bug 1554147: default initialize member in EncodedDocumentWithContext. r=hsivonen
Just for consistency.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 07:24:37 +00:00
Mirko Brodesser
0ad0e91ed8 Bug 1554147: rename mCommonParent and encapsulate mStartDepth and mEndDepth in ContextInfoDepth. r=hsivonen
In order to simplify `nsDocumentEncoder`.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 07:45:15 +00:00
diana.iacos
15ff313e56 Bug 1553474 - "Remove bookmark" option is displayed for pages that were not bookmarked; r=petru
Differential Revision: https://phabricator.services.mozilla.com/D32664

--HG--
extra : moz-landing-system : lando
2019-05-27 07:43:43 +00:00
Henri Sivonen
7fe82142c4 Bug 1543077 part 6 - Tests for the new Japanese encoding override. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D30003

--HG--
extra : moz-landing-system : lando
2019-05-27 07:55:31 +00:00
Henri Sivonen
5e954d8018 Bug 1543077 part 5 - Enable autodetect of ISO-2022-JP for local files when Fallback Encoding is set to Japanese. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D28635

--HG--
extra : moz-landing-system : lando
2019-05-27 07:55:29 +00:00
Henri Sivonen
533527938d Bug 1543077 part 4 - Have only one item for Japanese in the Text Encoding menu. r=emk,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D28634

--HG--
extra : moz-landing-system : lando
2019-05-27 07:55:27 +00:00
Henri Sivonen
1447a771cc Bug 1543077 part 3 - Remove the old Japanese detector from the tree. r=emk
Depends on D27793

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

--HG--
extra : moz-landing-system : lando
2019-05-27 07:55:25 +00:00
Henri Sivonen
1953910dd3 Bug 1543077 part 2 - Use mozilla::JapaneseDetector in the HTML parser. r=emk
Depends on D27792

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

--HG--
extra : moz-landing-system : lando
2019-05-27 07:56:17 +00:00
Henri Sivonen
3a93cdaccc Bug 1543077 part 1 - Vendor shift_or_euc into m-c. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D27792

--HG--
extra : moz-landing-system : lando
2019-05-27 07:55:16 +00:00
Chris DeLuca
bc3eb51448 Bug 1543008 - Prevent event propagation in OpenLink webconsole function. r=nchevobbe
Before this change, ctrl/cmd clicking a url in an array in the web
console also opened the sidebar. Preventing event propagation stop the
click from getting to sidebar opening function.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 06:24:11 +00:00
Mathieu Leplatre
9871d095db Bug 1554178 - Disable events sampling for uptake telemetry tests r=glasserc
Differential Revision: https://phabricator.services.mozilla.com/D32484

--HG--
extra : moz-landing-system : lando
2019-05-27 07:35:45 +00:00
Vincent Lequertier
3f41c3104f Bug 1552629 - Fix misaligned "Edit and Resend" button in the netmonitor Headers panel;r=Honza
If the "Referrer Policy" header is missing, summaryReferrerPolicy is null,
so summaryEditAndResendBtn contains only the "Edit and Resend" button, making it
misaligned. We fix this by making sure summaryEditAndResendBtn always contains
the last non-null header.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 07:23:44 +00:00
Sylvestre Ledru
c016ea09a2 Bug 1554111 - Add js/src/wasm/cranelift/src/ to the rustfmt list r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D32437

--HG--
extra : moz-landing-system : lando
2019-05-27 07:22:04 +00:00
Mathieu Leplatre
8708f07d79 Bug 1553797 - Fix OneCRL tests when MOZ_NEW_CERT_STORAGE is disabled r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D32331

--HG--
extra : moz-landing-system : lando
2019-05-24 14:32:13 +00:00
tanhengyeow
ddb81c7a43 Bug 1554095 - Fix Block URL action. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D32522

--HG--
extra : moz-landing-system : lando
2019-05-27 06:47:10 +00:00
pradeepgangwar
60e1e451c8 Bug 1436043- Fix: console missing coloured bars, adds requests.css to webconcole; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D32571

--HG--
extra : moz-landing-system : lando
2019-05-27 06:10:39 +00:00
Jean-Yves Avenard
5cf6be0c13 Bug 1554438 - P3. Shutdown threads whenever they exist. r=mattwoodrow
We only attempted to shutdow WinCompositorWindowThread if the WebRender thread hadn't not been started.

However, it is possible that the value of gfxVars::UseWebRender() changed since GPUParent::Init got called.

So don't assume anything, shutdown the thread if it still exists.

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

--HG--
extra : moz-landing-system : lando
2019-05-26 22:24:49 +00:00
Masayuki Nakano
e85fd75144 Bug 1545410 - part 1: Forcibly disable new keyCode/charCode value of keypress events if the document is Office Online Server r=smaug
Similar to bug 1514940, we need to use "split model" keypres events on
Office Online Server since they can be installed into user own servers.

Microsoft said it's safe to check whether there is an element whose id is
"WACViewPanel_EditingElement":
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c17

Additionally, they'll add new class to the element after fixing the bug in
their side:
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c17
https://bugzilla.mozilla.org/show_bug.cgi?id=1545410#c20

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

--HG--
extra : moz-landing-system : lando
2019-05-23 22:00:58 +00:00
Matt Woodrow
6a72e9b83c Bug Bug 1547624 - Start inactive Layer building during ProcessDisplayItems so that any contained hit-test info gets propagated to the outer Layer before we add the next item. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D32261

--HG--
extra : moz-landing-system : lando
2019-05-27 04:28:37 +00:00
Matt Woodrow
ded3b88d3a Bug 1547624 - Update mScaledHitRegionBounds when we add hit-test info to a Layer from within an inactive Layer. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D32260

--HG--
extra : moz-landing-system : lando
2019-05-27 04:27:18 +00:00
violet
a0327e4b32 Bug 1552345 - Should not assume en is always an accepted language r=birtles
The test assumes "en" is always an accepted language, it's not correct.
This assumption isn't what is being tested here anyway.
We should set language preference at the beginning before testing to avoid
irrelevant failure.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 00:17:13 +00:00
Dzmitry Malyshau
d5d646901c Bug 1532174 - WR remove the world transformations from SpatialNode r=gw
This is the last big step towards consistent flattening of transformations.
It includes removing the old "project_to_2d" method from the utils.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 03:35:24 +00:00
Liang-Heng Chen
cd500f0e77 Bug 1330467 - part 12. FPI isolation of translation permissions; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D19933

--HG--
extra : moz-landing-system : lando
2019-05-17 13:22:53 +00:00
Liang-Heng Chen
4c57b29505 Bug 1330467 - part 11. Use principal for permissions in webrtc UI; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D19932

--HG--
extra : moz-landing-system : lando
2019-05-26 11:23:13 +00:00
Liang-Heng Chen
4f07719b90 Bug 1330467 - part 10. Use principal for permissions in browser site-identity; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D19931

--HG--
extra : moz-landing-system : lando
2019-05-17 13:22:59 +00:00
Liang-Heng Chen
9ff316fe67 Bug 1330467 - part 9. Use principal with mobile permissions; r=johannh,snorp
Differential Revision: https://phabricator.services.mozilla.com/D19930

--HG--
extra : moz-landing-system : lando
2019-05-26 17:00:54 +00:00
Liang-Heng Chen
aea7247098 Bug 1330467 - part 8. Make canvas permission respect FPI; r=johannh,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D19929

--HG--
extra : moz-landing-system : lando
2019-05-17 13:23:04 +00:00
Liang-Heng Chen
5b28bc4e4b Bug 1330467 - part 7. Confirm FPI in permission manager tests; r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D19928

--HG--
extra : moz-landing-system : lando
2019-05-17 13:23:02 +00:00