Commit Graph

81725 Commits

Author SHA1 Message Date
Nika Layzell
75c02c72ea Bug 1532661 - Part 6: Clean up BrowsingContext references more reliably, r=farre
Depends on D23047

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:13 +00:00
Nika Layzell
f6a5c73c2a Bug 1532661 - Part 5: Make the BrowsingContext opener edge a weak reference, r=farre
Depends on D22193

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:11 +00:00
Nika Layzell
1b8834985a Bug 1532661 - Part 4: Support initializing complete BrowsingContextGroups in a single op with an IPCInitializer struct, r=farre
Depends on D22192

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:09 +00:00
Nika Layzell
1ebd4ff025 Bug 1532661 - Part 2: Use a field list macro header for synced fields, r=farre
Depends on D22190

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:05 +00:00
Nika Layzell
88e15f606d Bug 1532661 - Part 1: Perform basic validation on CanonicalBrowsingContext, r=farre
Depends on D21134

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:03 +00:00
Nika Layzell
b388b0df00 Bug 1530550 - Synchronize mOpener and mIsActivatedByUserGesture with SYNCED_BC_FIELD, r=farre
Depends on D22764

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:55 +00:00
Nika Layzell
a26325ea58 Bug 1529684 - Part 6: Store a mIsInProcess flag to preserve WindowProxy behaviour, r=farre
Currently when we have an in-process WindowProxy object, we will attempt
to either use the cached mWindowProxy value, or fetch the
nsGlobalWindowOuter object from through the nsDocShell. Unfortunately,
when the BrowsingContext is detached, we will fail to get the
nsGlobalWindowOuter object. This happens to be OK for our test cases, as
the cached mWindowProxy value doesn't have the chance to go away, but
isn't acceptable long-term.

These patches exascerbated that issue by causing the nsDocShell pointer
itself to be cleared when it is destroyed, which caused the Remote
WindowProxy logic to be triggered. To deal with that case, this patch
adds a new mIsInProcess flag to continue to act like the old code-path.

In the future, we will need to also handle ensuring that the
nsGlobalWindowOuter lives for long enough, however that is not being
done in this patch in order to land it sooner rather than later.

Depends on D22763

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:54 +00:00
Nika Layzell
1dc7594957 Bug 1529684 - Part 3: Create BrowsingContext for remote iframes in embedder, r=farre
Depends on D21096

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:47 +00:00
Nika Layzell
eaf6c2306e Bug 1529684 - Part 2: Create BrowsingContext for remote browsers in parent, r=farre
Depends on D21095

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:45 +00:00
Nika Layzell
6a04609cc9 Bug 1529684 - Part 1: Allow Attaching BrowsingContext from parent to child, r=farre
This is important to allow creating BrowsingContexts outside of the process
where they are going to be used. This is largely a re-arrangement of existing
code.

There is currently no way to do this type of attaching for browsing contexts in
existing BrowsingContextGroups, which creates some limitations, but happens to
be sufficient for us in the current situation.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:38 +00:00
Christoph Kerschbaumer
fd9b8db6bf Bug 1535291: Actually use aContentPolicyType argument within nsWebBrowserPersist::SaveURIInternal r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D23484

--HG--
extra : moz-landing-system : lando
2019-03-14 18:42:47 +00:00
Andrea Marchesini
61d20299f1 Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 4 - tests, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D22471

--HG--
extra : moz-landing-system : lando
2019-03-14 17:48:50 +00:00
Andrea Marchesini
694d7a90e5 Bug 1511749 - Fix a race condition in SharedWorker shutdown, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D23188

--HG--
extra : moz-landing-system : lando
2019-03-14 17:42:50 +00:00
Henri Sivonen
b5a365766b Bug 1535282 - Add logging of content process-level focus changes. r=nika
Depends on D22468

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

--HG--
extra : moz-landing-system : lando
2019-03-14 15:55:35 +00:00
Henri Sivonen
83788eac4c Bug 1524983 - Make nsFocusManager::Blur() hand off focus one level up only. r=NeilDeakin
Depends on D22974

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

--HG--
extra : moz-landing-system : lando
2019-03-14 16:25:33 +00:00
Henri Sivonen
f31daadc47 Bug 1533716 - Make out-of-process iframes able to request focus. r=masayuki,NeilDeakin
Depends on D22969

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

--HG--
extra : moz-landing-system : lando
2019-03-14 16:20:51 +00:00
Dorel Luca
bc871ba7f1 Merge mozilla-central to autoland. CLOSED TREE
--HG--
extra : amend_source : 1a86c239e49011cf1a857de6e020b91ca0b6bd67
2019-03-14 18:27:51 +02:00
Dorel Luca
0e9ffb4c4f Merge mozilla-inbound to mozilla-central. a=merge 2019-03-14 18:25:40 +02:00
Dorel Luca
2d22ab9308 Backed out 3 changesets (bug 1522451) for eslint failure
Backed out changeset bd7007ecd0db (bug 1522451)
Backed out changeset d291cd16ef76 (bug 1522451)
Backed out changeset 6fbcde5da1c1 (bug 1522451)
2019-03-14 18:07:15 +02:00
Henri Sivonen
35fba3ee0b Bug 1534258 - Send Deactivate() messages to out-of-process iframes. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D22969

--HG--
extra : moz-landing-system : lando
2019-03-14 16:00:32 +00:00
Emilio Cobos Álvarez
d14196d9cd Bug 1535297 - Remove some unnecessary namespace qualification in Document.h r=smaug
Only kept the ones needed to not conflict with method names.

Differential Revision: https://phabricator.services.mozilla.com/D23486
2019-03-14 16:56:04 +01:00
Emilio Cobos Álvarez
5aa8533517 Bug 1533963 - Use a single RestyleHint representation. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D22828

--HG--
extra : moz-landing-system : lando
2019-03-14 11:47:50 +00:00
Christoph Kerschbaumer
459ec2f354 Bug 1533159: Add MOZ_RELEASE_ASSERT to all SetLoadInfo implementations to ensure loadinfo is never null. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D23302

--HG--
extra : moz-landing-system : lando
2019-03-14 11:38:23 +00:00
Christoph Kerschbaumer
49a632b6c1 Bug 1532207: Do not query the CSP from the principal within LoadFrame, but rather do not even set the Principal if it does not override the CSP within nsContentUtils::GetAttrTriggeringPrincipal. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D22121

--HG--
extra : moz-landing-system : lando
2019-03-14 11:39:04 +00:00
Eden Chuang
3cce0a0fc6 Bug 1472307 - Implement delay update mechanism in ServiceWorkerRegistrationProxy. r=asuth
1. Add a new private member class DelayedUpdateCallback in
   ServiceWorkerRegistrationProxy for handling the deley time up.

2. Modify the lambda function in ServiceWorkerRegistrationProxy::Update(). Get
   the update delay time at first. If the delay time does not equal zero. create
   a timer and a timer callback(DelayedUpdateCallback) to perform the delay
   update. Otherwise execute update directly.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 10:19:13 +00:00
James Willcox
b15047799a Bug 1522451 - Resolve named CSS colors to RGB in Web Manifests r=marcosc
Differential Revision: https://phabricator.services.mozilla.com/D23025

--HG--
extra : moz-landing-system : lando
2019-03-14 15:43:52 +00:00
Christoph Kerschbaumer
980f75a172 Bug 1530854: Always create CSP on Principal so the explicit CSP in the nsISHEntry holds a reference to the potentially dynamically modified CSP in case of a meta CSP. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D21919

--HG--
extra : moz-landing-system : lando
2019-03-14 06:26:29 +00:00
Sylvestre Ledru
4aa92e3091 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D22514
2019-03-13 10:19:06 +01:00
Dorel Luca
f1c7ba91fa Backed out changeset 88ea72c345ab (bug 1524655) for mochitest failures in dom/push/test/test_error_reporting.html 2019-03-14 08:45:37 +02:00
Lina Cambridge
84764d6a93 Bug 1524655 - Remove dom.push.alwaysConnect and connect unconditionally. r=jrconlin,pjenvey
Also, remove a test that's no longer relevant, since we don't need to
fetch all subscriptions at startup.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 04:22:18 +00:00
Boris Zbarsky
870c830c5a Bug 1535135. Annotate static binding methods/getters/setters as MOZ_CAN_RUN_SCRIPT. r=qdot
We do this for non-static ones already; we should do it for static ones too.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:50:36 +00:00
Kyle Machulis
514400e811 Bug 1522713 - Allow updating of Frameloader Remoteness via FrameLoaderOwner; r=nika
Adds a method for to nsFrameLoaderOwner destroying and rebuilding a
FrameLoader in order to facilitate a process switch. Method works
without requiring that the work be done in the frontend.

Depends on D22789

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

--HG--
extra : moz-landing-system : lando
2019-03-14 01:25:07 +00:00
Kyle Machulis
0f2bca226d Bug 1522713 - Rename mRemoteFrame to mIsRemoteFrame; r=nika
We have mRemoteFrameChild which owns a RemoteFrameChild, but
mRemoteFrame is just a state. Change to mIsRemoteFrame to reflect
this.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 00:51:58 +00:00
Alex Chronopoulos
59234c63dd Bug 1533612 - Change to unsigned int to avoid integer overflow. r=jya
mProcessedQueueLength is int32_t (wrapped around an Atomic) but it is updated from the method FramesToUsecs() which returns int64_t (wrapped around a CheckedInt) thus it is changed to unsigned int to avoid integer overflow.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 04:11:39 +00:00
Dorel Luca
3ef1df6038 Backed out 5 changesets (bug 1533074) for eslint failure
Backed out changeset 36c6a7178a5c (bug 1533074)
Backed out changeset 7e6a8fadff5b (bug 1533074)
Backed out changeset 2a0494fed543 (bug 1533074)
Backed out changeset 38470d2dd98c (bug 1533074)
Backed out changeset af4e03d1f5c8 (bug 1533074)
2019-03-14 09:14:15 +02:00
Andrea Marchesini
587086626b Bug 1533074 - Implement Fingerprinting and Cryptomining annotation features - Part 4 - tests, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D22471

--HG--
extra : moz-landing-system : lando
2019-03-14 06:32:40 +00:00
Dorel Luca
932c9226f8 Bug 1532023 - Disabled permafailing dom/tests/mochitest/fetch/test_fetch_basic_http_sw_reroute.html on android r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D23507

--HG--
extra : moz-landing-system : lando
2019-03-14 15:25:36 +00:00
shindli
c206699acc Backed out changeset 99cde26aca85 (bug 1535297) for build bustage failure in builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/dom/Document.h 2019-03-14 17:14:57 +02:00
Emilio Cobos Álvarez
a208fc32f8 Bug 1535297 - Remove some unnecessary namespace qualification in Document.h r=smaug
Only kept the ones needed to not conflict with method names.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 14:44:52 +00:00
Alex Chronopoulos
9a704267d1 Bug 1518946 - Use the Await method instead of a sync dispatch because the latter allows the event loop to run while waiting. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D23476

--HG--
extra : moz-landing-system : lando
2019-03-14 12:44:57 +00:00
Will Hawkins
bfb578d1e9 Bug 1525320: Add config prefs that let us tell media and animated images to paint only the first frame r=jya
Differential Revision: https://phabricator.services.mozilla.com/D21613

--HG--
extra : moz-landing-system : lando
2019-03-13 02:48:38 +00:00
Daniel Holbert
c4717937f7 Bug 1322770: Remove bogus assertion from SMIL motion code. r=birtles
We had an assertion here that assumed progression along a motion path must be
positive, but that's not the case when we have decreasing values of
the `keyPoints` attribute.  The assertion wasn't justified and nothing
depended on it being valid, so let's just remove it.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 00:55:31 +00:00
Kyle Machulis
b1414002ac Bug 1524709 - Remove aShouldBeRemote from updateBrowserRemoteness; r=nika
Just set the RemoteType in the options object argument, instead of
doubling up the information.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 00:51:30 +00:00
Byron Campen [:bwc]
4be383c835 Bug 1531084 - Part 2: Update webidl to have a default value for selector, according to spec. r=smaug
Depends on D23053

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

--HG--
extra : moz-landing-system : lando
2019-03-12 00:02:40 +00:00
Byron Campen [:bwc]
cddab8870e Bug 1531084 - Part 1: Implement selector checking according to spec. r=jib
Depends on D23052

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:59:24 +00:00
Edwin Gao
a5bef7a7c7 Bug 1531590, 1531598, 1534811, 1336075, 1531571, 1531572, 1531572, 1531574, 1534855, 1534857, 1535082 - skip tests in mochitest-dev-tools and mochitest-browser-chrome suites for windows10-aarch64 r=jmaher
Bug 1531598 - disable browser_markup_copy_image_data.js
Bug 1531598 - disable browser_markup_links_04.js
Bug 1531598 - disable browser_inspector_menu-01-sensitivity.js
Bug 1534811 - disable accessible/tests/browser/general
Bug 1336075 - disable browser_largeAllocation_non_win32.js
Bug 1531571 - disable browser_jsterm_context_menu_labels.js
Bug 1531572 - disable browser_jsterm_helper_dollar_x.js
Bug 1531573 - disable browser_jsterm_no_input_and_tab_key_pressed.js
Bug 1531574 - disable browser_jsterm_syntax_highlight_output.js
Bug 1534855 - disable accessible/tests/browser/
Bug 1534857 - disable browser_ext_slow_script.js
Bug 1535082 - disable browser_jsterm_helper_dollar_dollar.js

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

--HG--
extra : moz-landing-system : lando
2019-03-13 19:47:25 +00:00
David Major
e5773183d6 Bug 1528074 - Remove MSVC warning flags that clang-cl doesn't understand r=chmanchester
Per the previous patch, clang-cl only understands five MSVC-style warning flags: 7219c7e9af/clang/include/clang/Driver/CLCompatOptions.td (L188-L197)

This patch removes the flags that clang-cl doesn't understand.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:19:08 +00:00
Andrew McCreight
51ba7cfd00 Bug 1535105 - Two very minor cleanups in nsGlobalWindowOuter.cpp. r=nika
mDocShell is now a strong reference, and it does not need to be
explicitly initialized in the constructor because it is an nsCOMPtr.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:37:08 +00:00
Chun-Min Chang
7a36977643 Bug 1535044 - Introduce mozilla namespace in TestGroupId.cpp. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D23338

--HG--
extra : moz-landing-system : lando
2019-03-13 16:51:38 +00:00
Emilio Cobos Álvarez
a5a514eff4 Bug 1534914 - Improve blocked cursor behavior to fall back to next image. r=smaug
Right now we just block the image returned from nsIFrame::GetCursor, which is
the first loading cursor image.

I think we should do the same we do when the image fails to load, which is to
fall back to the next image instead.

This patch moves all the custom cursor code selection logic to
EventStateManager, and lets the frame return a CursorKind and whether custom
images are allowed.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 18:38:09 +00:00