1. 13 Dec, 2016 40 commits
    • vabr's avatar
      Remove ScopedVector from PasswordStoreMac · 3a570aa0
      vabr authored
      BUG=555132
      
      Review-Url: https://codereview.chromium.org/2566873002
      Cr-Commit-Position: refs/heads/master@{#438093}
      3a570aa0
    • vapier's avatar
      histograms: add missing VeyronEmmcUpgrade metrics · c1fb475d
      vapier authored
      These were added & used on the CrOS side, but not documented here.
      
      BUG=599960
      
      Review-Url: https://codereview.chromium.org/2572633002
      Cr-Commit-Position: refs/heads/master@{#438092}
      c1fb475d
    • xhwang's avatar
      media: Rename CdmService to CdmRegistry · 5ba56be6
      xhwang authored
      TBR=nasko@chromium.org,waffles@chromium.org
      BUG=672652
      
      Review-Url: https://codereview.chromium.org/2565853003
      Cr-Commit-Position: refs/heads/master@{#438091}
      5ba56be6
    • tyoshino's avatar
      Split methods for ClientHintsPreferences from FrameFetchContext · 3b099320
      tyoshino authored
      FrameFetchContext is containing too many things. We'd like to slim it
      down to hold basically only things that receive and handle notifications
      from ResourceFetcher.
      
      The methods for ClientHintsPreferences on FrameFetchContext is placed
      there (I guess) just not to introduce dependencies from core/fetch to
      core/loader, core/frame, etc. See
      https://codereview.chromium.org/1189523015 which introduced this logic
      initially.
      
      ----
      
      Compatibility analysis:
      
      It's safe to directly pass frame() to FrameClientHintsPreferencesContext
      in FrameFetchContext::dispatchDidReceiveResponseInternal(). If the
      passed ResourceFetcher is already clearContext()-ed, we never reach
      dispatchDidReceiveResponseInternal(). So, we can assume that the
      ResourceFetcher passed to updateFromAcceptClientHintsHeader() was
      always not yet clearContext()-ed.
      
      HttpEquiv::processHttpEquivAcceptCH() was passing document.fetcher()
      to updateFromAcceptClientHintsHeader(). Document::m_fetcher is cleared
      only in Document::shutdown(). Therefore, document.frame() being non-null
      at the beginning of processHttpEquivAcceptCH() means that the Document
      hasn't yet shutdown.
      
      context().frame() call on document.fetcher() returns document.frame()
      unless clearContext() was called. This is true even when
      setImportsController() was called on the Document. This is clarified by
      a separate CL https://codereview.chromium.org/2547843002/.
      
      There're three callers of ResourceFetcher::clearContext(). One of them
      is Document::shutdown(). So, we don't need to care it. The other cases
      are:
      - setImportsController() called by LinkImport::process() while
        Document::loader() is null
      - DocumentLoader::detachFromFrame() was called
      
      However, I think this behavior was not intended initially and was
      introduced just accidentally as stated above.
      
      R=yhirano@chromium.org
      BUG=671533
      
      Review-Url: https://codereview.chromium.org/2544933003
      Cr-Commit-Position: refs/heads/master@{#438090}
      3b099320
    • sigbjornf's avatar
      Avoid conditional Animation prefinalizers. · 4a50af8b
      sigbjornf authored
      Recast the conditionally-eager finalization of Animation objects - only
      needed if the Animation object has a CompositorAnimationPlayer attached -
      wrapping instead the player object inside an eagerly-finalized object.
      
      By doing so, we remove the need to support explicit prefinalizer
      registration.
      
      R=haraken
      BUG=673645
      
      Review-Url: https://codereview.chromium.org/2570503002
      Cr-Commit-Position: refs/heads/master@{#438089}
      4a50af8b
    • tyoshino's avatar
      Move the code in ResourceFetcher handling calls from WebURLLoaderImpl to ResourceLoader · eaa62912
      tyoshino authored
      They're not doing anything specific to the ResourceFetcher but just
      consulting the FrameFetchContext via ResourceFetcher. Especially,
      didReceiveResponse() contains a lot of back calls to the ResourceLoader.
      The logic should just be implemented inside the ResourceLoader.
      
      defersLoading() is also removed since it's used only by the unit tests
      and can be replaced by invocation of public method context().
      
      Renamed unary didFail() to handleError() as it's not a WebURLLoaderImpl
      implementation and therefore it's confusing that it has the "did"
      prefix.
      
      R=yhirano@chromium.org,japhet@chromium.org,tsepez@chromium.org,kinuko@chromium.org
      BUG=669383
      
      Review-Url: https://codereview.chromium.org/2533683002
      Cr-Commit-Position: refs/heads/master@{#438088}
      eaa62912
    • vabr's avatar
      Remove ScopedVector from PasswordStoreX · 8a03095c
      vabr authored
      BUG=555132
      
      Review-Url: https://codereview.chromium.org/2565173002
      Cr-Commit-Position: refs/heads/master@{#438087}
      8a03095c
    • rockot's avatar
      Service Manager: Override DLL search path when launching services in component builds · 386c2e2e
      rockot authored
      Service executables don't live alongside other build artifacts, so in component builds
      Windows doesn't normally know where to look for them at runtime. This overrides the
      DLL search path temporarily before launching any service child process.
      
      BUG=None
      R=ben@chromium.org
      
      Review-Url: https://codereview.chromium.org/2574653002
      Cr-Commit-Position: refs/heads/master@{#438086}
      386c2e2e
    • pfeldman's avatar
      DevTools: enable private field checks as a part of compilation. · 2d6dcff9
      pfeldman authored
      Review-Url: https://codereview.chromium.org/2573673002
      Cr-Commit-Position: refs/heads/master@{#438085}
      2d6dcff9
    • robhogan's avatar
      Don't repeat thead if the first row exceeds the height of the page · 6287f21e
      robhogan authored
      BUG=669690
      CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
      
      Review-Url: https://codereview.chromium.org/2545243002
      Cr-Commit-Position: refs/heads/master@{#438084}
      6287f21e
    • dtseng's avatar
      Improve the speech panel's performance · 120bb61b
      dtseng authored
      Currently, ChromeVox sends all queued speech output to the speech panel.
      
      This unfortunately causes performance issues.
      
      For example, in Gmail, if ChromeVox sends ~500 utterances, which can happen if we have a large block of text (since we split on sentences), ChromeVox stops responding to key commands.
      
      ChromeVox should stay responsive in any situation especially if a user taps on the control key repeatedly.
      
      This change makes it so we only show the currently spoken text which gets around the potentially expensive calls to send text to the panel background page (which blocks).
      
      BUG=672955
      CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
      
      Review-Url: https://codereview.chromium.org/2570593002
      Cr-Commit-Position: refs/heads/master@{#438083}
      120bb61b
    • dtseng's avatar
      Hook up make visible action for views · 350d83a2
      dtseng authored
      - try to scroll to the view's bounding rectangle when a client requests make visible
      - add switch as a checkbox (matched for that predicate)
      
      BUG=673048
      
      Review-Url: https://codereview.chromium.org/2572573002
      Cr-Commit-Position: refs/heads/master@{#438082}
      350d83a2
    • chanpatorikku's avatar
      [NaCl SDK] Implement FakePepperInterfaceGoogleDriveFs · 7d7031e3
      chanpatorikku authored
      Implement FakePepperInterfaceGoogleDriveFs, and implement
      FakeDriveURLResponseInfoInterface and FakeDriveURLLoaderInterface, which
      FakePepperInterfaceGoogleDriveFs uses.  FakePepperInterfaceGoogleDriveFs
      is going to be used by the unit tests of the future code.
      
      CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_nacl_sdk;master.tryserver.chromium.mac:mac_nacl_sdk;master.tryserver.chromium.win:win_nacl_sdk
      
      Review-Url: https://codereview.chromium.org/2538163003
      Cr-Commit-Position: refs/heads/master@{#438081}
      7d7031e3
    • aelias's avatar
      Simplify content_layer attachment and viewporting logic. · acff1ef1
      aelias authored
      I noticed a lot of complex logic in content_layer.cc and
      static_tab_scene_layer.cc that appears to do nothing useful anymore.  I
      simplified it by:
      1) Always detaching and reattaching the live and static sublayers
      instead of trying to preserve the existing structure.  (There shouldn't
      be any performance cost to this.)
      2) Following a much simpler policy for positioning and clipping.  I
      compared the behavior of the old and new logic in a variety of device
      rotation, tab switcher and URL-bar-hiding scenarios, and I haven't
      yet observed any regression.
      
      BUG=662427
      
      Review-Url: https://codereview.chromium.org/2566753004
      Cr-Commit-Position: refs/heads/master@{#438080}
      acff1ef1
    • sadrul's avatar
      content: Move shader cache factory singleton into a separate file. · 75d671b9
      sadrul authored
      The shader cache code is going to move into //gpu/ipc/host. However, the
      singleton is content only. So factor out the code that deals with the
      singleton instance inside content.
      
      BUG=604369
      
      Review-Url: https://codereview.chromium.org/2565223003
      Cr-Commit-Position: refs/heads/master@{#438079}
      75d671b9
    • dgozman's avatar
      [DevTools] Migrate dom, emulation, inspector, network, page and schema handlers to new generator. · b4f43e44
      dgozman authored
      This also includes DevToolsSession::Dispatch utility method
      which offers message to DevToolsManagerDelegate.
      
      BUG=664683
      TBR=pfeldman
      
      Review-Url: https://codereview.chromium.org/2548263002
      Cr-Commit-Position: refs/heads/master@{#438078}
      b4f43e44
    • joedow's avatar
      Fixing CRD curtain mode connection failures on Win8+ official builds · 1cdb0481
      joedow authored
      I've root caused this and the problem was introduced in this CL:
      https://codereview.chromium.org/2446053002
      
      That CL moved the logic which reported the worker process launch from the
      IPC Channel Connected method to an IO completion port listener.  This works
      fine on un-official builds, however it breaks on official builds.  The
      reason for the failure is that the remoting_desktop process on official
      builds are signed and include 'UiAccess' in their manifest.  When the
      launcher process uses ShellExecuteEx to launch the worker process in this
      scenario, we actually see two processes get launched sequentially.  The
      first starts and exists with error code 'STATUS_ELEVATION_REQUIRED' and
      the second launches with the correct permissions.  This behavior worked
      fine before as we listened for the connection to the IPC channel which
      was done by the second, successful process launch.  With the new code,
      we observed the first process launch, set up the Mojo channel for it, and
      tried waiting on its process handle which exits immediately.  The second
      process then starts and fails to connect to the Mojo channel.
      
      I investigated whether UiAccess is truly required for the desktop binary
      and I think that it is.  For the Ctrl+Alt+Del scenario, there are registry
      keys that can be set which will require that flag.  For Alt+Tab, it is
      possible that some windows might not be accessible if they have a high
      high enough integrity level (+ UiAccess themselves).
      
      So instead of removing the UiAccess flag, my approach is to listen for the
      worker process creation and exit events.  I store the value of the last seen
      worker process id and use that in our process launch detection code once the
      launcher process exits.  This allows both un-official builds (which do not
      require the extra permissions hop) and official builds will work consistently.
      
      BUG=666992
      
      Review-Url: https://codereview.chromium.org/2568983004
      Cr-Commit-Position: refs/heads/master@{#438077}
      1cdb0481
    • foolip's avatar
      Add a nextLocalAncestor helper for Fullscreen · dd3989c8
      foolip authored
      Refactoring only, no observable change intended.
      
      A test is added that fails if the continue statement were dropped, as
      apparently there was no coverage for this.
      
      Note: This CL is also a test for the WPT export process.
      
      BUG=402376
      
      Review-Url: https://codereview.chromium.org/2565183002
      Cr-Commit-Position: refs/heads/master@{#438076}
      dd3989c8
    • yutak's avatar
      Revert of Restrict transmission of external exp ids to signed in users.... · e48e108c
      yutak authored
      Revert of Restrict transmission of external exp ids to signed in users. (patchset #6 id:140001 of https://codereview.chromium.org/2558913003/ )
      
      Reason for revert:
      Speculative revert for recent flakiness in
      Contextual Search related test failures on
      "Android Tests" bot:
      
      https://build.chromium.org/p/chromium.linux/builders/Android%20Tests?numbuilds=100
      
      e.g. https://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/35779
      
      I'm not very confident that this is the real
      offender; if it's not, I will reland this CL.
      
      Original issue's description:
      > Restrict transmission of external exp ids to signed in users.
      >
      > Since external experiment ids are not based on Chrome's low
      > entropy source, they do not have the same guarantees about
      > not identifying a user as Chrome's variations. As such, we
      > should only transmit them for signed in users, whose identity
      > is already known by Google so there's no risk of identifying
      > them through these headers.
      >
      > Note: The signed-in state checking in this CL is only done for
      > web content area requests and not other internal requests,
      > like to the suggestion service, where it treats the state as
      > "not signed in". This is fine to do because variations service
      > ids are still sent, which is what the other call sites are
      > interested in.
      >
      > BUG=672532
      > TBR=mpearson@chromium.org,mattm@chromium.org,donnd@chromium.org,afakhry@chromium.org
      >
      > Committed: https://crrev.com/9ed7b5611a61505c3dba734fe55b92211df3c2f6
      > Cr-Commit-Position: refs/heads/master@{#437959}
      
      TBR=jwd@chromium.org,mathp@chromium.org,treib@chromium.org,mmenke@chromium.org,mpearson@chromium.org,mattm@chromium.org,donnd@chromium.org,afakhry@chromium.org,asvitkine@chromium.org
      # Skipping CQ checks because original CL landed less than 1 days ago.
      NOPRESUBMIT=true
      NOTREECHECKS=true
      NOTRY=true
      BUG=672532
      
      Review-Url: https://codereview.chromium.org/2569973002
      Cr-Commit-Position: refs/heads/master@{#438075}
      e48e108c
    • inferno's avatar
      Revert of Add ubsan_no_recover_hack to missing ubsan builders. (patchset #1... · 587155a2
      inferno authored
      Revert of Add ubsan_no_recover_hack to missing ubsan builders. (patchset #1 id:1 of https://codereview.chromium.org/2538103002/ )
      
      Reason for revert:
      UBSan is noisy and can't be enabled for explicit crash behavior on builders. On ClusterFuzz, it will be still enabled to create testcases.
      
      BUG=673488
      
      Original issue's description:
      > Add ubsan_no_recover_hack to missing ubsan builders.
      >
      > R=inferno@chromium.org, ochang@chromium.org, phajdan.jr@chromium.org
      > BUG=669566
      >
      > Committed: https://crrev.com/a50c295543d07efaedd8534d117f3860a3df52e8
      > Cr-Commit-Position: refs/heads/master@{#435317}
      
      TBR=ochang@chromium.org,phajdan.jr@chromium.org,mmoroz@chromium.org
      # Not skipping CQ checks because original CL landed more than 1 days ago.
      BUG=669566
      
      Review-Url: https://codereview.chromium.org/2568883003
      Cr-Commit-Position: refs/heads/master@{#438074}
      587155a2
    • calamity's avatar
      [MD History] Color tweaks. · 25fffa4d
      calamity authored
      This CL fixes some colors in MD History that were low contrast. It also
      makes a bunch of colors consistent and pulls most colors into
      shared_vars.html so we can better manage our vast color spectrum.
      
      BUG=670836
      CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
      
      Review-Url: https://codereview.chromium.org/2549133003
      Cr-Commit-Position: refs/heads/master@{#438073}
      25fffa4d
    • sashab's avatar
      Changed EOverflowAnchor to an enum class and renamed its members · ad2fe048
      sashab authored
      Changed EOverflowAnchor to an enum class and gave it an unsigned
      underlying type.
      
      Changing it to an enum class enforces better namespacing and code
      practices. Adding the unsigned underlying type is pre-work for when the
      class is eventually stored as an enum bitfield (it would be done in this
      patch, except a presubmit warning already exists that prevents that. The
      presubmit warning needs to be updated before that change can occur.)
      
      This is also pre-work to move EOverflowAnchor to be generated in
      ComputedStyleBase.
      
      BUG=628043
      CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
      
      Review-Url: https://codereview.chromium.org/2561973002
      Cr-Commit-Position: refs/heads/master@{#438072}
      ad2fe048
    • nainar's avatar
      Marking flaky tests in fast as such. · e161fe6c
      nainar authored
      This patch marks a few tests that are being flaky as so.
      Will try to find owners for these tests.
      
      BUG=673632
      
      Review-Url: https://codereview.chromium.org/2565233005
      Cr-Commit-Position: refs/heads/master@{#438071}
      e161fe6c
    • csharrison's avatar
      Pass null WebString for empty WebSecurityOrigin::suborigin() · 7ba4ff4f
      csharrison authored
      This removes a bunch of calls which end up with a WebString pointing to
      the global empty string, which was showing up in profiles.
      
      BUG=348655
      
      Review-Url: https://codereview.chromium.org/2555983003
      Cr-Commit-Position: refs/heads/master@{#438070}
      7ba4ff4f
    • zhongyi's avatar
      Landing Recent QUIC changes until 3:47 pm, Dec 10, 2016 UTC-8 · 1a596c87
      zhongyi authored
      Flip quic flags by 12/12/2016 18:30 PST
      https://codereview.chromium.org/2569703003/
      
      relnote: Protected by --quic_fix_beta_last_max. Fix conservative decrease for n-connection emulation.
      Merge internal change: 141565085
      https://codereview.chromium.org/2569723004
      
      relnote: Allow changing initial flow control window via connection options. Protected by --quic_large_ifw_options. Partially reverts internal change: 128225749
      Merge internal change: 141507430
      https://codereview.chromium.org/2569113002
      
      rel-note: automated rollback of internal change 138108562
      Merge internal change: 141469809
      https://codereview.chromium.org/2566943003
      
      relnote: Use event_time instead of ApproximateNow() in QUIC cubic code. Protected by --quic_use_event_time
      Merge internal change: 141384938
      https://codereview.chromium.org/2571643002
      
      relnote: Remove unused QuicClock member of BbrSender.
      Merge internal change: 141366593
      https://codereview.chromium.org/2566333002
      
      relnote: Non-functional change. Cleanup pg3 support for quic_packet_reader
      Bring it more inline with Chromium source but cleanup the definition of
      MMSG_MORE macro to exist in the header so that there's no violation of
      ODR for QUicPacketReader class based upon inclusion.
      Merge internal change: 141357226
      https://codereview.chromium.org/2570703002
      
      relnote: Protected by --quic_fix_cubic_bytes_quantization. Fix CubicBytes Quantization. iDue to an unfortunate ordering of operations in the actual "cubing" part of the CWND calculation, we were inadvertantly quantizing the congestion-window calculation.  (Note: The "reno" part of the cubic algorithm wis smooth and not quantized before.)  Switching the order of operations obviates the problem.
      Additionally, removed parameterization from cubic_test.cc and
      cubic_bytes_test.cc, because the parameterization was getting
      unwieldy.  Instead, the parameters are controlled by command-line
      flag.
      Merge internal change: 141183279
      https://codereview.chromium.org/2569873002/
      
      BUG=
      
      Review-Url: https://codereview.chromium.org/2566403002
      Cr-Commit-Position: refs/heads/master@{#438069}
      1a596c87
    • wangxianzhu's avatar
      [SPInvalidation] Update paint properties on css clip change · 1ea99b02
      wangxianzhu authored
      Add StyleDifference::needsPaintPropertyUpdate() to indicate a style
      change directly needs paint property update, and set the flag on
      changes of css clip, transform, etc.
      
      Move two tests from their original directory into paint/invalidation.
      
      BUG=645667
      CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
      
      Review-Url: https://codereview.chromium.org/2570463004
      Cr-Commit-Position: refs/heads/master@{#438068}
      1ea99b02
    • luoe's avatar
      DevTools: sort non-enumerable and underscore properties lower in logged object · 67cb47ca
      luoe authored
      BUG=665948
      
      Review-Url: https://codereview.chromium.org/2563883002
      Cr-Commit-Position: refs/heads/master@{#438067}
      67cb47ca
    • catapult-deps-roller's avatar
      Roll src/third_party/catapult/ c69690acc..e6e0862c8 (1 commit). · 091cb601
      catapult-deps-roller authored
      https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git/+log/c69690acc34b..e6e0862c8165
      
      $ git log c69690acc..e6e0862c8 --date=short --no-merges --format='%ad %ae %s'
      2016-12-12 eakuefner [Telemetry] Increase timeout after sending SIGTERM
      
      Documentation for the AutoRoller is here:
      https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
      
      If the roll is causing failures, see:
      http://www.chromium.org/developers/tree-sheriffs/sheriff-details-chromium#TOC-Failures-due-to-DEPS-rolls
      
      CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel
      TBR=catapult-sheriff@chromium.org
      
      Review-Url: https://codereview.chromium.org/2571713003
      Cr-Commit-Position: refs/heads/master@{#438066}
      091cb601
    • patricialor's avatar
      Mac: Fix SSLClientCertificateSelectorCocoaTest.HideShow (fails on macOS Sierra). · 88fc23eb
      patricialor authored
      SSLClientCertificateSelectorCocoaTest.HideShow is failing on macOS Sierra,
      blocking 10.12 rollout for Chrome. Fix this using the same refactor as seen in
      r400627, which ignores mouse events instead of resizing the certificate selector
      window when it's hidden.
      
      BUG=650898
      
      Review-Url: https://codereview.chromium.org/2559763003
      Cr-Commit-Position: refs/heads/master@{#438065}
      88fc23eb
    • yutak's avatar
      Revert of ash: Use system tray mojo interface to show system update tray icon... · 9dac0955
      yutak authored
      Revert of ash: Use system tray mojo interface to show system update tray icon (patchset #6 id:100001 of https://codereview.chromium.org/2558043006/ )
      
      Reason for revert:
      Broke compile on Google Chrome ChromeOS:
      
      https://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20ChromeOS/builds/26896
      
      ../../chrome/browser/component_updater/pepper_flash_component_installer.cc:94:3: error: no type named 'SystemTrayClient' in namespace 'chromeos'; did you mean simply 'SystemTrayClient'?
        chromeos::SystemTrayClient* tray = chromeos::SystemTrayClient::Get();
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
        SystemTrayClient
      ../../chrome/browser/ui/ash/system_tray_client.h:27:7: note: 'SystemTrayClient' declared here
      class SystemTrayClient : public ash::mojom::SystemTrayClient,
            ^
      ../../chrome/browser/component_updater/pepper_flash_component_installer.cc:94:38: error: no member named 'SystemTrayClient' in namespace 'chromeos'; did you mean simply 'SystemTrayClient'?
        chromeos::SystemTrayClient* tray = chromeos::SystemTrayClient::Get();
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                           SystemTrayClient
      ../../chrome/browser/ui/ash/system_tray_client.h:27:7: note: 'SystemTrayClient' declared here
      class SystemTrayClient : public ash::mojom::SystemTrayClient,
            ^
      2 errors generated.
      
      Original issue's description:
      > ash: Use system tray mojo interface to show system update tray icon
      >
      > Change the flow so that Chrome explicitly asks ash to show the icon
      > rather than having ash ask Chrome whether there is an update available.
      >
      > * Add ShowUpdateIcon to system_tray.mojom
      > * Introduce update.mojom
      > * Migrate ash to using ash::mojom::UpdateSeverity internally
      > * Migrate update methods from SystemTrayDelegate to SystemTrayClient
      > * Add a new SystemTrayClientTest and move existing Flash test there
      >
      > Also add docs for SystemTrayItem (used by TrayUpdate) since tray view
      > vs. default view vs. detailed view always confuses me.
      >
      > BUG=647412
      > TEST=chrome browser_tests, ash_unittests
      >
      > Committed: https://crrev.com/196ee3b66b3700733cecb8472d63d872d99e3783
      > Cr-Commit-Position: refs/heads/master@{#438051}
      
      TBR=msw@chromium.org,kerrnel@chromium.org,tsepez@chromium.org,waffles@chromium.org,sky@chromium.org,jamescook@chromium.org
      # Skipping CQ checks because original CL landed less than 1 days ago.
      NOPRESUBMIT=true
      NOTREECHECKS=true
      NOTRY=true
      BUG=647412
      
      Review-Url: https://codereview.chromium.org/2568413002
      Cr-Commit-Position: refs/heads/master@{#438064}
      9dac0955
    • horo's avatar
      Introduce new security restrictions in FetchEvent.respondWith(). · 82298e59
      horo authored
      This CL introduces two changes in the restriction of FetchEvent.respondWith().
      
      1. Allow responding to non-navigation requests which redirect mode is 'manual'
         with opaque-redirect responses.
         Ex:
           SW: self.onfetch = evt => { evt.respondWith(fetch(evt.request)); };
           Page: fetch(new Request("/redirect-url", {redirect: 'manual'}));
           Server: Returns a redirect response to somewhere.
           Before this CL: fetch() fails.
           After this CL: fetch() returns the opaque-redirect response.
      
      2. Add a deprecation warning for responding to requests which redirect mode is
         not 'follow' with redirected responses. Not to suddenly break existing sites
         we allow responding to navigation requests with redirected responses and show
         two warning messages. One in the DevTools attached to the service worker from
         RespondWithObserver::responseWasFulfilled(). And one in the DevTools attached
         to the page tab from DocumentLoader::finishedLoading().
      
      BUG=658249
      
      Review-Url: https://codereview.chromium.org/2526343003
      Cr-Commit-Position: refs/heads/master@{#438063}
      82298e59
    • rune's avatar
      Use hash set instead of vector for changed RuleSets. · 5eefd373
      rune authored
      That way, we don't have to consider the same RuleSet multiple times for
      invalidation on active stylesheet update. This fixes a regression in
      PerformanceTests/CSS/StyleSheetInsert.html which would have been
      introduced by https://codereview.chromium.org/2557533005
      
      This works because the same style element source text used multiple
      times will make us use the same StyleSheetContents from the cache and
      hence the same RuleSet for all 50 sheets added in that test. It's a bit
      like cheating, but this will also make sure we don't invalidate for the
      same RuleSet twice if we re-order stylesheets by removing/inserting a
      style element where the CSSStyleSheet pointer will be different, but
      the RuleSet stays the same.
      
      R=sashab@chromium.org,esprehn@chromium.org
      BUG=567021
      
      Review-Url: https://codereview.chromium.org/2569733003
      Cr-Commit-Position: refs/heads/master@{#438062}
      5eefd373
    • nhiroki's avatar
      ServiceWorker: Replace RegistrationCallback and GetRegistrationsCallback with... · abcca45f
      nhiroki authored
      ServiceWorker: Replace RegistrationCallback and GetRegistrationsCallback with CallbackPromiseAdapter
      
      This is a cleanup CL and does not change behavior.
      
      BUG=n/a
      
      Review-Url: https://codereview.chromium.org/2564363002
      Cr-Commit-Position: refs/heads/master@{#438061}
      abcca45f
    • dgozman's avatar
      [DevTools] Prepare navigator to multiple nodes per UISourceCode. · e4c4ef93
      dgozman authored
      BUG=670180
      
      Review-Url: https://codereview.chromium.org/2570503003
      Cr-Commit-Position: refs/heads/master@{#438060}
      e4c4ef93
    • tyoshino's avatar
      Remove unused method upgradeInsecureRequest() from DocumentLoader · 714899d3
      tyoshino authored
      R=yhirano@chromium.org
      BUG=none
      
      Review-Url: https://codereview.chromium.org/2572493002
      Cr-Commit-Position: refs/heads/master@{#438059}
      714899d3
    • lukasza's avatar
      Rename m_currentTask and s_currentTask/ to help rewrite_to_chrome_style tool. · 1f0dfac7
      lukasza authored
      This CL helps rewrite_to_chrome_style tool, by preventing the tool from
      suggesting the following conflicting renames:
      - |s_field| -> |field_|
      - |m_field| -> |field_|
      
      BUG=641004
      
      Review-Url: https://codereview.chromium.org/2569433002
      Cr-Commit-Position: refs/heads/master@{#438058}
      1f0dfac7
    • aazzam's avatar
      Added CSSPropertyAPI and CSS padding properties which implement this API · 13f6e06e
      aazzam authored
      Added the CSSPropertyAPI for a single method parseSingleValue. Made
      CSSPaddingProperties which implements this API for a few css
      properties. Added CSS property descriptor which uses a struct to store
      function pointers for the property's functions.
      
      BUG=668012
      
      Review-Url: https://codereview.chromium.org/2533673002
      Cr-Commit-Position: refs/heads/master@{#438057}
      13f6e06e
    • alph's avatar
      DevTools: Hide overview pane on timeline landing page. · 286de02c
      alph authored
      BUG=570441
      
      Review-Url: https://codereview.chromium.org/2570553003
      Cr-Commit-Position: refs/heads/master@{#438056}
      286de02c
    • szager's avatar
      IntersectionObserver: use nullptr for implicit root. · 3520351e
      szager authored
      If the observer is tracking intersections with the top-level frame
      viewport (AKA the "implicit root"), it's not necessary to store a
      pointer to the root node on the IntersectionObserver.  Doing so
      makes bookkeeping more difficult when DOM modifications happen.
      It's also strictly incompatible with OOPIF.
      
      Methods like mapToVisualRectInAncestorSpace and localToAbsolute already
      set a precedent by allowing a nullptr "ancestor" argument to indicate
      "map all the way to the top frame".  Changing IntersectionObserver to
      let nullptr signify the implict root keeps with this convention.
      
      The new trackingDocument() method serves two purposes: it fixes a bug
      where only IntersectionObservers registered on the top-level FrameView
      run the observation steps (test added); and it is a necessary wart
      until OOPIF support lands (https://codereview.chromium.org/2431473003).
      
      Because IntersectionObserver::m_root is a weak pointer, we must track
      explicitly whether the IO is tracking the implicit root, to distinguish
      that from an IO whose root has been garbage collected; hence the
      new m_rootIsImplicit field.
      
      R=ojan@chromium.org,kenrb@chromium.org
      BUG=
      
      Review-Url: https://codereview.chromium.org/2553343004
      Cr-Commit-Position: refs/heads/master@{#438055}
      3520351e
    • csharrison's avatar
      Add std::string constructors for Origin/SchemeHostPort to reduce copies · f07ac3c6
      csharrison authored
      WebSecurityOrigin forwards temporaries to Origin. We should just use
      these, rather than consider them opaque StringPieces and copying data
      out of them.
      
      This CL also removes some dead code.
      
      BUG=672877
      
      Review-Url: https://codereview.chromium.org/2561363002
      Cr-Commit-Position: refs/heads/master@{#438054}
      f07ac3c6